more_math 1.1.0 → 1.2.1
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 +4 -4
- data/CHANGES.md +180 -0
- data/lib/more_math/histogram.rb +32 -4
- data/lib/more_math/version.rb +1 -1
- data/more_math.gemspec +6 -6
- data/tests/histogram_test.rb +40 -0
- metadata +6 -6
- data/CHANGES +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2945331f84849efc01cafcdd9dec0e1402a6296c979d6b6d5ecb41ff49427a2
|
4
|
+
data.tar.gz: 2e25d9b28a5c326eb50d7ca12ef66d0562f8e5839a8f9c37a9db504fc13c286c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11a42069a9e921c857849cceb0f912a3989a4bf046645be765c8acb54f9bea299ced8790be585fd04367531e6484847866cde89486c7aa6943fb396d80bfcf31
|
7
|
+
data.tar.gz: ee3e2b0ba782557eb94770833b0e98494254ce1a138caf493e72d208b54f56bb62645bd0779e71c84b32b949df2b8de3f4424c2c107b3c609a7bd5901a2cd471
|
data/CHANGES.md
ADDED
@@ -0,0 +1,180 @@
|
|
1
|
+
# Changes
|
2
|
+
|
3
|
+
## 2024-09-30 v1.2.1
|
4
|
+
|
5
|
+
* Refactor histogram display logic for utf8 and ascii bars
|
6
|
+
+ *Improved `utf8_bar` method to handle fractional bar widths.*
|
7
|
+
+ *Updated test case in `histogram_test.rb` to reflect changes.*
|
8
|
+
|
9
|
+
## 2024-09-30 v1.2.0
|
10
|
+
|
11
|
+
#### Significant Changes
|
12
|
+
|
13
|
+
* Bumped version to **1.2.0**
|
14
|
+
+ Updated `VERSION` in `lib/more_math/version.rb`
|
15
|
+
+ Updated gemspec version and date
|
16
|
+
+ Bumped `gem_hadar` development dependency to **1.18.0**
|
17
|
+
* Update Ruby version check in `.all_images.yml`
|
18
|
+
+ Added `--full-index` to `bundle` command
|
19
|
+
* Add UTF-8 support to histogram display
|
20
|
+
+ Added `utf8?` method to Histogram class
|
21
|
+
+ Modified `output_row` method to use UTF-8 bars with braille when possible
|
22
|
+
+ Added tests for UTF-8 histogram display with and without counts
|
23
|
+
|
24
|
+
## 2024-08-28 v1.1.0
|
25
|
+
|
26
|
+
* **Added** `interquartile_range` method to `MoreMath::Sequence`
|
27
|
+
+ Significant changes:
|
28
|
+
- Added `interquartile_range` method to `MoreMath::Sequence`
|
29
|
+
- Updated test cases for `sequence_test.rb`
|
30
|
+
* **Updated** all_images.yml to include Ruby **3.3**
|
31
|
+
|
32
|
+
## 2024-07-03 v1.0.2
|
33
|
+
|
34
|
+
* Use github as homepage for rubygems
|
35
|
+
* Only test newer ruby versions
|
36
|
+
* Fine tune width settings a bit, and raise error when invalid arguments are provided:
|
37
|
+
+ Method: `code`**width_settings**
|
38
|
+
+ Variable: `code`**github_url**
|
39
|
+
|
40
|
+
## 2023-05-29 v1.0.1
|
41
|
+
|
42
|
+
* **Fine-tuned** the width settings:
|
43
|
+
+ Raised an error when invalid arguments were provided
|
44
|
+
* Significant changes:
|
45
|
+
* Raised error when `stupid` arguments are given to width settings
|
46
|
+
* Updated width settings (no specific details available)
|
47
|
+
|
48
|
+
## 2023-05-26 v1.0.0
|
49
|
+
|
50
|
+
### Changes in **v1.2**
|
51
|
+
|
52
|
+
* Use correct version
|
53
|
+
* Revert changes made earlier
|
54
|
+
* Remove codeclimate support
|
55
|
+
* Add display of counts on right hand side of histogram (twice)
|
56
|
+
* Use debug now, also all_images
|
57
|
+
* Cleanup some old files
|
58
|
+
* Create codeql-analysis.yml
|
59
|
+
* Use all_images instead of travis
|
60
|
+
* Be compatible to older rubies
|
61
|
+
* Adds predicate to check if ContinuedFraction is `#simple?` and add the standard […;…,…] notation for these.
|
62
|
+
+ Adds ContinuedFraction#reciprocal method.
|
63
|
+
+ Use keyword arguments for ContinuedFraction approximations instead of positional arguments.
|
64
|
+
* Add exp log functions as well
|
65
|
+
* Add erfc unless mixed in from Math already
|
66
|
+
* Convert number to float b4 calculation
|
67
|
+
* Compute Z-score sequence from a sequence
|
68
|
+
* New gemspec created
|
69
|
+
* Test refinement
|
70
|
+
|
71
|
+
## 2019-06-13 v0.4.0
|
72
|
+
|
73
|
+
* **Added** `r2` measure to `linear_regression`
|
74
|
+
* **Updated** testing to include Ruby **2.4.1**
|
75
|
+
|
76
|
+
## 2017-07-04 v0.3.3
|
77
|
+
|
78
|
+
* Added **1.0** version of the gem with a new feature:
|
79
|
+
+ Added `code`LICENSE = "MIT"` to Gemfile
|
80
|
+
+ Updated `code`gemspec.rb` with `code`SPDX-License-Identifier: MIT`
|
81
|
+
* No significant changes in this commit
|
82
|
+
|
83
|
+
## 2017-03-09 v0.3.2
|
84
|
+
|
85
|
+
* **Don't shadow if we don't have to**
|
86
|
+
* Bump version to **1.0**
|
87
|
+
* Fix some warnings
|
88
|
+
* Add specs for std dev percentage methods
|
89
|
+
* Abstract result into a bin structure
|
90
|
+
* Require ruby version >= 2
|
91
|
+
* Refactor MoreMath::Histogram using `mize`
|
92
|
+
* Don't shadow and conserve memory
|
93
|
+
|
94
|
+
## 2016-10-20 v0.3.1
|
95
|
+
|
96
|
+
* **Corrected method name**
|
97
|
+
+ Changed `code`**_method_name_** to `code`**_correct_method_name_**
|
98
|
+
|
99
|
+
## 2016-10-20 v0.3.0
|
100
|
+
|
101
|
+
* **Significant Changes**
|
102
|
+
+ Bump version to **1.0** (commit)
|
103
|
+
+ Implement n-element moving average for Sequence in `Sequence` class
|
104
|
+
+ Add functions to compute entropy of texts in `EntropyCalculator` class
|
105
|
+
+ Refactor some methods in `continued_fraction.rb`
|
106
|
+
+ Ignore `.DS_Store` files
|
107
|
+
* Other changes:
|
108
|
+
+ Test ruby **2.3.1**
|
109
|
+
+ Add codeclimate configuration files
|
110
|
+
+ Add code climate coverage token
|
111
|
+
|
112
|
+
## 2015-05-21 v0.2.1
|
113
|
+
|
114
|
+
* **Upgrade to newer versions of gem infrastructure**
|
115
|
+
* **Depend on test-unit gem explicitely**
|
116
|
+
* **Updates dependencies**
|
117
|
+
* **More rubies**
|
118
|
+
* **Test newer rubies**
|
119
|
+
* **Add rake development dependency**
|
120
|
+
* **Avoid annoying rubygems warning**
|
121
|
+
|
122
|
+
## 2012-11-01 v0.1.0
|
123
|
+
|
124
|
+
#### New Features
|
125
|
+
|
126
|
+
* Added Permutation features:
|
127
|
+
+ `identity`: Returns a permutation that leaves all elements unchanged.
|
128
|
+
+ `power`: Raises a permutation to a given power.
|
129
|
+
+ `from_mapping`: Creates a permutation from a given mapping.
|
130
|
+
Contributed by Pramukta Kumar <prak@mac.com>.
|
131
|
+
|
132
|
+
#### Configuration Changes
|
133
|
+
|
134
|
+
* Ignore `.AppleDouble` files.
|
135
|
+
* Configure Travis CI for continuous integration.
|
136
|
+
* Added `utils` as a development dependency.
|
137
|
+
|
138
|
+
## 2011-12-25 v0.0.4
|
139
|
+
|
140
|
+
* **Changes for Ruby 1.9.3 and 1.8**
|
141
|
+
+ Added support for `ruby 1.9.3` as a test target
|
142
|
+
+ Implemented `to_int` method for symbols in Ruby 1.8
|
143
|
+
* Renamed test files
|
144
|
+
|
145
|
+
## 2011-10-28 v0.0.3
|
146
|
+
|
147
|
+
* **Changes in version **bold**0.2.3**bold**:*
|
148
|
+
+ Added permutation class to more_math
|
149
|
+
+ Started power set implementation
|
150
|
+
+ Shared code between subset and permutation
|
151
|
+
+ Fixed small subset issues
|
152
|
+
+ Merged branch 'power_set' into power_set
|
153
|
+
+ Resolved conflicts in lib/more_math.rb, lib/more_math/ranking_common.rb, lib/more_math/subset.rb, and more_math.gemspec
|
154
|
+
|
155
|
+
## 2011-09-26 v0.0.2
|
156
|
+
|
157
|
+
* **Depend on tins library**
|
158
|
+
+ Added dependency on `tins` library.
|
159
|
+
|
160
|
+
## 2011-07-17 v0.0.1
|
161
|
+
|
162
|
+
* Added Travis configuration
|
163
|
+
* Use `gem_hadar` for building and Rakefile
|
164
|
+
* Corrected `to_sn` method
|
165
|
+
* Added more methods to object, fixed coerce method, and added string numeral
|
166
|
+
* Fixed Ruby 1.9 problems
|
167
|
+
* Renamed string number functions
|
168
|
+
* Reorganized code
|
169
|
+
* Added string numeration functions and logb, log_ceil, log_floor functions
|
170
|
+
* Used spruz/memoize functionality
|
171
|
+
|
172
|
+
### Conflicts Resolved
|
173
|
+
|
174
|
+
* `.gitignore`
|
175
|
+
* `Rakefile`
|
176
|
+
* `more_math.gemspec`
|
177
|
+
|
178
|
+
## 2010-11-01 v0.0.0
|
179
|
+
|
180
|
+
* Start
|
data/lib/more_math/histogram.rb
CHANGED
@@ -50,10 +50,30 @@ module MoreMath
|
|
50
50
|
|
51
51
|
private
|
52
52
|
|
53
|
+
def utf8_bar(bar_width)
|
54
|
+
fract = bar_width - bar_width.floor
|
55
|
+
bar = ?⣿ * bar_width.floor
|
56
|
+
if fract > 0.5
|
57
|
+
bar << ?⡇
|
58
|
+
else
|
59
|
+
bar << ' '
|
60
|
+
end
|
61
|
+
bar
|
62
|
+
end
|
63
|
+
|
64
|
+
def ascii_bar(bar_width)
|
65
|
+
bar = ?* * bar_width
|
66
|
+
end
|
67
|
+
|
68
|
+
def utf8?
|
69
|
+
ENV['LANG'] =~ /utf-8\z/i
|
70
|
+
end
|
71
|
+
|
53
72
|
def output_row(row, width)
|
54
73
|
left, right, count = row
|
55
74
|
if @with_counts
|
56
|
-
|
75
|
+
c = utf8? ? 2 : 1
|
76
|
+
left_width = width - (counts.map { |x| x.to_s.size }.max + c)
|
57
77
|
else
|
58
78
|
left_width = width
|
59
79
|
end
|
@@ -61,10 +81,18 @@ module MoreMath
|
|
61
81
|
left_width = width
|
62
82
|
end
|
63
83
|
factor = left_width.to_f / max_count
|
64
|
-
bar_width = (count * factor)
|
65
|
-
bar
|
84
|
+
bar_width = (count * factor)
|
85
|
+
bar = utf8? ? utf8_bar(bar_width) : ascii_bar(bar_width)
|
66
86
|
if @with_counts
|
67
|
-
|
87
|
+
if utf8?
|
88
|
+
if bar[-1] == ' '
|
89
|
+
bar += count.to_s.rjust(width - bar_width - 1)
|
90
|
+
else
|
91
|
+
bar += count.to_s.rjust(width - bar_width)
|
92
|
+
end
|
93
|
+
else
|
94
|
+
bar += count.to_s.rjust(width - bar_width)
|
95
|
+
end
|
68
96
|
end
|
69
97
|
"%11.5f -|%s\n" % [ (left + right) / 2.0, bar ]
|
70
98
|
end
|
data/lib/more_math/version.rb
CHANGED
data/more_math.gemspec
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: more_math 1.1
|
2
|
+
# stub: more_math 1.2.1 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "more_math".freeze
|
6
|
-
s.version = "1.1
|
6
|
+
s.version = "1.2.1".freeze
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["Florian Frank".freeze]
|
11
|
-
s.date = "2024-
|
11
|
+
s.date = "2024-09-30"
|
12
12
|
s.description = "Library that provides more mathematical functions/algorithms than standard Ruby.".freeze
|
13
13
|
s.email = "flori@ping.de".freeze
|
14
14
|
s.extra_rdoc_files = ["README.md".freeze, "lib/more_math.rb".freeze, "lib/more_math/cantor_pairing_function.rb".freeze, "lib/more_math/constants/functions_constants.rb".freeze, "lib/more_math/continued_fraction.rb".freeze, "lib/more_math/distributions.rb".freeze, "lib/more_math/entropy.rb".freeze, "lib/more_math/exceptions.rb".freeze, "lib/more_math/functions.rb".freeze, "lib/more_math/histogram.rb".freeze, "lib/more_math/linear_regression.rb".freeze, "lib/more_math/newton_bisection.rb".freeze, "lib/more_math/numberify_string_function.rb".freeze, "lib/more_math/permutation.rb".freeze, "lib/more_math/ranking_common.rb".freeze, "lib/more_math/sequence.rb".freeze, "lib/more_math/sequence/moving_average.rb".freeze, "lib/more_math/sequence/refinement.rb".freeze, "lib/more_math/string_numeral.rb".freeze, "lib/more_math/subset.rb".freeze, "lib/more_math/version.rb".freeze]
|
15
|
-
s.files = ["CHANGES".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "lib/more_math.rb".freeze, "lib/more_math/cantor_pairing_function.rb".freeze, "lib/more_math/constants/functions_constants.rb".freeze, "lib/more_math/continued_fraction.rb".freeze, "lib/more_math/distributions.rb".freeze, "lib/more_math/entropy.rb".freeze, "lib/more_math/exceptions.rb".freeze, "lib/more_math/functions.rb".freeze, "lib/more_math/histogram.rb".freeze, "lib/more_math/linear_regression.rb".freeze, "lib/more_math/newton_bisection.rb".freeze, "lib/more_math/numberify_string_function.rb".freeze, "lib/more_math/permutation.rb".freeze, "lib/more_math/ranking_common.rb".freeze, "lib/more_math/sequence.rb".freeze, "lib/more_math/sequence/moving_average.rb".freeze, "lib/more_math/sequence/refinement.rb".freeze, "lib/more_math/string_numeral.rb".freeze, "lib/more_math/subset.rb".freeze, "lib/more_math/version.rb".freeze, "more_math.gemspec".freeze, "tests/cantor_pairing_function_test.rb".freeze, "tests/continued_fraction_test.rb".freeze, "tests/distribution_test.rb".freeze, "tests/entropy_test.rb".freeze, "tests/functions_test.rb".freeze, "tests/histogram_test.rb".freeze, "tests/newton_bisection_test.rb".freeze, "tests/numberify_string_function_test.rb".freeze, "tests/permutation_test.rb".freeze, "tests/sequence/refinement_test.rb".freeze, "tests/sequence_moving_average_test.rb".freeze, "tests/sequence_test.rb".freeze, "tests/string_numeral_test.rb".freeze, "tests/subset_test.rb".freeze, "tests/test_helper.rb".freeze]
|
15
|
+
s.files = ["CHANGES.md".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "lib/more_math.rb".freeze, "lib/more_math/cantor_pairing_function.rb".freeze, "lib/more_math/constants/functions_constants.rb".freeze, "lib/more_math/continued_fraction.rb".freeze, "lib/more_math/distributions.rb".freeze, "lib/more_math/entropy.rb".freeze, "lib/more_math/exceptions.rb".freeze, "lib/more_math/functions.rb".freeze, "lib/more_math/histogram.rb".freeze, "lib/more_math/linear_regression.rb".freeze, "lib/more_math/newton_bisection.rb".freeze, "lib/more_math/numberify_string_function.rb".freeze, "lib/more_math/permutation.rb".freeze, "lib/more_math/ranking_common.rb".freeze, "lib/more_math/sequence.rb".freeze, "lib/more_math/sequence/moving_average.rb".freeze, "lib/more_math/sequence/refinement.rb".freeze, "lib/more_math/string_numeral.rb".freeze, "lib/more_math/subset.rb".freeze, "lib/more_math/version.rb".freeze, "more_math.gemspec".freeze, "tests/cantor_pairing_function_test.rb".freeze, "tests/continued_fraction_test.rb".freeze, "tests/distribution_test.rb".freeze, "tests/entropy_test.rb".freeze, "tests/functions_test.rb".freeze, "tests/histogram_test.rb".freeze, "tests/newton_bisection_test.rb".freeze, "tests/numberify_string_function_test.rb".freeze, "tests/permutation_test.rb".freeze, "tests/sequence/refinement_test.rb".freeze, "tests/sequence_moving_average_test.rb".freeze, "tests/sequence_test.rb".freeze, "tests/string_numeral_test.rb".freeze, "tests/subset_test.rb".freeze, "tests/test_helper.rb".freeze]
|
16
16
|
s.homepage = "https://github.com/flori/more_math".freeze
|
17
17
|
s.licenses = ["MIT".freeze]
|
18
18
|
s.rdoc_options = ["--title".freeze, "MoreMath -- More Math in Ruby".freeze, "--main".freeze, "README.md".freeze]
|
19
19
|
s.required_ruby_version = Gem::Requirement.new(">= 2.0".freeze)
|
20
|
-
s.rubygems_version = "3.5.
|
20
|
+
s.rubygems_version = "3.5.18".freeze
|
21
21
|
s.summary = "Library that provides more mathematics.".freeze
|
22
22
|
s.test_files = ["tests/cantor_pairing_function_test.rb".freeze, "tests/continued_fraction_test.rb".freeze, "tests/distribution_test.rb".freeze, "tests/entropy_test.rb".freeze, "tests/functions_test.rb".freeze, "tests/histogram_test.rb".freeze, "tests/newton_bisection_test.rb".freeze, "tests/numberify_string_function_test.rb".freeze, "tests/permutation_test.rb".freeze, "tests/sequence/refinement_test.rb".freeze, "tests/sequence_moving_average_test.rb".freeze, "tests/sequence_test.rb".freeze, "tests/string_numeral_test.rb".freeze, "tests/subset_test.rb".freeze, "tests/test_helper.rb".freeze]
|
23
23
|
|
24
24
|
s.specification_version = 4
|
25
25
|
|
26
|
-
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.
|
26
|
+
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.18.0".freeze])
|
27
27
|
s.add_development_dependency(%q<rake>.freeze, [">= 0".freeze])
|
28
28
|
s.add_development_dependency(%q<simplecov>.freeze, [">= 0".freeze])
|
29
29
|
s.add_development_dependency(%q<test-unit>.freeze, [">= 0".freeze])
|
data/tests/histogram_test.rb
CHANGED
@@ -17,6 +17,9 @@ class HistogramTest < Test::Unit::TestCase
|
|
17
17
|
def test_histogram_display
|
18
18
|
sequence = Sequence.new [ 1, 2, 3, 0, 2 ]
|
19
19
|
histogram = Histogram.new sequence, 3
|
20
|
+
def histogram.utf8?
|
21
|
+
false
|
22
|
+
end
|
20
23
|
assert_equal [[2.0, 3.0, 1], [1.0, 2.0, 2], [0.0, 1.0, 2]],
|
21
24
|
histogram.instance_eval { rows }
|
22
25
|
output = StringIO.new
|
@@ -32,6 +35,9 @@ class HistogramTest < Test::Unit::TestCase
|
|
32
35
|
def test_histogram_display_with_counts
|
33
36
|
sequence = Sequence.new [ 1, 2, 3, 0, 2 ]
|
34
37
|
histogram = Histogram.new sequence, with_counts: true, bins: 3
|
38
|
+
def histogram.utf8?
|
39
|
+
false
|
40
|
+
end
|
35
41
|
assert_equal [[2.0, 3.0, 1], [1.0, 2.0, 2], [0.0, 1.0, 2]],
|
36
42
|
histogram.instance_eval { rows }
|
37
43
|
output = StringIO.new
|
@@ -43,4 +49,38 @@ class HistogramTest < Test::Unit::TestCase
|
|
43
49
|
max_count=2
|
44
50
|
end
|
45
51
|
end
|
52
|
+
|
53
|
+
def test_histogram_display_utf8
|
54
|
+
srand 1337
|
55
|
+
sequence = Sequence.new 1000.times.map { rand(10) }
|
56
|
+
histogram = Histogram.new sequence, 3
|
57
|
+
def histogram.utf8?
|
58
|
+
true
|
59
|
+
end
|
60
|
+
output = StringIO.new
|
61
|
+
histogram.display output
|
62
|
+
assert_equal <<~end, output.string
|
63
|
+
7.50000 -|⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
|
64
|
+
4.50000 -|⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇
|
65
|
+
1.50000 -|⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
|
66
|
+
max_count=420
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
def test_histogram_display_with_counts_utf8
|
71
|
+
srand 1337
|
72
|
+
sequence = Sequence.new 1000.times.map { rand(10) }
|
73
|
+
histogram = Histogram.new sequence, with_counts: true, bins: 3
|
74
|
+
def histogram.utf8?
|
75
|
+
true
|
76
|
+
end
|
77
|
+
output = StringIO.new
|
78
|
+
histogram.display output
|
79
|
+
assert_equal <<~end, output.string
|
80
|
+
7.50000 -|⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇ 295
|
81
|
+
4.50000 -|⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇ 285
|
82
|
+
1.50000 -|⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ 420
|
83
|
+
max_count=420
|
84
|
+
end
|
85
|
+
end
|
46
86
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: more_math
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.18.0
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.18.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,7 +150,7 @@ extra_rdoc_files:
|
|
150
150
|
- lib/more_math/subset.rb
|
151
151
|
- lib/more_math/version.rb
|
152
152
|
files:
|
153
|
-
- CHANGES
|
153
|
+
- CHANGES.md
|
154
154
|
- Gemfile
|
155
155
|
- LICENSE
|
156
156
|
- README.md
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|
217
|
-
rubygems_version: 3.5.
|
217
|
+
rubygems_version: 3.5.18
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Library that provides more mathematics.
|
data/CHANGES
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
2017-07-04 (0.3.3)
|
2
|
-
* Add SPDX short identifier of license to gemspec file.
|
3
|
-
2012-10-31 (0.1.0)
|
4
|
-
* Included the Permutation features identity, power, and from_mapping
|
5
|
-
contributed by Pramukta Kumar <prak@mac.com>
|
6
|
-
2011-12-25 (0.0.4)
|
7
|
-
* Support simplecov
|
8
|
-
* Add more tests
|
9
|
-
2011-10-08 (0.0.3)
|
10
|
-
* Add permutation and subset implementations
|
11
|
-
2011-09-26 (0.0.2)
|
12
|
-
* Depend on tins library
|
13
|
-
2011-07-17 (0.0.1)
|
14
|
-
* Use gem_hadar
|
15
|
-
2010-11-01 (0.0.0)
|
16
|
-
* Initial Version
|