From 51cd3a1801e589f9049bffd7349d56bb6d32d05e Mon Sep 17 00:00:00 2001 From: Max VelDink Date: Thu, 18 Jan 2024 18:09:48 -0500 Subject: [PATCH] chore!: Drop Ruby 2.7 and 3.0, add Ruby 3.3 (#91) Signed-off-by: Max VelDink --- .github/workflows/main.yml | 3 +-- .standard.yml | 2 +- .tool-versions | 1 + Gemfile.lock | 1 + README.md | 5 ++--- lib/openfeature/sdk.rb | 4 ++-- openfeature-sdk.gemspec | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 .tool-versions diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index df9152a..2b23089 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,10 +17,9 @@ jobs: # - macos-latest # - windows-latest ruby: + - "3.3" - "3.2" - "3.1" - - "3.0" - - "2.7" env: BUNDLE_GEMFILE: Gemfile diff --git a/.standard.yml b/.standard.yml index 8d8cb3a..f33deff 100644 --- a/.standard.yml +++ b/.standard.yml @@ -1,5 +1,5 @@ parallel: true formatter: progress -ruby_version: 2.7 +ruby_version: 3.1 plugins: - standard-performance diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..3294aed --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +ruby 3.3.0 diff --git a/Gemfile.lock b/Gemfile.lock index 0e0c60f..e1cb228 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -81,6 +81,7 @@ GEM PLATFORMS arm64-darwin-21 arm64-darwin-22 + arm64-darwin-23 x64-mingw-ucrt x64-mingw32 x86_64-darwin-19 diff --git a/README.md b/README.md index d5eb438..161e86c 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,9 @@ We support multiple data types for flags (numbers, strings, booleans, objects) a | Ruby Version | OS | | ----------- | ----------- | -| Ruby 2.7.8 | Windows, MacOS, Linux | -| Ruby 3.0.6 | Windows, MacOS, Linux | | Ruby 3.1.4 | Windows, MacOS, Linux | -| Ruby 3.2.2 | Windows, MacOS, Linux | +| Ruby 3.2.3 | Windows, MacOS, Linux | +| Ruby 3.3.0 | Windows, MacOS, Linux | ## Installation diff --git a/lib/openfeature/sdk.rb b/lib/openfeature/sdk.rb index 2a08006..eca6c68 100644 --- a/lib/openfeature/sdk.rb +++ b/lib/openfeature/sdk.rb @@ -8,9 +8,9 @@ module OpenFeature # module SDK class << self - def method_missing(method_name, *args, **kwargs, &block) + def method_missing(method_name, ...) if API.instance.respond_to?(method_name) - API.instance.send(method_name, *args, **kwargs, &block) + API.instance.send(method_name, ...) else super end diff --git a/openfeature-sdk.gemspec b/openfeature-sdk.gemspec index 3e2c723..8c74b17 100644 --- a/openfeature-sdk.gemspec +++ b/openfeature-sdk.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |spec| spec.description = "Ruby SDK for an the specifications for the open standard of feature flag management" spec.homepage = "https://github.com/open-feature/openfeature-ruby" spec.license = "Apache-2.0'" - spec.required_ruby_version = ">= 2.7" + spec.required_ruby_version = ">= 3.1" spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://github.com/open-feature/openfeature-ruby"