ruby_native_statistics 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -8
- data/Gemfile.lock +11 -11
- data/README.md +9 -9
- data/changelog.md +14 -0
- data/lib/ruby_native_statistics/version.rb +1 -1
- data/renovate.json +6 -0
- data/ruby_native_statistics.gemspec +9 -2
- metadata +76 -9
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -31
- data/.github/workflows/main.yml +0 -29
- data/.vscode/c_cpp_properties.json +0 -21
- data/.vscode/settings.json +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e02c85ccefb4607536d9be8484cb2925360d14df3d13c0b8181b1109daec3148
|
4
|
+
data.tar.gz: 8aeb0ebb62119163f771f470ab1d0f512cd2b1ed812e1c629fba2075002c78ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
13
|
-
minitest-reporters (1.6.
|
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
|
19
|
-
rake-compiler (1.2.
|
19
|
+
rake (13.1.0)
|
20
|
+
rake-compiler (1.2.6)
|
20
21
|
rake
|
21
|
-
ruby-progressbar (1.
|
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-
|
32
|
+
arm64-darwin-23
|
33
|
+
ruby
|
32
34
|
|
33
35
|
DEPENDENCIES
|
34
|
-
minitest (~> 5.
|
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.
|
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.
|
19
|
+
| Test (Ruby 3.3.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
|
20
20
|
| ------------------ | -------- | -------- | -------- | -------- | -------- |
|
21
|
-
| bench_native_stdev | 0.
|
22
|
-
| bench_ruby_stdev | 0.
|
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.
|
24
|
+
| Test (Ruby 3.3.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
|
25
25
|
| ------------------- | -------- | -------- | -------- | -------- | -------- |
|
26
|
-
| bench_native_median | 0.
|
27
|
-
| bench_ruby_median | 0.
|
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.
|
29
|
+
| Test (Ruby 3.3.0) | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 |
|
30
30
|
| ----------------- | -------- | -------- | -------- | -------- | -------- |
|
31
|
-
| bench_native_mean | 0.
|
32
|
-
| bench_ruby_mean | 0.
|
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
|
data/renovate.json
ADDED
@@ -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 =
|
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.
|
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:
|
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:
|
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.
|
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.
|
data/.github/workflows/main.yml
DELETED
@@ -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
|
-
}
|
data/.vscode/settings.json
DELETED