Skip to content

Commit

Permalink
update Ruby versions (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
corybuecker authored Jan 28, 2024
1 parent 7527543 commit d6010d9
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 36 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 0 additions & 11 deletions .vscode/settings.json

This file was deleted.

19 changes: 10 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ PATH
remote: .
specs:
ruby_native_statistics (1.0.2)
rake-compiler (~> 1.1)
rake-compiler (~> 1.2)

GEM
remote: https://rubygems.org/
specs:
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)
Expand All @@ -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
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_native_statistics/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RubyNativeStatistics
VERSION = "1.0.2"
VERSION = "1.0.3"
end
6 changes: 3 additions & 3 deletions ruby_native_statistics.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"
Expand Down

0 comments on commit d6010d9

Please sign in to comment.