ruby-units 4.0.1 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab979845681df4808b65ce563da009fb7f85a959d5aaab8d34da777e4e8023cf
4
- data.tar.gz: 6505e1967cd97df4a80dc708e69f22031b6be1fc7b776568a9c65c7c276f798a
3
+ metadata.gz: 515d78b788c31cefd79643b9a145f4cecf0448ac9e0df785453a2b19d31268d5
4
+ data.tar.gz: b10b08bf4d1d23d94603a9e0c5ca0d6c4962587225f9b04b6f74bac5ae521816
5
5
  SHA512:
6
- metadata.gz: 579256ed6966a612661b3a677dcb5c991a39498b1b9789a48e501c68ad0d39b8937bb9c57ed4c47bc9ec5028c32752645d52b269a38cf6cf12a1062a4d52b27f
7
- data.tar.gz: 708818f3a5311a0322c3b8afffdfb72dba0a9ba64892f403579abb16a76c0f7257a5602a66d02123a2a01afa02fdf4baf38ab94af0d0503d4c5923f489965f09
6
+ metadata.gz: 86df302207791952b19f06923111cb9305cf0e3cfeffab1869db061748925aa164b0f5d0eec453b546869b4895c0e1b41f38e2bfc4cb5f0b16986fdd41d5d576
7
+ data.tar.gz: 5f5c690e1dbb1f222fa95f8e0050cac04d1431dfb2ee0517921c819961ec3c3b1f57b3ab97807d3ccf04f00e13f8aac91577d21aedfba2b8c2d98b0703449782
data/.rubocop.yml CHANGED
@@ -24,3 +24,5 @@ Style/FormatString:
24
24
  Enabled: false
25
25
  Style/DateTime:
26
26
  Enabled: false
27
+ Metrics/ClassLength:
28
+ Enabled: false
data/Gemfile.lock CHANGED
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-units (4.0.1)
4
+ ruby-units (4.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.2)
10
10
  backport (1.2.0)
11
- benchmark (0.2.1)
11
+ benchmark (0.3.0)
12
12
  coderay (1.1.3)
13
- debug (1.8.0)
14
- irb (>= 1.5.0)
15
- reline (>= 0.3.1)
16
- diff-lcs (1.5.0)
13
+ debug (1.9.1)
14
+ irb (~> 1.10)
15
+ reline (>= 0.3.8)
16
+ diff-lcs (1.5.1)
17
17
  docile (1.4.0)
18
18
  e2mmap (0.1.0)
19
19
  ffi (1.16.3)
@@ -33,16 +33,16 @@ GEM
33
33
  guard (~> 2.1)
34
34
  guard-compat (~> 1.1)
35
35
  rspec (>= 2.99.0, < 4.0)
36
- io-console (0.6.0)
37
- io-console (0.6.0-java)
38
- irb (1.8.3)
36
+ io-console (0.7.2)
37
+ io-console (0.7.2-java)
38
+ irb (1.11.1)
39
39
  rdoc
40
- reline (>= 0.3.8)
40
+ reline (>= 0.4.2)
41
41
  jar-dependencies (0.4.1)
42
42
  jaro_winkler (1.5.6)
43
43
  jaro_winkler (1.5.6-java)
44
- json (2.6.3)
45
- json (2.6.3-java)
44
+ json (2.7.1)
45
+ json (2.7.1-java)
46
46
  kramdown (2.4.0)
47
47
  rexml
48
48
  kramdown-parser-gfm (1.1.0)
@@ -51,22 +51,22 @@ GEM
51
51
  listen (3.8.0)
52
52
  rb-fsevent (~> 0.10, >= 0.10.3)
53
53
  rb-inotify (~> 0.9, >= 0.9.10)
54
- lumberjack (1.2.9)
54
+ lumberjack (1.2.10)
55
55
  method_source (1.0.0)
56
56
  nenv (0.3.0)
57
- nokogiri (1.15.4-arm64-darwin)
57
+ nokogiri (1.16.2-arm64-darwin)
58
58
  racc (~> 1.4)
