Skip to content

Commit 1e92325

Browse files
author
Cory Buecker
authored
Publish version 1.0.0 (#19)
- Update all supported Ruby versions - Update all dependencies
1 parent 63f93e5 commit 1e92325

File tree

7 files changed

+50
-51
lines changed

7 files changed

+50
-51
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,17 @@ jobs:
1313
strategy:
1414
matrix:
1515
ruby:
16-
- 2.5.8
17-
- 2.6.6
18-
- 2.7.1
16+
- 2.6.9
17+
- 2.7.5
18+
- 3.0.3
19+
- 3.1.0
1920
steps:
20-
- name: Setup Ruby
21-
uses: eregon/use-ruby-action@v1
21+
- uses: actions/checkout@v2
22+
23+
- uses: ruby/setup-ruby@v1
2224
with:
2325
ruby-version: ${{ matrix.ruby }}
2426

25-
- name: Checkout
26-
uses: actions/checkout@v2
27-
28-
- name: Install Bundler
29-
run: gem install bundler --version 2.1.2 --no-document
30-
31-
- name: Install gems
32-
run: bundle
33-
34-
- name: Run tests
35-
run: rake
27+
- run: gem install bundler --version 2.3.4 --no-document
28+
- run: bundle
29+
- run: rake

Gemfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ source "https://rubygems.org"
22

33
gemspec
44

5-
gem "rake", "~> 12.0"
6-
gem "minitest", "~> 5.0"
7-
gem "minitest-reporters", "~> 1.4.2"
5+
gem "rake", "~> 13.0"
6+
gem "minitest", "~> 5.15"
7+
gem "minitest-reporters", "~> 1.4"
88
gem "rake-compiler", "~> 1.1"
9-
gem "simplecov", "~> 0.17", require: false
10-
gem "simplecov-lcov", "~> 0.7", require: false
9+
gem "simplecov", "~> 0.21", require: false
10+
gem "simplecov-lcov", "~> 0.8", require: false

Gemfile.lock

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
PATH
22
remote: .
33
specs:
4-
ruby_native_statistics (0.10.0)
4+
ruby_native_statistics (1.0.0)
55

66
GEM
77
remote: https://rubygems.org/
88
specs:
99
ansi (1.5.0)
1010
builder (3.2.4)
11-
docile (1.3.2)
12-
json (2.3.0)
13-
minitest (5.14.0)
14-
minitest-reporters (1.4.2)
11+
docile (1.4.0)
12+
minitest (5.15.0)
13+
minitest-reporters (1.4.3)
1514
ansi
1615
builder
1716
minitest (>= 5.0)
1817
ruby-progressbar
19-
rake (12.3.3)
20-
rake-compiler (1.1.0)
18+
rake (13.0.6)
19+
rake-compiler (1.1.7)
2120
rake
22-
ruby-progressbar (1.10.1)
23-
simplecov (0.17.1)
21+
ruby-progressbar (1.11.0)
22+
simplecov (0.21.2)
2423
docile (~> 1.1)
25-
json (>= 1.8, < 3)
26-
simplecov-html (~> 0.10.0)
27-
simplecov-html (0.10.2)
28-
simplecov-lcov (0.7.0)
24+
simplecov-html (~> 0.11)
25+
simplecov_json_formatter (~> 0.1)
26+
simplecov-html (0.12.3)
27+
simplecov-lcov (0.8.0)
28+
simplecov_json_formatter (0.1.3)
2929

3030
PLATFORMS
3131
ruby
3232

3333
DEPENDENCIES
34-
minitest (~> 5.0)
35-
minitest-reporters (~> 1.4.2)
36-
rake (~> 12.0)
34+
minitest (~> 5.15)
35+
minitest-reporters (~> 1.4)
36+
rake (~> 13.0)
3737
rake-compiler (~> 1.1)
3838
ruby_native_statistics!
39-
simplecov (~> 0.17)
40-
simplecov-lcov (~> 0.7)
39+
simplecov (~> 0.21)
40+
simplecov-lcov (~> 0.8)
4141

4242
BUNDLED WITH
43-
2.1.2
43+
2.3.3

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ Check the Github Actions build to see the currently supported versions of Ruby.
1616

1717
It is generally more performant than calculating these values with pure Ruby. For a comparison, run the benchmarks with `rake benchmark`.
1818

19-
| Test (Ruby 2.7.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
19+
| Test (Ruby 3.1.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
2020
| ------------------ | -------- | -------- | -------- | -------- | -------- |
21-
| bench_native_stdev | 0.000105 | 0.000102 | 0.000101 | 0.000099 | 0.000132 |
22-
| bench_ruby_stdev | 0.001661 | 0.001695 | 0.001733 | 0.001664 | 0.002006 |
21+
| bench_native_stdev | 0.000074 | 0.000070 | 0.000071 | 0.000070 | 0.000068 |
22+
| bench_ruby_stdev | 0.000945 | 0.000942 | 0.000944 | 0.000941 | 0.000969 |
2323

24-
| Test (Ruby 2.7.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
24+
| Test (Ruby 3.1.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
2525
| ------------------- | -------- | -------- | -------- | -------- | -------- |
26-
| bench_native_median | 0.001019 | 0.000955 | 0.001023 | 0.000933 | 0.000986 |
27-
| bench_ruby_median | 0.001206 | 0.001166 | 0.001160 | 0.001160 | 0.001162 |
26+
| bench_native_median | 0.000813 | 0.000773 | 0.000774 | 0.000776 | 0.000773 |
27+
| bench_ruby_median | 0.000816 | 0.000797 | 0.000832 | 0.000797 | 0.000799 |
2828

29-
| Test (Ruby 2.7.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
29+
| Test (Ruby 3.1.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
3030
| ----------------- | -------- | -------- | -------- | -------- | -------- |
31-
| bench_native_mean | 0.000051 | 0.000045 | 0.000050 | 0.000050 | 0.000049 |
32-
| bench_ruby_mean | 0.000457 | 0.000462 | 0.000465 | 0.000486 | 0.000475 |
31+
| bench_native_mean | 0.000040 | 0.000038 | 0.000038 | 0.000037 | 0.000037 |
32+
| bench_ruby_mean | 0.000347 | 0.000350 | 0.000358 | 0.000349 | 0.000347 |
3333

3434
## Found a bug? Need a function?
3535

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Version 1.0.0
2+
3+
- Update all supported Ruby versions
4+
- Update all dependencies
5+
16
# Version 0.9.0
27

38
- Add median function
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module RubyNativeStatistics
2-
VERSION = "0.10.1"
2+
VERSION = "1.0.0"
33
end

ruby_native_statistics.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
1010
spec.summary = "High performance, native (C) implementations of various statistical functions."
1111
spec.homepage = "https://github.com/corybuecker/ruby-native-statistics"
1212

13-
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.9")
13+
spec.required_ruby_version = Gem::Requirement.new(">= 2.6")
1414

1515
spec.metadata["allowed_push_host"] = "https://rubygems.org"
1616

0 commit comments

Comments
 (0)