unit_measurements 5.7.0 → 5.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a41d5ba2f7b2763f91970361a551dcf0ff816f63db844c9f7be7a41313737543
4
- data.tar.gz: 7810b39944c35e4d34c94f2eb9c81db84ccc36da7794bffabe995fc0e11fb4bb
3
+ metadata.gz: 9cd4663e023a6580016dca729bc82766fba463f589a262408404d23e3fe478ef
4
+ data.tar.gz: d594ce914384d88e0563c7623463d7fbb649bef97c13cf46f3f8832b837da641
5
5
  SHA512:
6
- metadata.gz: 851677d0ce182b65fcef33caba5207064921ccc4b706391d6c1a21bcbe18049ed54945162d9573b0d5884ebf82a4698cac82093a9457043a210181c7620f204a
7
- data.tar.gz: c04c7d726fbfc23c5aee06b081f75fcefdf31ff7b7ba668079e70306be275f8b9fabe5e3974212a6d92ff5826f6ea2652d93fd934be209249d0a86bade9213ca
6
+ metadata.gz: 6c481080564acab8baf3e706e1c7bc28cab1c7631bff878413ba9154532df4aee4f63b8a7f784d27d5926ed00b367720dbeb5c372edc5a21b45261dbec94af67
7
+ data.tar.gz: 1eeb96b7dd64e071efecba74f4ef19791f447e17fad484809062dfc8fc043aaaec34e42f57ea97a50e53b2b514b806e0e0c025008ef1890395f1b9a4fbba2b3e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [5.8.0](https://github.com/shivam091/unit_measurements/compare/v5.7.0...v5.8.0) - 2023-11-06
2
+
3
+ ### What's new
4
+
5
+ - Added new units of `pressure`.
6
+ - Added new units of `power`.
7
+
8
+ ----------
9
+
1
10
  ## [5.7.0](https://github.com/shivam091/unit_measurements/compare/v5.6.1...v5.7.0) - 2023-11-04
2
11
 
3
12
  ### What's new
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unit_measurements (5.7.0)
4
+ unit_measurements (5.8.0)
5
5
  activesupport (~> 7.0)
6
6
 
7
7
  GEM
@@ -8,16 +8,46 @@ UnitMeasurements::Power = UnitMeasurements.build do
8
8
  system :metric do
9
9
  si_unit "W", aliases: ["watt", "watts"]
10
10
 
11
+ unit "p", value: "980.665 W", aliases: ["poncelet", "poncelets"]
12
+
11
13
  unit "hp (M)", value: "735.49875 W", aliases: ["PS", "metric horsepower"]
14
+
15
+ unit "kgf⋅m", value: "9.80665 W", aliases: ["kgf*m", "kilogramme-force meter", "kilogram-force meter"]
16
+
17
+ unit "cal/s", value: "4.1868 W", aliases: ["calorie per second", "calories per second"]
18
+ unit "cal/min", value: "0.06978 W", aliases: ["calorie per minute", "calories per minute"]
19
+ unit "cal/h", value: "0.001163 W", aliases: ["calorie per hour", "calories per hour"]
20
+
21
+ unit "l·atm/s", value: "101.325 W", aliases: ["l*atm/s", "litre-atmosphere per second", "liter-atmosphere per second"]
22
+ unit "l·atm/min", value: "1.68875 W", aliases: ["l*atm/min", "litre-atmosphere per minute", "liter-atmosphere per minute"]
23
+ unit "l·atm/h", value: "0.028145833333333335 W", aliases: ["l*atm/h", "litre-atmosphere per hour", "liter-atmosphere per hour"]
24
+
25
+ unit "atm⋅cm³/s", value: "0.101325 W", aliases: ["atm*cm^3/s", "atmosphere-cubic centimetre per second", "atmosphere-cubic centimeter per second"]
26
+ unit "atm⋅cm³/min", value: "1.68875e-3 W", aliases: ["atm*cm^3/min", "atmosphere-cubic centimetre per minute", "atmosphere-cubic centimeter per minute"]
27
+ unit "atm⋅cm³/h", value: "2.814583333333333e-5 W", aliases: ["atm*cm^3/h", "atmosphere-cubic centimetre per hour", "atmosphere-cubic centimeter per hour"]
12
28
  end
13
29
 
14
30
  system :imperial do
15
31
  unit "hp", value: "745.69987158227022 W", aliases: ["hp (I)", "horsepower"]
32
+
33
+ unit "ft⋅lbf/s", value: "1.3558179483314004 W", aliases: ["ft*lbf/s", "foot pound-force per second"]
34
+ unit "ft⋅lbf/min", value: "0.02259696580552334 W", aliases: ["ft*lbf/min", "foot pound-force per minute"]
35
+ unit "ft⋅lbf/h", value: "0.00037661609675872 W", aliases: ["ft*lbf/h", "foot pound-force per hour"]
36
+
37
+ unit "atm⋅ft³/s", value: "2.8692044809344e+3 W", aliases: ["atm*ft^3/s", "atmosphere-cubic foot per second"]
38
+ unit "atm⋅ft³/min", value: "47.82007468224 W", aliases: ["atm*ft^3/min", "atmosphere-cubic foot per minute"]
39
+ unit "atm⋅ft³/h", value: "0.79700124704 W", aliases: ["atm*ft^3/h", "atmosphere-cubic foot per hour"]
40
+ end
41
+
42
+ system :us_customary do
43
+ unit "BTU/s", value: "1055.05585262 W", aliases: ["british thermal unit per second", "british thermal units per second"]
44
+ unit "BTU/min", value: "17.584264210333 W", aliases: ["british thermal unit per minute", "british thermal units per minute"]
45
+ unit "BTU/h", value: "0.29307107017222 W", aliases: ["british thermal unit per hour", "british thermal units per hour"]
16
46
  end
17
47
 
18
48
  system :centimetre_gram_second do
19
49
  unit "erg/s", value: "1e-7 W", aliases: ["erg per second", "ergs per second"]
20
50
  end
21
51
 
22
- unit "cal/s", value: "4.1868 W", aliases: ["calorie per second", "calories per second"]
52
+ unit "lusec", value: "133.3224 μW", aliases: ["lusecs"]
23
53
  end
@@ -9,6 +9,40 @@ UnitMeasurements::Pressure = UnitMeasurements.build do
9
9
  si_unit "Pa", aliases: ["pascal", "pascals"]
10
10
 
11
11
  unit "bar", value: "100 kPa", aliases: ["bars"]
12
+ unit "atm", value: "101325 Pa", aliases: ["atmosphere", "atmospheres"]
13
+ unit "Torr", value: "1/760 atm", aliases: ["torr"]
14
+
15
+ unit "μmHg", value: "0.133322387415 Pa", aliases: ["micrometer of mercury", "micrometers of mercury", "micrometre of mercury", "micrometres of mercury"]
16
+ unit "mmHg", value: "133.322387415 Pa", aliases: ["millimeter of mercury", "millimeters of mercury", "millimetre of mercury", "millimetres of mercury"]
17
+ unit "cmHg", value: "1333.22387415 Pa", aliases: ["centimeter of mercury", "centimeters of mercury", "centimetre of mercury", "centimetres of mercury"]
18
+
19
+ unit "mH₂O", value: "9.80665 kPa", aliases: ["mH2O", "meter of water", "meters of water", "metre of water", "metres of water"]
20
+ unit "dmH₂O", value: "980.665 Pa", aliases: ["dmH2O", "decimeter of water", "decimeters of water", "decimetre of water", "decimetres of water"]
21
+ unit "cmH₂O", value: "98.0665 Pa", aliases: ["cmH2O", "centimeter of water", "centimeters of water", "centimetre of water", "centimetres of water"]
22
+ unit "mmH₂O", value: "9.80665 Pa", aliases: ["mmH2O", "millimeter of water", "millimeters of water", "millimetre of water", "millimetres of water"]
23
+
24
+ unit "kgf/m²", value: "9.80665 Pa", aliases: ["kgf/m^2", "kilogram-force per square metre", "kilogramme-force per square metre"]
25
+ unit "kgf/mm²", value: "9.80665 MPa", aliases: ["kgf/mm^2", "kilogram-force per square millimetre", "kilogramme-force per square millimetre"]
26
+ unit "kgf/dm²", value: "980.665 Pa", aliases: ["kgf/dm^2", "kilogram-force per square decimetre", "kilogramme-force per square decimetre"]
27
+ end
28
+
29
+ system :imperial do
30
+ unit "psf", value: "47.880259 Pa", aliases: ["lb/ft²", "lb/ft^2", "pound per square foot", "pounds per square foot"]
31
+ unit "psi", value: "6.894757 kPa", aliases: ["lb/in²", "lb/in^2", "pound per square inch", "pounds per square inch"]
32
+ unit "ksi", value: "1000 psi", aliases: ["kip per square inch", "kilopound per square inch", "kilopounds per square inch"]
33
+
34
+ unit "LT/ft²", value: "1.0725178011595e+5 Pa", aliases: ["LT/ft^2", "long ton per square foot", "long tons per square foot"]
35
+ unit "pdl/ft²", value: "1.488164 Pa", aliases: ["pdl/ft^2", "poundal per square foot", "poundals per square foot"]
36
+ end
37
+
38
+ system :us_customary do
39
+ unit "inHg", value: "3.386388640341 kPa", aliases: ["″Hg", "inch of mercury", "inches of mercury"]
40
+ unit "ftHg", value: "40.636663684092 kPa", aliases: ["′Hg", "foot of mercury", "feet of mercury"]
41
+
42
+ unit "ftH₂O", value: "2.98898 kPa", aliases: ["ftH2O", "foot of water", "feet of water"]
43
+ unit "inH₂O", value: "249.0889 Pa", aliases: ["inH2O", "Aq", "inAq", "inch of water", "inches of water", "inch of water gauge", "inches of water gauge", "inch of water column", "inches of water column"]
44
+
45
+ unit "tn/ft²", value: "9.5760518e+4 Pa", aliases: ["tn/ft^2", "ton per square foot", "tons per square foot", "short ton per square foot", "short tons per square foot"]
12
46
  end
13
47
 
14
48
  system :centimetre_gram_second do
@@ -22,7 +56,4 @@ UnitMeasurements::Pressure = UnitMeasurements.build do
22
56
  system :gravitational_metric do
23
57
  unit "at", value: "98066.5 Pa", aliases: ["technical atmosphere", "technical atmospheres"]
24
58
  end
25
-
26
- unit "atm", value: "101325 Pa", aliases: ["atmosphere", "atmospheres"]
27
- unit "Torr", value: [Rational(1, 760), "atm"], aliases: ["torr"]
28
59
  end
@@ -4,5 +4,5 @@
4
4
 
5
5
  module UnitMeasurements
6
6
  # Current stable version.
7
- VERSION = "5.7.0"
7
+ VERSION = "5.8.0"
8
8
  end
data/units.md CHANGED
@@ -505,12 +505,32 @@ These units are defined in `UnitMeasurements::Pressure`.
505
505
  | # | Name | Aliases |
506
506
  |:--|:--|:--|
507
507
  | _1_ | _Pa*_ | _pascal, pascals_ |
508
- | 2 | bar | bars |
509
- | 3 | Ba | barye, baryes |
510
- | 4 | pz | pieze, pièze |
511
- | 5 | at | technical atmosphere, technical atmospheres |
512
- | 6 | atm | atmosphere, atmospheres |
513
- | 7 | Torr | torr |
508
+ | 2 | Ba | barye, baryes |
509
+ | 3 | pz | pieze, pièze |
510
+ | 4 | at | technical atmosphere, technical atmospheres |
511
+ | 5 | atm | atmosphere, atmospheres |
512
+ | 6 | bar | bars |
513
+ | 7 | psf | lb/ft², lb/ft^2, pound per square foot, pounds per square foot |
514
+ | 8 | psi | lb/in², lb/in^2, pound per square inch, pounds per square inch |
515
+ | 9 | ksi | kip per square inch, kilopound per square inch, kilopounds per square inch |
516
+ | 10 | Torr | torr |
517
+ | 11 | μmHg | micrometer of mercury, micrometers of mercury, micrometre of mercury, micrometres of mercury |
518
+ | 12 | mmHg | millimeter of mercury, millimeters of mercury, millimetre of mercury, millimetres of mercury |
519
+ | 13 | cmHg | centimeter of mercury, centimeters of mercury, centimetre of mercury, centimetres of mercury |
520
+ | 14 | inHg | ″Hg, inch of mercury, inches of mercury |
521
+ | 15 | ftHg | ′Hg, foot of mercury, feet of mercury |
522
+ | 16 | mH₂O | mH2O, meter of water, meters of water, metre of water, metres of water |
523
+ | 17 | dmH₂O | dmH2O, decimeter of water, decimeters of water, decimetre of water, decimetres of water |
524
+ | 18 | cmH₂O | cmH2O, centimeter of water, centimeters of water, centimetre of water, centimetres of water |
525
+ | 19 | mmH₂O | mmH2O, millimeter of water, millimeters of water, millimetre of water, millimetres of water |
526
+ | 20 | ftH₂O | ftH2O, foot of water, feet of water |
527
+ | 21 | inH₂O | inH2O, Aq, inAq, inch of water, inches of water, inch of water gauge, inches of water gauge, inch of water column, inches of water column |
528
+ | 22 | LT/ft² | LT/ft^2, long ton per square foot, long tons per square foot |
529
+ | 23 | tn/ft² | tn/ft^2, ton per square foot, tons per square foot, short ton per square foot, short tons per square foot |
530
+ | 24 | pdl/ft² | pdl/ft^2, poundal per square foot, poundals per square foot |
531
+ | 25 | kgf/m² | kgf/m^2, kilogram-force per square metre, kilogramme-force per square metre |
532
+ | 26 | kgf/mm² | kgf/mm^2, kilogram-force per square millimetre, kilogramme-force per square millimetre |
533
+ | 27 | kgf/dm² | kgf/dm^2, kilogram-force per square decimetre, kilogramme-force per square decimetre |
514
534
 
515
535
  ## 34. Torque or moment of force
516
536
 
@@ -577,10 +597,30 @@ These units are defined in `UnitMeasurements::Power`.
577
597
  | # | Name | Aliases |
578
598
  |:--|:--|:--|
579
599
  | _1_ | _W*_ | _watt, watts_ |
580
- | 2 | hp (M) | PS, metric horsepower |
581
- | 3 | hp | hp (I), horsepower |
582
- | 4 | erg/s | erg per second, ergs per second |
600
+ | 2 | p | poncelet, poncelets |
601
+ | 3 | hp (M) | PS, metric horsepower |
602
+ | 4 | kgf⋅m | kgf*m, kilogramme-force meter, kilogram-force meter |
583
603
  | 5 | cal/s | calorie per second, calories per second |
604
+ | 6 | cal/min | calorie per minute, calories per minute |
605
+ | 7 | cal/h | calorie per hour, calories per hour |
606
+ | 8 | l·atm/s | l*atm/s, litre-atmosphere per second, liter-atmosphere per second |
607
+ | 9 | l·atm/min | l*atm/min, litre-atmosphere per minute, liter-atmosphere per minute |
608
+ | 10 | l·atm/h | l*atm/h, litre-atmosphere per hour, liter-atmosphere per hour |
609
+ | 11 | atm⋅cm³/s | atm*cm^3/s, atmosphere-cubic centimetre per second, atmosphere-cubic centimeter per second |
610
+ | 12 | atm⋅cm³/min | atm*cm^3/min, atmosphere-cubic centimetre per minute, atmosphere-cubic centimeter per minute |
611
+ | 13 | atm⋅cm³/h | atm*cm^3/h, atmosphere-cubic centimetre per hour, atmosphere-cubic centimeter per hour |
612
+ | 14 | hp | hp (I), horsepower |
613
+ | 15 | ft⋅lbf/s | ft*lbf/s, foot pound-force per second |
614
+ | 16 | ft⋅lbf/min | ft*lbf/min, foot pound-force per minute |
615
+ | 17 | ft⋅lbf/h | ft*lbf/h, foot pound-force per hour |
616
+ | 18 | BTU/s | british thermal unit per second, british thermal units per second |
617
+ | 19 | BTU/min | british thermal unit per minute, british thermal units per minute |
618
+ | 20 | BTU/h | british thermal unit per hour, british thermal units per hour |
619
+ | 21 | erg/s | erg per second, ergs per second |
620
+ | 22 | lusec | lusecs |
621
+ | 23 | atm⋅ft³/s | atm*ft^3/s, atmosphere-cubic foot per second |
622
+ | 24 | atm⋅ft³/min | atm*ft^3/min, atmosphere-cubic foot per minute |
623
+ | 25 | atm⋅ft³/h | atm*ft^3/h, atmosphere-cubic foot per hour |
584
624
 
585
625
  ## 40. Energy
586
626
 
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.7.0
4
+ version: 5.8.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-04 00:00:00.000000000 Z
11
+ date: 2023-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport