From 452d0c1613b4e2c0a4ed917e8f8cb482766de1d4 Mon Sep 17 00:00:00 2001 From: Eito Katagiri Date: Sat, 22 Aug 2026 12:46:28 +0900 Subject: [PATCH] release: version 5.0.0 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Gemfile.lock | 2 +- README.md | 6 +++--- comma.gemspec | 1 + gemfiles/active6.0.6.gemfile.lock | 2 +- gemfiles/active6.1.7.6.gemfile.lock | 2 +- gemfiles/active7.0.8.gemfile.lock | 2 +- gemfiles/active7.1.3.gemfile.lock | 2 +- gemfiles/rails6.0.6.gemfile.lock | 2 +- gemfiles/rails6.1.7.6.gemfile.lock | 2 +- gemfiles/rails7.0.8.gemfile.lock | 2 +- gemfiles/rails7.1.3.gemfile.lock | 2 +- lib/comma/version.rb | 2 +- spec/gemspec_spec.rb | 11 +++++++++++ 13 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 spec/gemspec_spec.rb diff --git a/Gemfile.lock b/Gemfile.lock index a6bdd4b..1097d8d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - comma (4.9.0) + comma (5.0.0) activesupport (>= 4.2.0) csv (>= 3.3) diff --git a/README.md b/README.md index 9a66c0f..c42e9f5 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ A library for generating comma-separated values (CSV) from Ruby objects, arrays, ### Prerequisites -You need Ruby 3.0 or later. +You need Ruby 3.1 or later. -For Rails / ActiveRecord integration, this repository is currently tested against ActiveRecord and Rails 6.0 through 7.1 on Ruby 3.0 through 3.4. +For Rails / ActiveRecord integration, this repository is currently tested against ActiveRecord and Rails 6.0 through 7.1 on Ruby 3.1 through 4.0. ### Installing @@ -19,7 +19,7 @@ Comma is distributed as a gem, best installed via Bundler. Include the gem in your Gemfile: ```ruby -gem 'comma', '~> 4.9.0' +gem 'comma', '~> 5.0.0' ``` Or, if you want to live life on the edge, you can get master from the main comma repository: diff --git a/comma.gemspec b/comma.gemspec index ee2ca80..d4975ff 100644 --- a/comma.gemspec +++ b/comma.gemspec @@ -15,6 +15,7 @@ Gem::Specification.new do |s| s.files = `git ls-files`.split("\n") s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") s.require_paths = ['lib'] + s.required_ruby_version = '>= 3.1' s.licenses = ['MIT'] diff --git a/gemfiles/active6.0.6.gemfile.lock b/gemfiles/active6.0.6.gemfile.lock index 568137a..278a25a 100644 --- a/gemfiles/active6.0.6.gemfile.lock +++ b/gemfiles/active6.0.6.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - comma (4.9.0) + comma (5.0.0) activesupport (>= 4.2.0) csv (>= 3.3) diff --git a/gemfiles/active6.1.7.6.gemfile.lock b/gemfiles/active6.1.7.6.gemfile.lock index 534c7cf..7f48aa3 100644 --- a/gemfiles/active6.1.7.6.gemfile.lock +++ b/gemfiles/active6.1.7.6.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - comma (4.9.0) + comma (5.0.0) activesupport (>= 4.2.0) csv (>= 3.3) diff --git a/gemfiles/active7.0.8.gemfile.lock b/gemfiles/active7.0.8.gemfile.lock index 72d27bb..02bf41e 100644 --- a/gemfiles/active7.0.8.gemfile.lock +++ b/gemfiles/active7.0.8.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - comma (4.9.0) + comma (5.0.0) activesupport (>= 4.2.0) csv (>= 3.3) diff --git a/gemfiles/active7.1.3.gemfile.lock b/gemfiles/active7.1.3.gemfile.lock index ee7406a..c0942fe 100644 --- a/gemfiles/active7.1.3.gemfile.lock +++ b/gemfiles/active7.1.3.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - comma (4.9.0) + comma (5.0.0) activesupport (>= 4.2.0) csv (>= 3.3) diff --git a/gemfiles/rails6.0.6.gemfile.lock b/gemfiles/rails6.0.6.gemfile.lock index 1898ef1..8ec4f0e 100644 --- a/gemfiles/rails6.0.6.gemfile.lock +++ b/gemfiles/rails6.0.6.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - comma (4.9.0) + comma (5.0.0) activesupport (>= 4.2.0) csv (>= 3.3) diff --git a/gemfiles/rails6.1.7.6.gemfile.lock b/gemfiles/rails6.1.7.6.gemfile.lock index e4d6a30..0ad0f6e 100644 --- a/gemfiles/rails6.1.7.6.gemfile.lock +++ b/gemfiles/rails6.1.7.6.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - comma (4.9.0) + comma (5.0.0) activesupport (>= 4.2.0) csv (>= 3.3) diff --git a/gemfiles/rails7.0.8.gemfile.lock b/gemfiles/rails7.0.8.gemfile.lock index a48561f..d18325b 100644 --- a/gemfiles/rails7.0.8.gemfile.lock +++ b/gemfiles/rails7.0.8.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - comma (4.9.0) + comma (5.0.0) activesupport (>= 4.2.0) csv (>= 3.3) diff --git a/gemfiles/rails7.1.3.gemfile.lock b/gemfiles/rails7.1.3.gemfile.lock index 2857778..bbdd5fd 100644 --- a/gemfiles/rails7.1.3.gemfile.lock +++ b/gemfiles/rails7.1.3.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - comma (4.9.0) + comma (5.0.0) activesupport (>= 4.2.0) csv (>= 3.3) diff --git a/lib/comma/version.rb b/lib/comma/version.rb index 8a715f9..cbed12f 100644 --- a/lib/comma/version.rb +++ b/lib/comma/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Comma - VERSION = '4.9.0' + VERSION = '5.0.0' end diff --git a/spec/gemspec_spec.rb b/spec/gemspec_spec.rb new file mode 100644 index 0000000..36be318 --- /dev/null +++ b/spec/gemspec_spec.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +require_relative 'spec_helper' + +RSpec.describe 'comma.gemspec' do + it 'requires Ruby 3.1 or later' do + specification = Gem::Specification.load(File.expand_path('../comma.gemspec', __dir__)) + + expect(specification.required_ruby_version.to_s).to eq('>= 3.1') + end +end