diff --git a/backend/.standard_todo.yml b/backend/.standard_todo.yml index a91ce13b..c567cc1c 100644 --- a/backend/.standard_todo.yml +++ b/backend/.standard_todo.yml @@ -10,24 +10,44 @@ ignore: - Style/SafeNavigation - app/jobs/group_top_posts_job.rb: - Style/SafeNavigation -- app/models/search.rb: - - Lint/Void +- app/jobs/merge_trackables/checkin_trackables.rb: + - Performance/StringIdentifierArgument + - Lint/SymbolConversion +- app/jobs/merge_trackables/dispatcher.rb: + - Lint/SymbolConversion +- app/jobs/merge_trackables/user_trackable_association.rb: + - Lint/SymbolConversion +- app/models/ability.rb: + - Lint/SymbolConversion +- app/models/concerns/topicable.rb: + - Performance/StringIdentifierArgument +- app/models/profile.rb: + - Performance/StringIdentifierArgument +- app/models/registration.rb: + - Layout/MultilineMethodCallIndentation - app/services/charts_pattern.rb: - Lint/DuplicateMethods - - Layout/SpaceInsideHashLiteralBraces - - Style/QuotedSymbols + - Performance/StringIdentifierArgument +- app/services/checkin/updater.rb: + - Lint/SymbolConversion + - Style/RedundantParentheses +- app/services/trackable_creator.rb: + - Lint/SymbolConversion - lib/tasks/app.rake: - Lint/ConstantDefinitionInBlock - Style/GlobalStdStream - Lint/Loop - lib/tasks/hbi_completeness.rake: - Lint/ConstantDefinitionInBlock +- lib/tasks/oneoff.rake: + - Performance/StringIdentifierArgument + - Layout/MultilineMethodCallIndentation - lib/tasks/trackables.rake: - Lint/ConstantDefinitionInBlock - Lint/UselessAssignment - lib/tasks/usda.rake: - Lint/ConstantDefinitionInBlock +- lib/tasks/utils.rake: + - Performance/StringIdentifierArgument - spec/models/food_spec.rb: - Lint/ConstantDefinitionInBlock -- spec/spec_helper.rb: - - Style/StringLiterals diff --git a/backend/Gemfile b/backend/Gemfile index 236743ab..066a35ac 100644 --- a/backend/Gemfile +++ b/backend/Gemfile @@ -14,7 +14,7 @@ gem "active_model_serializers", "0.9.8" # Use postgresql and mongo as the database for Active Record gem "mongoid", "7.3.3" -gem "pg", "1.5.6" +gem "pg" # Use Puma as the app server gem "puma", "5.6.8" @@ -28,7 +28,7 @@ gem "omniauth", "1.8.1" gem "omniauth-facebook", "3.0.0" # Colored output to console -gem "colored", "~> 1.2" +gem "colored" # Background jobs gem "sidekiq", "~> 6.5" @@ -82,9 +82,9 @@ end group :development do gem "annotate" - gem "awesome_print", "~>1.6" - gem "better_errors", "~>2.1" - gem "brakeman", "6.1.2" + gem "awesome_print" + gem "better_errors" + gem "brakeman" gem "foreman", require: false gem "letter_opener" end @@ -105,4 +105,4 @@ end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby] -gem "bugsnag", "~> 6.22" +gem "bugsnag" diff --git a/backend/Gemfile.lock b/backend/Gemfile.lock index fb1b5e5d..7e28837d 100644 --- a/backend/Gemfile.lock +++ b/backend/Gemfile.lock @@ -63,7 +63,7 @@ GEM minitest (>= 5.1) tzinfo (~> 2.0) zeitwerk (~> 2.3) - addressable (2.8.4) + addressable (2.8.6) public_suffix (>= 2.0.2, < 6.0) andand (1.3.3) annotate (3.2.0) @@ -76,31 +76,32 @@ GEM erubi (>= 1.0.0) rack (>= 0.9.0) rouge (>= 1.0.0) - better_html (2.0.2) + better_html (2.1.1) actionview (>= 6.0) activesupport (>= 6.0) ast (~> 2.0) erubi (~> 1.4) parser (>= 2.4) smart_properties + bigdecimal (3.1.7) brakeman (6.1.2) racc - bson (4.12.1) + bson (4.15.0) bugsnag (6.26.0) concurrent-ruby (~> 1.0) builder (3.2.4) - bullet (7.1.4) + bullet (7.1.6) activesupport (>= 3.0.0) uniform_notifier (~> 1.11) byebug (11.1.3) cancancan (3.5.0) cancancan-mongoid (2.0.0) cancancan (>= 2.0, < 4) - capybara (3.39.2) + capybara (3.40.0) addressable matrix mini_mime (>= 0.1.3) - nokogiri (~> 1.8) + nokogiri (~> 1.11) rack (>= 1.6.0) rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) @@ -114,12 +115,13 @@ GEM countries (4.0.1) i18n_data (~> 0.13.0) sixarm_ruby_unaccent (~> 1.1) - crack (0.4.5) + crack (1.0.0) + bigdecimal rexml crass (1.0.6) - cuprite (0.14.3) + cuprite (0.15) capybara (~> 3.0) - ferrum (~> 0.13.0) + ferrum (~> 0.14.0) database_cleaner (2.0.2) database_cleaner-active_record (>= 2, < 3) database_cleaner-active_record (2.1.0) @@ -141,12 +143,12 @@ GEM devise_invitable (2.0.9) actionmailer (>= 5.0) devise (>= 4.6) - diff-lcs (1.5.0) + diff-lcs (1.5.1) docile (1.4.0) - dotenv (2.8.1) - dotenv-rails (2.8.1) - dotenv (= 2.8.1) - railties (>= 3.2) + dotenv (3.1.0) + dotenv-rails (3.1.0) + dotenv (= 3.1.0) + railties (>= 6.1) erb_lint (0.5.0) activesupport better_html (>= 2.0.1) @@ -155,7 +157,7 @@ GEM rubocop smart_properties erubi (1.12.0) - factory_bot (6.4.5) + factory_bot (6.4.6) activesupport (>= 5.0.0) factory_bot_rails (6.4.3) factory_bot (~> 6.4) @@ -179,12 +181,12 @@ GEM faraday-net_http_persistent (1.2.0) faraday-patron (1.0.0) faraday-rack (1.0.0) - ferrum (0.13) + ferrum (0.14) addressable (~> 2.5) concurrent-ruby (~> 1.1) webrick (~> 1.7) websocket-driver (>= 0.6, < 0.8) - ffaker (2.21.0) + ffaker (2.23.0) foreman (0.87.2) geocoder (1.8.2) globalid (1.2.1) @@ -193,10 +195,10 @@ GEM activemodel (>= 4.2, < 7.0) activerecord (>= 4.2, < 7.0) request_store (~> 1.0) - hashdiff (1.0.1) + hashdiff (1.1.0) hashie (3.5.7) httpclient (2.8.3) - i18n (1.14.1) + i18n (1.14.4) concurrent-ruby (~> 1.0) i18n_data (0.13.0) json (2.7.1) @@ -212,7 +214,7 @@ GEM language_server-protocol (3.17.0.3) launchy (2.5.2) addressable (~> 2.8) - letter_opener (1.8.1) + letter_opener (1.9.0) launchy (>= 2.2, < 3) lint_roller (1.1.0) loofah (2.22.0) @@ -228,14 +230,14 @@ GEM method_source (1.0.0) mini_mime (1.1.5) mini_portile2 (2.8.5) - minitest (5.22.2) - mongo (2.16.0) - bson (>= 4.8.2, < 5.0.0) + minitest (5.22.3) + mongo (2.19.3) + bson (>= 4.14.1, < 5.0.0) mongoid (7.3.3) activemodel (>= 5.1, < 6.2) mongo (>= 2.10.5, < 3.0.0) ruby2_keywords (~> 0.0.5) - mongoid-compatibility (0.5.1) + mongoid-compatibility (0.6.0) activesupport mongoid (>= 2.0) mongoid-rspec (4.1.0) @@ -262,7 +264,7 @@ GEM net-smtp (0.4.0.1) net-protocol nio4r (2.7.0) - nokogiri (1.16.2) + nokogiri (1.16.3) mini_portile2 (~> 2.8.2) racc (~> 1.4) oauth2 (1.4.7) @@ -281,7 +283,7 @@ GEM omniauth (~> 1.2) orm_adapter (0.5.0) parallel (1.24.0) - parser (3.2.2.4) + parser (3.3.0.5) ast (~> 2.4.1) racc pg (1.5.6) @@ -291,12 +293,12 @@ GEM pry-byebug (3.10.1) byebug (~> 11.0) pry (>= 0.13, < 0.15) - pry-doc (1.4.0) + pry-doc (1.5.0) pry (~> 0.11) yard (~> 0.9.11) pry-rails (0.3.9) pry (>= 0.10.4) - public_suffix (5.0.3) + public_suffix (5.0.4) puma (5.6.8) nio4r (~> 2.0) pusher (2.0.2) @@ -305,7 +307,7 @@ GEM pusher-signature (~> 0.1.8) pusher-signature (0.1.8) racc (1.7.3) - rack (2.2.8) + rack (2.2.9) rack-cors (2.0.1) rack (>= 2.0.0) rack-test (2.1.0) @@ -345,9 +347,9 @@ GEM rake (>= 12.2) thor (~> 1.0) rainbow (3.1.1) - rake (13.0.6) + rake (13.1.0) redis (4.8.1) - regexp_parser (2.8.3) + regexp_parser (2.9.0) request_store (1.5.0) rack (>= 1.4) require_all (3.0.0) @@ -355,44 +357,45 @@ GEM actionpack (>= 5.2) railties (>= 5.2) rexml (3.2.6) - rouge (4.1.2) - rspec-core (3.12.2) - rspec-support (~> 3.12.0) - rspec-expectations (3.12.3) + rouge (4.2.1) + rspec-core (3.13.0) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-mocks (3.12.6) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-rails (6.0.3) + rspec-support (~> 3.13.0) + rspec-rails (6.1.2) actionpack (>= 6.1) activesupport (>= 6.1) railties (>= 6.1) - rspec-core (~> 3.12) - rspec-expectations (~> 3.12) - rspec-mocks (~> 3.12) - rspec-support (~> 3.12) - rspec-support (3.12.1) - rubocop (1.52.1) + rspec-core (~> 3.13) + rspec-expectations (~> 3.13) + rspec-mocks (~> 3.13) + rspec-support (~> 3.13) + rspec-support (3.13.1) + rubocop (1.62.1) json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.2.3) + parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.0, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.30.0) - parser (>= 3.2.1.0) - rubocop-performance (1.18.0) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) + rubocop-ast (1.31.2) + parser (>= 3.3.0.4) + rubocop-performance (1.20.2) + rubocop (>= 1.48.1, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) seedbank (0.5.0) rake (>= 10.0) - shoulda-matchers (5.3.0) + shoulda-matchers (6.2.0) activesupport (>= 5.2.0) sidekiq (6.5.10) connection_pool (>= 2.2.5, < 3) @@ -413,36 +416,34 @@ GEM actionpack (>= 5.2) activesupport (>= 5.2) sprockets (>= 3.0.0) - standard (1.30.1) + standard (1.35.1) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.52.0) + rubocop (~> 1.62.0) standard-custom (~> 1.0.0) - standard-performance (~> 1.1.0) + standard-performance (~> 1.3) standard-custom (1.0.2) lint_roller (~> 1.0) rubocop (~> 1.50) - standard-performance (1.1.2) + standard-performance (1.3.1) lint_roller (~> 1.1) - rubocop-performance (~> 1.18.0) + rubocop-performance (~> 1.20.2) standardrb (1.0.1) standard symmetric-encryption (4.6.0) coercible (~> 1.0) - thor (1.3.0) + thor (1.3.1) thread_safe (0.3.6) timeout (0.4.1) tomorrowio_rb (0.0.3) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - tzinfo-data (1.2021.3) - tzinfo (>= 1.0.0) unicode-display_width (2.5.0) uniform_notifier (1.16.0) vcr (6.2.0) warden (1.2.9) rack (>= 2.0.9) - webmock (3.18.1) + webmock (3.23.0) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) @@ -461,16 +462,16 @@ PLATFORMS DEPENDENCIES active_model_serializers (= 0.9.8) annotate - awesome_print (~> 1.6) - better_errors (~> 2.1) - brakeman (= 6.1.2) - bugsnag (~> 6.22) + awesome_print + better_errors + brakeman + bugsnag bullet byebug cancancan (~> 3.5.0) cancancan-mongoid (= 2.0.0) capybara - colored (~> 1.2) + colored countries cuprite database_cleaner @@ -492,7 +493,7 @@ DEPENDENCIES nearest_time_zone omniauth (= 1.8.1) omniauth-facebook (= 3.0.0) - pg (= 1.5.6) + pg pry-byebug pry-doc pry-rails