From b15c7655793ebc80de56078fb9dc1c4d446347be Mon Sep 17 00:00:00 2001 From: Noah Durbin <13364668+noahdurbin@users.noreply.github.com> Date: Wed, 21 Aug 2024 20:41:36 -0600 Subject: [PATCH] feat: gem configs --- Gemfile | 38 +++++++++++++++++++++----------------- Gemfile.lock | 18 ++++++++++++++++++ 2 files changed, 39 insertions(+), 17 deletions(-) diff --git a/Gemfile b/Gemfile index 60dc914..61bdbba 100644 --- a/Gemfile +++ b/Gemfile @@ -1,15 +1,15 @@ -source "https://rubygems.org" +source 'https://rubygems.org' -ruby "3.2.2" +ruby '3.2.2' # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" -gem "rails", "~> 7.1.3", ">= 7.1.3.4" +gem 'rails', '~> 7.1.3', '>= 7.1.3.4' # Use postgresql as the database for Active Record -gem "pg", "~> 1.1" +gem 'pg', '~> 1.1' # Use the Puma web server [https://github.com/puma/puma] -gem "puma", ">= 5.0" +gem 'puma', '>= 5.0' # Build JSON APIs with ease [https://github.com/rails/jbuilder] # gem "jbuilder" @@ -24,10 +24,10 @@ gem "puma", ">= 5.0" # gem "bcrypt", "~> 3.1.7" # Windows does not include zoneinfo files, so bundle the tzinfo-data gem -gem "tzinfo-data", platforms: %i[ windows jruby ] +gem 'tzinfo-data', platforms: %i[windows jruby] # Reduces boot times through caching; required in config/boot.rb -gem "bootsnap", require: false +gem 'bootsnap', require: false # Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] # gem "image_processing", "~> 1.2" @@ -35,21 +35,25 @@ gem "bootsnap", require: false # Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin Ajax possible # gem "rack-cors" +# Use Faraday for making HTTP requests +gem 'faraday' + +# Use JSONAPI::Serializer for creating JSON:API-compliant serializers +gem 'jsonapi-serializer', '~> 2.2' + group :development, :test do # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem - gem "debug", platforms: %i[ mri windows ] + gem 'capybara', '~> 3.40' + gem 'debug', platforms: %i[mri windows] + gem 'factory_bot_rails', '~> 6.4' + gem 'faker', '~> 3.4' + gem 'pry', '~> 0.14.2' + gem 'rspec-rails', '~> 6.1' + gem 'shoulda-matchers', '~> 6.4' + gem 'simplecov', '~> 0.22.0' end group :development do # Speed up commands on slow machines / big apps [https://github.com/rails/spring] # gem "spring" end - - -gem "rspec-rails", "~> 6.1" - -gem "simplecov", "~> 0.22.0" - -gem "capybara", "~> 3.40" - -gem "shoulda-matchers", "~> 6.4" diff --git a/Gemfile.lock b/Gemfile.lock index ff1158d..2f09821 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -91,6 +91,7 @@ GEM rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) + coderay (1.1.3) concurrent-ruby (1.3.4) connection_pool (2.4.1) crass (1.0.6) @@ -102,6 +103,13 @@ GEM docile (1.4.1) drb (2.2.1) erubi (1.13.0) + factory_bot (6.4.6) + activesupport (>= 5.0.0) + factory_bot_rails (6.4.3) + factory_bot (~> 6.4) + railties (>= 5.0.0) + faker (3.4.2) + i18n (>= 1.8.11, < 2) globalid (1.2.1) activesupport (>= 6.1) i18n (1.14.5) @@ -110,6 +118,8 @@ GEM irb (1.14.0) rdoc (>= 4.0.0) reline (>= 0.4.2) + jsonapi-serializer (2.2.0) + activesupport (>= 4.2) loofah (2.22.0) crass (~> 1.0.2) nokogiri (>= 1.12.0) @@ -120,6 +130,7 @@ GEM net-smtp marcel (1.0.4) matrix (0.4.2) + method_source (1.1.0) mini_mime (1.1.5) minitest (5.25.1) msgpack (1.7.2) @@ -147,6 +158,9 @@ GEM nokogiri (1.16.7-x86_64-linux) racc (~> 1.4) pg (1.5.7) + pry (0.14.2) + coderay (~> 1.1) + method_source (~> 1.0) psych (5.1.2) stringio public_suffix (6.0.1) @@ -246,7 +260,11 @@ DEPENDENCIES bootsnap capybara (~> 3.40) debug + factory_bot_rails (~> 6.4) + faker (~> 3.4) + jsonapi-serializer (~> 2.2) pg (~> 1.1) + pry (~> 0.14.2) puma (>= 5.0) rails (~> 7.1.3, >= 7.1.3.4) rspec-rails (~> 6.1)