unit_measurements 3.5.0 → 3.6.0

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: 4435eefb4098bb9a5419dd0d712b670996649aedf3c325c12a0e3d23ab6f1b35
4
- data.tar.gz: cd4806a5b68e37e39cd7473ce2020a98137c8848e59a95a05f905cef39e54835
3
+ metadata.gz: '093ce14ea3ef94b656b3dd662af794f381fe69538d3f13045520c463331b41e2'
4
+ data.tar.gz: 0bd30d1d40a96bb5f6237bd499c1da9427917a471a4780652c5c203334cae104
5
5
  SHA512:
6
- metadata.gz: 6ec86d1da972eaabdf90f2df5e58a37973250ad0d6a3b7d5d8c3445529f4b289f720f06041757bb325d18b49c39c00a70a83f1466f78d842de8583077befbc1e
7
- data.tar.gz: ead67e5a9f286591e3f2b6a79032122128963f5deb3186beaa27c5c586ba4492acf6ea881ffc574e8d7a133ab3c771593554b4540878b331164bab55b3572241
6
+ metadata.gz: 81d0e42bf1d4967821eb276f0574588a2bdf15ff9196659c7aafc34adf5a2da4cdcb4990bbac2e9a251117225ff39b31707ce4a09461416bd093868cd69c88d7
7
+ data.tar.gz: 69ba5d10f7fb46451874f36db150aeff3516ce99b8394efc2402fa8d44600290c626817edba70620dc312040b0fdea93be4851ae527f255fae03f03481470647
data/CHANGELOG.md CHANGED
@@ -1,4 +1,13 @@
1
- ## [3.5.0](https://github.com/shivam091/unit_measurements/compare/v3.4.1...v3.5.0) - 2023-08-30
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
2
11
 
3
12
  ### What's new
4
13
 
@@ -7,7 +16,7 @@
7
16
 
8
17
  ----------
9
18
 
10
- ## [3.4.1](https://github.com/shivam091/unit_measurements/compare/v3.4.0...v3.4.1) - 2023-08-29
19
+ ## [3.4.1](https://github.com/shivam091/unit_measurements/compare/v3.4.0...v3.4.1) - 2023-09-29
11
20
 
12
21
  ### What's changed
13
22
 
@@ -19,7 +28,7 @@
19
28
 
20
29
  ----------
21
30
 
22
- ## [3.4.0](https://github.com/shivam091/unit_measurements/compare/v3.3.0...v3.4.0) - 2023-08-28
31
+ ## [3.4.0](https://github.com/shivam091/unit_measurements/compare/v3.3.0...v3.4.0) - 2023-09-28
23
32
 
24
33
  ### What's new
25
34
 
@@ -34,7 +43,7 @@
34
43
 
35
44
  ----------
36
45
 
37
- ## [3.3.0](https://github.com/shivam091/unit_measurements/compare/v3.2.0...v3.3.0) - 2023-08-28
46
+ ## [3.3.0](https://github.com/shivam091/unit_measurements/compare/v3.2.0...v3.3.0) - 2023-09-28
38
47
 
39
48
  ### What's new
40
49
 
@@ -43,7 +52,7 @@
43
52
 
44
53
  ----------
45
54
 
46
- ## [3.2.0](https://github.com/shivam091/unit_measurements/compare/v3.1.0...v3.2.0) - 2023-08-27
55
+ ## [3.2.0](https://github.com/shivam091/unit_measurements/compare/v3.1.0...v3.2.0) - 2023-09-27
47
56
 
48
57
  ### What's new
49
58
 
@@ -52,7 +61,7 @@
52
61
 
53
62
  ----------
54
63
 
55
- ## [3.1.0](https://github.com/shivam091/unit_measurements/compare/v3.0.0...v3.1.0) - 2023-08-26
64
+ ## [3.1.0](https://github.com/shivam091/unit_measurements/compare/v3.0.0...v3.1.0) - 2023-09-26
56
65
 
57
66
  ### What's new
58
67
 
@@ -61,7 +70,7 @@
61
70
 
62
71
  ----------
63
72
 
64
- ## [3.0.0](https://github.com/shivam091/unit_measurements/compare/v2.6.2...v3.0.0) - 2023-08-25
73
+ ## [3.0.0](https://github.com/shivam091/unit_measurements/compare/v2.6.2...v3.0.0) - 2023-09-25
65
74
 
66
75
  ### What's new
67
76
 
@@ -77,7 +86,7 @@
77
86
 
78
87
  ----------
79
88
 
