unit_measurements 3.4.1 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +40 -22
- data/Gemfile.lock +1 -1
- data/lib/unit_measurements/unit_groups/all.rb +4 -0
- data/lib/unit_measurements/unit_groups/capacitance.rb +19 -0
- data/lib/unit_measurements/unit_groups/conductance.rb +19 -0
- data/lib/unit_measurements/unit_groups/elastance.rb +12 -0
- data/lib/unit_measurements/unit_groups/resistance.rb +20 -0
- data/lib/unit_measurements/version.rb +1 -1
- data/units.md +43 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '093ce14ea3ef94b656b3dd662af794f381fe69538d3f13045520c463331b41e2'
|
4
|
+
data.tar.gz: 0bd30d1d40a96bb5f6237bd499c1da9427917a471a4780652c5c203334cae104
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81d0e42bf1d4967821eb276f0574588a2bdf15ff9196659c7aafc34adf5a2da4cdcb4990bbac2e9a251117225ff39b31707ce4a09461416bd093868cd69c88d7
|
7
|
+
data.tar.gz: 69ba5d10f7fb46451874f36db150aeff3516ce99b8394efc2402fa8d44600290c626817edba70620dc312040b0fdea93be4851ae527f255fae03f03481470647
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,22 @@
|
|
1
|
-
## [3.
|
1
|
+
## [3.6.0](https://github.com/shivam091/unit_measurements/compare/v3.5.0...v3.6.0) - 2023-10-01
|
2
|
+
|
3
|
+
### What's new
|
4
|
+
|
5
|
+
- Added unit group for `resistance` units.
|
6
|
+
- Added unit group for `conductance` units.
|
7
|
+
|
8
|
+
----------
|
9
|
+
|
10
|
+
## [3.5.0](https://github.com/shivam091/unit_measurements/compare/v3.4.1...v3.5.0) - 2023-09-30
|
11
|
+
|
12
|
+
### What's new
|
13
|
+
|
14
|
+
- Added unit group for `capacitance` units.
|
15
|
+
- Added unit group for `elastance` units.
|
16
|
+
|
17
|
+
----------
|
18
|
+
|
19
|
+
## [3.4.1](https://github.com/shivam091/unit_measurements/compare/v3.4.0...v3.4.1) - 2023-09-29
|
2
20
|
|
3
21
|
### What's changed
|
4
22
|
|
@@ -10,7 +28,7 @@
|
|
10
28
|
|
11
29
|
----------
|
12
30
|
|
13
|
-
## [3.4.0](https://github.com/shivam091/unit_measurements/compare/v3.3.0...v3.4.0) - 2023-
|
31
|
+
## [3.4.0](https://github.com/shivam091/unit_measurements/compare/v3.3.0...v3.4.0) - 2023-09-28
|
14
32
|
|
15
33
|
### What's new
|
16
34
|
|
@@ -25,7 +43,7 @@
|
|
25
43
|
|
26
44
|
----------
|
27
45
|
|
28
|
-
## [3.3.0](https://github.com/shivam091/unit_measurements/compare/v3.2.0...v3.3.0) - 2023-
|
46
|
+
## [3.3.0](https://github.com/shivam091/unit_measurements/compare/v3.2.0...v3.3.0) - 2023-09-28
|
29
47
|
|
30
48
|
### What's new
|
31
49
|
|
@@ -34,7 +52,7 @@
|
|
34
52
|
|
35
53
|
----------
|
36
54
|
|
37
|
-
## [3.2.0](https://github.com/shivam091/unit_measurements/compare/v3.1.0...v3.2.0) - 2023-
|
55
|
+
## [3.2.0](https://github.com/shivam091/unit_measurements/compare/v3.1.0...v3.2.0) - 2023-09-27
|
38
56
|
|
39
57
|
### What's new
|
40
58
|
|
@@ -43,7 +61,7 @@
|
|
43
61
|
|
44
62
|
----------
|
45
63
|
|
46
|
-
## [3.1.0](https://github.com/shivam091/unit_measurements/compare/v3.0.0...v3.1.0) - 2023-
|
64
|
+
## [3.1.0](https://github.com/shivam091/unit_measurements/compare/v3.0.0...v3.1.0) - 2023-09-26
|
47
65
|
|
48
66
|
### What's new
|
49
67
|
|
@@ -52,7 +70,7 @@
|
|
52
70
|
|
53
71
|
----------
|
54
72
|
|
55
|
-
## [3.0.0](https://github.com/shivam091/unit_measurements/compare/v2.6.2...v3.0.0) - 2023-
|
73
|
+
## [3.0.0](https://github.com/shivam091/unit_measurements/compare/v2.6.2...v3.0.0) - 2023-09-25
|
56
74
|
|
57
75
|
### What's new
|
58
76
|
|
@@ -68,7 +86,7 @@
|
|
68
86
|
|
69
87
|
----------
|
70
88
|
|
71
|
-
## [2.6.2](https://github.com/shivam091/unit_measurements/compare/v2.6.1...v2.6.2) - 2023-
|
89
|
+
## [2.6.2](https://github.com/shivam091/unit_measurements/compare/v2.6.1...v2.6.2) - 2023-09-25
|
72
90
|
|
73
91
|
### What's changed
|
74
92
|
|
@@ -76,7 +94,7 @@
|
|
76
94
|
|
77
95
|
----------
|
78
96
|
|
79
|
-
## [2.6.1](https://github.com/shivam091/unit_measurements/compare/v2.6.0...v2.6.1) - 2023-
|
97
|
+
## [2.6.1](https://github.com/shivam091/unit_measurements/compare/v2.6.0...v2.6.1) - 2023-09-24
|
80
98
|
|
81
99
|
### What's changed
|
82
100
|
|
@@ -84,7 +102,7 @@
|
|
84
102
|
|
85
103
|
----------
|
86
104
|
|
87
|
-
## [2.6.0](https://github.com/shivam091/unit_measurements/compare/v2.5.0...v2.6.0) - 2023-
|
105
|
+
## [2.6.0](https://github.com/shivam091/unit_measurements/compare/v2.5.0...v2.6.0) - 2023-09-24
|
88
106
|
|
89
107
|
### What's new
|
90
108
|
|
@@ -93,7 +111,7 @@
|
|
93
111
|
|
94
112
|
----------
|
95
113
|
|
96
|
-
## [2.5.0](https://github.com/shivam091/unit_measurements/compare/v2.4.0...v2.5.0) - 2023-
|
114
|
+
## [2.5.0](https://github.com/shivam091/unit_measurements/compare/v2.4.0...v2.5.0) - 2023-09-23
|
97
115
|
|
98
116
|
### What's new
|
99
117
|
|
@@ -102,7 +120,7 @@
|
|
102
120
|
|
103
121
|
----------
|
104
122
|
|
105
|
-
## [2.4.0](https://github.com/shivam091/unit_measurements/compare/v2.3.0...v2.4.0) - 2023-
|
123
|
+
## [2.4.0](https://github.com/shivam091/unit_measurements/compare/v2.3.0...v2.4.0) - 2023-09-23
|
106
124
|
|
107
125
|
### What's new
|
108
126
|
|
@@ -111,7 +129,7 @@
|
|
111
129
|
|
112
130
|
----------
|
113
131
|
|
114
|
-
## [2.3.0](https://github.com/shivam091/unit_measurements/compare/v2.2.0...v2.3.0) - 2023-
|
132
|
+
## [2.3.0](https://github.com/shivam091/unit_measurements/compare/v2.2.0...v2.3.0) - 2023-09-22
|
115
133
|
|
116
134
|
### What's new
|
117
135
|
|
@@ -120,7 +138,7 @@
|
|
120
138
|
|
121
139
|
----------
|
122
140
|
|
123
|
-
## [2.2.0](https://github.com/shivam091/unit_measurements/compare/v2.1.0...v2.2.0) - 2023-
|
141
|
+
## [2.2.0](https://github.com/shivam091/unit_measurements/compare/v2.1.0...v2.2.0) - 2023-09-21
|
124
142
|
|
125
143
|
### What's new
|
126
144
|
|
@@ -130,7 +148,7 @@
|
|
130
148
|
|
131
149
|
----------
|
132
150
|
|
133
|
-
## [2.1.0](https://github.com/shivam091/unit_measurements/compare/v1.7.0...v2.1.0) - 2023-
|
151
|
+
## [2.1.0](https://github.com/shivam091/unit_measurements/compare/v1.7.0...v2.1.0) - 2023-09-20
|
134
152
|
|
135
153
|
### What's new
|
136
154
|
|
@@ -139,7 +157,7 @@
|
|
139
157
|
|
140
158
|
----------
|
141
159
|
|
142
|
-
## [1.7.0](https://github.com/shivam091/unit_measurements/compare/v1.6.0...v1.7.0) - 2023-
|
160
|
+
## [1.7.0](https://github.com/shivam091/unit_measurements/compare/v1.6.0...v1.7.0) - 2023-09-20
|
143
161
|
|
144
162
|
### What's new
|
145
163
|
|
@@ -148,7 +166,7 @@
|
|
148
166
|
|
149
167
|
----------
|
150
168
|
|
151
|
-
## [1.6.0](https://github.com/shivam091/unit_measurements/compare/v1.5.1...v1.6.0) - 2023-
|
169
|
+
## [1.6.0](https://github.com/shivam091/unit_measurements/compare/v1.5.1...v1.6.0) - 2023-09-19
|
152
170
|
|
153
171
|
### What's new
|
154
172
|
|
@@ -156,7 +174,7 @@
|
|
156
174
|
|
157
175
|
----------
|
158
176
|
|
159
|
-
## [1.5.1](https://github.com/shivam091/unit_measurements/compare/v1.5.0...v1.5.1) - 2023-
|
177
|
+
## [1.5.1](https://github.com/shivam091/unit_measurements/compare/v1.5.0...v1.5.1) - 2023-09-18
|
160
178
|
|
161
179
|
### What's updated
|
162
180
|
|
@@ -164,7 +182,7 @@
|
|
164
182
|
|
165
183
|
----------
|
166
184
|
|
167
|
-
## [1.5.0](https://github.com/shivam091/unit_measurements/compare/v1.4.0...v1.5.0) - 2023-
|
185
|
+
## [1.5.0](https://github.com/shivam091/unit_measurements/compare/v1.4.0...v1.5.0) - 2023-09-18
|
168
186
|
|
169
187
|
### What's fixed
|
170
188
|
|
@@ -172,7 +190,7 @@
|
|
172
190
|
|
173
191
|
----------
|
174
192
|
|
175
|
-
## [1.4.0](https://github.com/shivam091/unit_measurements/compare/v1.3.0...v1.4.0) - 2023-
|
193
|
+
## [1.4.0](https://github.com/shivam091/unit_measurements/compare/v1.3.0...v1.4.0) - 2023-09-17
|
176
194
|
|
177
195
|
### What's new
|
178
196
|
|
@@ -180,7 +198,7 @@
|
|
180
198
|
|
181
199
|
----------
|
182
200
|
|
183
|
-
## [1.3.0](https://github.com/shivam091/unit_measurements/compare/v1.2.0...v1.3.0) - 2023-
|
201
|
+
## [1.3.0](https://github.com/shivam091/unit_measurements/compare/v1.2.0...v1.3.0) - 2023-09-16
|
184
202
|
|
185
203
|
### What's new
|
186
204
|
|
@@ -188,7 +206,7 @@
|
|
188
206
|
|
189
207
|
----------
|
190
208
|
|
191
|
-
## [1.2.0](https://github.com/shivam091/unit_measurements/compare/v1.1.0...v1.2.0) - 2023-
|
209
|
+
## [1.2.0](https://github.com/shivam091/unit_measurements/compare/v1.1.0...v1.2.0) - 2023-09-15
|
192
210
|
|
193
211
|
### What's new
|
194
212
|
|
@@ -196,7 +214,7 @@
|
|
196
214
|
|
197
215
|
----------
|
198
216
|
|
199
|
-
## [1.1.0](https://github.com/shivam091/unit_measurements/compare/v1.0.0...v1.1.0) - 2023-
|
217
|
+
## [1.1.0](https://github.com/shivam091/unit_measurements/compare/v1.0.0...v1.1.0) - 2023-09-14
|
200
218
|
|
201
219
|
### What's new
|
202
220
|
|
data/Gemfile.lock
CHANGED
@@ -24,6 +24,10 @@ require_relative "angular_acceleration"
|
|
24
24
|
require_relative "force"
|
25
25
|
require_relative "voltage"
|
26
26
|
require_relative "electric_charge"
|
27
|
+
require_relative "capacitance"
|
28
|
+
require_relative "elastance"
|
29
|
+
require_relative "resistance"
|
30
|
+
require_relative "conductance"
|
27
31
|
|
28
32
|
## Other units
|
29
33
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# -*- frozen_string_literal: true -*-
|
3
|
+
# -*- warn_indent: true -*-
|
4
|
+
|
5
|
+
UnitMeasurements::Capacitance = UnitMeasurements.build do
|
6
|
+
system :metric do
|
7
|
+
primitive :F
|
8
|
+
|
9
|
+
si_unit :F, aliases: [:farad, :farads]
|
10
|
+
unit :"C/V", value: "1 F", aliases: [:"C·V⁻¹", :"coulomb/volt", :"coulombs/volt", :"coulomb per volt", :"coulombs per volt"]
|
11
|
+
end
|
12
|
+
|
13
|
+
system :centimetre_gram_second do
|
14
|
+
primitive :statF
|
15
|
+
|
16
|
+
unit :abF, value: "1e+9 F", aliases: [:abfarad, :abfarads]
|
17
|
+
unit :statF, value: "1.1127e-12 F", aliases: [:statfarad, :statfarads]
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# -*- frozen_string_literal: true -*-
|
3
|
+
# -*- warn_indent: true -*-
|
4
|
+
|
5
|
+
UnitMeasurements::Conductance = UnitMeasurements.build do
|
6
|
+
system :metric do
|
7
|
+
primitive :S
|
8
|
+
|
9
|
+
si_unit :S, aliases: [:℧, :"Ω⁻¹", :siemens, :mho, :mhos]
|
10
|
+
unit :"A/V", value: "1 S", aliases: [:"A·V⁻¹", :"amp./volt", :"amps./volt", :"ampere/volt", :"amperes/volt", :"ampere per volt", :"amperes per volt"]
|
11
|
+
end
|
12
|
+
|
13
|
+
system :centimetre_gram_second do
|
14
|
+
primitive :statS
|
15
|
+
|
16
|
+
unit :abS, value: "1e+9 S", aliases: [:ab℧, :absiemens, :abmho, :abmhos]
|
17
|
+
unit :statS, value: "1.112347e-12 S", aliases: [:stat℧, :statsiemens, :statmho, :statmhos]
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# -*- frozen_string_literal: true -*-
|
3
|
+
# -*- warn_indent: true -*-
|
4
|
+
|
5
|
+
UnitMeasurements::Elastance = UnitMeasurements.build do
|
6
|
+
system :metric do
|
7
|
+
primitive :D
|
8
|
+
|
9
|
+
si_unit :D, aliases: [:"F⁻¹", :daraf, :darafs, :"reciprocal farad", :"reciprocal farads"]
|
10
|
+
unit :"V/C", value: "1 D", aliases: [:"V·C⁻¹", :"volt/coulomb", :"volts/coulomb", :"volt per coulomb", :"volts per coulomb"]
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# -*- frozen_string_literal: true -*-
|
3
|
+
# -*- warn_indent: true -*-
|
4
|
+
|
5
|
+
UnitMeasurements::Resistance = UnitMeasurements.build do
|
6
|
+
system :metric do
|
7
|
+
primitive :Ω
|
8
|
+
|
9
|
+
si_unit :Ω, aliases: [:ω, :ohm, :ohms, :"reciprocal siemens"]
|
10
|
+
unit :S, value: "1 Ω", aliases: [:siemens, :mho, :mhos]
|
11
|
+
unit :"V/A", value: "1 Ω", aliases: [:"V·A⁻¹", :"volt/amp.", :"volts/amp.", :"volt/ampere", :"volts/ampere", :"volt per ampere", :"volts per ampere"]
|
12
|
+
end
|
13
|
+
|
14
|
+
system :centimetre_gram_second do
|
15
|
+
primitive :statΩ
|
16
|
+
|
17
|
+
unit :abΩ, value: "1e-9 Ω", aliases: [:abω, :abohm, :abohms]
|
18
|
+
unit :statΩ, value: "8.98755178737e+11 Ω", aliases: [:statω, :statohm, :statohms]
|
19
|
+
end
|
20
|
+
end
|
data/units.md
CHANGED
@@ -271,3 +271,46 @@ These units are defined in `UnitMeasurements::ElectricCharge`.
|
|
271
271
|
| 3 | statC | statcoulomb, statcoulombs |
|
272
272
|
| 4 | Fr | franklin, franklins |
|
273
273
|
| 5 | Fd | faraday, faradays |
|
274
|
+
|
275
|
+
## 22. Capacitance
|
276
|
+
|
277
|
+
These units are defined in `UnitMeasurements::Capacitance`.
|
278
|
+
|
279
|
+
| # | Symbol | Aliases |
|
280
|
+
|:--|:--|:--|
|
281
|
+
| 1 | F* | farad, farads |
|
282
|
+
| 2 | abF | abfarad, abfarads |
|
283
|
+
| 3 | statF | statfarad, statfarads |
|
284
|
+
| 4 | C/V | C·V⁻¹, coulomb/volt, coulombs/volt, coulomb per volt, coulombs per volt |
|
285
|
+
|
286
|
+
## 23. Elastance
|
287
|
+
|
288
|
+
These units are defined in `UnitMeasurements::Elastance`.
|
289
|
+
|
290
|
+
| # | Name | Aliases |
|
291
|
+
|:--|:--|:--|
|
292
|
+
| 1 | D* | F⁻¹, daraf, darafs, reciprocal farad, reciprocal farads |
|
293
|
+
| 2 | V/C | V·C⁻¹, volt/coulomb, volts/coulomb, volt per coulomb, volts per coulomb |
|
294
|
+
|
295
|
+
## 24. Resistance
|
296
|
+
|
297
|
+
These units are defined in `UnitMeasurements::Resistance`.
|
298
|
+
|
299
|
+
| # | Name | Aliases |
|
300
|
+
|:--|:--|:--|
|
301
|
+
| 1 | Ω* | ω, ohm, ohms, reciprocal siemens |
|
302
|
+
| 2 | abΩ | abω, abohm, abohms |
|
303
|
+
| 3 | statΩ | statω, statohm, statohms |
|
304
|
+
| 4 | S | siemens, mho, mhos |
|
305
|
+
| 5 | V/A | V·A⁻¹, volt/amp., volts/amp., volt/ampere, volts/ampere, volt per ampere, volts per ampere |
|
306
|
+
|
307
|
+
## 25. Conductance
|
308
|
+
|
309
|
+
These units are defined in `UnitMeasurements::Conductance`.
|
310
|
+
|
311
|
+
| # | Name | Aliases |
|
312
|
+
|:--|:--|:--|
|
313
|
+
| 1 | S* | ℧, Ω⁻¹, siemens, mho, mhos |
|
314
|
+
| 2 | abS | ab℧, absiemens, abmho, abmhos |
|
315
|
+
| 3 | statS | stat℧, statsiemens, statmho, statmhos |
|
316
|
+
| 3 | A/V | A·V⁻¹, amp./volt, amps./volt, ampere/volt, amperes/volt, ampere per volt, amperes per volt |
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unit_measurements
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harshal LADHE
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -124,7 +124,10 @@ files:
|
|
124
124
|
- lib/unit_measurements/unit_groups/angular_acceleration.rb
|
125
125
|
- lib/unit_measurements/unit_groups/angular_velocity.rb
|
126
126
|
- lib/unit_measurements/unit_groups/area.rb
|
127
|
+
- lib/unit_measurements/unit_groups/capacitance.rb
|
128
|
+
- lib/unit_measurements/unit_groups/conductance.rb
|
127
129
|
- lib/unit_measurements/unit_groups/density.rb
|
130
|
+
- lib/unit_measurements/unit_groups/elastance.rb
|
128
131
|
- lib/unit_measurements/unit_groups/electric_charge.rb
|
129
132
|
- lib/unit_measurements/unit_groups/electric_current.rb
|
130
133
|
- lib/unit_measurements/unit_groups/force.rb
|
@@ -132,6 +135,7 @@ files:
|
|
132
135
|
- lib/unit_measurements/unit_groups/luminous_intensity.rb
|
133
136
|
- lib/unit_measurements/unit_groups/plane_angle.rb
|
134
137
|
- lib/unit_measurements/unit_groups/quantity.rb
|
138
|
+
- lib/unit_measurements/unit_groups/resistance.rb
|
135
139
|
- lib/unit_measurements/unit_groups/solid_angle.rb
|
136
140
|
- lib/unit_measurements/unit_groups/sound_level.rb
|
137
141
|
- lib/unit_measurements/unit_groups/temperature.rb
|