* Add mini_magick and rufus-scheduler * Expose attributes and add sigs to AwsService * Get Party ready for preview state * Added new fields for preview state and generated_at timestamp * Add preview state enum to model * Add preview_relevant_changes? after_commit hook * Add jobs for generating and cleaning up party previews * Add new endpoints to PartiesController * `preview` shows the preview and queues it up for generation if it doesn't exist yet * `regenerate_preview` allows the party owner to force regeneration of previews * Schedule jobs * Stalled jobs are checked every 5 minutes * Failed jobs are retried every hour * Old preview jobs are cleaned up daily * Add the preview service This is where the bulk of the work is. This service renders out the preview images bit by bit. Currently we render the party name, creator, job icon, and weapon grid. This includes signatures and some fonts.
101 lines
1.9 KiB
Ruby
101 lines
1.9 KiB
Ruby
source 'https://rubygems.org'
|
||
ruby '3.3.7'
|
||
|
||
gem 'bootsnap'
|
||
gem 'pg'
|
||
gem 'rack-cors'
|
||
gem 'rails'
|
||
gem 'sprockets-rails'
|
||
|
||
# A Ruby Web Server Built For Concurrency
|
||
gem 'puma'
|
||
|
||
# A sophisticated and secure hash algorithm for
|
||
# hashing passwords.
|
||
gem 'bcrypt'
|
||
|
||
# Doorkeeper is an OAuth 2 provider for Rails and Grape.
|
||
gem 'doorkeeper'
|
||
|
||
# Simple, Fast, and Declarative Serialization Library for Ruby
|
||
gem 'blueprinter'
|
||
|
||
# Optimized JSON.
|
||
gem 'oj'
|
||
|
||
# Simple Rails app configuration
|
||
gem 'figaro'
|
||
|
||
# Responder?
|
||
gem 'responders'
|
||
|
||
# Parse emoji to strings
|
||
gem 'gemoji-parser'
|
||
|
||
# Mini replacement for RMagick
|
||
gem 'mini_magick'
|
||
|
||
# An awesome replacement for acts_as_nested_set and better_nested_set.
|
||
gem 'awesome_nested_set'
|
||
|
||
# Official AWS Ruby gem for Amazon Simple Storage Service (Amazon S3)
|
||
gem 'aws-sdk-s3'
|
||
|
||
# An email validator for Rails
|
||
gem 'email_validator'
|
||
|
||
# pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
|
||
gem 'pg_search'
|
||
|
||
# scheduler for Ruby (at, in, cron and every jobs)
|
||
gem 'rufus-scheduler'
|
||
|
||
# Pagination library
|
||
gem 'will_paginate', '~> 3.3'
|
||
|
||
# Migrate and update data alongside your database structure.
|
||
gem 'data_migrate'
|
||
|
||
# A ruby gem to allow the copying of ActiveRecord objects and their associated children, configurable with a DSL on the model
|
||
gem 'amoeba'
|
||
|
||
# Makes http fun again!
|
||
gem 'httparty'
|
||
|
||
# StringScanner provides for lexical scanning operations on a String.
|
||
gem 'strscan'
|
||
|
||
group :doc do
|
||
gem 'apipie-rails'
|
||
gem 'sdoc'
|
||
end
|
||
|
||
group :development, :test do
|
||
gem 'amazing_print'
|
||
gem 'dotenv-rails'
|
||
gem 'factory_bot_rails'
|
||
gem 'faker'
|
||
gem 'pry'
|
||
gem 'rspec_junit_formatter'
|
||
gem 'rspec-rails'
|
||
end
|
||
|
||
group :development do
|
||
gem 'listen'
|
||
gem 'solargraph'
|
||
gem 'spring'
|
||
gem 'spring-commands-rspec'
|
||
end
|
||
|
||
group :tools do
|
||
gem 'rubocop'
|
||
gem 'squasher', '>= 0.6.0'
|
||
end
|
||
|
||
group :test do
|
||
gem 'api_matchers'
|
||
gem 'byebug'
|
||
gem 'database_cleaner'
|
||
gem 'shoulda-matchers'
|
||
gem 'simplecov', require: false
|
||
end
|