diff --git a/.rubocop.yml b/.rubocop.yml index a44ea27..0710620 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,9 +1,13 @@ AllCops: + NewCops: enable Exclude: - 'spec/support/test_app/**/*' - !ruby/regexp /old_and_unused\.rb$/ - vendor/bundle/**/* +Gemspec/DevelopmentDependencies: + Enabled: false + Style/Documentation: Enabled: false @@ -63,6 +67,9 @@ Lint/RaiseException: Lint/StructNewOverride: Enabled: true +Lint/ConstantDefinitionInBlock: + Enabled: false + Style/ExponentialNotation: Enabled: true diff --git a/Gemfile.lock b/Gemfile.lock index e23bd35..1d146fd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,190 +3,207 @@ PATH specs: base_form (0.1.4) activesupport (>= 3.2) - virtus (~> 1.0) + virtus (~> 2.0) GEM remote: https://rubygems.org/ specs: - actioncable (5.2.4.3) - actionpack (= 5.2.4.3) + actioncable (5.2.8.1) + actionpack (= 5.2.8.1) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailer (5.2.4.3) - actionpack (= 5.2.4.3) - actionview (= 5.2.4.3) - activejob (= 5.2.4.3) + actionmailer (5.2.8.1) + actionpack (= 5.2.8.1) + actionview (= 5.2.8.1) + activejob (= 5.2.8.1) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 2.0) - actionpack (5.2.4.3) - actionview (= 5.2.4.3) - activesupport (= 5.2.4.3) + actionpack (5.2.8.1) + actionview (= 5.2.8.1) + activesupport (= 5.2.8.1) rack (~> 2.0, >= 2.0.8) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (5.2.4.3) - activesupport (= 5.2.4.3) + actionview (5.2.8.1) + activesupport (= 5.2.8.1) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.0.3) - activejob (5.2.4.3) - activesupport (= 5.2.4.3) + activejob (5.2.8.1) + activesupport (= 5.2.8.1) globalid (>= 0.3.6) - activemodel (5.2.4.3) - activesupport (= 5.2.4.3) - activerecord (5.2.4.3) - activemodel (= 5.2.4.3) - activesupport (= 5.2.4.3) + activemodel (5.2.8.1) + activesupport (= 5.2.8.1) + activerecord (5.2.8.1) + activemodel (= 5.2.8.1) + activesupport (= 5.2.8.1) arel (>= 9.0) - activestorage (5.2.4.3) - actionpack (= 5.2.4.3) - activerecord (= 5.2.4.3) - marcel (~> 0.3.1) - activesupport (5.2.4.3) + activestorage (5.2.8.1) + actionpack (= 5.2.8.1) + activerecord (= 5.2.8.1) + marcel (~> 1.0.0) + activesupport (5.2.8.1) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) arel (9.0.0) - ast (2.4.1) + ast (2.4.2) axiom-types (0.1.1) descendants_tracker (~> 0.0.4) ice_nine (~> 0.11.0) thread_safe (~> 0.3, >= 0.3.1) - bootsnap (1.4.6) - msgpack (~> 1.0) + bootsnap (1.16.0) + msgpack (~> 1.2) builder (3.2.4) coercible (1.0.0) descendants_tracker (~> 0.0.1) concurrent-ruby (1.2.2) crass (1.0.6) + date (3.3.3) descendants_tracker (0.0.4) thread_safe (~> 0.3, >= 0.3.1) - diff-lcs (1.4.2) - equalizer (0.0.11) - erubi (1.9.0) - factory_bot (6.0.2) + diff-lcs (1.5.0) + erubi (1.12.0) + factory_bot (6.2.1) activesupport (>= 5.0.0) - factory_bot_rails (6.0.0) - factory_bot (~> 6.0.0) + factory_bot_rails (6.2.0) + factory_bot (~> 6.2.0) railties (>= 5.0.0) - ffi (1.13.1) + ffi (1.15.5) globalid (1.1.0) activesupport (>= 5.0) - i18n (1.13.0) + i18n (1.14.1) concurrent-ruby (~> 1.0) ice_nine (0.11.2) - listen (3.2.1) + json (2.6.3) + language_server-protocol (3.17.0.3) + listen (3.8.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) loofah (2.21.3) crass (~> 1.0.2) nokogiri (>= 1.12.0) - mail (2.7.1) + mail (2.8.1) mini_mime (>= 0.1.1) - marcel (0.3.3) - mimemagic (~> 0.3.2) + net-imap + net-pop + net-smtp + marcel (1.0.2) method_source (1.0.0) - mimemagic (0.3.5) - mini_mime (1.0.2) - mini_portile2 (2.8.2) - minitest (5.18.0) - msgpack (1.3.3) - nio4r (2.5.2) - nokogiri (1.15.2) + mini_mime (1.1.2) + mini_portile2 (2.8.4) + minitest (5.19.0) + msgpack (1.7.2) + net-imap (0.3.7) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.1) + timeout + net-smtp (0.3.3) + net-protocol + nio4r (2.5.9) + nokogiri (1.15.3) mini_portile2 (~> 2.8.2) racc (~> 1.4) - parallel (1.19.2) - parser (2.7.1.4) + parallel (1.23.0) + parser (3.2.2.3) ast (~> 2.4.1) - racc (1.6.2) + racc + racc (1.7.1) rack (2.2.7) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (5.2.4.3) - actioncable (= 5.2.4.3) - actionmailer (= 5.2.4.3) - actionpack (= 5.2.4.3) - actionview (= 5.2.4.3) - activejob (= 5.2.4.3) - activemodel (= 5.2.4.3) - activerecord (= 5.2.4.3) - activestorage (= 5.2.4.3) - activesupport (= 5.2.4.3) + rack-test (2.1.0) + rack (>= 1.3) + rails (5.2.8.1) + actioncable (= 5.2.8.1) + actionmailer (= 5.2.8.1) + actionpack (= 5.2.8.1) + actionview (= 5.2.8.1) + activejob (= 5.2.8.1) + activemodel (= 5.2.8.1) + activerecord (= 5.2.8.1) + activestorage (= 5.2.8.1) + activesupport (= 5.2.8.1) bundler (>= 1.3.0) - railties (= 5.2.4.3) + railties (= 5.2.8.1) sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + rails-dom-testing (2.1.1) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) rails-html-sanitizer (1.6.0) loofah (~> 2.21) nokogiri (~> 1.14) - railties (5.2.4.3) - actionpack (= 5.2.4.3) - activesupport (= 5.2.4.3) + railties (5.2.8.1) + actionpack (= 5.2.8.1) + activesupport (= 5.2.8.1) method_source rake (>= 0.8.7) thor (>= 0.19.0, < 2.0) - rainbow (3.0.0) - rake (13.0.1) - rb-fsevent (0.10.4) + rainbow (3.1.1) + rake (13.0.6) + rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) - regexp_parser (1.7.1) - rexml (3.2.4) - rspec-core (3.9.2) - rspec-support (~> 3.9.3) - rspec-expectations (3.9.2) + regexp_parser (2.8.1) + rexml (3.2.5) + rspec-core (3.12.2) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.3) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.9.0) - rspec-mocks (3.9.1) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.6) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.9.0) - rspec-rails (4.0.1) + rspec-support (~> 3.12.0) + rspec-rails (4.1.2) actionpack (>= 4.2) activesupport (>= 4.2) railties (>= 4.2) - rspec-core (~> 3.9) - rspec-expectations (~> 3.9) - rspec-mocks (~> 3.9) - rspec-support (~> 3.9) - rspec-support (3.9.3) - rubocop (0.86.0) + rspec-core (~> 3.10) + rspec-expectations (~> 3.10) + rspec-mocks (~> 3.10) + rspec-support (~> 3.10) + rspec-support (3.12.1) + rubocop (1.55.0) + json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 2.7.0.1) + parser (>= 3.2.2.3) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.7) - rexml - rubocop-ast (>= 0.0.3, < 1.0) + regexp_parser (>= 1.8, < 3.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (0.0.3) - parser (>= 2.7.0.1) - ruby-progressbar (1.10.1) - shoulda-matchers (4.3.0) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.29.0) + parser (>= 3.2.1.0) + ruby-progressbar (1.13.0) + shoulda-matchers (4.5.1) activesupport (>= 4.2.0) - sprockets (4.0.2) + sprockets (4.2.0) concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) + rack (>= 2.2.4, < 4) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) sprockets (>= 3.0.0) - sqlite3 (1.4.2) - thor (1.0.1) + sqlite3 (1.6.3) + mini_portile2 (~> 2.8.0) + thor (1.2.2) thread_safe (0.3.6) + timeout (0.4.0) tzinfo (1.2.11) thread_safe (~> 0.1) - unicode-display_width (1.7.0) - virtus (1.0.5) + unicode-display_width (2.4.2) + virtus (2.0.0) axiom-types (~> 0.1) coercible (~> 1.0) descendants_tracker (~> 0.0, >= 0.0.3) - equalizer (~> 0.0, >= 0.0.9) - websocket-driver (0.7.2) + websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) @@ -195,15 +212,15 @@ PLATFORMS DEPENDENCIES base_form! - bootsnap (~> 1.4) - bundler (~> 2.1.4) - factory_bot_rails (~> 6.0) - listen (~> 3.0) - rails (~> 5.2) + bootsnap (~> 1.16) + bundler (~> 2.4.17) + factory_bot_rails (~> 6.2) + listen (~> 3.8) + rails (~> 5.2.8.1) rspec-rails (~> 4.0) - rubocop (= 0.86.0) + rubocop (= 1.55.0) shoulda-matchers (~> 4) - sqlite3 (~> 1.4.1) + sqlite3 (~> 1.6.3) BUNDLED WITH - 2.1.4 + 2.4.17 diff --git a/base_form.gemspec b/base_form.gemspec index 58ceb82..c72f90c 100644 --- a/base_form.gemspec +++ b/base_form.gemspec @@ -15,18 +15,20 @@ Gem::Specification.new do |s| s.summary = 'A simple and small form objects Rails plugin' s.description = 'BaseForm is a small and simple Rails plugin to work with Form Objects' s.license = 'MIT' + s.required_ruby_version = '>= 2.7.0' s.files = Dir['{app,config,db,lib}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.md'] - s.add_development_dependency 'bootsnap', '~> 1.4' - s.add_development_dependency 'bundler', '~> 2.1.4' - s.add_development_dependency 'factory_bot_rails', '~> 6.0' - s.add_development_dependency 'listen', '~> 3.0' - s.add_development_dependency 'rails', '~> 5.2' + s.add_development_dependency 'bootsnap', '~> 1.16' + s.add_development_dependency 'bundler', '~> 2.4.17' + s.add_development_dependency 'factory_bot_rails', '~> 6.2' + s.add_development_dependency 'listen', '~> 3.8' + s.add_development_dependency 'rails', '~> 5.2.8.1' s.add_development_dependency 'rspec-rails', '~> 4.0' - s.add_development_dependency 'rubocop', '0.86.0' - s.add_development_dependency 'sqlite3', '~> 1.4.1' + s.add_development_dependency 'rubocop', '1.55.0' + s.add_development_dependency 'sqlite3', '~> 1.6.3' s.add_runtime_dependency 'activesupport', '>= 3.2' - s.add_runtime_dependency 'virtus', '~> 1.0' + s.add_runtime_dependency 'virtus', '~> 2.0' + s.metadata['rubygems_mfa_required'] = 'true' end