diff --git a/.rubocop.yml b/.rubocop.yml index 1cdfbc713..d69304dec 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,13 +1,14 @@ -require: +plugins: - rubocop-performance - rubocop-rails - rubocop-rspec + - rubocop-factory_bot + +require: - ./rubocop/use_from_email.rb - ./rubocop/custom_cop_location.rb - Layout/LineLength: Max: 150 - Metrics/ClassLength: Max: 175 Exclude: @@ -101,7 +102,6 @@ RSpec/MessageSpies: Enabled: false RSpec/StubbedMock: Enabled: false -RSpec/FactoryBot/SyntaxMethods: Enabled: false Naming/VariableNumber: Enabled: false @@ -135,23 +135,19 @@ RSpec/IndexedLet: Enabled: false RSpec/NamedSubject: Enabled: false - # we should bring this down RSpec/MultipleExpectations: Max: 7 RSpec/MultipleMemoizedHelpers: Max: 14 - # custom rules UseFromEmail: Enabled: true Exclude: - 'app/models/user.rb' - 'app/models/contact.rb' - CustomCopLocation: Enabled: true - AllCops: NewCops: enable Exclude: @@ -166,3 +162,5 @@ AllCops: - 'tmp/**/*' - 'storage/**/*' - 'db/migrate/20230426130150_init_schema.rb' +FactoryBot/SyntaxMethods: + Enabled: false diff --git a/Gemfile b/Gemfile index 937aef4af..dfe1c7d04 100644 --- a/Gemfile +++ b/Gemfile @@ -3,8 +3,8 @@ source 'https://rubygems.org' ruby '3.3.3' ##-- base gems for rails --## -gem 'rack-cors', '2.0.0', require: 'rack/cors' -gem 'rails', '~> 7.0.8.4' +gem 'rack-cors', require: 'rack/cors' +gem 'rails', '~> 7.1.5.1' # Reduces boot times through caching; required in config/boot.rb gem 'bootsnap', require: false @@ -188,7 +188,7 @@ end group :development do gem 'annotate' - gem 'bullet' + gem 'bullet', '~> 7.1.0' gem 'letter_opener' gem 'scss_lint', require: false gem 'web-console', '>= 4.2.1' @@ -234,6 +234,7 @@ group :development, :test do gem 'rubocop-performance', require: false gem 'rubocop-rails', require: false gem 'rubocop-rspec', require: false + gem 'rubocop-factory_bot', require: false gem 'seed_dump' gem 'shoulda-matchers' gem 'simplecov', '0.17.1', require: false diff --git a/Gemfile.lock b/Gemfile.lock index 857319fc4..8e856e339 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -25,76 +25,90 @@ GIT GEM remote: https://rubygems.org/ specs: - actioncable (7.0.8.7) - actionpack (= 7.0.8.7) - activesupport (= 7.0.8.7) + actioncable (7.1.5.1) + actionpack (= 7.1.5.1) + activesupport (= 7.1.5.1) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (7.0.8.7) - actionpack (= 7.0.8.7) - activejob (= 7.0.8.7) - activerecord (= 7.0.8.7) - activestorage (= 7.0.8.7) - activesupport (= 7.0.8.7) + zeitwerk (~> 2.6) + actionmailbox (7.1.5.1) + actionpack (= 7.1.5.1) + activejob (= 7.1.5.1) + activerecord (= 7.1.5.1) + activestorage (= 7.1.5.1) + activesupport (= 7.1.5.1) mail (>= 2.7.1) net-imap net-pop net-smtp - actionmailer (7.0.8.7) - actionpack (= 7.0.8.7) - actionview (= 7.0.8.7) - activejob (= 7.0.8.7) - activesupport (= 7.0.8.7) + actionmailer (7.1.5.1) + actionpack (= 7.1.5.1) + actionview (= 7.1.5.1) + activejob (= 7.1.5.1) + activesupport (= 7.1.5.1) mail (~> 2.5, >= 2.5.4) net-imap net-pop net-smtp - rails-dom-testing (~> 2.0) - actionpack (7.0.8.7) - actionview (= 7.0.8.7) - activesupport (= 7.0.8.7) - rack (~> 2.0, >= 2.2.4) + rails-dom-testing (~> 2.2) + actionpack (7.1.5.1) + actionview (= 7.1.5.1) + activesupport (= 7.1.5.1) + nokogiri (>= 1.8.5) + racc + rack (>= 2.2.4) + rack-session (>= 1.0.1) rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (7.0.8.7) - actionpack (= 7.0.8.7) - activerecord (= 7.0.8.7) - activestorage (= 7.0.8.7) - activesupport (= 7.0.8.7) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + actiontext (7.1.5.1) + actionpack (= 7.1.5.1) + activerecord (= 7.1.5.1) + activestorage (= 7.1.5.1) + activesupport (= 7.1.5.1) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.0.8.7) - activesupport (= 7.0.8.7) + actionview (7.1.5.1) + activesupport (= 7.1.5.1) builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - active_record_query_trace (1.8) - activejob (7.0.8.7) - activesupport (= 7.0.8.7) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + active_record_query_trace (1.8.3) + activerecord (>= 6.0.0) + activejob (7.1.5.1) + activesupport (= 7.1.5.1) globalid (>= 0.3.6) - activemodel (7.0.8.7) - activesupport (= 7.0.8.7) - activerecord (7.0.8.7) - activemodel (= 7.0.8.7) - activesupport (= 7.0.8.7) - activerecord-import (1.4.1) + activemodel (7.1.5.1) + activesupport (= 7.1.5.1) + activerecord (7.1.5.1) + activemodel (= 7.1.5.1) + activesupport (= 7.1.5.1) + timeout (>= 0.4.0) + activerecord-import (2.1.0) activerecord (>= 4.2) - activestorage (7.0.8.7) - actionpack (= 7.0.8.7) - activejob (= 7.0.8.7) - activerecord (= 7.0.8.7) - activesupport (= 7.0.8.7) + activestorage (7.1.5.1) + actionpack (= 7.1.5.1) + activejob (= 7.1.5.1) + activerecord (= 7.1.5.1) + activesupport (= 7.1.5.1) marcel (~> 1.0) - mini_mime (>= 1.1.0) - activesupport (7.0.8.7) + activesupport (7.1.5.1) + base64 + benchmark (>= 0.3) + bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb i18n (>= 1.6, < 2) + logger (>= 1.4.2) minitest (>= 5.1) + mutex_m + securerandom (>= 0.3) tzinfo (~> 2.0) - acts-as-taggable-on (9.0.1) - activerecord (>= 6.0, < 7.1) + acts-as-taggable-on (12.0.0) + activerecord (>= 7.1, < 8.1) + zeitwerk (>= 2.4, < 3.0) addressable (2.8.7) public_suffix (>= 2.0.2, < 7.0) administrate (0.20.1) @@ -105,90 +119,102 @@ GEM kaminari (~> 1.2.2) sassc-rails (~> 2.1) selectize-rails (~> 0.6) - administrate-field-active_storage (1.0.3) + administrate-field-active_storage (1.0.5) administrate (>= 0.2.2) rails (>= 7.0) - administrate-field-belongs_to_search (0.9.0) + administrate-field-belongs_to_search (0.10.0) administrate (>= 0.3, < 1.0) jbuilder (~> 2) - rails (>= 4.2, < 7.2) + rails (>= 4.2, < 8.0) selectize-rails (~> 0.6) annotate (3.2.0) activerecord (>= 3.2, < 8.0) rake (>= 10.4, < 14.0) ast (2.4.2) attr_extras (7.1.0) - audited (5.4.1) - activerecord (>= 5.0, < 7.7) - activesupport (>= 5.0, < 7.7) - aws-eventstream (1.2.0) - aws-partitions (1.760.0) - aws-sdk-core (3.171.1) - aws-eventstream (~> 1, >= 1.0.2) - aws-partitions (~> 1, >= 1.651.0) - aws-sigv4 (~> 1.5) + audited (5.8.0) + activerecord (>= 5.2, < 8.2) + activesupport (>= 5.2, < 8.2) + aws-eventstream (1.3.2) + aws-partitions (1.1062.0) + aws-sdk-core (3.220.1) + aws-eventstream (~> 1, >= 1.3.0) + aws-partitions (~> 1, >= 1.992.0) + aws-sigv4 (~> 1.9) + base64 jmespath (~> 1, >= 1.6.1) - aws-sdk-kms (1.64.0) - aws-sdk-core (~> 3, >= 3.165.0) - aws-sigv4 (~> 1.1) - aws-sdk-s3 (1.122.0) - aws-sdk-core (~> 3, >= 3.165.0) + aws-sdk-kms (1.99.0) + aws-sdk-core (~> 3, >= 3.216.0) + aws-sigv4 (~> 1.5) + aws-sdk-s3 (1.182.0) + aws-sdk-core (~> 3, >= 3.216.0) aws-sdk-kms (~> 1) - aws-sigv4 (~> 1.4) - aws-sigv4 (1.5.2) + aws-sigv4 (~> 1.5) + aws-sigv4 (1.11.0) aws-eventstream (~> 1, >= 1.0.2) barnes (0.0.9) multi_json (~> 1) statsd-ruby (~> 1.1) base64 (0.2.0) bcrypt (3.1.20) - bigdecimal (3.1.8) + benchmark (0.4.0) + bigdecimal (3.1.9) bindex (0.8.1) - bootsnap (1.16.0) + bootsnap (1.18.4) msgpack (~> 1.2) - brakeman (5.4.1) - browser (5.3.1) + brakeman (7.0.0) + racc + browser (6.2.0) builder (3.3.0) - bullet (7.0.7) + bullet (7.1.6) activesupport (>= 3.0.0) uniform_notifier (~> 1.11) bundle-audit (0.1.0) bundler-audit - bundler-audit (0.9.1) + bundler-audit (0.9.2) bundler (>= 1.2.0, < 3) thor (~> 1.0) byebug (11.1.3) + childprocess (5.1.0) + logger (~> 1.5) climate_control (1.2.0) coderay (1.1.3) - commonmarker (0.23.10) - concurrent-ruby (1.3.4) - connection_pool (2.4.1) + commonmarker (2.1.0) + rb_sys (~> 0.9) + commonmarker (2.1.0-arm64-darwin) + commonmarker (2.1.0-x86_64-darwin) + commonmarker (2.1.0-x86_64-linux) + concurrent-ruby (1.3.5) + connection_pool (2.5.0) crack (1.0.0) bigdecimal rexml crass (1.0.6) - csv (3.3.0) + cronex (0.15.0) + tzinfo + unicode (>= 0.4.4.5) + csv (3.3.2) csv-safe (3.3.1) csv (~> 3.0) - database_cleaner (2.0.2) + database_cleaner (2.1.0) database_cleaner-active_record (>= 2, < 3) - database_cleaner-active_record (2.1.0) + database_cleaner-active_record (2.2.0) activerecord (>= 5.a) database_cleaner-core (~> 2.0.0) database_cleaner-core (2.0.1) datadog-ci (0.8.3) msgpack date (3.4.1) - ddtrace (1.23.2) + ddtrace (1.23.3) datadog-ci (~> 0.8.1) debase-ruby_core_source (= 3.3.1) libdatadog (~> 7.0.0.1.0) libddwaf (~> 1.14.0.0.0) msgpack debase-ruby_core_source (3.3.1) - debug (1.8.0) - irb (>= 1.5.0) - reline (>= 0.3.1) + debug (1.10.0) + irb (~> 1.10) + reline (>= 0.3.8) declarative (0.0.20) devise (4.9.4) bcrypt (~> 3.0) @@ -196,89 +222,96 @@ GEM railties (>= 4.1.0) responders warden (~> 1.2.3) - devise_token_auth (1.2.3) + devise_token_auth (1.2.5) bcrypt (~> 3.0) devise (> 3.5.2, < 5) - rails (>= 4.2.0, < 7.2) - diff-lcs (1.5.1) - digest-crc (0.6.5) + rails (>= 4.2.0, < 8.1) + diff-lcs (1.6.0) + digest-crc (0.7.0) rake (>= 12.0.0, < 14.0.0) - docile (1.4.0) - domain_name (0.5.20190701) - unf (>= 0.0.5, < 1.0.0) - dotenv (3.1.2) - dotenv-rails (3.1.2) - dotenv (= 3.1.2) + docile (1.4.1) + domain_name (0.6.20240107) + dotenv (3.1.7) + dotenv-rails (3.1.7) + dotenv (= 3.1.7) railties (>= 6.1) - down (5.4.0) + down (5.4.2) addressable (~> 2.8) - dry-cli (1.1.0) - ecma-re-validator (0.4.0) - regexp_parser (~> 2.2) - elastic-apm (4.6.2) + drb (2.2.1) + dry-cli (1.2.0) + elastic-apm (4.7.3) concurrent-ruby (~> 1.0) http (>= 3.0) ruby2_keywords - email_reply_trimmer (0.1.13) - erubi (1.13.0) + email_reply_trimmer (0.2.0) + erubi (1.13.1) et-orbi (1.2.11) tzinfo event_stream_parser (1.0.0) - execjs (2.8.1) + execjs (2.10.0) facebook-messenger (2.0.1) httparty (~> 0.13, >= 0.13.7) rack (>= 1.4.5) - factory_bot (6.4.5) - activesupport (>= 5.0.0) - factory_bot_rails (6.4.3) - factory_bot (~> 6.4) + factory_bot (6.5.1) + activesupport (>= 6.1.0) + factory_bot_rails (6.4.4) + factory_bot (~> 6.5) railties (>= 5.0.0) - faker (3.2.0) + faker (3.5.1) i18n (>= 1.8.11, < 2) - faraday (2.9.0) - faraday-net_http (>= 2.0, < 3.2) + faraday (2.12.2) + faraday-net_http (>= 2.0, < 3.5) + json + logger faraday-follow_redirects (0.3.0) faraday (>= 1, < 3) faraday-mashify (0.1.1) faraday (~> 2.0) hashie - faraday-multipart (1.0.4) - multipart-post (~> 2) - faraday-net_http (3.1.0) - net-http - faraday-net_http_persistent (2.1.0) + faraday-multipart (1.1.0) + multipart-post (~> 2.0) + faraday-net_http (3.4.0) + net-http (>= 0.5.0) + faraday-net_http_persistent (2.3.0) faraday (~> 2.5) - net-http-persistent (~> 4.0) + net-http-persistent (>= 4.0.4, < 5) faraday-retry (2.2.1) faraday (~> 2.0) - fcm (1.0.8) + fcm (2.0.1) faraday (>= 1.0.0, < 3.0) googleauth (~> 1) - ffi (1.16.3) - ffi-compiler (1.0.1) - ffi (>= 1.0.0) + ffi (1.17.1) + ffi (1.17.1-arm64-darwin) + ffi (1.17.1-x86_64-darwin) + ffi (1.17.1-x86_64-linux-gnu) + ffi-compiler (1.3.2) + ffi (>= 1.15.5) rake flag_shih_tzu (0.3.23) - foreman (0.87.2) + foreman (0.88.1) fugit (1.11.1) et-orbi (~> 1, >= 1.2.11) raabro (~> 1.4) - gapic-common (0.20.0) + gapic-common (0.25.0) faraday (>= 1.9, < 3.a) faraday-retry (>= 1.0, < 3.a) - google-protobuf (~> 3.14) - googleapis-common-protos (>= 1.3.12, < 2.a) - googleapis-common-protos-types (>= 1.3.1, < 2.a) - googleauth (~> 1.0) - grpc (~> 1.36) - geocoder (1.8.1) + google-cloud-env (~> 2.2) + google-logging-utils (~> 0.1) + google-protobuf (>= 3.25, < 5.a) + googleapis-common-protos (~> 1.6) + googleapis-common-protos-types (~> 1.15) + googleauth (~> 1.12) + grpc (~> 1.66) + geocoder (1.8.5) + base64 (>= 0.1.0) + csv (>= 3.0.0) gli (2.22.2) ostruct globalid (1.2.1) activesupport (>= 6.1) gmail_xoauth (0.4.3) oauth (>= 0.3.6) - google-apis-core (0.15.1) + google-apis-core (0.16.0) addressable (~> 2.5, >= 2.5.1) googleauth (~> 1.9) httpclient (>= 2.8.3, < 3.a) @@ -288,96 +321,121 @@ GEM retriable (>= 2.0, < 4.a) google-apis-iamcredentials_v1 (0.22.0) google-apis-core (>= 0.15.0, < 2.a) - google-apis-storage_v1 (0.47.0) + google-apis-storage_v1 (0.50.0) google-apis-core (>= 0.15.0, < 2.a) google-cloud-core (1.7.1) google-cloud-env (>= 1.0, < 3.a) google-cloud-errors (~> 1.0) - google-cloud-dialogflow-v2 (0.31.0) - gapic-common (>= 0.20.0, < 2.a) + google-cloud-dialogflow-v2 (1.8.0) + gapic-common (>= 0.25.0, < 2.a) google-cloud-errors (~> 1.0) - google-cloud-location (>= 0.4, < 2.a) + google-cloud-location (>= 0.7, < 2.a) google-cloud-env (2.2.1) faraday (>= 1.0, < 3.a) - google-cloud-errors (1.3.1) - google-cloud-location (0.6.0) - gapic-common (>= 0.20.0, < 2.a) + google-cloud-errors (1.5.0) + google-cloud-location (0.10.0) + gapic-common (>= 0.25.0, < 2.a) google-cloud-errors (~> 1.0) - google-cloud-storage (1.52.0) + google-cloud-storage (1.55.0) addressable (~> 2.8) digest-crc (~> 0.4) google-apis-core (~> 0.13) google-apis-iamcredentials_v1 (~> 0.18) - google-apis-storage_v1 (~> 0.38) + google-apis-storage_v1 (>= 0.42) google-cloud-core (~> 1.6) googleauth (~> 1.9) mini_mime (~> 1.0) - google-cloud-translate-v3 (0.10.0) - gapic-common (>= 0.20.0, < 2.a) + google-cloud-translate-v3 (1.4.0) + gapic-common (>= 0.25.0, < 2.a) google-cloud-errors (~> 1.0) - google-protobuf (3.25.5) - google-protobuf (3.25.5-arm64-darwin) - google-protobuf (3.25.5-x86_64-darwin) - google-protobuf (3.25.5-x86_64-linux) + google-cloud-location (>= 0.7, < 2.a) + google-iam-v1 (>= 0.7, < 2.a) + google-iam-v1 (1.3.0) + gapic-common (>= 0.25.0, < 2.a) + google-cloud-errors (~> 1.0) + grpc-google-iam-v1 (~> 1.1) + google-logging-utils (0.1.0) + google-protobuf (4.30.0) + bigdecimal + rake (>= 13) + google-protobuf (4.30.0-arm64-darwin) + bigdecimal + rake (>= 13) + google-protobuf (4.30.0-x86_64-darwin) + bigdecimal + rake (>= 13) + google-protobuf (4.30.0-x86_64-linux) + bigdecimal + rake (>= 13) googleapis-common-protos (1.6.0) google-protobuf (>= 3.18, < 5.a) googleapis-common-protos-types (~> 1.7) grpc (~> 1.41) - googleapis-common-protos-types (1.14.0) - google-protobuf (~> 3.18) - googleauth (1.11.2) + googleapis-common-protos-types (1.18.0) + google-protobuf (>= 3.18, < 5.a) + googleauth (1.13.1) faraday (>= 1.0, < 3.a) - google-cloud-env (~> 2.1) + google-cloud-env (~> 2.2) + google-logging-utils (~> 0.1) jwt (>= 1.4, < 3.0) multi_json (~> 1.11) os (>= 0.9, < 2.0) signet (>= 0.16, < 2.a) - groupdate (6.2.1) - activesupport (>= 5.2) - grpc (1.62.0) - google-protobuf (~> 3.25) + groupdate (6.5.1) + activesupport (>= 7) + grpc (1.70.1) + google-protobuf (>= 3.25, < 5.0) googleapis-common-protos-types (~> 1.0) - grpc (1.62.0-arm64-darwin) - google-protobuf (~> 3.25) + grpc (1.70.1-arm64-darwin) + google-protobuf (>= 3.25, < 5.0) googleapis-common-protos-types (~> 1.0) - grpc (1.62.0-x86_64-darwin) - google-protobuf (~> 3.25) + grpc (1.70.1-x86_64-darwin) + google-protobuf (>= 3.25, < 5.0) googleapis-common-protos-types (~> 1.0) - grpc (1.62.0-x86_64-linux) - google-protobuf (~> 3.25) + grpc (1.70.1-x86_64-linux) + google-protobuf (>= 3.25, < 5.0) googleapis-common-protos-types (~> 1.0) + grpc-google-iam-v1 (1.9.0) + google-protobuf (>= 3.18, < 5.a) + googleapis-common-protos (~> 1.4) + grpc (~> 1.41) haikunator (1.1.1) - hairtrigger (1.0.0) - activerecord (>= 6.0, < 8) + hairtrigger (1.3.0) + activerecord (>= 6.0, < 9) ruby2ruby (~> 2.4) ruby_parser (~> 3.10) hana (1.3.7) - hashdiff (1.1.0) + hashdiff (1.1.2) hashie (5.0.0) html2text (0.4.0) nokogiri (>= 1.0, < 2.0) - http (5.1.1) + http (5.2.0) addressable (~> 2.8) + base64 (~> 0.1) http-cookie (~> 1.0) http-form_data (~> 2.2) - llhttp-ffi (~> 0.4.0) + llhttp-ffi (~> 0.5.0) http-accept (1.7.0) - http-cookie (1.0.5) + http-cookie (1.0.8) domain_name (~> 0.5) http-form_data (2.3.0) - httparty (0.21.0) + httparty (0.22.0) + csv mini_mime (>= 1.0.0) multi_xml (>= 0.5.2) - httpclient (2.8.3) - i18n (1.14.6) + httpclient (2.9.0) + mutex_m + i18n (1.14.7) concurrent-ruby (~> 1.0) - image_processing (1.12.2) - mini_magick (>= 4.9.5, < 5) + image_processing (1.14.0) + mini_magick (>= 4.9.5, < 6) ruby-vips (>= 2.0.17, < 3) - io-console (0.6.0) - irb (1.7.2) - reline (>= 0.3.6) - jbuilder (2.11.5) + io-console (0.8.0) + irb (1.15.1) + pp (>= 0.6.0) + rdoc (>= 4.0.0) + reline (>= 0.4.2) + jbuilder (2.13.0) actionview (>= 5.0.0) activesupport (>= 5.0.0) jmespath (1.6.2) @@ -385,22 +443,22 @@ GEM rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) - json (2.6.3) - json_refs (0.1.8) + json (2.10.1) + json_refs (0.1.9) hana - json_schemer (0.2.24) - ecma-re-validator (~> 0.3) + json_schemer (2.4.0) + bigdecimal hana (~> 1.3) regexp_parser (~> 2.0) - uri_template (~> 0.7) - judoscale-rails (1.8.2) - judoscale-ruby (= 1.8.2) + simpleidn (~> 0.2) + judoscale-rails (1.10.0) + judoscale-ruby (= 1.10.0) railties - judoscale-ruby (1.8.2) - judoscale-sidekiq (1.8.2) - judoscale-ruby (= 1.8.2) + judoscale-ruby (1.10.0) + judoscale-sidekiq (1.10.0) + judoscale-ruby (= 1.10.0) sidekiq (>= 5.0) - jwt (2.8.1) + jwt (2.10.1) base64 kaminari (1.2.2) activesupport (>= 4.1.0) @@ -414,16 +472,20 @@ GEM activerecord kaminari-core (= 1.2.2) kaminari-core (1.2.2) - koala (3.4.0) + koala (3.6.0) addressable + base64 faraday faraday-multipart json (>= 1.8) rexml - launchy (2.5.2) + language_server-protocol (3.17.0.4) + launchy (3.1.1) addressable (~> 2.8) - letter_opener (1.8.1) - launchy (>= 2.2, < 3) + childprocess (~> 5.0) + logger (~> 1.6) + letter_opener (1.10.0) + launchy (>= 2.2, < 4) libdatadog (7.0.0.1.0) libdatadog (7.0.0.1.0-x86_64-linux) libddwaf (1.14.0.0.0) @@ -434,21 +496,24 @@ GEM ffi (~> 1.0) libddwaf (1.14.0.0.0-x86_64-linux) ffi (~> 1.0) - line-bot-api (1.28.0) - liquid (5.4.0) - listen (3.8.0) + line-bot-api (1.29.1) + lint_roller (1.1.0) + liquid (5.8.1) + bigdecimal + strscan (>= 3.1.1) + listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - llhttp-ffi (0.4.0) + llhttp-ffi (0.5.0) ffi-compiler (~> 1.0) rake (~> 13.0) - logger (1.6.0) + logger (1.6.6) lograge (0.14.0) actionpack (>= 4) activesupport (>= 4) railties (>= 4) request_store (~> 1.0) - loofah (2.23.1) + loofah (2.24.0) crass (~> 1.0.2) nokogiri (>= 1.12.0) mail (2.8.1) @@ -458,35 +523,38 @@ GEM net-smtp marcel (1.0.4) maxminddb (0.1.22) - meta_request (0.8.3) + meta_request (0.8.5) rack-contrib (>= 1.1, < 3) - railties (>= 3.0.0, < 8) + railties (>= 3.0.0, < 9) method_source (1.1.0) - mime-types (3.4.1) + mime-types (3.6.0) + logger mime-types-data (~> 3.2015) - mime-types-data (3.2023.0218.1) - mini_magick (4.12.0) + mime-types-data (3.2025.0304) + mini_magick (5.2.0) + benchmark + logger mini_mime (1.1.5) mini_portile2 (2.8.8) minitest (5.25.4) - mock_redis (0.36.0) - ruby2_keywords - msgpack (1.7.0) + mock_redis (0.49.0) + redis (~> 5) + msgpack (1.8.0) multi_json (1.15.0) - multi_xml (0.6.0) - multipart-post (2.3.0) + multi_xml (0.7.1) + bigdecimal (~> 3.1) + multipart-post (2.4.1) mutex_m (0.3.0) - neighbor (0.2.3) - activerecord (>= 5.2) - net-http (0.4.1) + neighbor (0.5.2) + activerecord (>= 7) + net-http (0.6.0) uri - net-http-persistent (4.0.2) + net-http-persistent (4.0.5) connection_pool (~> 2.2) - net-imap (0.4.19) + net-imap (0.5.6) date net-protocol net-pop (0.1.2) - net-protocol net-protocol (0.2.2) timeout net-smtp (0.3.4) @@ -495,9 +563,8 @@ GEM newrelic-sidekiq-metrics (1.6.2) newrelic_rpm (>= 8.0.0) sidekiq - newrelic_rpm (9.6.0) - base64 - nio4r (2.7.3) + newrelic_rpm (9.17.0) + nio4r (2.7.4) nokogiri (1.18.3) mini_portile2 (~> 2.8.2) racc (~> 1.4) @@ -520,12 +587,12 @@ GEM rack (>= 1.2, < 4) snaky_hash (~> 2.0) version_gem (~> 1.1) - omniauth (2.1.2) + omniauth (2.1.3) hashie (>= 3.4.6) rack (>= 2.2.3) rack-protection - omniauth-google-oauth2 (1.1.3) - jwt (>= 2.0) + omniauth-google-oauth2 (1.2.1) + jwt (>= 2.9.2) oauth2 (~> 2.0) omniauth (~> 2.0) omniauth-oauth2 (~> 1.8) @@ -535,96 +602,115 @@ GEM omniauth-rails_csrf_protection (1.0.2) actionpack (>= 4.2) omniauth (~> 2.0) - openssl (3.2.0) + openssl (3.3.0) orm_adapter (0.5.0) os (1.1.4) ostruct (0.6.1) - parallel (1.23.0) - parser (3.2.2.1) + parallel (1.26.3) + parser (3.3.7.1) ast (~> 2.4.1) - pg (1.5.3) - pg_search (2.3.6) - activerecord (>= 5.2) - activesupport (>= 5.2) - pgvector (0.1.1) + racc + pg (1.5.9) + pg_search (2.3.7) + activerecord (>= 6.1) + activesupport (>= 6.1) + pgvector (0.3.2) + pp (0.6.2) + prettyprint + prettyprint (0.2.0) procore-sift (1.0.0) activerecord (>= 6.1) - pry (0.14.2) + pry (0.15.2) coderay (~> 1.1) method_source (~> 1.0) - pry-rails (0.3.9) - pry (>= 0.10.4) - public_suffix (6.0.0) - puma (6.4.3) + pry-rails (0.3.11) + pry (>= 0.13.0) + psych (5.2.3) + date + stringio + public_suffix (6.0.1) + puma (6.6.0) nio4r (~> 2.0) - pundit (2.3.0) + pundit (2.5.0) activesupport (>= 3.0.0) raabro (1.4.0) racc (1.8.1) - rack (2.2.12) + rack (3.1.11) rack-attack (6.7.0) rack (>= 1.0, < 4) rack-contrib (2.5.0) rack (< 4) - rack-cors (2.0.0) + rack-cors (2.0.2) rack (>= 2.0.0) - rack-mini-profiler (3.2.0) + rack-mini-profiler (3.3.1) rack (>= 1.2.0) - rack-protection (3.2.0) + rack-protection (4.1.1) base64 (>= 0.1.0) - rack (~> 2.2, >= 2.2.4) + logger (>= 1.6.0) + rack (>= 3.0.0, < 4) rack-proxy (0.7.7) rack - rack-test (2.1.0) + rack-session (2.1.0) + base64 (>= 0.1.0) + rack (>= 3.0.0) + rack-test (2.2.0) rack (>= 1.3) - rack-timeout (0.6.3) - rails (7.0.8.7) - actioncable (= 7.0.8.7) - actionmailbox (= 7.0.8.7) - actionmailer (= 7.0.8.7) - actionpack (= 7.0.8.7) - actiontext (= 7.0.8.7) - actionview (= 7.0.8.7) - activejob (= 7.0.8.7) - activemodel (= 7.0.8.7) - activerecord (= 7.0.8.7) - activestorage (= 7.0.8.7) - activesupport (= 7.0.8.7) + rack-timeout (0.7.0) + rackup (2.2.1) + rack (>= 3) + rails (7.1.5.1) + actioncable (= 7.1.5.1) + actionmailbox (= 7.1.5.1) + actionmailer (= 7.1.5.1) + actionpack (= 7.1.5.1) + actiontext (= 7.1.5.1) + actionview (= 7.1.5.1) + activejob (= 7.1.5.1) + activemodel (= 7.1.5.1) + activerecord (= 7.1.5.1) + activestorage (= 7.1.5.1) + activesupport (= 7.1.5.1) bundler (>= 1.15.0) - railties (= 7.0.8.7) + railties (= 7.1.5.1) rails-dom-testing (2.2.0) activesupport (>= 5.0.0) minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.6.1) + rails-html-sanitizer (1.6.2) loofah (~> 2.21) nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) - railties (7.0.8.7) - actionpack (= 7.0.8.7) - activesupport (= 7.0.8.7) - method_source + railties (7.1.5.1) + actionpack (= 7.1.5.1) + activesupport (= 7.1.5.1) + irb + rackup (>= 1.0.0) rake (>= 12.2) - thor (~> 1.0) - zeitwerk (~> 2.5) + thor (~> 1.0, >= 1.2.2) + zeitwerk (~> 2.6) rainbow (3.1.1) rake (13.2.1) + rake-compiler-dock (1.9.1) rb-fsevent (0.11.2) - rb-inotify (0.10.1) + rb-inotify (0.11.1) ffi (~> 1.0) - redis (5.0.6) - redis-client (>= 0.9.0) - redis-client (0.22.2) + rb_sys (0.9.111) + rake-compiler-dock (= 1.9.1) + rdoc (6.12.0) + psych (>= 4.0.0) + redis (5.4.0) + redis-client (>= 0.22.0) + redis-client (0.24.0) connection_pool - redis-namespace (1.10.0) + redis-namespace (1.11.0) redis (>= 4) - regexp_parser (2.8.0) - reline (0.3.6) + regexp_parser (2.10.0) + reline (0.6.0) io-console (~> 0.5) representable (3.2.0) declarative (< 0.1.0) trailblazer-option (>= 0.1.1, < 0.2.0) uber (< 0.2.0) - request_store (1.5.1) + request_store (1.7.0) rack (>= 1.4) responders (3.1.1) actionpack (>= 5.2) @@ -635,18 +721,18 @@ GEM mime-types (>= 1.16, < 4.0) netrc (~> 0.8) retriable (3.1.2) - reverse_markdown (2.1.1) + reverse_markdown (3.0.0) nokogiri - rexml (3.3.9) - rspec-core (3.13.0) + rexml (3.4.1) + rspec-core (3.13.3) rspec-support (~> 3.13.0) - rspec-expectations (3.13.2) + rspec-expectations (3.13.3) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-mocks (3.13.1) + rspec-mocks (3.13.2) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-rails (7.0.1) + rspec-rails (7.1.1) actionpack (>= 7.0) activesupport (>= 7.0) railties (>= 7.0) @@ -654,45 +740,52 @@ GEM rspec-expectations (~> 3.13) rspec-mocks (~> 3.13) rspec-support (~> 3.13) - rspec-support (3.13.1) + rspec-support (3.13.2) rspec_junit_formatter (0.6.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.50.2) + rubocop (1.73.2) json (~> 2.3) + language_server-protocol (~> 3.17.0.2) + lint_roller (~> 1.1.0) parallel (~> 1.10) - parser (>= 3.2.0.0) + 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) + regexp_parser (>= 2.9.3, < 3.0) + rubocop-ast (>= 1.38.0, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.28.1) - parser (>= 3.2.1.0) - rubocop-capybara (2.18.0) - rubocop (~> 1.41) - rubocop-performance (1.17.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) - rubocop-rails (2.19.1) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.38.1) + parser (>= 3.3.1.0) + rubocop-factory_bot (2.27.0) + lint_roller (~> 1.1) + rubocop (~> 1.72, >= 1.72.1) + rubocop-performance (1.24.0) + lint_roller (~> 1.1) + rubocop (>= 1.72.1, < 2.0) + rubocop-ast (>= 1.38.0, < 2.0) + rubocop-rails (2.30.3) activesupport (>= 4.2.0) + lint_roller (~> 1.1) rack (>= 1.1) - rubocop (>= 1.33.0, < 2.0) - rubocop-rspec (2.21.0) - rubocop (~> 1.33) - rubocop-capybara (~> 2.17) - ruby-openai (7.3.1) + rubocop (>= 1.72.1, < 2.0) + rubocop-ast (>= 1.38.0, < 2.0) + rubocop-rspec (3.5.0) + lint_roller (~> 1.1) + rubocop (~> 1.72, >= 1.72.1) + ruby-openai (7.4.0) event_stream_parser (>= 0.3.0, < 2.0.0) faraday (>= 1) faraday-multipart (>= 1) ruby-progressbar (1.13.0) - ruby-vips (2.1.4) + ruby-vips (2.2.3) ffi (~> 1.12) + logger ruby2_keywords (0.0.5) - ruby2ruby (2.5.0) + ruby2ruby (2.5.1) ruby_parser (~> 3.1) sexp_processor (~> 4.6) - ruby_parser (3.20.0) + ruby_parser (3.21.1) + racc (~> 1.5) sexp_processor (~> 4.16) sass (3.7.4) sass-listen (~> 4.0.0) @@ -707,37 +800,39 @@ GEM sprockets (> 3.0) sprockets-rails tilt - scout_apm (5.3.3) + scout_apm (5.6.1) parser scss_lint (0.60.0) sass (~> 3.5, >= 3.5.5) + securerandom (0.4.1) seed_dump (3.3.1) activerecord (>= 4) activesupport (>= 4) selectize-rails (0.12.6) - sentry-rails (5.19.0) + sentry-rails (5.22.4) railties (>= 5.0) - sentry-ruby (~> 5.19.0) - sentry-ruby (5.19.0) + sentry-ruby (~> 5.22.4) + sentry-ruby (5.22.4) bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) - sentry-sidekiq (5.19.0) - sentry-ruby (~> 5.19.0) + sentry-sidekiq (5.22.4) + sentry-ruby (~> 5.22.4) sidekiq (>= 3.0) - sexp_processor (4.17.0) - shoulda-matchers (5.3.0) + sexp_processor (4.17.3) + shoulda-matchers (6.4.0) activesupport (>= 5.2.0) - sidekiq (7.3.1) - concurrent-ruby (< 2) - connection_pool (>= 2.3.0) - logger - rack (>= 2.2.4) - redis-client (>= 0.22.2) - sidekiq-cron (1.12.0) - fugit (~> 1.8) + sidekiq (8.0.1) + connection_pool (>= 2.5.0) + json (>= 2.9.0) + logger (>= 1.6.2) + rack (>= 3.1.0) + redis-client (>= 0.23.2) + sidekiq-cron (2.1.0) + cronex (>= 0.13.0) + fugit (~> 1.8, >= 1.11.1) globalid (>= 1.0.1) - sidekiq (>= 6) - signet (0.17.0) + sidekiq (>= 6.5.0) + signet (0.19.0) addressable (~> 2.8) faraday (>= 0.17.5, < 3.a) jwt (>= 1.5, < 3.0) @@ -747,6 +842,7 @@ GEM json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) + simpleidn (0.2.3) slack-ruby-client (2.5.2) faraday (>= 2.0) faraday-mashify @@ -757,25 +853,27 @@ GEM snaky_hash (2.0.1) hashie version_gem (~> 1.1, >= 1.1.1) - spring (4.1.1) + spring (4.2.1) spring-watcher-listen (2.1.0) listen (>= 2.7, < 4.0) spring (>= 4) sprockets (4.2.1) concurrent-ruby (~> 1.0) rack (>= 2.2.4, < 4) - sprockets-rails (3.4.2) - actionpack (>= 5.2) - activesupport (>= 5.2) + sprockets-rails (3.5.2) + actionpack (>= 6.1) + activesupport (>= 6.1) sprockets (>= 3.0.0) - squasher (0.7.2) - stackprof (0.2.25) + squasher (0.8.0) + stackprof (0.2.27) statsd-ruby (1.5.0) - stripe (8.5.0) - telephone_number (1.4.20) - test-prof (1.2.1) - thor (1.3.1) - tilt (2.3.0) + stringio (3.1.5) + stripe (13.5.0) + strscan (3.1.2) + telephone_number (1.4.22) + test-prof (1.4.4) + thor (1.3.2) + tilt (2.6.0) time_diff (0.3.0) activesupport i18n @@ -789,27 +887,28 @@ GEM oauth tzinfo (2.0.6) concurrent-ruby (~> 1.0) - tzinfo-data (1.2023.3) + tzinfo-data (1.2025.1) tzinfo (>= 1.0.0) uber (0.1.0) - uglifier (4.2.0) + uglifier (4.2.1) execjs (>= 0.3.0, < 3) - unf (0.1.4) - unf_ext - unf_ext (0.0.8.2) - unicode-display_width (2.4.2) + unicode (0.4.4.5) + unicode-display_width (3.1.4) + unicode-emoji (~> 4.0, >= 4.0.4) + unicode-emoji (4.0.4) uniform_notifier (1.16.0) uri (1.0.3) - uri_template (0.7.0) - valid_email2 (5.2.6) - activemodel (>= 3.2) + valid_email2 (7.0.12) + activemodel (>= 6.0) mail (~> 2.5) - version_gem (1.1.4) - vite_rails (3.0.17) - railties (>= 5.1, < 8) + version_gem (1.1.6) + vite_rails (3.0.19) + railties (>= 5.1, < 9) vite_ruby (~> 3.0, >= 3.2.2) - vite_ruby (3.8.0) + vite_ruby (3.9.1) dry-cli (>= 0.7, < 2) + logger (~> 1.6) + mutex_m rack-proxy (~> 0.6, >= 0.6.1) zeitwerk (~> 2.2) warden (1.2.9) @@ -822,18 +921,19 @@ GEM web-push (3.0.1) jwt (~> 2.0) openssl (~> 3.0) - webmock (3.23.1) + webmock (3.25.0) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) - websocket-driver (0.7.6) + websocket-driver (0.7.7) + base64 websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) wisper (2.0.0) - working_hours (1.4.1) - activesupport (>= 3.2) + working_hours (1.5.0) + activesupport (>= 7.0) tzinfo - zeitwerk (2.6.17) + zeitwerk (2.7.2) PLATFORMS arm64-darwin-20 @@ -862,7 +962,7 @@ DEPENDENCIES bootsnap brakeman browser - bullet + bullet (~> 7.1.0) bundle-audit byebug climate_control @@ -928,10 +1028,10 @@ DEPENDENCIES puma pundit rack-attack (>= 6.7.0) - rack-cors (= 2.0.0) + rack-cors rack-mini-profiler (>= 3.2.0) rack-timeout - rails (~> 7.0.8.4) + rails (~> 7.1.5.1) redis redis-namespace responders (>= 3.1.1) @@ -940,6 +1040,7 @@ DEPENDENCIES rspec-rails (>= 6.1.5) rspec_junit_formatter rubocop + rubocop-factory_bot rubocop-performance rubocop-rails rubocop-rspec diff --git a/config/application.rb b/config/application.rb index 34fa37dc3..b33d24360 100644 --- a/config/application.rb +++ b/config/application.rb @@ -36,7 +36,7 @@ end module Chatwoot class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 7.0 + config.load_defaults 7.1 config.eager_load_paths << Rails.root.join('lib') config.eager_load_paths << Rails.root.join('enterprise/lib')