hensei-api/Gemfile
Justin Edmund c0922203a7
Create pipeline for importing data via PRs (#148)
* Add table for data version and migrate

* Modify migration and re-migrate

* Create data_version.rb

Adds a model for DataVersion

* Add aws-sdk-s3 and create aws_service.rb

AwsService handles streaming game image files from the Granblue Fantasy server to our S3 instance.

* Add importers

The Importer libraries take CSV data and import them into the database for each type. We currently support characters, summons and weapons.

* Add downloaders

Downloaders take Granblue IDs and download images for those items from the Granblue Fantasy server in all relevant sizes.

Downloaders can download to disk or stream the file directly to S3.

* Create data_importer.rb

* Fetches a list of all CSV files present in the updates folder
* Checks which have already been imported
* Sends unimported data to the appropriate Importer to handle

* Create download_manager.rb

Creates an appropriate downloader for each Granblue ID it receives

* Update download_images.rake

Most of this task has been extracted into the Downloader libraries

* Update import_data.rake

* Create deploy.rake

This task is to be run as a post-deploy script. It checks for new unimported data, imports it, then downloads the relevant images to S3 or local disk depending on the parameters provided.

* Update credentials.yml.enc

* Began working on a README and added example CSVs

* Modify importer to handle updates

This way we can also add FLBs and other uncaps easier.

* Updates only require values that will change

When updating a row, fields that don't have a provided value will not be changed

* Rebuild search indices in post deploy

* Clean up logs with LoggingHelper

* More logging adjustments

Trying to get a nice-looking output

* Change some ASCII characters

* Final ASCII changes

* Fix issues with Summon and Weapon importers

* Finish README for contributing
2025-01-13 05:33:04 -08:00

95 lines
1.8 KiB
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

source 'https://rubygems.org'
ruby '3.0.0'
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'
# 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 PostgreSQLs full text search
gem 'pg_search'
# 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