ruby_native_statistics 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02babe63738371325514e46cb004f2dcf0bbc5afe75be8a41b5b55b5e31778e9
4
- data.tar.gz: c12367930a9423a9020788d6bf007d1e1cfc6b76f5138138501ecbc80a2eed91
3
+ metadata.gz: e02c85ccefb4607536d9be8484cb2925360d14df3d13c0b8181b1109daec3148
4
+ data.tar.gz: 8aeb0ebb62119163f771f470ab1d0f512cd2b1ed812e1c629fba2075002c78ca
5
5
  SHA512:
6
- metadata.gz: b3aac20d5c1bd0905c391b697ff77bec23b75ee63785fe20361db59da1cae4a6f122b067d6ee6fce8f28e38ebaead9c9a3a7cbd3dd05844b8fb9672e97e041c3
7
- data.tar.gz: e9befa3ee31e586aa261681eddb562ff86399ba475e086eb424ba954521c34fede0fccd0cc9010b0c11c299347b49b9fdc241e6bf2fe54a4c16eef0764cf19f5
6
+ metadata.gz: d3b7bf0d8dfa816b30e3e5230efade5d7ec3c89b301c9d344c6a5d7287710b23c7239df82239350917faba1fa4979cd403b0cc3c1968511e158fd2f6746523d4
7
+ data.tar.gz: 969154e141ea33684e3080bb5189f349393f4ad11956d911e60c0b8cbd46476f3acf148ea81aa28917fa78a3281c6ff3f8d0c614960df696826095fe5759a349
data/Gemfile CHANGED
@@ -1,10 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gemspec
4
-
5
- gem "rake", "~> 13.0"
6
- gem "minitest", "~> 5.15"
7
- gem "minitest-reporters", "~> 1.6"
8
- gem "rake-compiler", "~> 1.1"
9
- gem "simplecov", "~> 0.21", require: false
10
- gem "simplecov-lcov", "~> 0.8", require: false
3
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_native_statistics (1.0.1)
4
+ ruby_native_statistics (1.0.2)
5
+ rake-compiler (~> 1.2)
5
6
 
6
7
  GEM
7
8
  remote: https://rubygems.org/
@@ -9,16 +10,16 @@ GEM
9
10
  ansi (1.5.0)
10
11
  builder (3.2.4)
11
12
  docile (1.4.0)
12
- minitest (5.17.0)
13
- minitest-reporters (1.6.0)
13
+ minitest (5.21.2)
14
+ minitest-reporters (1.6.1)
14
15
  ansi
15
16
  builder
16
17
  minitest (>= 5.0)
17
18
  ruby-progressbar
18
- rake (13.0.6)
19
- rake-compiler (1.2.1)
19
+ rake (13.1.0)
20
+ rake-compiler (1.2.6)
20
21
  rake
21
- ruby-progressbar (1.11.0)
22
+ ruby-progressbar (1.13.0)
22
23
  simplecov (0.22.0)
23
24
  docile (~> 1.1)
24
25
  simplecov-html (~> 0.11)
@@ -28,16 +29,15 @@ GEM
28
29
  simplecov_json_formatter (0.1.4)
29
30
 
30
31
  PLATFORMS
31
- arm64-darwin-22
32
+ arm64-darwin-23
33
+ ruby
32
34
 
33
35
  DEPENDENCIES
34
- minitest (~> 5.15)
36
+ minitest (~> 5.21)
35
37
  minitest-reporters (~> 1.6)
36
- rake (~> 13.0)
37
- rake-compiler (~> 1.1)
38
38
  ruby_native_statistics!
39
39
  simplecov (~> 0.21)
40
40
  simplecov-lcov (~> 0.8)
41
41
 
42
42
  BUNDLED WITH
43
- 2.4.7
43
+ 2.5.5
data/README.md CHANGED
@@ -16,20 +16,20 @@ Check the Github Actions build to see the currently supported versions of Ruby.
16
16
 
17
17
  It is generally more performant than calculating these values with pure Ruby. For a comparison, run the benchmarks with `rake benchmark`.
