unit_measurements 4.1.0 → 4.2.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 +9 -0
- data/Gemfile.lock +1 -1
- data/lib/unit_measurements/unit_groups/all.rb +2 -0
- data/lib/unit_measurements/unit_groups/pressure.rb +25 -0
- data/lib/unit_measurements/unit_groups/torque.rb +31 -0
- data/lib/unit_measurements/version.rb +1 -1
- data/units.md +30 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3a74eda6588ea67b8d469b7bb51f933e8df36cfe3e1879b50656c0629111413
|
4
|
+
data.tar.gz: dfb6588696254c70afa9dc0aeb40c71f7b913df3cdb61b5e4c546be7438d924d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab088d43d155a1251eec52df0e96a272f3b3edf3835401490fc568490de96c344893e6716f92dfa40a5f07610e857759743d1a5e1e43b8ae3063884e85539408
|
7
|
+
data.tar.gz: 47dadbb4085c0f549df05d79bd7c2baf02b3439488ad3eaf7353c420cd44fb39b269e2fb0df9a4916f5087145decf20d3f6f306e926c5e756f87049ee022db29
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## [4.2.0](https://github.com/shivam091/unit_measurements/compare/v4.1.0...v4.2.0) - 2023-10-06
|
2
|
+
|
3
|
+
### What's new
|
4
|
+
|
5
|
+
- Added unit group for `pressure` units.
|
6
|
+
- Added unit group for `torque` units.
|
7
|
+
|
8
|
+
----------
|
9
|
+
|
1
10
|
## [4.1.0](https://github.com/shivam091/unit_measurements/compare/v4.0.0...v4.1.0) - 2023-10-05
|
2
11
|
|
3
12
|
### What's new
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# -*- frozen_string_literal: true -*-
|
3
|
+
# -*- warn_indent: true -*-
|
4
|
+
|
5
|
+
UnitMeasurements::Pressure = UnitMeasurements.build do
|
6
|
+
primitive "Pa"
|
7
|
+
|
8
|
+
system :metric do
|
9
|
+
si_unit "Pa", aliases: ["pascal", "pascals"]
|
10
|
+
|
11
|
+
unit "bar", value: "100 kPa", aliases: ["bars"]
|
12
|
+
end
|
13
|
+
|
14
|
+
system :centimetre_gram_second do
|
15
|
+
unit "Ba", value: "0.1 Pa", aliases: ["barye", "baryes"]
|
16
|
+
end
|
17
|
+
|
18
|
+
system :metre_tonne_second do
|
19
|
+
unit "pz", value: "1 kPa", aliases: ["pièze"]
|
20
|
+
end
|
21
|
+
|
22
|
+
unit "at", value: "98066.5 Pa", aliases: ["technical atmosphere", "technical atmospheres"]
|
23
|
+
unit "atm", value: "101325 Pa", aliases: ["atmosphere", "atmospheres"]
|
24
|
+
unit "Torr", value: [Rational(1, 760), "atm"], aliases: ["torr"]
|
25
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# -*- frozen_string_literal: true -*-
|
3
|
+
# -*- warn_indent: true -*-
|
4
|
+
|
5
|
+
UnitMeasurements::Torque = UnitMeasurements.build do
|
6
|
+
primitive "N·m"
|
7
|
+
|
8
|
+
system :metric do
|
9
|
+
si_unit "N·m", aliases: ["N*m", "newton meter", "newton metre"]
|
10
|
+
|
11
|
+
unit "kgf·m", value: "9.80665 N·m", aliases: ["kgf*m", "Kilogram-force meter", "kilogramme-force metre"]
|
12
|
+
end
|
13
|
+
|
14
|
+
system :centimetre_gram_second do
|
15
|
+
unit "dyn·cm", value: "1e-7 N·m", aliases: ["dyn*cm", "dyne centimeter", "dyne centimetre"]
|
16
|
+
end
|
17
|
+
|
18
|
+
system :foot_pound_second do
|
19
|
+
unit "pdl⋅ft", value: "0.0421401100938048 N·m", aliases: ["pdl*ft", "poundal foot", "foot-poundal"]
|
20
|
+
unit "ozf·in", value: "0.00706155 N·m", aliases: ["oz⋅in", "ozf*in", "oz*in", "ounce-force inch", "ounce-inch"]
|
21
|
+
unit "ozf·ft", value: "12 ozf·in", aliases: ["oz⋅ft", "ozf*ft", "oz*ft", "ounce-force foot", "ounce-foot"]
|
22
|
+
end
|
23
|
+
|
24
|
+
system :imperial do
|
25
|
+
unit "lbf⋅in", value: "0.1129848290276167 N·m", aliases: ["lb⋅in", "lbf*in", "lb*in", "pound-force inch", "pound-inch"]
|
26
|
+
end
|
27
|
+
|
28
|
+
system :english_engineering do
|
29
|
+
unit "lbf⋅ft", value: "12 lbf⋅in", aliases: ["lb⋅ft", "lbf*ft", "lb*ft", "pound-force foot", "pound-foot"]
|
30
|
+
end
|
31
|
+
end
|
data/units.md
CHANGED
@@ -373,7 +373,7 @@ These units are defined in `UnitMeasurements::ElectricDipoleMoment`.
|
|
373
373
|
| _1_ | _C⋅m*_ | _C*m, coulomb-meter, coulomb-metre_ |
|
374
374
|
| 2 | D | debye, debyes |
|
375
375
|
|
376
|
-
##
|
376
|
+
## 32. Electric quadrupole moment
|
377
377
|
|
378
378
|
These units are defined in `UnitMeasurements::ElectricQuadrupoleMoment`.
|
379
379
|
|
@@ -382,3 +382,32 @@ These units are defined in `UnitMeasurements::ElectricQuadrupoleMoment`.
|
|
382
382
|
| _1_ | _C·m²*_ | _C*m^2, coulomb square meter, coulomb square metre_ |
|
383
383
|
| 2 | statC·cm² | statC*m^2, statcoulomb square meter, statcoulomb square metre |
|
384
384
|
| 3 | B | buckingham, buckinghams |
|
385
|
+
|
386
|
+
## 33. Pressure
|
387
|
+
|
388
|
+
These units are defined in `UnitMeasurements::Pressure`.
|
389
|
+
|
390
|
+
| # | Name | Aliases |
|
391
|
+
|:--|:--|:--|
|
392
|
+
| _1_ | _Pa*_ | _pascal, pascals_ |
|
393
|
+
| 2 | bar | bars |
|
394
|
+
| 3 | Ba | barye, baryes |
|
395
|
+
| 4 | pz | pièze |
|
396
|
+
| 5 | at | technical atmosphere, technical atmospheres |
|
397
|
+
| 6 | atm | atmosphere, atmospheres |
|
398
|
+
| 7 | Torr | torr |
|
399
|
+
|
400
|
+
## 34. Torque
|
401
|
+
|
402
|
+
These units are defined in `UnitMeasurements::Torque`.
|
403
|
+
|
404
|
+
| # | Name | Aliases |
|
405
|
+
|:--|:--|:--|
|
406
|
+
| _1_ | _N·m*_ | _N*m, newton meter, newton metre_ |
|
407
|
+
| 2 | kgf·m | kgf*m, Kilogram-force meter, kilogramme-force metre |
|
408
|
+
| 3 | dyn·cm | dyn*cm, dyne centimeter, dyne centimetre |
|
409
|
+
| 4 | pdl⋅ft | pdl*ft, poundal foot, foot-poundal |
|
410
|
+
| 5 | ozf·in | oz⋅in, ozf\*in, oz\*in, ounce-force inch, ounce-inch |
|
411
|
+
| 6 | ozf·ft | oz⋅ft, ozf\*ft, oz\*ft, ounce-force foot, ounce-foot |
|
412
|
+
| 7 | lbf⋅in | lb⋅in, lbf\*in, lb\*in, pound-force inch, pound-inch |
|
413
|
+
| 8 | lbf⋅ft | lb⋅ft, lbf\*ft, lb\*ft, pound-force foot, pound-foot |
|
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: 4.
|
4
|
+
version: 4.2.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-10-
|
11
|
+
date: 2023-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -144,11 +144,13 @@ files:
|
|
144
144
|
- lib/unit_measurements/unit_groups/magnetic_flux.rb
|
145
145
|
- lib/unit_measurements/unit_groups/magnetic_induction.rb
|
146
146
|
- lib/unit_measurements/unit_groups/plane_angle.rb
|
147
|
+
- lib/unit_measurements/unit_groups/pressure.rb
|
147
148
|
- lib/unit_measurements/unit_groups/quantity.rb
|
148
149
|
- lib/unit_measurements/unit_groups/solid_angle.rb
|
149
150
|
- lib/unit_measurements/unit_groups/sound_level.rb
|
150
151
|
- lib/unit_measurements/unit_groups/temperature.rb
|
151
152
|
- lib/unit_measurements/unit_groups/time.rb
|
153
|
+
- lib/unit_measurements/unit_groups/torque.rb
|
152
154
|
- lib/unit_measurements/unit_groups/velocity.rb
|
153
155
|
- lib/unit_measurements/unit_groups/volume.rb
|
154
156
|
- lib/unit_measurements/unit_groups/weight.rb
|