ruby_native_statistics 0.8 → 0.8.2
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 +5 -5
- data/.github/workflows/main.yml +41 -0
- data/.gitignore +24 -5
- data/.vscode/settings.json +7 -0
- data/Gemfile +7 -1
- data/Gemfile.lock +34 -0
- data/README.md +14 -16
- data/Rakefile +15 -4
- data/changelog.md +11 -1
- data/ext/dispersion/dispersion.c +1 -44
- data/ext/dispersion/dispersion.h +0 -3
- data/ext/dispersion/extconf.rb +3 -2
- data/ext/mathematics/extconf.rb +5 -0
- data/ext/mathematics/mathematics.c +50 -0
- data/ext/mathematics/mathematics.h +4 -0
- data/lib/ruby_native_statistics/version.rb +1 -1
- data/lib/ruby_native_statistics.rb +2 -0
- data/ruby_native_statistics.gemspec +18 -19
- metadata +16 -64
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 58cae049ef922fead26f20dff3714c2f9c1bcccd95fe38228add9d7f6d57e787
|
4
|
+
data.tar.gz: 3529205f8a822cc3c418d54d36d4651708384cc885f990517e03fc0f1c8edb15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe760b4680dbf1d11685404718589c7d24c659d086c422977ee3e8c1223073331dfb125c83275a9254ce7fa161b33b388cd66008f6de429417c0ba92acedad87
|
7
|
+
data.tar.gz: 768f2745a827ffa45fe34a89ff7eb4cc1f4d444bfa6c99f2c4bcd75058131b25cfc17f93ee58599511f8e6a265335af7480dc7890988c8e10e5aa318f4d4514c
|
@@ -0,0 +1,41 @@
|
|
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.4.9
|
17
|
+
- 2.5.7
|
18
|
+
- 2.6.5
|
19
|
+
- 2.7.0
|
20
|
+
steps:
|
21
|
+
- name: Setup Ruby
|
22
|
+
uses: eregon/use-ruby-action@master
|
23
|
+
with:
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
25
|
+
|
26
|
+
- name: Checkout
|
27
|
+
uses: actions/checkout@master
|
28
|
+
|
29
|
+
- name: Install Bundler
|
30
|
+
run: gem install bundler -v 2.1.2
|
31
|
+
|
32
|
+
- name: Install gems
|
33
|
+
run: bundle
|
34
|
+
|
35
|
+
- name: Run tests
|
36
|
+
run: rake
|
37
|
+
|
38
|
+
- name: Coveralls
|
39
|
+
uses: coverallsapp/github-action@master
|
40
|
+
with:
|
41
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
data/.gitignore
CHANGED
@@ -10,10 +10,27 @@
|
|
10
10
|
/test/version_tmp/
|
11
11
|
/tmp/
|
12
12
|
|
13
|
+
# Used by dotenv library to load environment variables.
|
14
|
+
# .env
|
15
|
+
|
16
|
+
# Ignore Byebug command history file.
|
17
|
+
.byebug_history
|
18
|
+
|
13
19
|
## Specific to RubyMotion:
|
14
20
|
.dat*
|
15
21
|
.repl_history
|
16
22
|
build/
|
23
|
+
*.bridgesupport
|
24
|
+
build-iPhoneOS/
|
25
|
+
build-iPhoneSimulator/
|
26
|
+
|
27
|
+
## Specific to RubyMotion (use of CocoaPods):
|
28
|
+
#
|
29
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
30
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
31
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
32
|
+
#
|
33
|
+
# vendor/Pods/
|
17
34
|
|
18
35
|
## Documentation cache and generated files:
|
19
36
|
/.yardoc/
|
@@ -28,12 +45,14 @@ build/
|
|
28
45
|
|
29
46
|
# for a library or gem, you might want to ignore these files since the code is
|
30
47
|
# intended to run in multiple environments; otherwise, check them in:
|
31
|
-
Gemfile.lock
|
32
|
-
.ruby-version
|
33
|
-
.ruby-gemset
|
48
|
+
# Gemfile.lock
|
49
|
+
# .ruby-version
|
50
|
+
# .ruby-gemset
|
34
51
|
|
35
52
|
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
36
53
|
.rvmrc
|
37
|
-
*.bundle
|
38
54
|
|
39
|
-
.
|
55
|
+
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
|
56
|
+
# .rubocop-https?--*
|
57
|
+
|
58
|
+
*.bundle
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
ruby_native_statistics (0.8)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
docile (1.3.2)
|
10
|
+
json (2.3.0)
|
11
|
+
minitest (5.13.0)
|
12
|
+
rake (12.3.3)
|
13
|
+
rake-compiler (1.1.0)
|
14
|
+
rake
|
15
|
+
simplecov (0.17.1)
|
16
|
+
docile (~> 1.1)
|
17
|
+
json (>= 1.8, < 3)
|
18
|
+
simplecov-html (~> 0.10.0)
|
19
|
+
simplecov-html (0.10.2)
|
20
|
+
simplecov-lcov (0.7.0)
|
21
|
+
|
22
|
+
PLATFORMS
|
23
|
+
ruby
|
24
|
+
|
25
|
+
DEPENDENCIES
|
26
|
+
minitest (~> 5.0)
|
27
|
+
rake (~> 12.0)
|
28
|
+
rake-compiler (~> 1.1)
|
29
|
+
ruby_native_statistics!
|
30
|
+
simplecov (~> 0.17)
|
31
|
+
simplecov-lcov (~> 0.7)
|
32
|
+
|
33
|
+
BUNDLED WITH
|
34
|
+
2.1.2
|
data/README.md
CHANGED
@@ -1,21 +1,19 @@
|
|
1
|
-
# Ruby Native Statistics
|
2
|
-
|
3
|
-
[](https://travis-ci.org/corybuecker/ruby-native-statistics)
|
1
|
+
# Ruby Native Statistics  [](https://coveralls.io/github/corybuecker/ruby-native-statistics?branch=master)
|
4
2
|
|
5
3
|
This is a native extension to Ruby that adds native (C) statistical functions to the Array class. At present the following functions are provided:
|
6
4
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
5
|
+
- [Sample Standard Deviation](https://en.wikipedia.org/wiki/Standard_deviation#Corrected_sample_standard_deviation) (stdev, stdevs)
|
6
|
+
- [Population Standard Deviation](https://en.wikipedia.org/wiki/Standard_deviation#Uncorrected_sample_standard_deviation) (stdevp)
|
7
|
+
- [Sample Variance](https://en.wikipedia.org/wiki/Variance#Population_variance_and_sample_variance) (var)
|
8
|
+
- [Population Variance](https://en.wikipedia.org/wiki/Variance#Population_variance_and_sample_variance) (varp)
|
9
|
+
- [Mean](https://en.wikipedia.org/wiki/Arithmetic_mean) (mean)
|
12
10
|
|
13
|
-
Check the
|
11
|
+
Check the CircleCI build to see the currently supported versions of Ruby. This list will match whatever stable versions are specified at https://www.ruby-lang.org/en/downloads/.
|
14
12
|
|
15
13
|
It is much more performant than calculating the standard deviation with pure Ruby. For a comparison, run the benchmarks with rake.
|
16
14
|
|
17
|
-
bench_native_dispersion
|
18
|
-
bench_ruby_dispersion
|
15
|
+
bench_native_dispersion 0.000425 0.000341 0.000420 0.000324 0.000319
|
16
|
+
bench_ruby_dispersion 0.002168 0.002156 0.002148 0.002149 0.002151
|
19
17
|
|
20
18
|
## Usage
|
21
19
|
|
@@ -27,7 +25,7 @@ It is much more performant than calculating the standard deviation with pure Rub
|
|
27
25
|
|
28
26
|
# calculate population standard deviation
|
29
27
|
p r.stdevp
|
30
|
-
|
28
|
+
|
31
29
|
# calculate mean
|
32
30
|
p r.mean
|
33
31
|
|
@@ -35,7 +33,7 @@ It is much more performant than calculating the standard deviation with pure Rub
|
|
35
33
|
|
36
34
|
This is the third version of this gem, and it is a total rewrite of a SWIG-based design. Lots of thanks to the following resources:
|
37
35
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
36
|
+
- https://blog.jcoglan.com/2012/07/29/your-first-ruby-native-extension-c/
|
37
|
+
- https://github.com/andremedeiros/ruby-c-cheat-sheet
|
38
|
+
- http://silverhammermba.github.io/emberb/c/
|
39
|
+
- http://docs.ruby-lang.org/en/2.3.0/extension_rdoc.html
|
data/Rakefile
CHANGED
@@ -1,13 +1,24 @@
|
|
1
|
-
require "
|
1
|
+
require "rake/extensiontask"
|
2
2
|
require "rake/testtask"
|
3
|
-
|
3
|
+
|
4
|
+
Rake::ExtensionTask.new "dispersion" do |ext|
|
5
|
+
ext.lib_dir = "lib"
|
6
|
+
end
|
7
|
+
|
8
|
+
Rake::ExtensionTask.new "mathematics" do |ext|
|
9
|
+
ext.lib_dir = "lib"
|
10
|
+
end
|
4
11
|
|
5
12
|
Rake::TestTask.new(:test) do |t|
|
6
13
|
t.libs << "test"
|
7
14
|
t.libs << "lib"
|
8
|
-
t.test_files = FileList[
|
15
|
+
t.test_files = FileList["test/**/*_test.rb"]
|
9
16
|
end
|
10
17
|
|
11
|
-
Rake::
|
18
|
+
Rake::TestTask.new(:benchmark) do |t|
|
19
|
+
t.libs << "test"
|
20
|
+
t.libs << "lib"
|
21
|
+
t.test_files = FileList["test/**/*_benchmark.rb"]
|
22
|
+
end
|
12
23
|
|
13
24
|
task :default => [:compile, :test]
|
data/changelog.md
CHANGED
data/ext/dispersion/dispersion.c
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
#include "ruby.h"
|
2
2
|
#include "dispersion.h"
|
3
|
+
#include "../mathematics/mathematics.h"
|
3
4
|
|
4
5
|
void Init_dispersion() {
|
5
6
|
DispersionModule = rb_define_module("Dispersion");
|
@@ -8,35 +9,6 @@ void Init_dispersion() {
|
|
8
9
|
rb_define_method(DispersionModule, "stdevp", rb_population_standard_deviation, 0);
|
9
10
|
rb_define_method(DispersionModule, "var", rb_sample_variance, 0);
|
10
11
|
rb_define_method(DispersionModule, "varp", rb_population_variance, 0);
|
11
|
-
rb_define_method(DispersionModule, "mean", rb_mean, 0);
|
12
|
-
}
|
13
|
-
|
14
|
-
double calculate_mean(VALUE array, unsigned long array_length){
|
15
|
-
unsigned long i;
|
16
|
-
double total = 0;
|
17
|
-
double mean = 0;
|
18
|
-
|
19
|
-
for(i = 0; i < array_length; i++){
|
20
|
-
total += rb_num2dbl(rb_ary_entry(array, i));
|
21
|
-
}
|
22
|
-
|
23
|
-
mean = total / array_length;
|
24
|
-
|
25
|
-
return mean;
|
26
|
-
}
|
27
|
-
|
28
|
-
double calculate_total_distance_from_mean(VALUE array, unsigned long array_length){
|
29
|
-
unsigned long i;
|
30
|
-
double mean = 0;
|
31
|
-
double total_distance_from_mean = 0;
|
32
|
-
|
33
|
-
mean = calculate_mean(array, array_length);
|
34
|
-
|
35
|
-
for(i = 0; i < array_length; i++){
|
36
|
-
total_distance_from_mean += pow((rb_num2dbl(rb_ary_entry(array, i)) - mean), 2);
|
37
|
-
}
|
38
|
-
|
39
|
-
return total_distance_from_mean;
|
40
12
|
}
|
41
13
|
|
42
14
|
VALUE rb_sample_standard_deviation(VALUE self) {
|
@@ -94,18 +66,3 @@ VALUE rb_population_variance(VALUE self) {
|
|
94
66
|
|
95
67
|
return DBL2NUM(calculate_total_distance_from_mean(self, array_length) / array_length);
|
96
68
|
}
|
97
|
-
|
98
|
-
VALUE rb_mean(VALUE self) {
|
99
|
-
unsigned int array_length;
|
100
|
-
|
101
|
-
Check_Type(self, T_ARRAY);
|
102
|
-
|
103
|
-
array_length = rb_long2int(RARRAY_LEN(self));
|
104
|
-
|
105
|
-
if (array_length <= 0) {
|
106
|
-
rb_raise(rb_eRangeError, "array must have at least one element");
|
107
|
-
}
|
108
|
-
|
109
|
-
return DBL2NUM(calculate_mean(self, array_length));
|
110
|
-
}
|
111
|
-
|
data/ext/dispersion/dispersion.h
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
VALUE DispersionModule = Qnil;
|
2
|
-
VALUE rb_mean(VALUE self);
|
3
2
|
VALUE rb_sample_standard_deviation(VALUE self);
|
4
3
|
VALUE rb_population_standard_deviation(VALUE self);
|
5
4
|
VALUE rb_sample_variance(VALUE self);
|
6
5
|
VALUE rb_population_variance(VALUE self);
|
7
|
-
double calculate_mean(VALUE array, unsigned long array_length);
|
8
|
-
double calculate_total_distance_from_mean(VALUE array, unsigned long array_length);
|
data/ext/dispersion/extconf.rb
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
require
|
2
|
-
|
1
|
+
require "mkmf"
|
2
|
+
|
3
|
+
create_makefile "dispersion"
|
@@ -0,0 +1,50 @@
|
|
1
|
+
#include "ruby.h"
|
2
|
+
#include "mathematics.h"
|
3
|
+
|
4
|
+
void Init_mathematics() {
|
5
|
+
MathematicsModule = rb_define_module("Mathematics");
|
6
|
+
rb_define_method(MathematicsModule, "mean", rb_mean, 0);
|
7
|
+
}
|
8
|
+
|
9
|
+
double calculate_mean(VALUE array, unsigned long array_length){
|
10
|
+
unsigned long i;
|
11
|
+
double total = 0;
|
12
|
+
double mean = 0;
|
13
|
+
|
14
|
+
for(i = 0; i < array_length; i++){
|
15
|
+
total += rb_num2dbl(rb_ary_entry(array, i));
|
16
|
+
}
|
17
|
+
|
18
|
+
mean = total / array_length;
|
19
|
+
|
20
|
+
return mean;
|
21
|
+
}
|
22
|
+
|
23
|
+
double calculate_total_distance_from_mean(VALUE array, unsigned long array_length){
|
24
|
+
unsigned long i;
|
25
|
+
double mean = 0;
|
26
|
+
double total_distance_from_mean = 0;
|
27
|
+
|
28
|
+
mean = calculate_mean(array, array_length);
|
29
|
+
|
30
|
+
for(i = 0; i < array_length; i++){
|
31
|
+
total_distance_from_mean += pow((rb_num2dbl(rb_ary_entry(array, i)) - mean), 2);
|
32
|
+
}
|
33
|
+
|
34
|
+
return total_distance_from_mean;
|
35
|
+
}
|
36
|
+
|
37
|
+
VALUE rb_mean(VALUE self) {
|
38
|
+
unsigned int array_length;
|
39
|
+
|
40
|
+
Check_Type(self, T_ARRAY);
|
41
|
+
|
42
|
+
array_length = rb_long2int(RARRAY_LEN(self));
|
43
|
+
|
44
|
+
if (array_length <= 0) {
|
45
|
+
rb_raise(rb_eRangeError, "array must have at least one element");
|
46
|
+
}
|
47
|
+
|
48
|
+
return DBL2NUM(calculate_mean(self, array_length));
|
49
|
+
}
|
50
|
+
|
@@ -1,26 +1,25 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'ruby_native_statistics/version'
|
1
|
+
require_relative "lib/ruby_native_statistics/version"
|
5
2
|
|
6
3
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.version
|
9
|
-
spec.authors
|
10
|
-
spec.email
|
11
|
-
spec.license = "Unlicense"
|
12
|
-
spec.summary = "This is a native extension to Ruby that adds various statistical functions to the Array class."
|
13
|
-
spec.homepage = "https://github.com/corybuecker/ruby-native-statistics"
|
4
|
+
spec.name = "ruby_native_statistics"
|
5
|
+
spec.version = RubyNativeStatistics::VERSION
|
6
|
+
spec.authors = ["Cory Buecker"]
|
7
|
+
spec.email = ["cory.buecker@gmail.com"]
|
14
8
|
|
15
|
-
spec.
|
9
|
+
spec.license = "Unlicense"
|
10
|
+
spec.summary = "This is a native extension to Ruby that adds various statistical functions to the Array class."
|
11
|
+
spec.homepage = "https://github.com/corybuecker/ruby-native-statistics"
|
16
12
|
|
17
|
-
spec.
|
18
|
-
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.9")
|
14
|
+
|
15
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
19
16
|
|
20
|
-
spec.
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
19
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/changelog.md"
|
20
|
+
|
21
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
spec.require_paths = ["lib"]
|
21
23
|
|
22
|
-
spec.
|
23
|
-
spec.add_development_dependency "rake", "~> 11.0"
|
24
|
-
spec.add_development_dependency "minitest", "~> 5.0"
|
25
|
-
spec.add_development_dependency "rake-compiler", "~> 0.9"
|
24
|
+
spec.extensions = %w[ext/mathematics/extconf.rb ext/dispersion/extconf.rb]
|
26
25
|
end
|
metadata
CHANGED
@@ -1,82 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_native_statistics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.8.2
|
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:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.11'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.11'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '11.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '11.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: minitest
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '5.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '5.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake-compiler
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0.9'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0.9'
|
11
|
+
date: 2020-01-11 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
69
13
|
description:
|
70
14
|
email:
|
71
|
-
-
|
15
|
+
- cory.buecker@gmail.com
|
72
16
|
executables: []
|
73
17
|
extensions:
|
18
|
+
- ext/mathematics/extconf.rb
|
74
19
|
- ext/dispersion/extconf.rb
|
75
20
|
extra_rdoc_files: []
|
76
21
|
files:
|
22
|
+
- ".github/workflows/main.yml"
|
77
23
|
- ".gitignore"
|
78
|
-
- ".
|
24
|
+
- ".vscode/settings.json"
|
79
25
|
- Gemfile
|
26
|
+
- Gemfile.lock
|
80
27
|
- LICENSE
|
81
28
|
- README.md
|
82
29
|
- Rakefile
|
@@ -84,6 +31,9 @@ files:
|
|
84
31
|
- ext/dispersion/dispersion.c
|
85
32
|
- ext/dispersion/dispersion.h
|
86
33
|
- ext/dispersion/extconf.rb
|
34
|
+
- ext/mathematics/extconf.rb
|
35
|
+
- ext/mathematics/mathematics.c
|
36
|
+
- ext/mathematics/mathematics.h
|
87
37
|
- lib/ruby_native_statistics.rb
|
88
38
|
- lib/ruby_native_statistics/version.rb
|
89
39
|
- ruby_native_statistics.gemspec
|
@@ -92,6 +42,9 @@ licenses:
|
|
92
42
|
- Unlicense
|
93
43
|
metadata:
|
94
44
|
allowed_push_host: https://rubygems.org
|
45
|
+
homepage_uri: https://github.com/corybuecker/ruby-native-statistics
|
46
|
+
source_code_uri: https://github.com/corybuecker/ruby-native-statistics
|
47
|
+
changelog_uri: https://github.com/corybuecker/ruby-native-statistics/changelog.md
|
95
48
|
post_install_message:
|
96
49
|
rdoc_options: []
|
97
50
|
require_paths:
|
@@ -100,15 +53,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
53
|
requirements:
|
101
54
|
- - ">="
|
102
55
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
56
|
+
version: 2.4.9
|
104
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
58
|
requirements:
|
106
59
|
- - ">="
|
107
60
|
- !ruby/object:Gem::Version
|
108
61
|
version: '0'
|
109
62
|
requirements: []
|
110
|
-
|
111
|
-
rubygems_version: 2.6.11
|
63
|
+
rubygems_version: 3.1.2
|
112
64
|
signing_key:
|
113
65
|
specification_version: 4
|
114
66
|
summary: This is a native extension to Ruby that adds various statistical functions
|