From b18f526c7821ec194d490de4d0b3fa050f0a3768 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 11 Aug 2024 17:47:32 +0200 Subject: [PATCH] Add rubocop as dev dependency --- Gemfile | 87 +++++++++++++++------------------------------------- Gemfile.lock | 25 +++++++++++++++ 2 files changed, 49 insertions(+), 63 deletions(-) diff --git a/Gemfile b/Gemfile index 6bcb96a..bea2d7b 100644 --- a/Gemfile +++ b/Gemfile @@ -1,73 +1,34 @@ -source "https://rubygems.org" +source 'https://rubygems.org' -ruby "3.3.4" +ruby '3.3.4' +gem 'acts-as-taggable-on' +gem 'bootsnap', require: false +gem 'importmap-rails' +gem 'jbuilder' +gem 'money' +gem 'pg', '~> 1.1' +gem 'puma', '>= 5.0' +gem 'rails', '~> 7.1.3', '>= 7.1.3.2' +gem 'redis', '>= 4.0.1' +gem 'sprockets-rails' +gem 'stimulus-rails' +gem 'turbo-rails' +gem 'tzinfo-data', platforms: %i[windows jruby] -# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" -gem "rails", "~> 7.1.3", ">= 7.1.3.2" - -# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails] -gem "sprockets-rails" - -# Use postgresql as the database for Active Record -gem "pg", "~> 1.1" - -# Use the Puma web server [https://github.com/puma/puma] -gem "puma", ">= 5.0" - -# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails] -gem "importmap-rails" - -# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev] -gem "turbo-rails" - -# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev] -gem "stimulus-rails" - -# Build JSON APIs with ease [https://github.com/rails/jbuilder] -gem "jbuilder" - -# Use Redis adapter to run Action Cable in production -gem "redis", ">= 4.0.1" - -# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis] -# gem "kredis" - -# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] -# gem "bcrypt", "~> 3.1.7" - -# Windows does not include zoneinfo files, so bundle the tzinfo-data gem -gem "tzinfo-data", platforms: %i[ windows jruby ] - -# Reduces boot times through caching; required in config/boot.rb -gem "bootsnap", require: false - -# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] -# gem "image_processing", "~> 1.2" +gem 'jsonapi-rails' +gem 'rack-cors' +gem 'react-rails' +gem 'rubytree' 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 'rspec-rails', '~> 6.1.0' + gem 'debug', platforms: %i[mri windows] + gem 'factory_bot_rails' gem 'faker' gem 'pry' - gem "factory_bot_rails" + gem 'rspec-rails', '~> 6.1.0' end group :development do - # Use console on exceptions pages [https://github.com/rails/web-console] - gem "web-console" - - # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler] - # gem "rack-mini-profiler" - - # Speed up commands on slow machines / big apps [https://github.com/rails/spring] - # gem "spring" + gem 'rubocop' + gem 'web-console' end - -gem "money" -gem 'acts-as-taggable-on' - -gem "rubytree" -gem 'react-rails' -gem 'rack-cors' -gem 'jsonapi-rails' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 90dbe8c..0e23ca2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -77,6 +77,7 @@ GEM tzinfo (~> 2.0) acts-as-taggable-on (10.0.0) activerecord (>= 6.1, < 7.2) + ast (2.4.2) babel-source (5.8.35) babel-transpiler (0.7.0) babel-source (>= 4.0, < 6) @@ -133,6 +134,7 @@ GEM jsonapi-renderer (0.2.2) jsonapi-serializable (0.3.1) jsonapi-renderer (~> 0.2.0) + language_server-protocol (3.17.0.3) loofah (2.22.0) crass (~> 1.0.2) nokogiri (>= 1.12.0) @@ -171,6 +173,10 @@ GEM racc (~> 1.4) nokogiri (1.16.7-x86_64-linux) racc (~> 1.4) + parallel (1.26.2) + parser (3.3.4.2) + ast (~> 2.4.1) + racc pg (1.5.7) pry (0.14.2) coderay (~> 1.1) @@ -219,6 +225,7 @@ GEM rake (>= 12.2) thor (~> 1.0, >= 1.2.2) zeitwerk (~> 2.6) + rainbow (3.1.1) rake (13.2.1) rdoc (6.7.0) psych (>= 4.0.0) @@ -232,8 +239,10 @@ GEM redis-client (>= 0.22.0) redis-client (0.22.2) connection_pool + regexp_parser (2.9.2) reline (0.5.9) io-console (~> 0.5) + rexml (3.2.8) rspec-core (3.12.3) rspec-support (~> 3.12.0) rspec-expectations (3.12.4) @@ -251,6 +260,20 @@ GEM rspec-mocks (~> 3.12) rspec-support (~> 3.12) rspec-support (3.12.2) + rubocop (1.65.1) + json (~> 2.3) + language_server-protocol (>= 3.17.0) + parallel (~> 1.10) + parser (>= 3.3.0.2) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 2.4, < 3.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.31.1, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.32.0) + parser (>= 3.3.1.0) + ruby-progressbar (1.13.0) rubytree (2.0.3) json (~> 2.0, > 2.3.1) sprockets (4.2.1) @@ -272,6 +295,7 @@ GEM railties (>= 6.0.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) + unicode-display_width (2.5.0) web-console (4.2.1) actionview (>= 6.0.0) activemodel (>= 6.0.0) @@ -309,6 +333,7 @@ DEPENDENCIES react-rails redis (>= 4.0.1) rspec-rails (~> 6.1.0) + rubocop rubytree sprockets-rails stimulus-rails