From d6010d917d4950772bcb5c9d7444d4c122a9fa0c Mon Sep 17 00:00:00 2001 From: Cory Buecker Date: Sun, 28 Jan 2024 08:13:54 -0600 Subject: [PATCH] update Ruby versions (#26) --- .github/workflows/main.yml | 6 +++--- .vscode/settings.json | 11 ----------- Gemfile.lock | 19 ++++++++++--------- README.md | 18 +++++++++--------- changelog.md | 5 +++++ lib/ruby_native_statistics/version.rb | 2 +- ruby_native_statistics.gemspec | 6 +++--- 7 files changed, 31 insertions(+), 36 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7adc581..2207066 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,15 +13,15 @@ jobs: strategy: matrix: ruby: - - 2.7.8 - 3.0.6 - 3.1.4 - - 3.2.2 + - 3.2.3 + - 3.3.0 steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - - run: gem install bundler --version 2.4.7 --no-document + - run: gem install bundler --version 2.5.5 --no-document - run: bundle - run: rake diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 7ba932b..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "editor.formatOnSave": true, - "editor.tabSize": 2, - "search.useGlobalIgnoreFiles": true, - "editor.wordWrap": "on", - "editor.renderWhitespace": "all", - "files.associations": { - "conversions.h": "c", - "algorithm": "c" - } -} diff --git a/Gemfile.lock b/Gemfile.lock index 7e7bcdf..2fe9dc7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,7 +2,7 @@ PATH remote: . specs: ruby_native_statistics (1.0.2) - rake-compiler (~> 1.1) + rake-compiler (~> 1.2) GEM remote: https://rubygems.org/ @@ -10,16 +10,16 @@ GEM ansi (1.5.0) builder (3.2.4) docile (1.4.0) - minitest (5.17.0) - minitest-reporters (1.6.0) + minitest (5.21.2) + minitest-reporters (1.6.1) ansi builder minitest (>= 5.0) ruby-progressbar - rake (13.0.6) - rake-compiler (1.2.1) + rake (13.1.0) + rake-compiler (1.2.6) rake - ruby-progressbar (1.11.0) + ruby-progressbar (1.13.0) simplecov (0.22.0) docile (~> 1.1) simplecov-html (~> 0.11) @@ -29,14 +29,15 @@ GEM simplecov_json_formatter (0.1.4) PLATFORMS - arm64-darwin-22 + arm64-darwin-23 + ruby DEPENDENCIES - minitest (~> 5.15) + minitest (~> 5.21) minitest-reporters (~> 1.6) ruby_native_statistics! simplecov (~> 0.21) simplecov-lcov (~> 0.8) BUNDLED WITH - 2.4.12 + 2.5.5 diff --git a/README.md b/README.md index 6eea880..8deb038 100644 --- a/README.md +++ b/README.md @@ -16,20 +16,20 @@ Check the Github Actions build to see the currently supported versions of Ruby. It is generally more performant than calculating these values with pure Ruby. For a comparison, run the benchmarks with `rake benchmark`. -| Test (Ruby 3.1.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 | +| Test (Ruby 3.3.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 | | ------------------ | -------- | -------- | -------- | -------- | -------- | -| bench_native_stdev | 0.000074 | 0.000070 | 0.000071 | 0.000070 | 0.000068 | -| bench_ruby_stdev | 0.000945 | 0.000942 | 0.000944 | 0.000941 | 0.000969 | +| bench_native_stdev | 0.000069 | 0.000074 | 0.000064 | 0.000065 | 0.000065 | +| bench_ruby_stdev | 0.000947 | 0.000932 | 0.000927 | 0.000948 | 0.000909 | -| Test (Ruby 3.1.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 | +| Test (Ruby 3.3.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 | | ------------------- | -------- | -------- | -------- | -------- | -------- | -| bench_native_median | 0.000813 | 0.000773 | 0.000774 | 0.000776 | 0.000773 | -| bench_ruby_median | 0.000816 | 0.000797 | 0.000832 | 0.000797 | 0.000799 | +| bench_native_median | 0.000719 | 0.00067 | 0.000659 | 0.000638 | 0.000668 | +| bench_ruby_median | 0.000774 | 0.000743 | 0.000724 | 0.000697 | 0.000683 | -| Test (Ruby 3.1.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 | +| Test (Ruby 3.3.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 | | ----------------- | -------- | -------- | -------- | -------- | -------- | -| bench_native_mean | 0.000040 | 0.000038 | 0.000038 | 0.000037 | 0.000037 | -| bench_ruby_mean | 0.000347 | 0.000350 | 0.000358 | 0.000349 | 0.000347 | +| bench_native_mean | 0.000035 | 0.000035 | 0.000034 | 0.000032 | 0.000033 | +| bench_ruby_mean | 0.000291 | 0.000287 | 0.000291 | 0.000299 | 0.000281 | ## Found a bug? Need a function? diff --git a/changelog.md b/changelog.md index 24af4c7..110d417 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,8 @@ +# Version 1.0.3 + +- Update all supported Ruby versions +- Update all dependencies + # Version 1.0.2 - Better differentiate `gemspec` and `Gemfile` between runtime and development dependencies diff --git a/lib/ruby_native_statistics/version.rb b/lib/ruby_native_statistics/version.rb index e59d245..a4529dc 100644 --- a/lib/ruby_native_statistics/version.rb +++ b/lib/ruby_native_statistics/version.rb @@ -1,3 +1,3 @@ module RubyNativeStatistics - VERSION = "1.0.2" + VERSION = "1.0.3" end diff --git a/ruby_native_statistics.gemspec b/ruby_native_statistics.gemspec index 8a3fad7..eb30192 100644 --- a/ruby_native_statistics.gemspec +++ b/ruby_native_statistics.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |spec| spec.summary = "High performance, native (C) implementations of various statistical functions." spec.homepage = "https://github.com/corybuecker/ruby-native-statistics" - spec.required_ruby_version = ">= 2.7.8" + spec.required_ruby_version = ">= 3.0.3" spec.metadata["allowed_push_host"] = "https://rubygems.org" @@ -23,9 +23,9 @@ Gem::Specification.new do |spec| spec.extensions = %w[ext/ruby_native_statistics/extconf.rb] - spec.add_runtime_dependency "rake-compiler", "~> 1.1" + spec.add_runtime_dependency "rake-compiler", "~> 1.2" - spec.add_development_dependency "minitest", "~> 5.15" + spec.add_development_dependency "minitest", "~> 5.21" spec.add_development_dependency "minitest-reporters", "~> 1.6" spec.add_development_dependency "simplecov", "~> 0.21" spec.add_development_dependency "simplecov-lcov", "~> 0.8"