hensei-api/Gemfile
Justin Edmund d6300f7aeb
Add first round of tests (#178)
* Install Rspec

* Create .aidigestignore

* Update rails_helper

- Added sections and comments
- Add support for loading via canonical.rb
- Add FactoryBot syntax methods
- Disable SQL logging in test environment

* Move gems around

* Add canonical.rb and test env CSVs

We load these CSVs via canonical.rb when we run tests as a data source for canonical objects.

* Remove RBS for now

This is too much and we need to find the right solution

* Refactor GridSummonsController and add tests

* Create GridSummon factory

* Refactor GridSummon and add documentation and tests

* Create have_error_on.rb

* Update .aidigestignore

* Fix warnings

* Add GridWeapons and Parties factories

* Refactor GridWeapon and add documentation and tests

* Create .rubocop.yml

* Create no_weapon_provided_error.rb

* Refactor GridWeaponsController

- Refactors controller
- Adds YARD documentation
- Adds Rspec tests

* Refactor GridSummonsController

- Refactors controller
- Adds YARD documentation
- Adds Rspec tests

* Enable shoulda/matchers

* Update User factory

* Update party.rb

We moved updating the party's element and extra flag to inside the party. We use an after_commit hook to minimize the amount of queries we're running to do this.

* Update party.rb

We change setting the edit key to use the conditional assignment operator so that it doesn't get overridden when we're running tests. This shouldn't have an effect in production.

* Update api_controller.rb

Change render_unprocessable_entity_response to render the errors hash instead of the exception so that we get more helpful errors.

* Add new errors

Added NoCharacterProvidedError and NoSummonProvidedError

* Add tests and docs to GridCharacter

We added a factory, spec and documentation to the GridCharacter model

* Ensure numericality

* Move enums into GranblueEnums

We don't use these yet, but it gives us a structured place to pull them from.

* Refactor GridCharactersController

- Refactors controller
- Adds YARD documentation
- Adds Rspec tests

* Add debug hook and other small changes

* Update grid_characters_controller.rb

Removes logs

* Update .gitignore

* Update .aidigestignore

* Refactored PartiesController

- Split PartiesController into three concerns
- Implemented testing for PartiesController and two concerns
- Implemented fixes across other files to ensure PartiesController tests pass
- Added Favorites factory

* Implement SimpleCov

* Refactor Party model

- Refactors Party model
- Adds tests
- Adds documentation

* Update granblue_enums.rb

Remove included block
2025-02-12 02:42:30 -08:00

115 lines
2.2 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.3.7'
gem 'bootsnap'
gem 'rack-cors'
gem 'rails'
gem 'sprockets-rails'
# A Ruby Web Server Built For Concurrency
gem 'puma'
# Pg is the Ruby interface to the PostgreSQL RDBMS
gem 'pg'
# 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 PostgreSQLs full text search
gem 'pg_search'
# A Ruby client library for Redis
gem 'redis'
# Simple, efficient background processing for Ruby
gem 'sidekiq'
# 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'
# New Relic Ruby Agent
gem 'newrelic_rpm'
group :doc do
gem 'apipie-rails'
gem 'sdoc'
end
group :development, :test do
gem 'amazing_print'
gem 'dotenv-rails'
gem 'prosopite'
gem 'pry'
gem 'rspec_junit_formatter'
gem 'rspec-rails'
end
group :development do
gem 'listen'
gem 'pg_query'
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 'factory_bot_rails'
gem 'faker'
gem 'rspec'
gem 'shoulda-matchers'
gem 'simplecov', require: false
end