18
18
 
19
- | Test (Ruby 3.1.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
19
+ | Test (Ruby 3.3.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
20
20
  | ------------------ | -------- | -------- | -------- | -------- | -------- |
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 |
21
+ | bench_native_stdev | 0.000069 | 0.000074 | 0.000064 | 0.000065 | 0.000065 |
22
+ | bench_ruby_stdev | 0.000947 | 0.000932 | 0.000927 | 0.000948 | 0.000909 |
23
23
 
24
- | Test (Ruby 3.1.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
24
+ | Test (Ruby 3.3.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
25
25
  | ------------------- | -------- | -------- | -------- | -------- | -------- |
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 |
26
+ | bench_native_median | 0.000719 | 0.00067 | 0.000659 | 0.000638 | 0.000668 |
27
+ | bench_ruby_median | 0.000774 | 0.000743 | 0.000724 | 0.000697 | 0.000683 |
28
28
 
29
- | Test (Ruby 3.1.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
29
+ | Test (Ruby 3.3.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
30
30
  | ----------------- | -------- | -------- | -------- | -------- | -------- |
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 |
31
+ | bench_native_mean | 0.000035 | 0.000035 | 0.000034 | 0.000032 | 0.000033 |
32
+ | bench_ruby_mean | 0.000291 | 0.000287 | 0.000291 | 0.000299 | 0.000281 |
33
33
 
34
34
  ## Found a bug? Need a function?
35
35
 
data/changelog.md CHANGED
@@ -1,3 +1,17 @@
1
+ # Version 1.0.3
2
+
3
+ - Update all supported Ruby versions
4
+ - Update all dependencies
5
+
6
+ # Version 1.0.2
7
+
8
+ - Better differentiate `gemspec` and `Gemfile` between runtime and development dependencies
9
+
10
+ # Version 1.0.1
11
+
12
+ - Update all supported Ruby versions
13
+ - Update all dependencies
14
+
1
15
  # Version 1.0.0
2
16
 
3
17
  - Update all supported Ruby versions
@@ -1,3 +1,3 @@
1
1
  module RubyNativeStatistics
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.3"
3
3
  end
data/renovate.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:base"
5
+ ]
6
+ }
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.summary = "High performance, native (C) implementations of various statistical functions."
11
11
  spec.homepage = "https://github.com/corybuecker/ruby-native-statistics"
12
12
 
13
- spec.required_ruby_version = Gem::Requirement.new(">= 2.7.7")
13
+ spec.required_ruby_version = ">= 3.0.3"
14
14
 
15
15
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
16
16
 
@@ -18,8 +18,15 @@ Gem::Specification.new do |spec|
18
18
  spec.metadata["source_code_uri"] = spec.homepage
19
19
  spec.metadata["changelog_uri"] = "#{spec.homepage}/changelog.md"
20
20
 
21
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(.github|.vscode|test|spec|features)/}) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
24
  spec.extensions = %w[ext/ruby_native_statistics/extconf.rb]
25
+
26
+ spec.add_runtime_dependency "rake-compiler", "~> 1.2"
27
+
28
+ spec.add_development_dependency "minitest", "~> 5.21"
29
+ spec.add_development_dependency "minitest-reporters", "~> 1.6"
30
+ spec.add_development_dependency "simplecov", "~> 0.21"
31
+ spec.add_development_dependency "simplecov-lcov", "~> 0.8"
25
32
  end
metadata CHANGED
@@ -1,15 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_native_statistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cory Buecker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-14 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2024-01-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake-compiler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.21'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.21'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest-reporters
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.6'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.6'
55
+ - !ruby/object:Gem::Dependency
56
+ name: simplecov
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.21'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.21'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov-lcov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.8'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.8'
13
83
  description:
14
84
  email:
15
85
  - cory.buecker@gmail.com
@@ -18,11 +88,7 @@ extensions:
18
88
  - ext/ruby_native_statistics/extconf.rb
19
89
  extra_rdoc_files: []
20
90
  files:
21
- - ".github/ISSUE_TEMPLATE/bug_report.md"
22
- - ".github/workflows/main.yml"
23
91
  - ".gitignore"
24
- - ".vscode/c_cpp_properties.json"
25
- - ".vscode/settings.json"
26
92
  - Gemfile
27
93
  - Gemfile.lock
28
94
  - README.md
@@ -40,6 +106,7 @@ files:
40
106
  - ext/ruby_native_statistics/ruby_native_statistics.h
41
107
  - lib/ruby_native_statistics.rb
42
108
  - lib/ruby_native_statistics/version.rb
109
+ - renovate.json
43
110
  - ruby_native_statistics.gemspec
44
111
  homepage: https://github.com/corybuecker/ruby-native-statistics
45
112
  licenses:
@@ -57,14 +124,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
57
124
  requirements:
58
125
  - - ">="
59
126
  - !ruby/object:Gem::Version
60
- version: 2.7.7
127
+ version: 3.0.3
61
128
  required_rubygems_version: !ruby/object:Gem::Requirement
62
129
  requirements:
63
130
  - - ">="
64
131
  - !ruby/object:Gem::Version
65
132
  version: '0'
66
133
  requirements: []
67
- rubygems_version: 3.4.7
134
+ rubygems_version: 3.5.5
68
135
  signing_key:
69
136
  specification_version: 4
70
137
  summary: High performance, native (C) implementations of various statistical functions.
@@ -1,31 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Describe the bug**
11
- A clear and concise description of what the bug is.
12
-
13
- **To Reproduce**
14
- Steps to reproduce the behavior:
15
- 1. Go to '...'
16
- 2. Click on '....'
17
- 3. Scroll down to '....'
18
- 4. See error
19
-
20
- **Expected behavior**
21
- A clear and concise description of what you expected to happen.
22
-
23
- **Screenshots**
24
- If applicable, add screenshots to help explain your problem.
25
-
26
- **Desktop (please complete the following information):**
27
- - OS: [e.g. iOS]
28
- - Version [e.g. 22]
29
-
30
- **Additional context**
31
- Add any other context about the problem here.
@@ -1,29 +0,0 @@
1
- name: Test suite
2
-
3
- on:
4
- - push
5
-
6
- env:
7
- CI: true
8
-
9
- jobs:
10
- run-tests:
11
- name: Run tests
12
- runs-on: ubuntu-latest
13
- strategy:
14
- matrix:
15
- ruby:
16
- - 2.7.7
17
- - 3.0.5
18
- - 3.1.3
19
- - 3.2.1
20
- steps:
21
- - uses: actions/checkout@v2
22
-
23
- - uses: ruby/setup-ruby@v1
24
- with:
25
- ruby-version: ${{ matrix.ruby }}
26
-
27
- - run: gem install bundler --version 2.4.7 --no-document
28
- - run: bundle
29
- - run: rake
@@ -1,21 +0,0 @@
1
- {
2
- "configurations": [
3
- {
4
- "name": "Mac",
5
- "includePath": [
6
- "${workspaceFolder}/**",
7
- "/Users/corybuecker/.asdf/installs/ruby/2.7.0/include/ruby-2.7.0",
8
- "/Users/corybuecker/.asdf/installs/ruby/2.7.0/include/ruby-2.7.0/x86_64-darwin19"
9
- ],
10
- "defines": [],
11
- "macFrameworkPath": [
12
- "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
13
- ],
14
- "compilerPath": "/usr/bin/clang",
15
- "cStandard": "c11",
16
- "cppStandard": "c++17",
17
- "intelliSenseMode": "clang-x64"
18
- }
19
- ],
20
- "version": 4
21
- }
@@ -1,11 +0,0 @@
1
- {
2
- "editor.formatOnSave": true,
3
- "editor.tabSize": 2,
4
- "search.useGlobalIgnoreFiles": true,
5
- "editor.wordWrap": "on",
6
- "editor.renderWhitespace": "all",
7
- "files.associations": {
8
- "conversions.h": "c",
9
- "algorithm": "c"
10
- }
11
- }