From bc4300f7dd0ed78075a399f97486904ced48dc8b Mon Sep 17 00:00:00 2001 From: Eito Katagiri Date: Sat, 20 Jan 2024 14:43:52 +0900 Subject: [PATCH] prepare for releasing version 4.8.0 --- .github/workflows/build.yml | 25 +- .rubocop.yml | 2 +- Appraisals | 39 +-- Gemfile.lock | 29 +- README.md | 4 +- gemfiles/active6.0.3.6.gemfile.lock | 42 +-- gemfiles/active6.1.3.1.gemfile.lock | 42 +-- ...ctive5.2.5.gemfile => active7.0.8.gemfile} | 4 +- ....gemfile.lock => active7.0.8.gemfile.lock} | 56 ++-- ...ctive7.0.0.gemfile => active7.1.3.gemfile} | 4 +- ....gemfile.lock => active7.1.3.gemfile.lock} | 81 +++-- gemfiles/rails5.2.5.gemfile.lock | 217 -------------- gemfiles/rails6.0.3.6.gemfile.lock | 104 ++++--- gemfiles/rails6.1.3.1.gemfile.lock | 104 ++++--- ...{rails7.0.0.gemfile => rails7.0.8.gemfile} | 2 +- ...0.gemfile.lock => rails7.0.8.gemfile.lock} | 212 +++++++------ ...{rails5.2.5.gemfile => rails7.1.3.gemfile} | 6 +- gemfiles/rails7.1.3.gemfile.lock | 281 ++++++++++++++++++ lib/comma/version.rb | 2 +- spec/comma/comma_spec.rb | 12 +- spec/comma/rails/active_record_spec.rb | 2 +- spec/comma/rails/mongoid_spec.rb | 2 +- 22 files changed, 698 insertions(+), 574 deletions(-) rename gemfiles/{active5.2.5.gemfile => active7.0.8.gemfile} (80%) rename gemfiles/{active7.0.0.gemfile.lock => active7.0.8.gemfile.lock} (74%) rename gemfiles/{active7.0.0.gemfile => active7.1.3.gemfile} (80%) rename gemfiles/{active5.2.5.gemfile.lock => active7.1.3.gemfile.lock} (63%) delete mode 100644 gemfiles/rails5.2.5.gemfile.lock rename gemfiles/{rails7.0.0.gemfile => rails7.0.8.gemfile} (92%) rename gemfiles/{rails7.0.0.gemfile.lock => rails7.0.8.gemfile.lock} (52%) rename gemfiles/{rails5.2.5.gemfile => rails7.1.3.gemfile} (73%) create mode 100644 gemfiles/rails7.1.3.gemfile.lock diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 476f3b6..ecae148 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,29 +4,8 @@ jobs: build: strategy: matrix: - ruby: ['2.5', '2.6', '2.7', '3.0'] - gemfile: ['active6.0.3.6', 'active6.1.3.1', 'rails6.0.3.6', 'rails6.1.3.1'] - include: - - ruby: '2.5' - gemfile: active5.2.5 - - ruby: '2.6' - gemfile: active5.2.5 - - ruby: '2.7' - gemfile: active5.2.5 - - ruby: '2.5' - gemfile: rails5.2.5 - - ruby: '2.6' - gemfile: rails5.2.5 - - ruby: '2.7' - gemfile: rails5.2.5 - - ruby: '2.7' - gemfile: active7.0.0 - - ruby: '3.0' - gemfile: active7.0.0 - - ruby: '2.7' - gemfile: rails7.0.0 - - ruby: '3.0' - gemfile: rails7.0.0 + ruby: ['2.7', '3.0', '3.1', '3.2', '3.3'] + gemfile: ['active6.0.3.6', 'active6.1.3.1', 'active7.0.8', 'active7.1.3', 'rails6.0.3.6', 'rails6.1.3.1', 'rails7.0.8', 'rails7.1.3'] runs-on: ubuntu-latest env: BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile diff --git a/.rubocop.yml b/.rubocop.yml index 74fd8dd..ef409f8 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -10,7 +10,7 @@ AllCops: NewCops: enable TargetRubyVersion: 2.5 -Metrics/LineLength: +Layout/LineLength: IgnoreCopDirectives: true Max: 120 diff --git a/Appraisals b/Appraisals index 401f2fe..db93903 100644 --- a/Appraisals +++ b/Appraisals @@ -1,24 +1,5 @@ # frozen_string_literal: true -[ - '5.2.5' -].each do |version_number| - clean_number = version_number.gsub(/[<>~=]*/, '') - - appraise "rails#{clean_number}" do - gem 'rails', version_number - gem 'rspec-rails' - gem 'sprockets', '< 4' - gem 'sqlite3', '~> 1.3.11' - gem 'test-unit' - end - - appraise "active#{clean_number}" do - gem 'activesupport', version_number - gem 'activerecord', version_number - end -end - appraise 'rails6.0.3.6' do gem 'rails', '6.0.3.6' gem 'rspec-rails' @@ -41,12 +22,22 @@ appraise 'active6.1.3.1' do gem 'activerecord', '6.1.3.1' end -appraise 'rails7.0.0' do - gem 'rails', '7.0.0' +appraise 'rails7.0.8' do + gem 'rails', '7.0.8' + gem 'rspec-rails' +end + +appraise 'active7.0.8' do + gem 'activesupport', '7.0.8' + gem 'activerecord', '7.0.8' +end + +appraise 'rails7.1.3' do + gem 'rails', '7.1.3' gem 'rspec-rails' end -appraise 'active7.0.0' do - gem 'activesupport', '7.0.0' - gem 'activerecord', '7.0.0' +appraise 'active7.1.3' do + gem 'activesupport', '7.1.3' + gem 'activerecord', '7.1.3' end diff --git a/Gemfile.lock b/Gemfile.lock index 2314238..50a9c8e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - comma (4.7.0) + comma (4.8.0) activesupport (>= 4.2.0) GEM @@ -39,20 +39,23 @@ GEM mime-types (3.2.2) mime-types-data (~> 3.2015) mime-types-data (3.2019.0331) + mini_portile2 (2.8.5) minitest (5.14.4) multi_json (1.1.0) netrc (0.11.0) - parallel (1.22.1) - parser (3.1.2.0) + parallel (1.24.0) + parser (3.3.0.4) ast (~> 2.4.1) + racc + racc (1.7.3) rainbow (3.1.1) rake (13.0.1) - regexp_parser (2.5.0) + regexp_parser (2.9.0) rest-client (2.0.2) http-cookie (>= 1.0.2, < 2.0) mime-types (>= 1.16, < 4.0) netrc (~> 0.8) - rexml (3.2.5) + rexml (3.2.6) rspec (3.5.0) rspec-core (~> 3.5.0) rspec-expectations (~> 3.5.0) @@ -82,17 +85,19 @@ GEM rubocop-ast (>= 0.6.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.19.1) - parser (>= 3.1.1.0) - rubocop-performance (1.1.0) - rubocop (>= 0.67.0) - ruby-progressbar (1.11.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) + rubocop-performance (1.10.2) + rubocop (>= 0.90.0, < 2.0) + rubocop-ast (>= 0.4.0) + ruby-progressbar (1.13.0) simplecov (0.9.2) docile (~> 1.1.0) multi_json (~> 1.0) simplecov-html (~> 0.9.0) simplecov-html (0.9.0) - sqlite3 (1.3.11) + sqlite3 (1.7.0) + mini_portile2 (~> 2.8.0) thor (0.19.1) tzinfo (2.0.6) concurrent-ruby (~> 1.0) @@ -118,4 +123,4 @@ DEPENDENCIES sqlite3 BUNDLED WITH - 2.1.4 + 2.2.33 diff --git a/README.md b/README.md index 26194de..3aa6a75 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A library to generate comma seperated value (CSV) for Ruby objects like ActiveRe ### Prerequisites -You need to use ruby 2.4 or later. If you generate CSV from ActiveRecord models, you need to have ActiveRecord 5.0 or later. +You need to use ruby 2.7 or later. If you generate CSV from ActiveRecord models, you need to have ActiveRecord 6.0 or later. ### Installing @@ -17,7 +17,7 @@ Comma is distributed as a gem, best installed via Bundler. Include the gem in your Gemfile: ```ruby -gem 'comma', '~> 4.7.0' +gem 'comma', '~> 4.8.0' ``` Or, if you want to live life on the edge, you can get master from the main comma repository: diff --git a/gemfiles/active6.0.3.6.gemfile.lock b/gemfiles/active6.0.3.6.gemfile.lock index 631153a..1fe50db 100644 --- a/gemfiles/active6.0.3.6.gemfile.lock +++ b/gemfiles/active6.0.3.6.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - comma (4.7.0) + comma (4.8.0) activesupport (>= 4.2.0) GEM @@ -23,31 +23,34 @@ GEM rake thor (>= 0.14.0) ast (2.4.2) - concurrent-ruby (1.1.9) + concurrent-ruby (1.2.3) coveralls (0.8.23) json (>= 1.8, < 3) simplecov (~> 0.16.1) term-ansicolor (~> 1.3) thor (>= 0.19.4, < 2.0) tins (~> 1.6) - diff-lcs (1.4.4) + diff-lcs (1.5.0) docile (1.4.0) - i18n (1.8.11) + i18n (1.14.1) concurrent-ruby (~> 1.0) - json (2.6.1) + json (2.7.1) + mini_portile2 (2.8.5) minitest (5.14.4) - parallel (1.22.1) - parser (3.1.2.0) + parallel (1.24.0) + parser (3.3.0.4) ast (~> 2.4.1) + racc + racc (1.7.3) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.5.0) - rexml (3.2.5) + regexp_parser (2.9.0) + rexml (3.2.6) rspec (3.5.0) rspec-core (~> 3.5.0) rspec-expectations (~> 3.5.0) rspec-mocks (~> 3.5.0) - rspec-activemodel-mocks (1.1.0) + rspec-activemodel-mocks (1.2.0) activemodel (>= 3.0) activesupport (>= 3.0) rspec-mocks (>= 2.99, < 4.0) @@ -72,29 +75,30 @@ GEM rubocop-ast (>= 0.6.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.17.0) - parser (>= 3.1.1.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) rubocop-performance (1.10.2) rubocop (>= 0.90.0, < 2.0) rubocop-ast (>= 0.4.0) - ruby-progressbar (1.11.0) + ruby-progressbar (1.13.0) simplecov (0.16.1) docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - sqlite3 (1.4.2) + sqlite3 (1.7.0) + mini_portile2 (~> 2.8.0) sync (0.5.0) term-ansicolor (1.7.1) tins (~> 1.0) - thor (1.1.0) + thor (1.3.0) thread_safe (0.3.6) - tins (1.29.1) + tins (1.32.1) sync - tzinfo (1.2.9) + tzinfo (1.2.11) thread_safe (~> 0.1) unicode-display_width (1.8.0) - zeitwerk (2.5.1) + zeitwerk (2.6.12) PLATFORMS ruby @@ -115,4 +119,4 @@ DEPENDENCIES sqlite3 BUNDLED WITH - 2.1.4 + 2.2.33 diff --git a/gemfiles/active6.1.3.1.gemfile.lock b/gemfiles/active6.1.3.1.gemfile.lock index 0742f33..fbab011 100644 --- a/gemfiles/active6.1.3.1.gemfile.lock +++ b/gemfiles/active6.1.3.1.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - comma (4.7.0) + comma (4.8.0) activesupport (>= 4.2.0) GEM @@ -23,31 +23,34 @@ GEM rake thor (>= 0.14.0) ast (2.4.2) - concurrent-ruby (1.1.9) + concurrent-ruby (1.2.3) coveralls (0.8.23) json (>= 1.8, < 3) simplecov (~> 0.16.1) term-ansicolor (~> 1.3) thor (>= 0.19.4, < 2.0) tins (~> 1.6) - diff-lcs (1.4.4) + diff-lcs (1.5.0) docile (1.4.0) - i18n (1.8.11) + i18n (1.14.1) concurrent-ruby (~> 1.0) - json (2.6.1) + json (2.7.1) + mini_portile2 (2.8.5) minitest (5.14.4) - parallel (1.22.1) - parser (3.1.2.0) + parallel (1.24.0) + parser (3.3.0.4) ast (~> 2.4.1) + racc + racc (1.7.3) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.5.0) - rexml (3.2.5) + regexp_parser (2.9.0) + rexml (3.2.6) rspec (3.5.0) rspec-core (~> 3.5.0) rspec-expectations (~> 3.5.0) rspec-mocks (~> 3.5.0) - rspec-activemodel-mocks (1.1.0) + rspec-activemodel-mocks (1.2.0) activemodel (>= 3.0) activesupport (>= 3.0) rspec-mocks (>= 2.99, < 4.0) @@ -72,28 +75,29 @@ GEM rubocop-ast (>= 0.6.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.17.0) - parser (>= 3.1.1.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) rubocop-performance (1.10.2) rubocop (>= 0.90.0, < 2.0) rubocop-ast (>= 0.4.0) - ruby-progressbar (1.11.0) + ruby-progressbar (1.13.0) simplecov (0.16.1) docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - sqlite3 (1.4.2) + sqlite3 (1.7.0) + mini_portile2 (~> 2.8.0) sync (0.5.0) term-ansicolor (1.7.1) tins (~> 1.0) - thor (1.1.0) - tins (1.29.1) + thor (1.3.0) + tins (1.32.1) sync - tzinfo (2.0.4) + tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (1.8.0) - zeitwerk (2.5.1) + zeitwerk (2.6.12) PLATFORMS ruby @@ -114,4 +118,4 @@ DEPENDENCIES sqlite3 BUNDLED WITH - 2.1.4 + 2.2.33 diff --git a/gemfiles/active5.2.5.gemfile b/gemfiles/active7.0.8.gemfile similarity index 80% rename from gemfiles/active5.2.5.gemfile rename to gemfiles/active7.0.8.gemfile index 8b0e4b7..b3d220d 100644 --- a/gemfiles/active5.2.5.gemfile +++ b/gemfiles/active7.0.8.gemfile @@ -6,7 +6,7 @@ gem "coveralls", :require => false gem "rubocop", "~> 1.0.0", :require => false gem "rubocop-performance", :require => false gem "sqlite3" -gem "activesupport", "5.2.5" -gem "activerecord", "5.2.5" +gem "activesupport", "7.0.8" +gem "activerecord", "7.0.8" gemspec :path => "../" diff --git a/gemfiles/active7.0.0.gemfile.lock b/gemfiles/active7.0.8.gemfile.lock similarity index 74% rename from gemfiles/active7.0.0.gemfile.lock rename to gemfiles/active7.0.8.gemfile.lock index ba5d9c0..ccd3b53 100644 --- a/gemfiles/active7.0.0.gemfile.lock +++ b/gemfiles/active7.0.8.gemfile.lock @@ -1,18 +1,18 @@ PATH remote: .. specs: - comma (4.7.0) + comma (4.8.0) activesupport (>= 4.2.0) GEM remote: https://rubygems.org/ specs: - activemodel (7.0.0) - activesupport (= 7.0.0) - activerecord (7.0.0) - activemodel (= 7.0.0) - activesupport (= 7.0.0) - activesupport (7.0.0) + activemodel (7.0.8) + activesupport (= 7.0.8) + activerecord (7.0.8) + activemodel (= 7.0.8) + activesupport (= 7.0.8) + activesupport (7.0.8) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) minitest (>= 5.1) @@ -22,31 +22,34 @@ GEM rake thor (>= 0.14.0) ast (2.4.2) - concurrent-ruby (1.1.9) + concurrent-ruby (1.2.3) coveralls (0.8.23) json (>= 1.8, < 3) simplecov (~> 0.16.1) term-ansicolor (~> 1.3) thor (>= 0.19.4, < 2.0) tins (~> 1.6) - diff-lcs (1.4.4) + diff-lcs (1.5.0) docile (1.4.0) - i18n (1.8.11) + i18n (1.14.1) concurrent-ruby (~> 1.0) - json (2.6.1) + json (2.7.1) + mini_portile2 (2.8.5) minitest (5.14.4) - parallel (1.22.1) - parser (3.1.2.0) + parallel (1.24.0) + parser (3.3.0.4) ast (~> 2.4.1) + racc + racc (1.7.3) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.5.0) - rexml (3.2.5) + regexp_parser (2.9.0) + rexml (3.2.6) rspec (3.5.0) rspec-core (~> 3.5.0) rspec-expectations (~> 3.5.0) rspec-mocks (~> 3.5.0) - rspec-activemodel-mocks (1.1.0) + rspec-activemodel-mocks (1.2.0) activemodel (>= 3.0) activesupport (>= 3.0) rspec-mocks (>= 2.99, < 4.0) @@ -71,25 +74,26 @@ GEM rubocop-ast (>= 0.6.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.19.1) - parser (>= 3.1.1.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) rubocop-performance (1.10.2) rubocop (>= 0.90.0, < 2.0) rubocop-ast (>= 0.4.0) - ruby-progressbar (1.11.0) + ruby-progressbar (1.13.0) simplecov (0.16.1) docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - sqlite3 (1.4.2) + sqlite3 (1.7.0) + mini_portile2 (~> 2.8.0) sync (0.5.0) term-ansicolor (1.7.1) tins (~> 1.0) - thor (1.1.0) - tins (1.29.1) + thor (1.3.0) + tins (1.32.1) sync - tzinfo (2.0.4) + tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (1.8.0) @@ -97,8 +101,8 @@ PLATFORMS ruby DEPENDENCIES - activerecord (= 7.0.0) - activesupport (= 7.0.0) + activerecord (= 7.0.8) + activesupport (= 7.0.8) appraisal (~> 1.0.0) comma! coveralls @@ -112,4 +116,4 @@ DEPENDENCIES sqlite3 BUNDLED WITH - 2.1.4 + 2.2.33 diff --git a/gemfiles/active7.0.0.gemfile b/gemfiles/active7.1.3.gemfile similarity index 80% rename from gemfiles/active7.0.0.gemfile rename to gemfiles/active7.1.3.gemfile index bd17814..12cb8ad 100644 --- a/gemfiles/active7.0.0.gemfile +++ b/gemfiles/active7.1.3.gemfile @@ -6,7 +6,7 @@ gem "coveralls", :require => false gem "rubocop", "~> 1.0.0", :require => false gem "rubocop-performance", :require => false gem "sqlite3" -gem "activesupport", "7.0.0" -gem "activerecord", "7.0.0" +gem "activesupport", "7.1.3" +gem "activerecord", "7.1.3" gemspec :path => "../" diff --git a/gemfiles/active5.2.5.gemfile.lock b/gemfiles/active7.1.3.gemfile.lock similarity index 63% rename from gemfiles/active5.2.5.gemfile.lock rename to gemfiles/active7.1.3.gemfile.lock index bfc0f66..ef61b3a 100644 --- a/gemfiles/active5.2.5.gemfile.lock +++ b/gemfiles/active7.1.3.gemfile.lock @@ -1,54 +1,67 @@ PATH remote: .. specs: - comma (4.7.0) + comma (4.8.0) activesupport (>= 4.2.0) GEM remote: https://rubygems.org/ specs: - activemodel (5.2.5) - activesupport (= 5.2.5) - activerecord (5.2.5) - activemodel (= 5.2.5) - activesupport (= 5.2.5) - arel (>= 9.0) - activesupport (5.2.5) + activemodel (7.1.3) + activesupport (= 7.1.3) + activerecord (7.1.3) + activemodel (= 7.1.3) + activesupport (= 7.1.3) + timeout (>= 0.4.0) + activesupport (7.1.3) + base64 + bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) + connection_pool (>= 2.2.5) + drb + i18n (>= 1.6, < 2) + minitest (>= 5.1) + mutex_m + tzinfo (~> 2.0) appraisal (1.0.3) bundler rake thor (>= 0.14.0) - arel (9.0.0) ast (2.4.2) - concurrent-ruby (1.1.9) + base64 (0.2.0) + bigdecimal (3.1.6) + concurrent-ruby (1.2.3) + connection_pool (2.4.1) coveralls (0.8.23) json (>= 1.8, < 3) simplecov (~> 0.16.1) term-ansicolor (~> 1.3) thor (>= 0.19.4, < 2.0) tins (~> 1.6) - diff-lcs (1.4.4) + diff-lcs (1.5.0) docile (1.4.0) - i18n (1.8.11) + drb (2.2.0) + ruby2_keywords + i18n (1.14.1) concurrent-ruby (~> 1.0) - json (2.6.1) + json (2.7.1) + mini_portile2 (2.8.5) minitest (5.14.4) - parallel (1.22.1) - parser (3.1.2.0) + mutex_m (0.2.0) + parallel (1.24.0) + parser (3.3.0.4) ast (~> 2.4.1) + racc + racc (1.7.3) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.5.0) - rexml (3.2.5) + regexp_parser (2.9.0) + rexml (3.2.6) rspec (3.5.0) rspec-core (~> 3.5.0) rspec-expectations (~> 3.5.0) rspec-mocks (~> 3.5.0) - rspec-activemodel-mocks (1.1.0) + rspec-activemodel-mocks (1.2.0) activemodel (>= 3.0) activesupport (>= 3.0) rspec-mocks (>= 2.99, < 4.0) @@ -73,35 +86,37 @@ GEM rubocop-ast (>= 0.6.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.17.0) - parser (>= 3.1.1.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) rubocop-performance (1.10.2) rubocop (>= 0.90.0, < 2.0) rubocop-ast (>= 0.4.0) - ruby-progressbar (1.11.0) + ruby-progressbar (1.13.0) + ruby2_keywords (0.0.5) simplecov (0.16.1) docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - sqlite3 (1.4.2) + sqlite3 (1.7.0) + mini_portile2 (~> 2.8.0) sync (0.5.0) term-ansicolor (1.7.1) tins (~> 1.0) - thor (1.1.0) - thread_safe (0.3.6) - tins (1.29.1) + thor (1.3.0) + timeout (0.4.1) + tins (1.32.1) sync - tzinfo (1.2.9) - thread_safe (~> 0.1) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) unicode-display_width (1.8.0) PLATFORMS ruby DEPENDENCIES - activerecord (= 5.2.5) - activesupport (= 5.2.5) + activerecord (= 7.1.3) + activesupport (= 7.1.3) appraisal (~> 1.0.0) comma! coveralls @@ -115,4 +130,4 @@ DEPENDENCIES sqlite3 BUNDLED WITH - 2.1.4 + 2.2.33 diff --git a/gemfiles/rails5.2.5.gemfile.lock b/gemfiles/rails5.2.5.gemfile.lock deleted file mode 100644 index da6425b..0000000 --- a/gemfiles/rails5.2.5.gemfile.lock +++ /dev/null @@ -1,217 +0,0 @@ -PATH - remote: .. - specs: - comma (4.7.0) - activesupport (>= 4.2.0) - -GEM - remote: https://rubygems.org/ - specs: - actioncable (5.2.5) - actionpack (= 5.2.5) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - actionmailer (5.2.5) - actionpack (= 5.2.5) - actionview (= 5.2.5) - activejob (= 5.2.5) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (5.2.5) - actionview (= 5.2.5) - activesupport (= 5.2.5) - 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.5) - activesupport (= 5.2.5) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.3) - activejob (5.2.5) - activesupport (= 5.2.5) - globalid (>= 0.3.6) - activemodel (5.2.5) - activesupport (= 5.2.5) - activerecord (5.2.5) - activemodel (= 5.2.5) - activesupport (= 5.2.5) - arel (>= 9.0) - activestorage (5.2.5) - actionpack (= 5.2.5) - activerecord (= 5.2.5) - marcel (~> 1.0.0) - activesupport (5.2.5) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - appraisal (1.0.3) - bundler - rake - thor (>= 0.14.0) - arel (9.0.0) - ast (2.4.2) - builder (3.2.4) - concurrent-ruby (1.1.9) - coveralls (0.8.23) - json (>= 1.8, < 3) - simplecov (~> 0.16.1) - term-ansicolor (~> 1.3) - thor (>= 0.19.4, < 2.0) - tins (~> 1.6) - crass (1.0.6) - diff-lcs (1.4.4) - docile (1.4.0) - erubi (1.10.0) - globalid (0.5.2) - activesupport (>= 5.0) - i18n (1.8.11) - concurrent-ruby (~> 1.0) - json (2.6.1) - loofah (2.12.0) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) - mini_mime (>= 0.1.1) - marcel (1.0.2) - method_source (1.0.0) - mini_mime (1.1.2) - mini_portile2 (2.6.1) - minitest (5.14.4) - nio4r (2.5.8) - nokogiri (1.12.5) - mini_portile2 (~> 2.6.1) - racc (~> 1.4) - parallel (1.22.1) - parser (3.1.2.0) - ast (~> 2.4.1) - power_assert (2.0.1) - racc (1.6.0) - rack (2.2.3) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (5.2.5) - actioncable (= 5.2.5) - actionmailer (= 5.2.5) - actionpack (= 5.2.5) - actionview (= 5.2.5) - activejob (= 5.2.5) - activemodel (= 5.2.5) - activerecord (= 5.2.5) - activestorage (= 5.2.5) - activesupport (= 5.2.5) - bundler (>= 1.3.0) - railties (= 5.2.5) - sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.4.2) - loofah (~> 2.3) - railties (5.2.5) - actionpack (= 5.2.5) - activesupport (= 5.2.5) - method_source - rake (>= 0.8.7) - thor (>= 0.19.0, < 2.0) - rainbow (3.1.1) - rake (13.0.6) - regexp_parser (2.5.0) - rexml (3.2.5) - rspec (3.5.0) - rspec-core (~> 3.5.0) - rspec-expectations (~> 3.5.0) - rspec-mocks (~> 3.5.0) - rspec-activemodel-mocks (1.1.0) - activemodel (>= 3.0) - activesupport (>= 3.0) - rspec-mocks (>= 2.99, < 4.0) - rspec-core (3.5.4) - rspec-support (~> 3.5.0) - rspec-expectations (3.5.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.5.0) - rspec-its (1.3.0) - rspec-core (>= 3.0.0) - rspec-expectations (>= 3.0.0) - rspec-mocks (3.5.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.5.0) - rspec-rails (3.5.2) - actionpack (>= 3.0) - activesupport (>= 3.0) - railties (>= 3.0) - rspec-core (~> 3.5.0) - rspec-expectations (~> 3.5.0) - rspec-mocks (~> 3.5.0) - rspec-support (~> 3.5.0) - rspec-support (3.5.0) - rubocop (1.0.0) - parallel (~> 1.10) - parser (>= 2.7.1.5) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8) - rexml - rubocop-ast (>= 0.6.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.17.0) - parser (>= 3.1.1.0) - rubocop-performance (1.10.2) - rubocop (>= 0.90.0, < 2.0) - rubocop-ast (>= 0.4.0) - ruby-progressbar (1.11.0) - simplecov (0.16.1) - docile (~> 1.1) - json (>= 1.8, < 3) - simplecov-html (~> 0.10.0) - simplecov-html (0.10.2) - sprockets (3.7.2) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.2) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - sync (0.5.0) - term-ansicolor (1.7.1) - tins (~> 1.0) - test-unit (3.5.1) - power_assert - thor (1.1.0) - thread_safe (0.3.6) - tins (1.29.1) - sync - tzinfo (1.2.9) - thread_safe (~> 0.1) - unicode-display_width (1.8.0) - websocket-driver (0.7.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) - -PLATFORMS - ruby - -DEPENDENCIES - appraisal (~> 1.0.0) - comma! - coveralls - minitest (= 5.14.4) - rails (= 5.2.5) - rake (~> 13.0.1) - rspec (~> 3.5.0) - rspec-activemodel-mocks - rspec-its - rspec-rails - rubocop (~> 1.0.0) - rubocop-performance - sprockets (< 4) - sqlite3 (~> 1.3.11) - test-unit - -BUNDLED WITH - 2.1.4 diff --git a/gemfiles/rails6.0.3.6.gemfile.lock b/gemfiles/rails6.0.3.6.gemfile.lock index fe1ca0f..8c2fa5d 100644 --- a/gemfiles/rails6.0.3.6.gemfile.lock +++ b/gemfiles/rails6.0.3.6.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - comma (4.7.0) + comma (4.8.0) activesupport (>= 4.2.0) GEM @@ -68,7 +68,7 @@ GEM thor (>= 0.14.0) ast (2.4.2) builder (3.2.4) - concurrent-ruby (1.1.9) + concurrent-ruby (1.2.3) coveralls (0.8.23) json (>= 1.8, < 3) simplecov (~> 0.16.1) @@ -76,36 +76,50 @@ GEM thor (>= 0.19.4, < 2.0) tins (~> 1.6) crass (1.0.6) - diff-lcs (1.4.4) + date (3.3.4) + diff-lcs (1.5.0) docile (1.4.0) - erubi (1.10.0) - globalid (0.5.2) + erubi (1.12.0) + globalid (1.1.0) activesupport (>= 5.0) - i18n (1.8.11) + i18n (1.14.1) concurrent-ruby (~> 1.0) - json (2.6.1) - loofah (2.12.0) + json (2.7.1) + loofah (2.22.0) crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) + nokogiri (>= 1.12.0) + mail (2.8.1) mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp marcel (1.0.2) method_source (1.0.0) - mini_mime (1.1.2) - mini_portile2 (2.6.1) + mini_mime (1.1.5) + mini_portile2 (2.8.5) minitest (5.14.4) - nio4r (2.5.8) - nokogiri (1.12.5) - mini_portile2 (~> 2.6.1) + net-imap (0.4.9.1) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.4.0.1) + net-protocol + nio4r (2.7.0) + nokogiri (1.16.0) + mini_portile2 (~> 2.8.2) racc (~> 1.4) - parallel (1.22.1) - parser (3.1.2.0) + parallel (1.24.0) + parser (3.3.0.4) ast (~> 2.4.1) + racc power_assert (2.0.1) - racc (1.6.0) - rack (2.2.3) - rack-test (1.1.0) - rack (>= 1.0, < 3) + racc (1.7.3) + rack (2.2.8) + rack-test (2.1.0) + rack (>= 1.3) rails (6.0.3.6) actioncable (= 6.0.3.6) actionmailbox (= 6.0.3.6) @@ -121,11 +135,13 @@ GEM bundler (>= 1.3.0) railties (= 6.0.3.6) sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.4.2) - loofah (~> 2.3) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) railties (6.0.3.6) actionpack (= 6.0.3.6) activesupport (= 6.0.3.6) @@ -134,13 +150,13 @@ GEM thor (>= 0.20.3, < 2.0) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.5.0) - rexml (3.2.5) + regexp_parser (2.9.0) + rexml (3.2.6) rspec (3.5.0) rspec-core (~> 3.5.0) rspec-expectations (~> 3.5.0) rspec-mocks (~> 3.5.0) - rspec-activemodel-mocks (1.1.0) + rspec-activemodel-mocks (1.2.0) activemodel (>= 3.0) activesupport (>= 3.0) rspec-mocks (>= 2.99, < 4.0) @@ -173,41 +189,43 @@ GEM rubocop-ast (>= 0.6.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.17.0) - parser (>= 3.1.1.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) rubocop-performance (1.10.2) rubocop (>= 0.90.0, < 2.0) rubocop-ast (>= 0.4.0) - ruby-progressbar (1.11.0) + ruby-progressbar (1.13.0) simplecov (0.16.1) docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - sprockets (4.0.2) + sprockets (4.2.0) concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.2) - 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) + sqlite3 (1.7.0) + mini_portile2 (~> 2.8.0) sync (0.5.0) term-ansicolor (1.7.1) tins (~> 1.0) test-unit (3.5.1) power_assert - thor (1.1.0) + thor (1.3.0) thread_safe (0.3.6) - tins (1.29.1) + timeout (0.4.1) + tins (1.32.1) sync - tzinfo (1.2.9) + tzinfo (1.2.11) thread_safe (~> 0.1) unicode-display_width (1.8.0) - websocket-driver (0.7.5) + websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) - zeitwerk (2.5.1) + zeitwerk (2.6.12) PLATFORMS ruby @@ -229,4 +247,4 @@ DEPENDENCIES test-unit BUNDLED WITH - 2.1.4 + 2.2.33 diff --git a/gemfiles/rails6.1.3.1.gemfile.lock b/gemfiles/rails6.1.3.1.gemfile.lock index 7ae9ae8..c4b5753 100644 --- a/gemfiles/rails6.1.3.1.gemfile.lock +++ b/gemfiles/rails6.1.3.1.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - comma (4.7.0) + comma (4.8.0) activesupport (>= 4.2.0) GEM @@ -72,7 +72,7 @@ GEM thor (>= 0.14.0) ast (2.4.2) builder (3.2.4) - concurrent-ruby (1.1.9) + concurrent-ruby (1.2.3) coveralls (0.8.23) json (>= 1.8, < 3) simplecov (~> 0.16.1) @@ -80,36 +80,50 @@ GEM thor (>= 0.19.4, < 2.0) tins (~> 1.6) crass (1.0.6) - diff-lcs (1.4.4) + date (3.3.4) + diff-lcs (1.5.0) docile (1.4.0) - erubi (1.10.0) - globalid (0.5.2) - activesupport (>= 5.0) - i18n (1.8.11) + erubi (1.12.0) + globalid (1.2.1) + activesupport (>= 6.1) + i18n (1.14.1) concurrent-ruby (~> 1.0) - json (2.6.1) - loofah (2.12.0) + json (2.7.1) + loofah (2.22.0) crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) + nokogiri (>= 1.12.0) + mail (2.8.1) mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp marcel (1.0.2) method_source (1.0.0) mini_mime (1.0.3) - mini_portile2 (2.6.1) + mini_portile2 (2.8.5) minitest (5.14.4) - nio4r (2.5.8) - nokogiri (1.12.5) - mini_portile2 (~> 2.6.1) + net-imap (0.4.9.1) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.4.0.1) + net-protocol + nio4r (2.7.0) + nokogiri (1.16.0) + mini_portile2 (~> 2.8.2) racc (~> 1.4) - parallel (1.22.1) - parser (3.1.2.0) + parallel (1.24.0) + parser (3.3.0.4) ast (~> 2.4.1) + racc power_assert (2.0.1) - racc (1.6.0) - rack (2.2.3) - rack-test (1.1.0) - rack (>= 1.0, < 3) + racc (1.7.3) + rack (2.2.8) + rack-test (2.1.0) + rack (>= 1.3) rails (6.1.3.1) actioncable (= 6.1.3.1) actionmailbox (= 6.1.3.1) @@ -125,11 +139,13 @@ GEM bundler (>= 1.15.0) railties (= 6.1.3.1) sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.4.2) - loofah (~> 2.3) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) railties (6.1.3.1) actionpack (= 6.1.3.1) activesupport (= 6.1.3.1) @@ -138,13 +154,13 @@ GEM thor (~> 1.0) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.5.0) - rexml (3.2.5) + regexp_parser (2.9.0) + rexml (3.2.6) rspec (3.5.0) rspec-core (~> 3.5.0) rspec-expectations (~> 3.5.0) rspec-mocks (~> 3.5.0) - rspec-activemodel-mocks (1.1.0) + rspec-activemodel-mocks (1.2.0) activemodel (>= 3.0) activesupport (>= 3.0) rspec-mocks (>= 2.99, < 4.0) @@ -177,40 +193,42 @@ GEM rubocop-ast (>= 0.6.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.17.0) - parser (>= 3.1.1.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) rubocop-performance (1.10.2) rubocop (>= 0.90.0, < 2.0) rubocop-ast (>= 0.4.0) - ruby-progressbar (1.11.0) + ruby-progressbar (1.13.0) simplecov (0.16.1) docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - sprockets (4.0.2) + sprockets (4.2.0) concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.2) - 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) + sqlite3 (1.7.0) + mini_portile2 (~> 2.8.0) sync (0.5.0) term-ansicolor (1.7.1) tins (~> 1.0) test-unit (3.5.1) power_assert - thor (1.1.0) - tins (1.29.1) + thor (1.3.0) + timeout (0.4.1) + tins (1.32.1) sync - tzinfo (2.0.4) + tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (1.8.0) - websocket-driver (0.7.5) + websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) - zeitwerk (2.5.1) + zeitwerk (2.6.12) PLATFORMS ruby @@ -232,4 +250,4 @@ DEPENDENCIES test-unit BUNDLED WITH - 2.1.4 + 2.2.33 diff --git a/gemfiles/rails7.0.0.gemfile b/gemfiles/rails7.0.8.gemfile similarity index 92% rename from gemfiles/rails7.0.0.gemfile rename to gemfiles/rails7.0.8.gemfile index 88749eb..43d74fb 100644 --- a/gemfiles/rails7.0.0.gemfile +++ b/gemfiles/rails7.0.8.gemfile @@ -6,7 +6,7 @@ gem "coveralls", :require => false gem "rubocop", "~> 1.0.0", :require => false gem "rubocop-performance", :require => false gem "sqlite3" -gem "rails", "7.0.0" +gem "rails", "7.0.8" gem "rspec-rails" gemspec :path => "../" diff --git a/gemfiles/rails7.0.0.gemfile.lock b/gemfiles/rails7.0.8.gemfile.lock similarity index 52% rename from gemfiles/rails7.0.0.gemfile.lock rename to gemfiles/rails7.0.8.gemfile.lock index 6a44346..ca12536 100644 --- a/gemfiles/rails7.0.0.gemfile.lock +++ b/gemfiles/rails7.0.8.gemfile.lock @@ -1,67 +1,73 @@ PATH remote: .. specs: - comma (4.7.0) + comma (4.8.0) activesupport (>= 4.2.0) GEM remote: https://rubygems.org/ specs: - actioncable (7.0.0) - actionpack (= 7.0.0) - activesupport (= 7.0.0) + actioncable (7.0.8) + actionpack (= 7.0.8) + activesupport (= 7.0.8) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (7.0.0) - actionpack (= 7.0.0) - activejob (= 7.0.0) - activerecord (= 7.0.0) - activestorage (= 7.0.0) - activesupport (= 7.0.0) + actionmailbox (7.0.8) + actionpack (= 7.0.8) + activejob (= 7.0.8) + activerecord (= 7.0.8) + activestorage (= 7.0.8) + activesupport (= 7.0.8) mail (>= 2.7.1) - actionmailer (7.0.0) - actionpack (= 7.0.0) - actionview (= 7.0.0) - activejob (= 7.0.0) - activesupport (= 7.0.0) + net-imap + net-pop + net-smtp + actionmailer (7.0.8) + actionpack (= 7.0.8) + actionview (= 7.0.8) + activejob (= 7.0.8) + activesupport (= 7.0.8) mail (~> 2.5, >= 2.5.4) + net-imap + net-pop + net-smtp rails-dom-testing (~> 2.0) - actionpack (7.0.0) - actionview (= 7.0.0) - activesupport (= 7.0.0) - rack (~> 2.0, >= 2.2.0) + actionpack (7.0.8) + actionview (= 7.0.8) + activesupport (= 7.0.8) + rack (~> 2.0, >= 2.2.4) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (7.0.0) - actionpack (= 7.0.0) - activerecord (= 7.0.0) - activestorage (= 7.0.0) - activesupport (= 7.0.0) + actiontext (7.0.8) + actionpack (= 7.0.8) + activerecord (= 7.0.8) + activestorage (= 7.0.8) + activesupport (= 7.0.8) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.0.0) - activesupport (= 7.0.0) + actionview (7.0.8) + activesupport (= 7.0.8) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (7.0.0) - activesupport (= 7.0.0) + activejob (7.0.8) + activesupport (= 7.0.8) globalid (>= 0.3.6) - activemodel (7.0.0) - activesupport (= 7.0.0) - activerecord (7.0.0) - activemodel (= 7.0.0) - activesupport (= 7.0.0) - activestorage (7.0.0) - actionpack (= 7.0.0) - activejob (= 7.0.0) - activerecord (= 7.0.0) - activesupport (= 7.0.0) + activemodel (7.0.8) + activesupport (= 7.0.8) + activerecord (7.0.8) + activemodel (= 7.0.8) + activesupport (= 7.0.8) + activestorage (7.0.8) + actionpack (= 7.0.8) + activejob (= 7.0.8) + activerecord (= 7.0.8) + activesupport (= 7.0.8) marcel (~> 1.0) mini_mime (>= 1.1.0) - activesupport (7.0.0) + activesupport (7.0.8) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) minitest (>= 5.1) @@ -72,7 +78,7 @@ GEM thor (>= 0.14.0) ast (2.4.2) builder (3.2.4) - concurrent-ruby (1.1.9) + concurrent-ruby (1.2.3) coveralls (0.8.23) json (>= 1.8, < 3) simplecov (~> 0.16.1) @@ -80,70 +86,86 @@ GEM thor (>= 0.19.4, < 2.0) tins (~> 1.6) crass (1.0.6) - diff-lcs (1.4.4) + date (3.3.4) + diff-lcs (1.5.0) docile (1.4.0) - erubi (1.10.0) - globalid (1.0.0) - activesupport (>= 5.0) - i18n (1.8.11) + erubi (1.12.0) + globalid (1.2.1) + activesupport (>= 6.1) + i18n (1.14.1) concurrent-ruby (~> 1.0) - json (2.6.1) - loofah (2.13.0) + json (2.7.1) + loofah (2.22.0) crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) + nokogiri (>= 1.12.0) + mail (2.8.1) mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp marcel (1.0.2) method_source (1.0.0) - mini_mime (1.1.2) - mini_portile2 (2.6.1) + mini_mime (1.1.5) + mini_portile2 (2.8.5) minitest (5.14.4) - nio4r (2.5.8) - nokogiri (1.12.5) - mini_portile2 (~> 2.6.1) + net-imap (0.4.9.1) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.4.0.1) + net-protocol + nio4r (2.7.0) + nokogiri (1.16.0) + mini_portile2 (~> 2.8.2) racc (~> 1.4) - parallel (1.22.1) - parser (3.1.2.0) + parallel (1.24.0) + parser (3.3.0.4) ast (~> 2.4.1) - racc (1.6.0) - rack (2.2.3) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (7.0.0) - actioncable (= 7.0.0) - actionmailbox (= 7.0.0) - actionmailer (= 7.0.0) - actionpack (= 7.0.0) - actiontext (= 7.0.0) - actionview (= 7.0.0) - activejob (= 7.0.0) - activemodel (= 7.0.0) - activerecord (= 7.0.0) - activestorage (= 7.0.0) - activesupport (= 7.0.0) + racc + racc (1.7.3) + rack (2.2.8) + rack-test (2.1.0) + rack (>= 1.3) + rails (7.0.8) + actioncable (= 7.0.8) + actionmailbox (= 7.0.8) + actionmailer (= 7.0.8) + actionpack (= 7.0.8) + actiontext (= 7.0.8) + actionview (= 7.0.8) + activejob (= 7.0.8) + activemodel (= 7.0.8) + activerecord (= 7.0.8) + activestorage (= 7.0.8) + activesupport (= 7.0.8) bundler (>= 1.15.0) - railties (= 7.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + railties (= 7.0.8) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.4.2) - loofah (~> 2.3) - railties (7.0.0) - actionpack (= 7.0.0) - activesupport (= 7.0.0) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (7.0.8) + actionpack (= 7.0.8) + activesupport (= 7.0.8) method_source rake (>= 12.2) thor (~> 1.0) zeitwerk (~> 2.5) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.5.0) - rexml (3.2.5) + regexp_parser (2.9.0) + rexml (3.2.6) rspec (3.5.0) rspec-core (~> 3.5.0) rspec-expectations (~> 3.5.0) rspec-mocks (~> 3.5.0) - rspec-activemodel-mocks (1.1.0) + rspec-activemodel-mocks (1.2.0) activemodel (>= 3.0) activesupport (>= 3.0) rspec-mocks (>= 2.99, < 4.0) @@ -176,31 +198,33 @@ GEM rubocop-ast (>= 0.6.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.19.1) - parser (>= 3.1.1.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) rubocop-performance (1.10.2) rubocop (>= 0.90.0, < 2.0) rubocop-ast (>= 0.4.0) - ruby-progressbar (1.11.0) + ruby-progressbar (1.13.0) simplecov (0.16.1) docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - sqlite3 (1.4.2) + sqlite3 (1.7.0) + mini_portile2 (~> 2.8.0) sync (0.5.0) term-ansicolor (1.7.1) tins (~> 1.0) - thor (1.1.0) - tins (1.29.1) + thor (1.3.0) + timeout (0.4.1) + tins (1.32.1) sync - tzinfo (2.0.4) + tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (1.8.0) - websocket-driver (0.7.5) + websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) - zeitwerk (2.5.1) + zeitwerk (2.6.12) PLATFORMS ruby @@ -210,7 +234,7 @@ DEPENDENCIES comma! coveralls minitest (= 5.14.4) - rails (= 7.0.0) + rails (= 7.0.8) rake (~> 13.0.1) rspec (~> 3.5.0) rspec-activemodel-mocks @@ -221,4 +245,4 @@ DEPENDENCIES sqlite3 BUNDLED WITH - 2.1.4 + 2.2.33 diff --git a/gemfiles/rails5.2.5.gemfile b/gemfiles/rails7.1.3.gemfile similarity index 73% rename from gemfiles/rails5.2.5.gemfile rename to gemfiles/rails7.1.3.gemfile index 8ef32ee..e1b9fe2 100644 --- a/gemfiles/rails5.2.5.gemfile +++ b/gemfiles/rails7.1.3.gemfile @@ -5,10 +5,8 @@ source "https://rubygems.org" gem "coveralls", :require => false gem "rubocop", "~> 1.0.0", :require => false gem "rubocop-performance", :require => false -gem "sqlite3", "~> 1.3.11" -gem "rails", "5.2.5" +gem "sqlite3" +gem "rails", "7.1.3" gem "rspec-rails" -gem "sprockets", "< 4" -gem "test-unit" gemspec :path => "../" diff --git a/gemfiles/rails7.1.3.gemfile.lock b/gemfiles/rails7.1.3.gemfile.lock new file mode 100644 index 0000000..8e3ddd1 --- /dev/null +++ b/gemfiles/rails7.1.3.gemfile.lock @@ -0,0 +1,281 @@ +PATH + remote: .. + specs: + comma (4.8.0) + activesupport (>= 4.2.0) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (7.1.3) + actionpack (= 7.1.3) + activesupport (= 7.1.3) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + zeitwerk (~> 2.6) + actionmailbox (7.1.3) + actionpack (= 7.1.3) + activejob (= 7.1.3) + activerecord (= 7.1.3) + activestorage (= 7.1.3) + activesupport (= 7.1.3) + mail (>= 2.7.1) + net-imap + net-pop + net-smtp + actionmailer (7.1.3) + actionpack (= 7.1.3) + actionview (= 7.1.3) + activejob (= 7.1.3) + activesupport (= 7.1.3) + mail (~> 2.5, >= 2.5.4) + net-imap + net-pop + net-smtp + rails-dom-testing (~> 2.2) + actionpack (7.1.3) + actionview (= 7.1.3) + activesupport (= 7.1.3) + nokogiri (>= 1.8.5) + racc + rack (>= 2.2.4) + rack-session (>= 1.0.1) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + actiontext (7.1.3) + actionpack (= 7.1.3) + activerecord (= 7.1.3) + activestorage (= 7.1.3) + activesupport (= 7.1.3) + globalid (>= 0.6.0) + nokogiri (>= 1.8.5) + actionview (7.1.3) + activesupport (= 7.1.3) + builder (~> 3.1) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activejob (7.1.3) + activesupport (= 7.1.3) + globalid (>= 0.3.6) + activemodel (7.1.3) + activesupport (= 7.1.3) + activerecord (7.1.3) + activemodel (= 7.1.3) + activesupport (= 7.1.3) + timeout (>= 0.4.0) + activestorage (7.1.3) + actionpack (= 7.1.3) + activejob (= 7.1.3) + activerecord (= 7.1.3) + activesupport (= 7.1.3) + marcel (~> 1.0) + activesupport (7.1.3) + base64 + bigdecimal + concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb + i18n (>= 1.6, < 2) + minitest (>= 5.1) + mutex_m + tzinfo (~> 2.0) + appraisal (1.0.3) + bundler + rake + thor (>= 0.14.0) + ast (2.4.2) + base64 (0.2.0) + bigdecimal (3.1.6) + builder (3.2.4) + concurrent-ruby (1.2.3) + connection_pool (2.4.1) + coveralls (0.8.23) + json (>= 1.8, < 3) + simplecov (~> 0.16.1) + term-ansicolor (~> 1.3) + thor (>= 0.19.4, < 2.0) + tins (~> 1.6) + crass (1.0.6) + date (3.3.4) + diff-lcs (1.5.0) + docile (1.4.0) + drb (2.2.0) + ruby2_keywords + erubi (1.12.0) + globalid (1.2.1) + activesupport (>= 6.1) + i18n (1.14.1) + concurrent-ruby (~> 1.0) + io-console (0.7.2) + irb (1.11.1) + rdoc + reline (>= 0.4.2) + json (2.7.1) + loofah (2.22.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mail (2.8.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.0.2) + mini_mime (1.1.5) + mini_portile2 (2.8.5) + minitest (5.14.4) + mutex_m (0.2.0) + net-imap (0.4.9.1) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.4.0.1) + net-protocol + nio4r (2.7.0) + nokogiri (1.16.0) + mini_portile2 (~> 2.8.2) + racc (~> 1.4) + parallel (1.24.0) + parser (3.3.0.4) + ast (~> 2.4.1) + racc + psych (5.1.2) + stringio + racc (1.7.3) + rack (3.0.8) + rack-session (2.0.0) + rack (>= 3.0.0) + rack-test (2.1.0) + rack (>= 1.3) + rackup (2.1.0) + rack (>= 3) + webrick (~> 1.8) + rails (7.1.3) + actioncable (= 7.1.3) + actionmailbox (= 7.1.3) + actionmailer (= 7.1.3) + actionpack (= 7.1.3) + actiontext (= 7.1.3) + actionview (= 7.1.3) + activejob (= 7.1.3) + activemodel (= 7.1.3) + activerecord (= 7.1.3) + activestorage (= 7.1.3) + activesupport (= 7.1.3) + bundler (>= 1.15.0) + railties (= 7.1.3) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (7.1.3) + actionpack (= 7.1.3) + activesupport (= 7.1.3) + irb + rackup (>= 1.0.0) + rake (>= 12.2) + thor (~> 1.0, >= 1.2.2) + zeitwerk (~> 2.6) + rainbow (3.1.1) + rake (13.0.6) + rdoc (6.6.2) + psych (>= 4.0.0) + regexp_parser (2.9.0) + reline (0.4.2) + io-console (~> 0.5) + rexml (3.2.6) + rspec (3.5.0) + rspec-core (~> 3.5.0) + rspec-expectations (~> 3.5.0) + rspec-mocks (~> 3.5.0) + rspec-activemodel-mocks (1.2.0) + activemodel (>= 3.0) + activesupport (>= 3.0) + rspec-mocks (>= 2.99, < 4.0) + rspec-core (3.5.4) + rspec-support (~> 3.5.0) + rspec-expectations (3.5.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.5.0) + rspec-its (1.3.0) + rspec-core (>= 3.0.0) + rspec-expectations (>= 3.0.0) + rspec-mocks (3.5.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.5.0) + rspec-rails (3.5.2) + actionpack (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 3.5.0) + rspec-expectations (~> 3.5.0) + rspec-mocks (~> 3.5.0) + rspec-support (~> 3.5.0) + rspec-support (3.5.0) + rubocop (1.0.0) + parallel (~> 1.10) + parser (>= 2.7.1.5) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8) + rexml + rubocop-ast (>= 0.6.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 1.4.0, < 2.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) + rubocop-performance (1.10.2) + rubocop (>= 0.90.0, < 2.0) + rubocop-ast (>= 0.4.0) + ruby-progressbar (1.13.0) + ruby2_keywords (0.0.5) + simplecov (0.16.1) + docile (~> 1.1) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) + sqlite3 (1.7.0) + mini_portile2 (~> 2.8.0) + stringio (3.1.0) + sync (0.5.0) + term-ansicolor (1.7.1) + tins (~> 1.0) + thor (1.3.0) + timeout (0.4.1) + tins (1.32.1) + sync + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + unicode-display_width (1.8.0) + webrick (1.8.1) + websocket-driver (0.7.6) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + zeitwerk (2.6.12) + +PLATFORMS + ruby + +DEPENDENCIES + appraisal (~> 1.0.0) + comma! + coveralls + minitest (= 5.14.4) + rails (= 7.1.3) + rake (~> 13.0.1) + rspec (~> 3.5.0) + rspec-activemodel-mocks + rspec-its + rspec-rails + rubocop (~> 1.0.0) + rubocop-performance + sqlite3 + +BUNDLED WITH + 2.2.33 diff --git a/lib/comma/version.rb b/lib/comma/version.rb index 0454da8..33d4026 100644 --- a/lib/comma/version.rb +++ b/lib/comma/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Comma - VERSION = '4.7.0' + VERSION = '4.8.0' end diff --git a/spec/comma/comma_spec.rb b/spec/comma/comma_spec.rb index 2a5d90d..c323c35 100644 --- a/spec/comma/comma_spec.rb +++ b/spec/comma/comma_spec.rb @@ -40,7 +40,7 @@ end it 'should extend Array to add a #to_comma method which will return CSV content for objects within the array' do - expected = "Title,Description,Issuer,ISBN-10,ISBN-13\nSmalltalk-80,Language and Implementation,ISBN,123123123,321321321\n" # rubocop:disable Metrics/LineLength + expected = "Title,Description,Issuer,ISBN-10,ISBN-13\nSmalltalk-80,Language and Implementation,ISBN,123123123,321321321\n" # rubocop:disable Layout/LineLength expect(@books.to_comma).to eq(expected) end @@ -57,25 +57,25 @@ it 'should write to the file' do @books.to_comma(filename: 'comma.csv') - expected = "Title,Description,Issuer,ISBN-10,ISBN-13\nSmalltalk-80,Language and Implementation,ISBN,123123123,321321321\n" # rubocop:disable Metrics/LineLength + expected = "Title,Description,Issuer,ISBN-10,ISBN-13\nSmalltalk-80,Language and Implementation,ISBN,123123123,321321321\n" # rubocop:disable Layout/LineLength expect(File.read('comma.csv')).to eq(expected) end it 'should accept FasterCSV options' do @books.to_comma(filename: 'comma.csv', col_sep: ';', force_quotes: true) - expected = "\"Title\";\"Description\";\"Issuer\";\"ISBN-10\";\"ISBN-13\"\n\"Smalltalk-80\";\"Language and Implementation\";\"ISBN\";\"123123123\";\"321321321\"\n" # rubocop:disable Metrics/LineLength + expected = "\"Title\";\"Description\";\"Issuer\";\"ISBN-10\";\"ISBN-13\"\n\"Smalltalk-80\";\"Language and Implementation\";\"ISBN\";\"123123123\";\"321321321\"\n" # rubocop:disable Layout/LineLength expect(File.read('comma.csv')).to eq(expected) end end describe 'with FasterCSV options' do it 'should not change when options are empty' do - expected = "Title,Description,Issuer,ISBN-10,ISBN-13\nSmalltalk-80,Language and Implementation,ISBN,123123123,321321321\n" # rubocop:disable Metrics/LineLength + expected = "Title,Description,Issuer,ISBN-10,ISBN-13\nSmalltalk-80,Language and Implementation,ISBN,123123123,321321321\n" # rubocop:disable Layout/LineLength expect(@books.to_comma({})).to eq(expected) end it 'should accept the options in #to_comma and generate the appropriate CSV' do - expected = "\"Title\";\"Description\";\"Issuer\";\"ISBN-10\";\"ISBN-13\"\n\"Smalltalk-80\";\"Language and Implementation\";\"ISBN\";\"123123123\";\"321321321\"\n" # rubocop:disable Metrics/LineLength + expected = "\"Title\";\"Description\";\"Issuer\";\"ISBN-10\";\"ISBN-13\"\n\"Smalltalk-80\";\"Language and Implementation\";\"ISBN\";\"123123123\";\"321321321\"\n" # rubocop:disable Layout/LineLength expect(@books.to_comma(col_sep: ';', force_quotes: true)).to eq(expected) end @@ -177,7 +177,7 @@ def initialize(content) end end - describe 'with block' do # rubocop:disable BlockLength + describe 'with block' do # rubocop:disable Metrics/BlockLength before do class Foo attr_accessor :content, :created_at, :updated_at diff --git a/spec/comma/rails/active_record_spec.rb b/spec/comma/rails/active_record_spec.rb index fffd48c..c6dc967 100644 --- a/spec/comma/rails/active_record_spec.rb +++ b/spec/comma/rails/active_record_spec.rb @@ -79,7 +79,7 @@ def name end describe '#to_comma on scopes' do - it 'should extend ActiveRecord::NamedScope::Scope to add a #to_comma method which will return CSV content for objects within the scope' do # rubocop:disable Metrics/LineLength + it 'should extend ActiveRecord::NamedScope::Scope to add a #to_comma method which will return CSV content for objects within the scope' do # rubocop:disable Layout/LineLength expect(Person.teenagers.to_comma).to eq "Name,Age\nJunior,18\n" end diff --git a/spec/comma/rails/mongoid_spec.rb b/spec/comma/rails/mongoid_spec.rb index d321c50..147cc21 100644 --- a/spec/comma/rails/mongoid_spec.rb +++ b/spec/comma/rails/mongoid_spec.rb @@ -29,7 +29,7 @@ class Person @person.save end - it 'should extend ActiveRecord::NamedScope::Scope to add a #to_comma method which will return CSV content for objects within the scope' do # rubocop:disable Metrics/LineLength + it 'should extend ActiveRecord::NamedScope::Scope to add a #to_comma method which will return CSV content for objects within the scope' do # rubocop:disable Layout/LineLength Person.teenagers.to_comma.should == "Name,Age\nJunior,18\n" end