ruby-units 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.codeclimate.yml +32 -0
- data/.csslintrc +2 -0
- data/.eslintignore +1 -0
- data/.eslintrc +213 -0
- data/.github/workflows/tests.yml +40 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.rubocop.yml +24 -0
- data/.ruby-version +1 -0
- data/.solargraph.yml +16 -0
- data/CHANGELOG.txt +4 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +164 -0
- data/Guardfile +31 -0
- data/LICENSE.txt +18 -17
- data/README.md +124 -96
- data/Rakefile +3 -24
- data/lib/ruby_units/unit.rb +0 -1
- data/lib/ruby_units/version.rb +1 -4
- data/ruby-units.gemspec +35 -78
- metadata +95 -26
- data/VERSION +0 -1
data/Rakefile
CHANGED
@@ -1,27 +1,6 @@
|
|
1
|
-
require '
|
2
|
-
require 'rake'
|
3
|
-
require 'rake/testtask'
|
4
|
-
require './lib/ruby-units'
|
5
|
-
|
6
|
-
begin
|
7
|
-
require 'jeweler'
|
8
|
-
Jeweler::Tasks.new do |gem|
|
9
|
-
gem.name = 'ruby-units'
|
10
|
-
gem.summary = 'A class that performs unit conversions and unit math'
|
11
|
-
gem.description = 'Provides classes and methods to perform unit math and conversions'
|
12
|
-
gem.authors = ['Kevin Olbrich, Ph.D.']
|
13
|
-
gem.email = ['kevin.olbrich+ruby_units@gmail.com']
|
14
|
-
gem.homepage = 'https://github.com/olbrich/ruby-units'
|
15
|
-
gem.files.exclude('.*', 'test/**/*', 'spec/**/*', 'Gemfile', 'Guardfile')
|
16
|
-
gem.license = 'MIT'
|
17
|
-
end
|
18
|
-
Jeweler::GemcutterTasks.new
|
19
|
-
rescue LoadError
|
20
|
-
puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
|
21
|
-
end
|
22
|
-
|
1
|
+
require 'bundler/gem_tasks'
|
23
2
|
require 'rspec/core/rake_task'
|
24
|
-
|
25
|
-
RSpec::Core::RakeTask.new
|
3
|
+
|
4
|
+
RSpec::Core::RakeTask.new(:spec)
|
26
5
|
|
27
6
|
task default: :spec
|
data/lib/ruby_units/unit.rb
CHANGED
data/lib/ruby_units/version.rb
CHANGED
data/ruby-units.gemspec
CHANGED
@@ -1,84 +1,41 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: ruby-units 2.3.1 ruby lib
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'ruby_units/version'
|
6
4
|
|
7
|
-
Gem::Specification.new do |
|
8
|
-
|
9
|
-
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'ruby-units'
|
7
|
+
spec.version = RubyUnits::Unit::VERSION
|
8
|
+
spec.authors = ['Kevin Olbrich']
|
9
|
+
spec.email = ['kevin.olbrich@gmail.com']
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
s.extra_rdoc_files = [
|
18
|
-
"LICENSE.txt",
|
19
|
-
"README.md"
|
20
|
-
]
|
21
|
-
s.files = [
|
22
|
-
"CHANGELOG.txt",
|
23
|
-
"LICENSE.txt",
|
24
|
-
"README.md",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"lib/ruby-units.rb",
|
28
|
-
"lib/ruby_units/array.rb",
|
29
|
-
"lib/ruby_units/cache.rb",
|
30
|
-
"lib/ruby_units/configuration.rb",
|
31
|
-
"lib/ruby_units/date.rb",
|
32
|
-
"lib/ruby_units/definition.rb",
|
33
|
-
"lib/ruby_units/math.rb",
|
34
|
-
"lib/ruby_units/namespaced.rb",
|
35
|
-
"lib/ruby_units/numeric.rb",
|
36
|
-
"lib/ruby_units/string.rb",
|
37
|
-
"lib/ruby_units/time.rb",
|
38
|
-
"lib/ruby_units/unit.rb",
|
39
|
-
"lib/ruby_units/unit_definitions.rb",
|
40
|
-
"lib/ruby_units/unit_definitions/base.rb",
|
41
|
-
"lib/ruby_units/unit_definitions/prefix.rb",
|
42
|
-
"lib/ruby_units/unit_definitions/standard.rb",
|
43
|
-
"lib/ruby_units/version.rb",
|
44
|
-
"ruby-units.gemspec"
|
45
|
-
]
|
46
|
-
s.homepage = "https://github.com/olbrich/ruby-units".freeze
|
47
|
-
s.licenses = ["MIT".freeze]
|
48
|
-
s.rubygems_version = "2.6.14".freeze
|
49
|
-
s.summary = "A class that performs unit conversions and unit math".freeze
|
11
|
+
spec.required_rubygems_version = '>= 2.0'
|
12
|
+
spec.required_ruby_version = '>= 2.3'
|
13
|
+
spec.summary = 'Provides classes and methods to perform unit math and conversions'
|
14
|
+
spec.description = 'Provides classes and methods to perform unit math and conversions'
|
15
|
+
spec.homepage = 'https://github.com/olbrich/ruby-units'
|
16
|
+
spec.license = 'MIT'
|
50
17
|
|
51
|
-
|
52
|
-
|
18
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
19
|
+
spec.metadata['source_code_uri'] = 'https://github.com/olbrich/ruby-units'
|
20
|
+
spec.metadata['changelog_uri'] = 'https://github.com/olbrich/ruby-units/releases'
|
53
21
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
s.add_development_dependency(%q<pry>.freeze, [">= 0"])
|
59
|
-
s.add_development_dependency(%q<pry-byebug>.freeze, [">= 0"])
|
60
|
-
s.add_development_dependency(%q<ruby-prof>.freeze, [">= 0"])
|
61
|
-
s.add_development_dependency(%q<terminal-notifier>.freeze, [">= 0"])
|
62
|
-
s.add_development_dependency(%q<terminal-notifier-guard>.freeze, [">= 0"])
|
63
|
-
else
|
64
|
-
s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
|
65
|
-
s.add_dependency(%q<guard-rspec>.freeze, [">= 0"])
|
66
|
-
s.add_dependency(%q<jeweler>.freeze, [">= 0"])
|
67
|
-
s.add_dependency(%q<pry>.freeze, [">= 0"])
|
68
|
-
s.add_dependency(%q<pry-byebug>.freeze, [">= 0"])
|
69
|
-
s.add_dependency(%q<ruby-prof>.freeze, [">= 0"])
|
70
|
-
s.add_dependency(%q<terminal-notifier>.freeze, [">= 0"])
|
71
|
-
s.add_dependency(%q<terminal-notifier-guard>.freeze, [">= 0"])
|
72
|
-
end
|
73
|
-
else
|
74
|
-
s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
|
75
|
-
s.add_dependency(%q<guard-rspec>.freeze, [">= 0"])
|
76
|
-
s.add_dependency(%q<jeweler>.freeze, [">= 0"])
|
77
|
-
s.add_dependency(%q<pry>.freeze, [">= 0"])
|
78
|
-
s.add_dependency(%q<pry-byebug>.freeze, [">= 0"])
|
79
|
-
s.add_dependency(%q<ruby-prof>.freeze, [">= 0"])
|
80
|
-
s.add_dependency(%q<terminal-notifier>.freeze, [">= 0"])
|
81
|
-
s.add_dependency(%q<terminal-notifier-guard>.freeze, [">= 0"])
|
22
|
+
# Specify which files should be added to the gem when it is released.
|
23
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
25
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
82
26
|
end
|
83
|
-
|
27
|
+
spec.require_paths = ['lib']
|
84
28
|
|
29
|
+
spec.add_development_dependency 'guard-rspec'
|
30
|
+
spec.add_development_dependency 'pry'
|
31
|
+
spec.add_development_dependency 'rake'
|
32
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
33
|
+
spec.add_development_dependency 'rubocop'
|
34
|
+
spec.add_development_dependency 'rubocop-rake'
|
35
|
+
spec.add_development_dependency 'rubocop-rspec'
|
36
|
+
spec.add_development_dependency 'simplecov-html'
|
37
|
+
spec.add_development_dependency 'simplecov'
|
38
|
+
spec.add_development_dependency 'solargraph'
|
39
|
+
spec.add_development_dependency 'terminal-notifier-guard'
|
40
|
+
spec.add_development_dependency 'terminal-notifier'
|
41
|
+
end
|
metadata
CHANGED
@@ -1,31 +1,73 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-units
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Kevin Olbrich
|
8
|
-
autorequire:
|
7
|
+
- Kevin Olbrich
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: guard-rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pry
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
15
57
|
requirement: !ruby/object:Gem::Requirement
|
16
58
|
requirements:
|
17
59
|
- - "~>"
|
18
60
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
61
|
+
version: '3.0'
|
20
62
|
type: :development
|
21
63
|
prerelease: false
|
22
64
|
version_requirements: !ruby/object:Gem::Requirement
|
23
65
|
requirements:
|
24
66
|
- - "~>"
|
25
67
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
68
|
+
version: '3.0'
|
27
69
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
70
|
+
name: rubocop
|
29
71
|
requirement: !ruby/object:Gem::Requirement
|
30
72
|
requirements:
|
31
73
|
- - ">="
|
@@ -39,7 +81,7 @@ dependencies:
|
|
39
81
|
- !ruby/object:Gem::Version
|
40
82
|
version: '0'
|
41
83
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
84
|
+
name: rubocop-rake
|
43
85
|
requirement: !ruby/object:Gem::Requirement
|
44
86
|
requirements:
|
45
87
|
- - ">="
|
@@ -53,7 +95,7 @@ dependencies:
|
|
53
95
|
- !ruby/object:Gem::Version
|
54
96
|
version: '0'
|
55
97
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
98
|
+
name: rubocop-rspec
|
57
99
|
requirement: !ruby/object:Gem::Requirement
|
58
100
|
requirements:
|
59
101
|
- - ">="
|
@@ -67,7 +109,7 @@ dependencies:
|
|
67
109
|
- !ruby/object:Gem::Version
|
68
110
|
version: '0'
|
69
111
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
112
|
+
name: simplecov-html
|
71
113
|
requirement: !ruby/object:Gem::Requirement
|
72
114
|
requirements:
|
73
115
|
- - ">="
|
@@ -81,7 +123,7 @@ dependencies:
|
|
81
123
|
- !ruby/object:Gem::Version
|
82
124
|
version: '0'
|
83
125
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
126
|
+
name: simplecov
|
85
127
|
requirement: !ruby/object:Gem::Requirement
|
86
128
|
requirements:
|
87
129
|
- - ">="
|
@@ -95,7 +137,7 @@ dependencies:
|
|
95
137
|
- !ruby/object:Gem::Version
|
96
138
|
version: '0'
|
97
139
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
140
|
+
name: solargraph
|
99
141
|
requirement: !ruby/object:Gem::Requirement
|
100
142
|
requirements:
|
101
143
|
- - ">="
|
@@ -122,20 +164,45 @@ dependencies:
|
|
122
164
|
- - ">="
|
123
165
|
- !ruby/object:Gem::Version
|
124
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: terminal-notifier
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
125
181
|
description: Provides classes and methods to perform unit math and conversions
|
126
182
|
email:
|
127
|
-
- kevin.olbrich
|
183
|
+
- kevin.olbrich@gmail.com
|
128
184
|
executables: []
|
129
185
|
extensions: []
|
130
|
-
extra_rdoc_files:
|
131
|
-
- LICENSE.txt
|
132
|
-
- README.md
|
186
|
+
extra_rdoc_files: []
|
133
187
|
files:
|
188
|
+
- ".codeclimate.yml"
|
189
|
+
- ".csslintrc"
|
190
|
+
- ".eslintignore"
|
191
|
+
- ".eslintrc"
|
192
|
+
- ".github/workflows/tests.yml"
|
193
|
+
- ".gitignore"
|
194
|
+
- ".rspec"
|
195
|
+
- ".rubocop.yml"
|
196
|
+
- ".ruby-version"
|
197
|
+
- ".solargraph.yml"
|
134
198
|
- CHANGELOG.txt
|
199
|
+
- CODE_OF_CONDUCT.md
|
200
|
+
- Gemfile
|
201
|
+
- Gemfile.lock
|
202
|
+
- Guardfile
|
135
203
|
- LICENSE.txt
|
136
204
|
- README.md
|
137
205
|
- Rakefile
|
138
|
-
- VERSION
|
139
206
|
- lib/ruby-units.rb
|
140
207
|
- lib/ruby_units/array.rb
|
141
208
|
- lib/ruby_units/cache.rb
|
@@ -157,8 +224,11 @@ files:
|
|
157
224
|
homepage: https://github.com/olbrich/ruby-units
|
158
225
|
licenses:
|
159
226
|
- MIT
|
160
|
-
metadata:
|
161
|
-
|
227
|
+
metadata:
|
228
|
+
homepage_uri: https://github.com/olbrich/ruby-units
|
229
|
+
source_code_uri: https://github.com/olbrich/ruby-units
|
230
|
+
changelog_uri: https://github.com/olbrich/ruby-units/releases
|
231
|
+
post_install_message:
|
162
232
|
rdoc_options: []
|
163
233
|
require_paths:
|
164
234
|
- lib
|
@@ -166,16 +236,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
166
236
|
requirements:
|
167
237
|
- - ">="
|
168
238
|
- !ruby/object:Gem::Version
|
169
|
-
version: '
|
239
|
+
version: '2.3'
|
170
240
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
241
|
requirements:
|
172
242
|
- - ">="
|
173
243
|
- !ruby/object:Gem::Version
|
174
|
-
version: '0'
|
244
|
+
version: '2.0'
|
175
245
|
requirements: []
|
176
|
-
|
177
|
-
|
178
|
-
signing_key:
|
246
|
+
rubygems_version: 3.2.3
|
247
|
+
signing_key:
|
179
248
|
specification_version: 4
|
180
|
-
summary:
|
249
|
+
summary: Provides classes and methods to perform unit math and conversions
|
181
250
|
test_files: []
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.3.1
|