unit_measurements 5.4.0 → 5.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +1 -1
- data/lib/unit_measurements/unit_groups/acceleration.rb +3 -3
- data/lib/unit_measurements/unit_groups/plane_angle.rb +3 -4
- data/lib/unit_measurements/unit_groups/pressure.rb +5 -2
- data/lib/unit_measurements/unit_groups/sound_level.rb +2 -2
- data/lib/unit_measurements/unit_groups/time.rb +2 -2
- data/lib/unit_measurements/unit_groups/velocity.rb +6 -6
- data/lib/unit_measurements/version.rb +1 -1
- data/units.md +18 -18
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a07867413e9db0a506fda2970ff360a2ebfbdf1d887d7adb18df1c3d89be93e5
|
4
|
+
data.tar.gz: fdc42d2d02e4c12d2ac84b4e4d0ddefc46d0d47a02059a07a80e03529bbb4ccd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3146d0ce3ec09dd22304ba934b77a3c3ac0f12584eea74ad0bd43074794e75dd9f6893415a531804b658f00a56b494d1db2fa0b39f6a2062ab72f39df9cfadf
|
7
|
+
data.tar.gz: b585f7fe2a2deff5efd5a6cb4c5c8968fada2e43c55bcd2abb2d86e3ea5933926f525138f027005b59dcaf2b7868aa0d8d786a8bf78831d0044a6ed5e8df8025
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## [5.4.1](https://github.com/shivam091/unit_measurements/compare/v5.4.0...v5.4.1) - 2023-10-28
|
2
|
+
|
3
|
+
### What's updated
|
4
|
+
|
5
|
+
- Updated unit systems and aliases of unit groups.
|
6
|
+
- Added alternative names for unit groups in unit reference file.
|
7
|
+
|
8
|
+
----------
|
9
|
+
|
1
10
|
## [5.4.0](https://github.com/shivam091/unit_measurements/compare/v5.3.0...v5.4.0) - 2023-10-27
|
2
11
|
|
3
12
|
### What's new
|
data/Gemfile.lock
CHANGED
@@ -6,15 +6,15 @@ UnitMeasurements::Acceleration = UnitMeasurements.build do
|
|
6
6
|
primitive "m/s²"
|
7
7
|
|
8
8
|
system :metric do
|
9
|
-
|
9
|
+
unit "m/s²", aliases: ["m/s^2", "m·s⁻²", "meter per second squared", "meters per second squared", "metre per second squared", "metres per second squared"]
|
10
10
|
end
|
11
11
|
|
12
12
|
system :imperial do
|
13
|
-
unit "in/s²", value: "0.0254 m/s²", aliases: ["in/s^2", "in·s⁻²", "inch per second squared", "inches per second squared"]
|
13
|
+
unit "in/s²", value: "0.0254 m/s²", aliases: ["in/s^2", "in·s⁻²", "ips²", "inch per second squared", "inches per second squared"]
|
14
14
|
end
|
15
15
|
|
16
16
|
system :foot_pound_second do
|
17
|
-
unit "ft/s²", value: "0.3048 m/s²", aliases: ["ft/s^2", "ft·s⁻²", "foot per second squared", "feet per second squared"]
|
17
|
+
unit "ft/s²", value: "0.3048 m/s²", aliases: ["ft/s^2", "ft·s⁻²", "fps²", "foot per second squared", "feet per second squared"]
|
18
18
|
end
|
19
19
|
|
20
20
|
system :meteorology_aviation_maritime do
|
@@ -8,16 +8,15 @@ UnitMeasurements::PlaneAngle = UnitMeasurements.build do
|
|
8
8
|
system :metric do
|
9
9
|
si_unit "rad", aliases: ["radian", "radians"]
|
10
10
|
|
11
|
+
unit "deg", value: [(Math::PI / 180), "rad"], aliases: ["°", "degree", "degrees"] # (π / 180) rad
|
11
12
|
unit "gon", value: [(Math::PI / 200), "rad"], aliases: ["ᵍ", "grad", "gradian", "gradians"] # (π / 200) rad
|
13
|
+
unit "arcmin", value: [Rational(1, 60), "deg"], aliases: ["′", "amin", "arcminute", "arcminutes"] # ((π / 180) / 60) rad
|
14
|
+
unit "arcsec", value: [Rational(1, 60), "arcmin"], aliases: ["″", "asec", "arcsecond", "arcseconds"] # ((π / 180) / 3600) rad
|
12
15
|
end
|
13
16
|
|
14
|
-
unit "deg", value: [(Math::PI / 180), "rad"], aliases: ["°", "degree", "degrees"] # (π / 180) rad
|
15
17
|
unit "cir", value: [360, "deg"], aliases: ["circle", "circles"] # (2 * π) rad
|
16
18
|
unit "mil", value: [Rational(1, 6400), "cir"], aliases: ["mils"] # ((2 * π) / 6400) rad
|
17
19
|
unit "rev", value: [1, "cir"], aliases: ["revolution", "revolutions"] # (2 * π) rad
|
18
20
|
|
19
21
|
unit "brad", value: [(Math::PI / 128), "rad"], aliases: ["b°", "bdeg", "binary degree", "binary radian", "binary degrees", "binary radians"] # (π / 128) rad
|
20
|
-
|
21
|
-
unit "arcmin", value: [Rational(1, 60), "deg"], aliases: ["′", "amin", "arcminute", "arcminutes"] # ((π / 180) / 60) rad
|
22
|
-
unit "arcsec", value: [Rational(1, 60), "arcmin"], aliases: ["″", "asec", "arcsecond", "arcseconds"] # ((π / 180) / 3600) rad
|
23
22
|
end
|
@@ -16,10 +16,13 @@ UnitMeasurements::Pressure = UnitMeasurements.build do
|
|
16
16
|
end
|
17
17
|
|
18
18
|
system :metre_tonne_second do
|
19
|
-
unit "pz", value: "1 kPa", aliases: ["pièze"]
|
19
|
+
unit "pz", value: "1 kPa", aliases: ["pieze", "pièze"]
|
20
|
+
end
|
21
|
+
|
22
|
+
system :gravitational_metric do
|
23
|
+
unit "at", value: "98066.5 Pa", aliases: ["technical atmosphere", "technical atmospheres"]
|
20
24
|
end
|
21
25
|
|
22
|
-
unit "at", value: "98066.5 Pa", aliases: ["technical atmosphere", "technical atmospheres"]
|
23
26
|
unit "atm", value: "101325 Pa", aliases: ["atmosphere", "atmospheres"]
|
24
27
|
unit "Torr", value: [Rational(1, 760), "atm"], aliases: ["torr"]
|
25
28
|
end
|
@@ -7,7 +7,7 @@ UnitMeasurements::SoundLevel = UnitMeasurements.build do
|
|
7
7
|
|
8
8
|
system :metric do
|
9
9
|
si_unit "B", aliases: ["bel", "bels"]
|
10
|
-
end
|
11
10
|
|
12
|
-
|
11
|
+
unit "Np", value: [(20 / Math.log(10)), "dB"], aliases: ["neper", "nepers"] # (20 / ln(10)) dB
|
12
|
+
end
|
13
13
|
end
|
@@ -8,11 +8,11 @@ UnitMeasurements::Time = UnitMeasurements.build do
|
|
8
8
|
system :metric do
|
9
9
|
si_unit "s", aliases: ["sec", "second", "seconds"]
|
10
10
|
|
11
|
+
unit "h", value: "60 min", aliases: ["hr", "hour", "hours"]
|
12
|
+
unit "d", value: "24 h", aliases: ["day", "days"]
|
11
13
|
unit "min", value: "60 s", aliases: ["minute", "minutes"]
|
12
14
|
end
|
13
15
|
|
14
|
-
unit "h", value: "60 min", aliases: ["hr", "hour", "hours"]
|
15
|
-
unit "d", value: "24 h", aliases: ["day", "days"]
|
16
16
|
unit "wk", value: "7 d", aliases: ["week", "weeks"]
|
17
17
|
unit "mo", value: "30.4167 d", aliases: ["month", "months"]
|
18
18
|
unit "yr", value: "365 d", aliases: ["y", "year", "years"]
|
@@ -12,15 +12,15 @@ UnitMeasurements::Velocity = UnitMeasurements.build do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
system :imperial do
|
15
|
-
unit "in/s", value: "0.0254 m/s", aliases: ["in·s⁻¹", "inch per second", "inches per second"]
|
16
|
-
unit "in/min", value: "1/60 in/s", aliases: ["in·min⁻¹", "inch per minute", "inches per minute"]
|
17
|
-
unit "in/h", value: "1/60 in/min", aliases: ["in·h⁻¹", "inch per hour", "inches per hour"]
|
15
|
+
unit "in/s", value: "0.0254 m/s", aliases: ["in·s⁻¹", "ips", "inch per second", "inches per second"]
|
16
|
+
unit "in/min", value: "1/60 in/s", aliases: ["in·min⁻¹", "ipm", "inch per minute", "inches per minute"]
|
17
|
+
unit "in/h", value: "1/60 in/min", aliases: ["in·h⁻¹", "iph", "inch per hour", "inches per hour"]
|
18
18
|
end
|
19
19
|
|
20
20
|
system :foot_pound_second do
|
21
|
-
unit "ft/s", value: "12 in/s", aliases: ["ft·s⁻¹", "foot per second", "feet per second"]
|
22
|
-
unit "ft/min", value: "1/60 ft/s", aliases: ["ft·min⁻¹", "foot per minute", "feet per minute"]
|
23
|
-
unit "ft/h", value: "1/60 ft/min", aliases: ["ft·h⁻¹", "foot per hour", "feet per hour"]
|
21
|
+
unit "ft/s", value: "12 in/s", aliases: ["ft·s⁻¹", "fps", "foot per second", "feet per second"]
|
22
|
+
unit "ft/min", value: "1/60 ft/s", aliases: ["ft·min⁻¹", "fpm", "foot per minute", "feet per minute"]
|
23
|
+
unit "ft/h", value: "1/60 ft/min", aliases: ["ft·h⁻¹", "fph", "foot per hour", "feet per hour"]
|
24
24
|
end
|
25
25
|
|
26
26
|
system :meteorology_aviation_maritime do
|
data/units.md
CHANGED
@@ -59,7 +59,7 @@ These units are defined in `UnitMeasurements::Weight`.
|
|
59
59
|
| 16 | drt | troy dram, troy drams |
|
60
60
|
| 17 | slug | slugs |
|
61
61
|
|
62
|
-
## 3. Time
|
62
|
+
## 3. Time or duration
|
63
63
|
|
64
64
|
These units are defined in `UnitMeasurements::Time`.
|
65
65
|
|
@@ -211,7 +211,7 @@ These units are defined in `UnitMeasurements::PlaneAngle`.
|
|
211
211
|
| 8 | arcmin | ′, amin, arcminute, arcminutes |
|
212
212
|
| 9 | arcsec | ″, asec, arcsecond, arcseconds |
|
213
213
|
|
214
|
-
## 14. Solid angle
|
214
|
+
## 14. Solid angle or 3D angle
|
215
215
|
|
216
216
|
These units are defined in `UnitMeasurements::SolidAngle`.
|
217
217
|
|
@@ -237,7 +237,7 @@ These units are defined in `UnitMeasurements::Force`.
|
|
237
237
|
| 6 | lbf | pound-force |
|
238
238
|
| 7 | pdl | poundal, poundals |
|
239
239
|
|
240
|
-
## 16. Velocity
|
240
|
+
## 16. Velocity or speed
|
241
241
|
|
242
242
|
These units are defined in `UnitMeasurements::Velocity`.
|
243
243
|
|
@@ -247,12 +247,12 @@ These units are defined in `UnitMeasurements::Velocity`.
|
|
247
247
|
| 2 | m/min | m·min⁻¹, meter per minute, meters per minute, metre per minute, metres per minute |
|
248
248
|
| 3 | m/h | m·h⁻¹, meter per hour, meters per hour, metre per hour, metres per hour |
|
249
249
|
| 4 | Kn | kt, knot, knots |
|
250
|
-
| 5 | in/s | in·s⁻¹, inch per second, inches per second |
|
251
|
-
| 6 | in/min | in·min⁻¹, inch per minute, inches per minute |
|
252
|
-
| 7 | in/h | in·h⁻¹, inch per hour, inches per hour |
|
253
|
-
| 8 | ft/s | ft·s⁻¹, foot per second, feet per second |
|
254
|
-
| 9 | ft/min | ft·min⁻¹, foot per minute, feet per minute |
|
255
|
-
| 10 | ft/h | ft·h⁻¹, foot per hour, feet per hour |
|
250
|
+
| 5 | in/s | in·s⁻¹, ips, inch per second, inches per second |
|
251
|
+
| 6 | in/min | in·min⁻¹, ipm, inch per minute, inches per minute |
|
252
|
+
| 7 | in/h | in·h⁻¹, iph, inch per hour, inches per hour |
|
253
|
+
| 8 | ft/s | ft·s⁻¹, fps, foot per second, feet per second |
|
254
|
+
| 9 | ft/min | ft·min⁻¹, fpm, foot per minute, feet per minute |
|
255
|
+
| 10 | ft/h | ft·h⁻¹, fps, foot per hour, feet per hour |
|
256
256
|
|
257
257
|
## 17. Acceleration
|
258
258
|
|
@@ -261,11 +261,11 @@ These units are defined in `UnitMeasurements::Acceleration`.
|
|
261
261
|
| # | Name | Aliases |
|
262
262
|
|:--|:--|:--|
|
263
263
|
| _1_ | _m/s²_ | _m/s^2, m·s⁻², meter per second squared, meters per second squared, metre per second squared, metres per second squared_ |
|
264
|
-
| 2 | in/s² | in/s^2, in·s⁻², inch per second squared, inches per second squared |
|
265
|
-
| 3 | ft/s² | ft/s^2, ft·s⁻², foot per second squared, feet per second squared |
|
264
|
+
| 2 | in/s² | in/s^2, in·s⁻², ips², inch per second squared, inches per second squared |
|
265
|
+
| 3 | ft/s² | ft/s^2, ft·s⁻², fps², foot per second squared, feet per second squared |
|
266
266
|
| 4 | Kn/s | knot per second, knots per second |
|
267
267
|
|
268
|
-
## 18. Angular velocity
|
268
|
+
## 18. Angular velocity or rotational speed
|
269
269
|
|
270
270
|
These units are defined in `UnitMeasurements::AngularVelocity`.
|
271
271
|
|
@@ -294,7 +294,7 @@ These units are defined in `UnitMeasurements::AngularAcceleration`.
|
|
294
294
|
| 2 | deg/s² | deg/s^2, °/s², deg·s⁻², degree per second squared, degrees per second squared |
|
295
295
|
| 3 | gon/s² | gon/s^2, ᵍ/s², gon·s⁻², gradian per second squared, gradians per second squared |
|
296
296
|
|
297
|
-
## 20. Electric potential
|
297
|
+
## 20. Electric potential or electromotive force
|
298
298
|
|
299
299
|
These units are defined in `UnitMeasurements::ElectricPotential`.
|
300
300
|
|
@@ -338,7 +338,7 @@ These units are defined in `UnitMeasurements::ElectricalElastance`.
|
|
338
338
|
| _1_ | _D*_ | _F⁻¹, daraf, darafs, reciprocal farad, reciprocal farads_ |
|
339
339
|
| 2 | V/C | V·C⁻¹, volt/coulomb, volts/coulomb, volt per coulomb, volts per coulomb |
|
340
340
|
|
341
|
-
## 24. Electrical resistance
|
341
|
+
## 24. Electrical resistance or impedance
|
342
342
|
|
343
343
|
These units are defined in `UnitMeasurements::ElectricalResistance`.
|
344
344
|
|
@@ -429,7 +429,7 @@ These units are defined in `UnitMeasurements::ElectricQuadrupoleMoment`.
|
|
429
429
|
| 2 | statC·cm² | statC*m^2, statcoulomb square meter, statcoulomb square metre |
|
430
430
|
| 3 | B | buckingham, buckinghams |
|
431
431
|
|
432
|
-
## 33. Pressure
|
432
|
+
## 33. Pressure or mechanical stress
|
433
433
|
|
434
434
|
These units are defined in `UnitMeasurements::Pressure`.
|
435
435
|
|
@@ -438,12 +438,12 @@ These units are defined in `UnitMeasurements::Pressure`.
|
|
438
438
|
| _1_ | _Pa*_ | _pascal, pascals_ |
|
439
439
|
| 2 | bar | bars |
|
440
440
|
| 3 | Ba | barye, baryes |
|
441
|
-
| 4 | pz | pièze |
|
441
|
+
| 4 | pz | pieze, pièze |
|
442
442
|
| 5 | at | technical atmosphere, technical atmospheres |
|
443
443
|
| 6 | atm | atmosphere, atmospheres |
|
444
444
|
| 7 | Torr | torr |
|
445
445
|
|
446
|
-
## 34. Torque
|
446
|
+
## 34. Torque or moment of force
|
447
447
|
|
448
448
|
These units are defined in `UnitMeasurements::Torque`.
|
449
449
|
|
@@ -501,7 +501,7 @@ These units are defined in `UnitMeasurements::Frequency`.
|
|
501
501
|
| 3 | deg/s | °/s, deg·s⁻¹, degree per second, degrees per second |
|
502
502
|
| 4 | rev/s | rps, rev·s⁻¹, revolution per second, revolutions per second |
|
503
503
|
|
504
|
-
## 39. Power
|
504
|
+
## 39. Power or heat flow rate
|
505
505
|
|
506
506
|
These units are defined in `UnitMeasurements::Power`.
|
507
507
|
|
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: 5.4.
|
4
|
+
version: 5.4.1
|
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-10-
|
11
|
+
date: 2023-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|