diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 96efa0b..3293527 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -21,8 +21,9 @@ jobs: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: - ruby-version: ['3.1', '3.2', '3.3', head, jruby, jruby-head] + ruby-version: ['3.2', '3.3', '3.4', head, jruby, jruby-head] steps: - uses: actions/checkout@v4 @@ -30,7 +31,7 @@ jobs: # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, # change this to (see https://github.com/ruby/setup-ruby#versioning): # uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # 1.177.1 + uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # 1.268.0 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically diff --git a/recursive-open-struct.gemspec b/recursive-open-struct.gemspec index f51603b..1e851f2 100644 --- a/recursive-open-struct.gemspec +++ b/recursive-open-struct.gemspec @@ -1,10 +1,12 @@ # -*- encoding: utf-8 -*- - -require './lib/recursive_open_struct/version' +name = "recursive-open-struct" +version = File.foreach(File.join(__dir__, "lib", "recursive_open_struct", "version.rb")) do |line| + /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1 +end Gem::Specification.new do |s| - s.name = "recursive-open-struct" - s.version = RecursiveOpenStruct::VERSION + s.name = name + s.version = version s.authors = ["William (B.J.) Snow Orvis"] s.email = "aetherknight@gmail.com" s.date = Time.now.utc.strftime("%Y-%m-%d")