59
- nokogiri (1.15.4-java)
59
+ nokogiri (1.16.2-java)
60
60
  racc (~> 1.4)
61
- nokogiri (1.15.4-x86_64-darwin)
61
+ nokogiri (1.16.2-x86_64-darwin)
62
62
  racc (~> 1.4)
63
- nokogiri (1.15.4-x86_64-linux)
63
+ nokogiri (1.16.2-x86_64-linux)
64
64
  racc (~> 1.4)
65
65
  notiffany (0.1.3)
66
66
  nenv (~> 0.1)
67
67
  shellany (~> 0.0)
68
- parallel (1.23.0)
69
- parser (3.2.2.4)
68
+ parallel (1.24.0)
69
+ parser (3.3.0.5)
70
70
  ast (~> 2.4.1)
71
71
  racc
72
72
  pry (0.14.2)
@@ -76,67 +76,67 @@ GEM
76
76
  coderay (~> 1.1)
77
77
  method_source (~> 1.0)
78
78
  spoon (~> 0.0)
79
- psych (5.1.1.1)
79
+ psych (5.1.2)
80
80
  stringio
81
- psych (5.1.1.1-java)
81
+ psych (5.1.2-java)
82
82
  jar-dependencies (>= 0.1.7)
83
- racc (1.7.2)
84
- racc (1.7.2-java)
83
+ racc (1.7.3)
84
+ racc (1.7.3-java)
85
85
  rainbow (3.1.1)
86
86
  rake (13.1.0)
87
87
  rb-fsevent (0.11.2)
88
88
  rb-inotify (0.10.1)
89
89
  ffi (~> 1.0)
90
90
  rbs (2.8.4)
91
- rdoc (6.5.0)
91
+ rdoc (6.6.2)
92
92
  psych (>= 4.0.0)
93
93
  redcarpet (3.6.0)
94
- regexp_parser (2.8.2)
95
- reline (0.3.9)
94
+ regexp_parser (2.9.0)
95
+ reline (0.4.2)
96
96
  io-console (~> 0.5)
97
97
  reverse_markdown (2.1.1)
98
98
  nokogiri
99
99
  rexml (3.2.6)
100
- rspec (3.12.0)
101
- rspec-core (~> 3.12.0)
102
- rspec-expectations (~> 3.12.0)
103
- rspec-mocks (~> 3.12.0)
104
- rspec-core (3.12.2)
105
- rspec-support (~> 3.12.0)
106
- rspec-expectations (3.12.3)
100
+ rspec (3.13.0)
101
+ rspec-core (~> 3.13.0)
102
+ rspec-expectations (~> 3.13.0)
103
+ rspec-mocks (~> 3.13.0)
104
+ rspec-core (3.13.0)
105
+ rspec-support (~> 3.13.0)
106
+ rspec-expectations (3.13.0)
107
107
  diff-lcs (>= 1.2.0, < 2.0)
108
- rspec-support (~> 3.12.0)
109
- rspec-mocks (3.12.6)
108
+ rspec-support (~> 3.13.0)
109
+ rspec-mocks (3.13.0)
110
110
  diff-lcs (>= 1.2.0, < 2.0)
111
- rspec-support (~> 3.12.0)
112
- rspec-support (3.12.1)
113
- rubocop (1.57.2)
111
+ rspec-support (~> 3.13.0)
112
+ rspec-support (3.13.0)
113
+ rubocop (1.60.2)
114
114
  json (~> 2.3)
115
115
  language_server-protocol (>= 3.17.0)
116
116
  parallel (~> 1.10)
117
- parser (>= 3.2.2.4)
117
+ parser (>= 3.3.0.2)
118
118
  rainbow (>= 2.2.2, < 4.0)
119
119
  regexp_parser (>= 1.8, < 3.0)
120
120
  rexml (>= 3.2.5, < 4.0)
121
- rubocop-ast (>= 1.28.1, < 2.0)
121
+ rubocop-ast (>= 1.30.0, < 2.0)
122
122
  ruby-progressbar (~> 1.7)
