diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 00e50df4..b91d5993 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,9 +7,8 @@ jobs: matrix: gemfile: - Gemfile - - gemfiles/Gemfile-rails-5-0 - - gemfiles/Gemfile-rails-5-1 - gemfiles/Gemfile-rails-5-2 + - gemfiles/Gemfile-rails-6-0 ruby: - 2.4 - 2.5 @@ -18,10 +17,8 @@ jobs: exclude: - ruby: 2.4 gemfile: Gemfile - - ruby: 2.7 - gemfile: gemfiles/Gemfile-rails-5-0 - - ruby: 2.7 - gemfile: gemfiles/Gemfile-rails-5-1 + - ruby: 2.4 + gemfile: gemfiles/Gemfile-rails-6-0 - ruby: 2.7 gemfile: gemfiles/Gemfile-rails-5-2 runs-on: ubuntu-latest diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e6828b5..22eed88b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## Unreleased -* Drop support to Ruby < 2.4. +* Drop support for Ruby < 2.4. +* Add support for Rails 6.1, drop support for Rails < 5.2. +* Move CI to GitHub Actions. ## 5.0.3 diff --git a/Gemfile b/Gemfile index 92d31b2b..f82147eb 100644 --- a/Gemfile +++ b/Gemfile @@ -2,11 +2,6 @@ source 'https://rubygems.org' gemspec -platforms :rbx do - gem 'rubysl', '~> 2.0' - gem 'rubinius-developer_tools' -end - gem 'country_select' gem 'activemodel' gem 'railties' diff --git a/Gemfile.lock b/Gemfile.lock index d1862b2c..a695d25c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,33 +2,33 @@ PATH remote: . specs: simple_form (5.0.3) - actionpack (>= 5.0) - activemodel (>= 5.0) + actionpack (>= 5.2) + activemodel (>= 5.2) GEM remote: https://rubygems.org/ specs: - actionpack (6.0.3.3) - actionview (= 6.0.3.3) - activesupport (= 6.0.3.3) - rack (~> 2.0, >= 2.0.8) + actionpack (6.1.1) + actionview (= 6.1.1) + activesupport (= 6.1.1) + rack (~> 2.0, >= 2.0.9) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actionview (6.0.3.3) - activesupport (= 6.0.3.3) + actionview (6.1.1) + activesupport (= 6.1.1) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.1, >= 1.2.0) - activemodel (6.0.3.3) - activesupport (= 6.0.3.3) - activesupport (6.0.3.3) + activemodel (6.1.1) + activesupport (= 6.1.1) + activesupport (6.1.1) concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - zeitwerk (~> 2.2, >= 2.2.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) builder (3.2.4) concurrent-ruby (1.1.7) countries (3.0.1) @@ -39,19 +39,20 @@ GEM countries (~> 3.0) sort_alphabetical (~> 1.0) crass (1.0.6) - erubi (1.9.0) - ffi2-generators (0.1.1) - i18n (1.8.5) + erubi (1.10.0) + i18n (1.8.7) concurrent-ruby (~> 1.0) i18n_data (0.10.0) - loofah (2.7.0) + loofah (2.9.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) method_source (1.0.0) - mini_portile2 (2.4.0) - minitest (5.14.2) - nokogiri (1.10.10) - mini_portile2 (~> 2.4.0) + mini_portile2 (2.5.0) + minitest (5.14.3) + nokogiri (1.11.1) + mini_portile2 (~> 2.5.0) + racc (~> 1.4) + racc (1.5.2) rack (2.2.3) rack-test (1.1.0) rack (>= 1.0, < 3) @@ -60,231 +61,21 @@ GEM nokogiri (>= 1.6) rails-html-sanitizer (1.3.0) loofah (~> 2.3) - railties (6.0.3.3) - actionpack (= 6.0.3.3) - activesupport (= 6.0.3.3) + railties (6.1.1) + actionpack (= 6.1.1) + activesupport (= 6.1.1) method_source rake (>= 0.8.7) - thor (>= 0.20.3, < 2.0) - rake (13.0.1) - rubinius-coverage (2.1) - rubinius-debugger (2.6) - rubinius-developer_tools (2.0.0) - rubinius-coverage (~> 2.0) - rubinius-debugger (~> 2.0) - rubinius-profiler (~> 2.0) - rubinius-profiler (2.1) - rubysl (2.2.0) - rubysl-abbrev (~> 2.0) - rubysl-base64 (~> 2.0) - rubysl-benchmark (~> 2.0) - rubysl-bigdecimal (~> 2.0) - rubysl-cgi (~> 2.0) - rubysl-cgi-session (~> 2.0) - rubysl-cmath (~> 2.0) - rubysl-complex (~> 2.0) - rubysl-continuation (~> 2.0) - rubysl-coverage (~> 2.0) - rubysl-csv (~> 2.0) - rubysl-curses (~> 2.0) - rubysl-date (~> 2.0) - rubysl-delegate (~> 2.0) - rubysl-digest (~> 2.0) - rubysl-drb (~> 2.0) - rubysl-e2mmap (~> 2.0) - rubysl-english (~> 2.0) - rubysl-enumerator (~> 2.0) - rubysl-erb (~> 2.0) - rubysl-etc (~> 2.0) - rubysl-expect (~> 2.0) - rubysl-fcntl (~> 2.0) - rubysl-fiber (~> 2.0) - rubysl-fileutils (~> 2.0) - rubysl-find (~> 2.0) - rubysl-forwardable (~> 2.0) - rubysl-getoptlong (~> 2.0) - rubysl-gserver (~> 2.0) - rubysl-io-console (~> 2.0) - rubysl-io-nonblock (~> 2.0) - rubysl-io-wait (~> 2.0) - rubysl-ipaddr (~> 2.0) - rubysl-irb (~> 2.1) - rubysl-logger (~> 2.0) - rubysl-mathn (~> 2.0) - rubysl-matrix (~> 2.0) - rubysl-mkmf (~> 2.0) - rubysl-monitor (~> 2.0) - rubysl-mutex_m (~> 2.0) - rubysl-net-ftp (~> 2.0) - rubysl-net-http (~> 2.0) - rubysl-net-imap (~> 2.0) - rubysl-net-pop (~> 2.0) - rubysl-net-protocol (~> 2.0) - rubysl-net-smtp (~> 2.0) - rubysl-net-telnet (~> 2.0) - rubysl-nkf (~> 2.0) - rubysl-observer (~> 2.0) - rubysl-open-uri (~> 2.0) - rubysl-open3 (~> 2.0) - rubysl-openssl (~> 2.0) - rubysl-optparse (~> 2.0) - rubysl-ostruct (~> 2.0) - rubysl-pathname (~> 2.0) - rubysl-prettyprint (~> 2.0) - rubysl-prime (~> 2.0) - rubysl-profile (~> 2.0) - rubysl-profiler (~> 2.0) - rubysl-pstore (~> 2.0) - rubysl-pty (~> 2.0) - rubysl-rational (~> 2.0) - rubysl-resolv (~> 2.0) - rubysl-rexml (~> 2.0) - rubysl-rinda (~> 2.0) - rubysl-rss (~> 2.0) - rubysl-scanf (~> 2.0) - rubysl-securerandom (~> 2.0) - rubysl-set (~> 2.0) - rubysl-shellwords (~> 2.0) - rubysl-singleton (~> 2.0) - rubysl-socket (~> 2.0) - rubysl-stringio (~> 2.0) - rubysl-strscan (~> 2.0) - rubysl-sync (~> 2.0) - rubysl-syslog (~> 2.0) - rubysl-tempfile (~> 2.0) - rubysl-thread (~> 2.0) - rubysl-thwait (~> 2.0) - rubysl-time (~> 2.0) - rubysl-timeout (~> 2.0) - rubysl-tmpdir (~> 2.0) - rubysl-tsort (~> 2.0) - rubysl-un (~> 2.0) - rubysl-unicode_normalize (~> 2.0) - rubysl-uri (~> 2.0) - rubysl-weakref (~> 2.0) - rubysl-webrick (~> 2.0) - rubysl-xmlrpc (~> 2.0) - rubysl-yaml (~> 2.0) - rubysl-zlib (~> 2.0) - rubysl-abbrev (2.0.4) - rubysl-base64 (2.0.0) - rubysl-benchmark (2.0.1) - rubysl-bigdecimal (2.0.2) - rubysl-cgi (2.0.1) - rubysl-cgi-session (2.1.0) - rubysl-cmath (2.0.0) - rubysl-complex (2.0.0) - rubysl-continuation (2.0.0) - rubysl-coverage (2.1) - rubysl-csv (2.0.2) - rubysl-english (~> 2.0) - rubysl-curses (2.0.1) - rubysl-date (2.0.9) - rubysl-delegate (2.0.1) - rubysl-digest (2.1) - rubysl-drb (2.0.1) - rubysl-e2mmap (2.0.0) - rubysl-english (2.0.0) - rubysl-enumerator (2.0.0) - rubysl-erb (2.0.2) - rubysl-etc (2.0.3) - ffi2-generators (~> 0.1) - rubysl-expect (2.0.0) - rubysl-fcntl (2.0.4) - ffi2-generators (~> 0.1) - rubysl-fiber (2.0.0) - rubysl-fileutils (2.0.3) - rubysl-find (2.0.1) - rubysl-forwardable (2.0.1) - rubysl-getoptlong (2.0.0) - rubysl-gserver (2.0.0) - rubysl-socket (~> 2.0) - rubysl-thread (~> 2.0) - rubysl-io-console (2.0.0) - rubysl-io-nonblock (2.0.0) - rubysl-io-wait (2.0.0) - rubysl-ipaddr (2.0.0) - rubysl-irb (2.1.1) - rubysl-e2mmap (~> 2.0) - rubysl-mathn (~> 2.0) - rubysl-thread (~> 2.0) - rubysl-logger (2.1.0) - rubysl-mathn (2.0.0) - rubysl-matrix (2.1.0) - rubysl-e2mmap (~> 2.0) - rubysl-mkmf (2.1) - rubysl-fileutils (~> 2.0) - rubysl-shellwords (~> 2.0) - rubysl-monitor (2.1) - rubysl-mutex_m (2.0.0) - rubysl-net-ftp (2.0.1) - rubysl-net-http (2.0.4) - rubysl-cgi (~> 2.0) - rubysl-erb (~> 2.0) - rubysl-singleton (~> 2.0) - rubysl-net-imap (2.0.1) - rubysl-net-pop (2.0.1) - rubysl-net-protocol (2.0.1) - rubysl-net-smtp (2.0.1) - rubysl-net-telnet (2.0.0) - rubysl-nkf (2.0.1) - rubysl-observer (2.0.0) - rubysl-open-uri (2.0.0) - rubysl-open3 (2.0.0) - rubysl-openssl (2.13) - rubysl-optparse (2.0.1) - rubysl-shellwords (~> 2.0) - rubysl-ostruct (2.1.0) - rubysl-pathname (2.3) - rubysl-prettyprint (2.0.3) - rubysl-prime (2.0.1) - rubysl-profile (2.0.0) - rubysl-profiler (2.1) - rubysl-pstore (2.0.0) - rubysl-pty (2.0.3) - rubysl-rational (2.0.1) - rubysl-resolv (2.1.2) - rubysl-rexml (2.0.4) - rubysl-rinda (2.0.1) - rubysl-rss (2.0.0) - rubysl-scanf (2.0.0) - rubysl-securerandom (2.0.0) - rubysl-set (2.0.1) - rubysl-shellwords (2.0.0) - rubysl-singleton (2.0.0) - rubysl-socket (2.2.1) - rubysl-fcntl (~> 2.0) - rubysl-stringio (2.3) - rubysl-strscan (2.0.0) - rubysl-sync (2.0.0) - rubysl-syslog (2.1.0) - ffi2-generators (~> 0.1) - rubysl-tempfile (2.0.1) - rubysl-thread (2.1) - rubysl-thwait (2.0.0) - rubysl-time (2.0.3) - rubysl-timeout (2.0.0) - rubysl-tmpdir (2.0.1) - rubysl-tsort (2.0.1) - rubysl-un (2.0.0) - rubysl-fileutils (~> 2.0) - rubysl-optparse (~> 2.0) - rubysl-unicode_normalize (2.0) - rubysl-uri (2.0.0) - rubysl-weakref (2.0.0) - rubysl-webrick (2.0.0) - rubysl-xmlrpc (2.0.0) - rubysl-yaml (2.1.0) - rubysl-zlib (2.0.1) + thor (~> 1.0) + rake (13.0.3) sixarm_ruby_unaccent (1.2.0) sort_alphabetical (1.1.0) unicode_utils (>= 1.2.2) thor (1.0.1) - thread_safe (0.3.6) - tzinfo (1.2.7) - thread_safe (~> 0.1) + tzinfo (2.0.4) + concurrent-ruby (~> 1.0) unicode_utils (1.4.0) - zeitwerk (2.4.0) + zeitwerk (2.4.2) PLATFORMS ruby @@ -294,8 +85,6 @@ DEPENDENCIES country_select railties rake - rubinius-developer_tools - rubysl (~> 2.0) simple_form! BUNDLED WITH diff --git a/gemfiles/Gemfile-rails-5-0 b/gemfiles/Gemfile-rails-5-0 deleted file mode 100644 index 6402f701..00000000 --- a/gemfiles/Gemfile-rails-5-0 +++ /dev/null @@ -1,15 +0,0 @@ -source 'https://rubygems.org' - -gemspec :path => '..' - -platforms :rbx do - gem 'rubysl', '~> 2.0' - gem 'rubinius-developer_tools' -end - -gem 'country_select', '~> 2.5.2' -gem 'railties', github: 'rails/rails', branch: '5-0-stable' -gem 'activemodel', github: 'rails/rails', branch: '5-0-stable' -gem 'actionpack', github: 'rails/rails', branch: '5-0-stable' -gem 'rake' -gem 'tzinfo' diff --git a/gemfiles/Gemfile-rails-5-1 b/gemfiles/Gemfile-rails-5-1 deleted file mode 100644 index f6f59c77..00000000 --- a/gemfiles/Gemfile-rails-5-1 +++ /dev/null @@ -1,15 +0,0 @@ -source 'https://rubygems.org' - -gemspec :path => '..' - -platforms :rbx do - gem 'rubysl', '~> 2.0' - gem 'rubinius-developer_tools' -end - -gem 'country_select', '~> 2.5.2' -gem 'railties', github: 'rails/rails', branch: '5-1-stable' -gem 'activemodel', github: 'rails/rails', branch: '5-1-stable' -gem 'actionpack', github: 'rails/rails', branch: '5-1-stable' -gem 'rake' -gem 'tzinfo' diff --git a/gemfiles/Gemfile-rails-5-2 b/gemfiles/Gemfile-rails-5-2 index 96fa2e3e..9acbd6ca 100644 --- a/gemfiles/Gemfile-rails-5-2 +++ b/gemfiles/Gemfile-rails-5-2 @@ -2,14 +2,9 @@ source 'https://rubygems.org' gemspec :path => '..' -platforms :rbx do - gem 'rubysl', '~> 2.0' - gem 'rubinius-developer_tools' -end - gem 'country_select', '~> 3.1.1' -gem 'railties', github: 'rails/rails', branch: '5-2-stable' -gem 'activemodel', github: 'rails/rails', branch: '5-2-stable' -gem 'actionpack', github: 'rails/rails', branch: '5-2-stable' +gem 'railties', '~> 5.2.0' +gem 'activemodel', '~> 5.2.0' +gem 'actionpack', '~> 5.2.0' gem 'rake' gem 'tzinfo' diff --git a/gemfiles/Gemfile-rails-6-0 b/gemfiles/Gemfile-rails-6-0 new file mode 100644 index 00000000..55020682 --- /dev/null +++ b/gemfiles/Gemfile-rails-6-0 @@ -0,0 +1,10 @@ +source 'https://rubygems.org' + +gemspec :path => '..' + +gem 'country_select', '~> 3.1.1' +gem 'railties', '~> 6.0.0' +gem 'activemodel', '~> 6.0.0' +gem 'actionpack', '~> 6.0.0' +gem 'rake' +gem 'tzinfo' diff --git a/simple_form.gemspec b/simple_form.gemspec index f3c0e699..5e051f03 100644 --- a/simple_form.gemspec +++ b/simple_form.gemspec @@ -20,6 +20,6 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 2.4.0' - s.add_dependency('activemodel', '>= 5.0') - s.add_dependency('actionpack', '>= 5.0') + s.add_dependency('activemodel', '>= 5.2') + s.add_dependency('actionpack', '>= 5.2') end