80
- ## [2.6.2](https://github.com/shivam091/unit_measurements/compare/v2.6.1...v2.6.2) - 2023-08-25
89
+ ## [2.6.2](https://github.com/shivam091/unit_measurements/compare/v2.6.1...v2.6.2) - 2023-09-25
81
90
 
82
91
  ### What's changed
83
92
 
@@ -85,7 +94,7 @@
85
94
 
86
95
  ----------
87
96
 
88
- ## [2.6.1](https://github.com/shivam091/unit_measurements/compare/v2.6.0...v2.6.1) - 2023-08-24
97
+ ## [2.6.1](https://github.com/shivam091/unit_measurements/compare/v2.6.0...v2.6.1) - 2023-09-24
89
98
 
90
99
  ### What's changed
91
100
 
@@ -93,7 +102,7 @@
93
102
 
94
103
  ----------
95
104
 
96
- ## [2.6.0](https://github.com/shivam091/unit_measurements/compare/v2.5.0...v2.6.0) - 2023-08-24
105
+ ## [2.6.0](https://github.com/shivam091/unit_measurements/compare/v2.5.0...v2.6.0) - 2023-09-24
97
106
 
98
107
  ### What's new
99
108
 
@@ -102,7 +111,7 @@
102
111
 
103
112
  ----------
104
113
 
105
- ## [2.5.0](https://github.com/shivam091/unit_measurements/compare/v2.4.0...v2.5.0) - 2023-08-23
114
+ ## [2.5.0](https://github.com/shivam091/unit_measurements/compare/v2.4.0...v2.5.0) - 2023-09-23
106
115
 
107
116
  ### What's new
108
117
 
@@ -111,7 +120,7 @@
111
120
 
112
121
  ----------
113
122
 
114
- ## [2.4.0](https://github.com/shivam091/unit_measurements/compare/v2.3.0...v2.4.0) - 2023-08-23
123
+ ## [2.4.0](https://github.com/shivam091/unit_measurements/compare/v2.3.0...v2.4.0) - 2023-09-23
115
124
 
116
125
  ### What's new
117
126
 
@@ -120,7 +129,7 @@
120
129
 
121
130
  ----------
122
131
 
123
- ## [2.3.0](https://github.com/shivam091/unit_measurements/compare/v2.2.0...v2.3.0) - 2023-08-22
132
+ ## [2.3.0](https://github.com/shivam091/unit_measurements/compare/v2.2.0...v2.3.0) - 2023-09-22
124
133
 
125
134
  ### What's new
126
135
 
@@ -129,7 +138,7 @@
129
138
 
130
139
  ----------
131
140
 
132
- ## [2.2.0](https://github.com/shivam091/unit_measurements/compare/v2.1.0...v2.2.0) - 2023-08-21
141
+ ## [2.2.0](https://github.com/shivam091/unit_measurements/compare/v2.1.0...v2.2.0) - 2023-09-21
133
142
 
134
143
  ### What's new
135
144
 
@@ -139,7 +148,7 @@
139
148
 
140
149
  ----------
141
150
 
142
- ## [2.1.0](https://github.com/shivam091/unit_measurements/compare/v1.7.0...v2.1.0) - 2023-08-20
151
+ ## [2.1.0](https://github.com/shivam091/unit_measurements/compare/v1.7.0...v2.1.0) - 2023-09-20
143
152
 
144
153
  ### What's new
145
154
 
@@ -148,7 +157,7 @@
148
157
 
149
158
  ----------
150
159
 
151
- ## [1.7.0](https://github.com/shivam091/unit_measurements/compare/v1.6.0...v1.7.0) - 2023-08-20
160
+ ## [1.7.0](https://github.com/shivam091/unit_measurements/compare/v1.6.0...v1.7.0) - 2023-09-20
152
161
 
153
162
  ### What's new
154
163
 
@@ -157,7 +166,7 @@
157
166
 
158
167
  ----------
159
168
 
160
- ## [1.6.0](https://github.com/shivam091/unit_measurements/compare/v1.5.1...v1.6.0) - 2023-08-19
169
+ ## [1.6.0](https://github.com/shivam091/unit_measurements/compare/v1.5.1...v1.6.0) - 2023-09-19
161
170
 
162
171
  ### What's new
163
172
 
@@ -165,7 +174,7 @@
165
174
 
166
175
  ----------
167
176
 
168
- ## [1.5.1](https://github.com/shivam091/unit_measurements/compare/v1.5.0...v1.5.1) - 2023-08-18
177
+ ## [1.5.1](https://github.com/shivam091/unit_measurements/compare/v1.5.0...v1.5.1) - 2023-09-18
169
178
 