123
123
  unicode-display_width (>= 2.4.0, < 3.0)
124
124
  rubocop-ast (1.30.0)
125
125
  parser (>= 3.2.1.0)
126
- rubocop-capybara (2.19.0)
126
+ rubocop-capybara (2.20.0)
127
+ rubocop (~> 1.41)
128
+ rubocop-factory_bot (2.25.1)
127
129
  rubocop (~> 1.41)
128
- rubocop-factory_bot (2.24.0)
129
- rubocop (~> 1.33)
130
130
  rubocop-rake (0.6.0)
131
131
  rubocop (~> 1.0)
132
- rubocop-rspec (2.25.0)
132
+ rubocop-rspec (2.26.1)
133
133
  rubocop (~> 1.40)
134
134
  rubocop-capybara (~> 2.17)
135
135
  rubocop-factory_bot (~> 2.22)
136
136
  ruby-maven (3.3.13)
137
137
  ruby-maven-libs (~> 3.3.9)
138
138
  ruby-maven-libs (3.3.9)
139
- ruby-prof (1.6.3)
139
+ ruby-prof (1.7.0)
140
140
  ruby-progressbar (1.13.0)
141
141
  shellany (0.0.1)
142
142
  simplecov (0.22.0)
@@ -145,7 +145,7 @@ GEM
145
145
  simplecov_json_formatter (~> 0.1)
146
146
  simplecov-html (0.12.3)
147
147
  simplecov_json_formatter (0.1.4)
148
- solargraph (0.49.0)
148
+ solargraph (0.50.0)
149
149
  backport (~> 1.2)
150
150
  benchmark
151
151
  bundler (~> 2.0)
@@ -163,7 +163,7 @@ GEM
163
163
  yard (~> 0.9, >= 0.9.24)
164
164
  spoon (0.0.6)
165
165
  ffi
166
- stringio (3.0.8)
166
+ stringio (3.1.0)
167
167
  terminal-notifier (2.0.0)
168
168
  terminal-notifier-guard (1.7.0)
169
169
  thor (1.3.0)
@@ -175,6 +175,7 @@ GEM
175
175
  PLATFORMS
176
176
  arm64-darwin-21
177
177
  arm64-darwin-22
178
+ arm64-darwin-23
178
179
  java
179
180
  universal-java-11
180
181
  universal-java-18
@@ -203,4 +204,4 @@ DEPENDENCIES
203
204
  yard
204
205
 
205
206
  BUNDLED WITH
206
- 2.4.19
207
+ 2.5.3
@@ -1,6 +1,6 @@
1
1
  require 'date'
2
2
  module RubyUnits
3
- # Copyright 2006-2023
3
+ # Copyright 2006-2024
4
4
  # @author Kevin C. Olbrich, Ph.D.
5
5
  # @see https://github.com/olbrich/ruby-units
6
6
  #
@@ -165,6 +165,17 @@ module RubyUnits
165
165
 
166
166
  # Class Methods
167
167
 
168
+ # Callback triggered when a subclass is created. This properly sets up the internal variables, and copies
169
+ # definitions from the parent class.
170
+ #
171
+ # @param [Class] subclass
172
+ def self.inherited(subclass)
173
+ super
174
+ subclass.definitions = definitions.dup
175
+ subclass.instance_variable_set(:@kinds, @kinds.dup)
176
+ subclass.setup
177
+ end
178
+
168
179
  # setup internal arrays and hashes
169
180
  # @return [Boolean]
170
181
  def self.setup
@@ -1,5 +1,5 @@
1
1
  module RubyUnits
2
2
  class Unit < Numeric
3
- VERSION = '4.0.1'.freeze
3
+ VERSION = '4.0.2'.freeze
4
4
  end
5
5
  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.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Olbrich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-02 00:00:00.000000000 Z
11
+ date: 2024-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '2.0'
108
108
  requirements: []
109
- rubygems_version: 3.4.19
109
+ rubygems_version: 3.2.33
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Provides classes and methods to perform unit math and conversions