ruby-units 2.3.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +16 -0
- data/.github/workflows/codeql-analysis.yml +70 -0
- data/.github/workflows/tests.yml +10 -1
- data/.ruby-version +1 -1
- data/.solargraph.yml +1 -1
- data/.tool-versions +3 -0
- data/CHANGELOG.txt +4 -0
- data/Gemfile +2 -1
- data/Gemfile.lock +87 -67
- data/lib/ruby-units.rb +0 -1
- data/lib/ruby_units/array.rb +17 -7
- data/lib/ruby_units/cache.rb +27 -14
- data/lib/ruby_units/configuration.rb +12 -11
- data/lib/ruby_units/date.rb +46 -53
- data/lib/ruby_units/definition.rb +6 -2
- data/lib/ruby_units/math.rb +136 -113
- data/lib/ruby_units/namespaced.rb +0 -3
- data/lib/ruby_units/numeric.rb +21 -5
- data/lib/ruby_units/string.rb +34 -21
- data/lib/ruby_units/time.rb +76 -69
- data/lib/ruby_units/unit.rb +408 -377
- data/lib/ruby_units/version.rb +1 -1
- data/ruby-units.gemspec +4 -2
- metadata +40 -9
data/lib/ruby_units/version.rb
CHANGED
data/ruby-units.gemspec
CHANGED
@@ -33,9 +33,11 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency 'rubocop'
|
34
34
|
spec.add_development_dependency 'rubocop-rake'
|
35
35
|
spec.add_development_dependency 'rubocop-rspec'
|
36
|
-
spec.add_development_dependency 'simplecov-html'
|
37
36
|
spec.add_development_dependency 'simplecov'
|
37
|
+
spec.add_development_dependency 'simplecov-html'
|
38
38
|
spec.add_development_dependency 'solargraph'
|
39
|
-
spec.add_development_dependency 'terminal-notifier-guard'
|
40
39
|
spec.add_development_dependency 'terminal-notifier'
|
40
|
+
spec.add_development_dependency 'terminal-notifier-guard'
|
41
|
+
spec.add_development_dependency 'webrick'
|
42
|
+
spec.add_development_dependency 'yard'
|
41
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-units
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Olbrich
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard-rspec
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name: simplecov
|
112
|
+
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name: simplecov
|
126
|
+
name: simplecov-html
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
@@ -150,6 +150,20 @@ dependencies:
|
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: terminal-notifier
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: terminal-notifier-guard
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,7 +179,21 @@ dependencies:
|
|
165
179
|
- !ruby/object:Gem::Version
|
166
180
|
version: '0'
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
182
|
+
name: webrick
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: yard
|
169
197
|
requirement: !ruby/object:Gem::Requirement
|
170
198
|
requirements:
|
171
199
|
- - ">="
|
@@ -189,12 +217,15 @@ files:
|
|
189
217
|
- ".csslintrc"
|
190
218
|
- ".eslintignore"
|
191
219
|
- ".eslintrc"
|
220
|
+
- ".github/dependabot.yml"
|
221
|
+
- ".github/workflows/codeql-analysis.yml"
|
192
222
|
- ".github/workflows/tests.yml"
|
193
223
|
- ".gitignore"
|
194
224
|
- ".rspec"
|
195
225
|
- ".rubocop.yml"
|
196
226
|
- ".ruby-version"
|
197
227
|
- ".solargraph.yml"
|
228
|
+
- ".tool-versions"
|
198
229
|
- CHANGELOG.txt
|
199
230
|
- CODE_OF_CONDUCT.md
|
200
231
|
- Gemfile
|
@@ -228,7 +259,7 @@ metadata:
|
|
228
259
|
homepage_uri: https://github.com/olbrich/ruby-units
|
229
260
|
source_code_uri: https://github.com/olbrich/ruby-units
|
230
261
|
changelog_uri: https://github.com/olbrich/ruby-units/releases
|
231
|
-
post_install_message:
|
262
|
+
post_install_message:
|
232
263
|
rdoc_options: []
|
233
264
|
require_paths:
|
234
265
|
- lib
|
@@ -243,8 +274,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
274
|
- !ruby/object:Gem::Version
|
244
275
|
version: '2.0'
|
245
276
|
requirements: []
|
246
|
-
rubygems_version: 3.
|
247
|
-
signing_key:
|
277
|
+
rubygems_version: 3.3.17
|
278
|
+
signing_key:
|
248
279
|
specification_version: 4
|
249
280
|
summary: Provides classes and methods to perform unit math and conversions
|
250
281
|
test_files: []
|