From a269a52022896327bdb75d6729c7ac8a457f142a Mon Sep 17 00:00:00 2001 From: Matjaz Pirnovar Date: Thu, 9 Nov 2023 13:39:02 -0800 Subject: [PATCH] updated to ruby version (#341) --- .github/workflows/ruby.yml | 2 +- .rubocop.yml | 2 +- README.md | 2 +- optimizely-sdk.gemspec | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 1e22e74e..a3fa180a 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ '2.7.0', '3.0.0', '3.1.0' ] + ruby: [ '3.0.0', '3.1.0', '3.2.0' ] steps: - uses: actions/checkout@v3 - name: Set up Ruby ${{ matrix.ruby }} diff --git a/.rubocop.yml b/.rubocop.yml index ea105dd6..1bbc4a4a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,7 +1,7 @@ inherit_from: .rubocop_todo.yml AllCops: - TargetRubyVersion: 2.7 + TargetRubyVersion: 3.0 Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: no_space diff --git a/README.md b/README.md index a10ba8d9..cbeb71ae 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Refer to the [Ruby SDK's developer documentation](https://docs.developers.optimi ### Requirements -* Ruby 2.7+ +* Ruby 3.0+ ### Install the SDK diff --git a/optimizely-sdk.gemspec b/optimizely-sdk.gemspec index c1c5b881..a34450b1 100644 --- a/optimizely-sdk.gemspec +++ b/optimizely-sdk.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |spec| spec.version = Optimizely::VERSION spec.authors = ['Optimizely'] spec.email = ['developers@optimizely.com'] - spec.required_ruby_version = '>= 2.7' + spec.required_ruby_version = '>= 3.0' spec.summary = "Ruby SDK for Optimizely's testing framework" spec.description = 'A Ruby SDK for use with Optimizely Feature Experimentation, Optimizely Full Stack (legacy), and Optimizely Rollouts' @@ -24,6 +24,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rubocop' spec.add_development_dependency 'webmock' - spec.add_runtime_dependency 'json-schema', '~> 2.6' + spec.add_runtime_dependency 'json-schema', '>= 2.6' spec.add_runtime_dependency 'murmurhash3', '~> 0.1' end