170
179
  ### What's updated
171
180
 
@@ -173,7 +182,7 @@
173
182
 
174
183
  ----------
175
184
 
176
- ## [1.5.0](https://github.com/shivam091/unit_measurements/compare/v1.4.0...v1.5.0) - 2023-08-18
185
+ ## [1.5.0](https://github.com/shivam091/unit_measurements/compare/v1.4.0...v1.5.0) - 2023-09-18
177
186
 
178
187
  ### What's fixed
179
188
 
@@ -181,7 +190,7 @@
181
190
 
182
191
  ----------
183
192
 
184
- ## [1.4.0](https://github.com/shivam091/unit_measurements/compare/v1.3.0...v1.4.0) - 2023-08-17
193
+ ## [1.4.0](https://github.com/shivam091/unit_measurements/compare/v1.3.0...v1.4.0) - 2023-09-17
185
194
 
186
195
  ### What's new
187
196
 
@@ -189,7 +198,7 @@
189
198
 
190
199
  ----------
191
200
 
192
- ## [1.3.0](https://github.com/shivam091/unit_measurements/compare/v1.2.0...v1.3.0) - 2023-08-16
201
+ ## [1.3.0](https://github.com/shivam091/unit_measurements/compare/v1.2.0...v1.3.0) - 2023-09-16
193
202
 
194
203
  ### What's new
195
204
 
@@ -197,7 +206,7 @@
197
206
 
198
207
  ----------
199
208
 
200
- ## [1.2.0](https://github.com/shivam091/unit_measurements/compare/v1.1.0...v1.2.0) - 2023-08-15
209
+ ## [1.2.0](https://github.com/shivam091/unit_measurements/compare/v1.1.0...v1.2.0) - 2023-09-15
201
210
 
202
211
  ### What's new
203
212
 
@@ -205,7 +214,7 @@
205
214
 
206
215
  ----------
207
216
 
208
- ## [1.1.0](https://github.com/shivam091/unit_measurements/compare/v1.0.0...v1.1.0) - 2023-08-14
217
+ ## [1.1.0](https://github.com/shivam091/unit_measurements/compare/v1.0.0...v1.1.0) - 2023-09-14
209
218
 
210
219
  ### What's new
211
220
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unit_measurements (3.5.0)
4
+ unit_measurements (3.6.0)
5
5
  activesupport (~> 7.0)
6
6
 
7
7
  GEM
@@ -26,6 +26,8 @@ require_relative "voltage"
26
26
  require_relative "electric_charge"
27
27
  require_relative "capacitance"
28
28
  require_relative "elastance"
29
+ require_relative "resistance"
30
+ require_relative "conductance"
29
31
 
30
32
  ## Other units
31
33
 
@@ -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,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
@@ -3,5 +3,5 @@
3
3
  # -*- warn_indent: true -*-
4
4
 
5
5
  module UnitMeasurements
6
- VERSION = "3.5.0"
6
+ VERSION = "3.6.0"
7
7
  end
data/units.md CHANGED
@@ -291,3 +291,26 @@ These units are defined in `UnitMeasurements::Elastance`.
291
291
  |:--|:--|:--|
292
292
  | 1 | D* | F⁻¹, daraf, darafs, reciprocal farad, reciprocal farads |
293
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.5.0
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-09-30 00:00:00.000000000 Z
11
+ date: 2023-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -125,6 +125,7 @@ files:
125
125
  - lib/unit_measurements/unit_groups/angular_velocity.rb
126
126
  - lib/unit_measurements/unit_groups/area.rb
127
127
  - lib/unit_measurements/unit_groups/capacitance.rb
128
+ - lib/unit_measurements/unit_groups/conductance.rb
128
129
  - lib/unit_measurements/unit_groups/density.rb
129
130
  - lib/unit_measurements/unit_groups/elastance.rb
130
131
  - lib/unit_measurements/unit_groups/electric_charge.rb
@@ -134,6 +135,7 @@ files:
134
135
  - lib/unit_measurements/unit_groups/luminous_intensity.rb
135
136
  - lib/unit_measurements/unit_groups/plane_angle.rb
136
137
  - lib/unit_measurements/unit_groups/quantity.rb
138
+ - lib/unit_measurements/unit_groups/resistance.rb
137
139
  - lib/unit_measurements/unit_groups/solid_angle.rb
138
140
  - lib/unit_measurements/unit_groups/sound_level.rb
139
141
  - lib/unit_measurements/unit_groups/temperature.rb