unit_measurements 5.4.1 → 5.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 +23 -0
- data/Gemfile.lock +1 -1
- data/lib/unit_measurements/unit_groups/acceleration.rb +12 -0
- data/lib/unit_measurements/unit_groups/area.rb +16 -1
- data/lib/unit_measurements/unit_groups/density.rb +15 -2
- data/lib/unit_measurements/unit_groups/velocity.rb +8 -0
- data/lib/unit_measurements/unit_groups/volume.rb +21 -0
- data/lib/unit_measurements/version.rb +1 -1
- data/units.md +79 -37
- 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: 6ad3b4d39f4a9925e7a5854a20d2e7629a3bba068303ecd94828f88d7fce4821
|
4
|
+
data.tar.gz: 04a541ac591f5bfd5ccd8f1dcc861cd36117bd662797ed3e24e249553e3c3d34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e42e83243fae00181830b5d585a5c14b064fd1d9f48814ac4da70e30ceaa867c152ef5dff69abe98d399197e1ac78deb213b8a44e84d9721b7b7191b00ba3583
|
7
|
+
data.tar.gz: 4da5e68eb361c50a449f8412e8794dcd57eb16223b4aa7fce59bb0a4c0e573da2f416ab285e58dfeb9185fedb4a144f67173c6353ab905e2fd759af1ec73770c
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,26 @@
|
|
1
|
+
## [5.6.0](https://github.com/shivam091/unit_measurements/compare/v5.5.0...v5.6.0) - 2023-10-31
|
2
|
+
|
3
|
+
### What's new
|
4
|
+
|
5
|
+
- Added new units `ftm³`, `pk`, `gt`, `bsh`, `min`, `bkt`, `hhd`, `fls`, `dspn`, `fldr`, `bdft`, `ac⋅ft`, `ac⋅in` in volume.
|
6
|
+
- Added new units `oz/ft³`, `oz/in³`, `oz/gal`, `lb/ft³`, `lb/in³`, `lb/gal`, `slug/ft³`, `slug/in³` in density.
|
7
|
+
|
8
|
+
----------
|
9
|
+
|
10
|
+
## [5.5.0](https://github.com/shivam091/unit_measurements/compare/v5.4.1...v5.5.0) - 2023-10-29
|
11
|
+
|
12
|
+
### What's new
|
13
|
+
|
14
|
+
- Added new units `ipm/s`, `iph/s`, `mi/s²`, `mpm/s`, `mph/s`, `fpm/s`, `fph/s`, `Gal` in acceleration.
|
15
|
+
- Added new units `mi/s`, `mi/min`, `mi/h`, and `fur/ftn` in velocity.
|
16
|
+
- Added new units `lnk²`, `ac`, `ft²`, `mi²`, `ch²`, `bd`, and `ro` in area.
|
17
|
+
|
18
|
+
### What's updated
|
19
|
+
|
20
|
+
- Changed unit name `rod²` to `rd²` along with its aliases.
|
21
|
+
|
22
|
+
----------
|
23
|
+
|
1
24
|
## [5.4.1](https://github.com/shivam091/unit_measurements/compare/v5.4.0...v5.4.1) - 2023-10-28
|
2
25
|
|
3
26
|
### What's updated
|
data/Gemfile.lock
CHANGED
@@ -11,13 +11,25 @@ UnitMeasurements::Acceleration = UnitMeasurements.build do
|
|
11
11
|
|
12
12
|
system :imperial do
|
13
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
|
+
unit "ipm/s", value: "0.0004233333 m/s²", aliases: ["in/(min⋅s)", "inch per minute per second", "inches per minute per second"]
|
15
|
+
unit "iph/s", value: "7.055555e-6 m/s²", aliases: ["in/(h⋅s)", "inch per hour per second", "inches per hour per second"]
|
16
|
+
|
17
|
+
unit "mi/s²", value: "1609.344 m/s²", aliases: ["mi/s^2", "mi·s⁻²", "mps²", "mile per second squared", "miles per second squared"]
|
18
|
+
unit "mpm/s", value: "26.8224 m/s²", aliases: ["mi/(min⋅s)", "mile per minute per second", "miles per minute per second"]
|
19
|
+
unit "mph/s", value: "0.44704 m/s²", aliases: ["mi/(h⋅s)", "mile per hour per second", "miles per hour per second"]
|
14
20
|
end
|
15
21
|
|
16
22
|
system :foot_pound_second do
|
17
23
|
unit "ft/s²", value: "0.3048 m/s²", aliases: ["ft/s^2", "ft·s⁻²", "fps²", "foot per second squared", "feet per second squared"]
|
24
|
+
unit "fpm/s", value: "0.00508 m/s²", aliases: ["ft/(min⋅s)", "foot per minute per second", "feet per minute per second"]
|
25
|
+
unit "fph/s", value: "8.466667e-5 m/s²", aliases: ["ft/(h⋅s)", "foot per hour per second", "feet per hour per second"]
|
18
26
|
end
|
19
27
|
|
20
28
|
system :meteorology_aviation_maritime do
|
21
29
|
unit "Kn/s", value: "0.5144444 m/s²", aliases: ["knot per second", "knots per second"]
|
22
30
|
end
|
31
|
+
|
32
|
+
system :centimetre_gram_second do
|
33
|
+
unit "Gal", value: "1e-2 m/s²", aliases: ["gal", "galileo"]
|
34
|
+
end
|
23
35
|
end
|
@@ -9,18 +9,33 @@ UnitMeasurements::Area = UnitMeasurements.build do
|
|
9
9
|
unit "a", value: "100 m²", aliases: ["are", "ares"]
|
10
10
|
unit "b", value: "1e-28 m²", aliases: ["barn", "barns"]
|
11
11
|
unit "m²", aliases: ["m^2", "sq m", "square meter", "square meters", "square metre", "square metres"]
|
12
|
+
|
12
13
|
unit "ha", value: "10000 m²", aliases: ["hectare", "hectares"]
|
13
14
|
unit "km²", value: "1e+6 m²", aliases: ["km^2", "sq km", "square kilometer", "square kilometers", "square kilometre", "square kilometres"]
|
14
15
|
end
|
15
16
|
|
16
17
|
system :imperial do
|
17
18
|
unit "ac", value: "4046.8564224 m²", aliases: ["acre", "acres"]
|
19
|
+
|
18
20
|
unit "in²", value: "0.00064516 m²", aliases: ["in^2", "sq in", "square inch", "square inches"]
|
19
21
|
unit "ft²", value: "144 in²", aliases: ["ft^2", "sq ft", "square foot", "square feet"]
|
20
22
|
unit "yd²", value: "9 ft²", aliases: ["yd^2", "sq yd", "square yard", "square yards"]
|
21
23
|
unit "mi²", value: "3097600 yd²", aliases: ["mi^2", "sq mi", "square mile", "square miles"]
|
22
24
|
unit "ch²", value: "484 yd²", aliases: ["ch^2", "sq ch", "square chain", "square chains"]
|
25
|
+
unit "rd²", value: "272 1/4 ft²", aliases: ["rd^2", "sq rd", "square rod", "square rods"]
|
26
|
+
|
23
27
|
unit "fur²", value: "48400 yd²", aliases: ["fur^2", "sq fur", "square furlong", "square furlongs"]
|
24
|
-
unit "
|
28
|
+
unit "lnk²", value: "4.0468564224e-2 m²", aliases: ["link^2", "sq lnk", "square link", "square links"]
|
25
29
|
end
|
30
|
+
|
31
|
+
system :us_customary do
|
32
|
+
unit "ac (US)", value: "4046.873 m²", aliases: ["acre (US)", "acres (US)"]
|
33
|
+
|
34
|
+
unit "ft² (US)", value: "0.09290341161327482 m²", aliases: ["ft^2 (US)", "sq ft (US)", "square foot (US)", "square feet (US)"]
|
35
|
+
unit "mi² (US)", value: "2.58999847e+6 m²", aliases: ["mi^2 (US)", "sq mi (US)", "square mile (US)", "square miles (US)"]
|
36
|
+
unit "ch² (US)", value: "404.6873 m²", aliases: ["ch^2 (US)", "sq ch (US)", "square chain (US)", "square chains (US)"]
|
37
|
+
end
|
38
|
+
|
39
|
+
unit "bd", value: "0.00774192 m²", aliases: ["board", "boards"]
|
40
|
+
unit "ro", value: "1/4 ac", aliases: ["rood"]
|
26
41
|
end
|
@@ -7,10 +7,23 @@ UnitMeasurements::Density = UnitMeasurements.build do
|
|
7
7
|
|
8
8
|
system :metric do
|
9
9
|
unit "g/m³", aliases: ["g/m^3", "g·m⁻³", "gram per cubic meter", "grams per cubic meter", "gramme per cubic metre", "grammes per cubic metre"]
|
10
|
-
unit "kg/m³", value: "1000 g/m³", aliases: ["kg/m^3", "kg·m⁻³", "kilogram per cubic meter", "kilograms per cubic meter", "kilogramme per cubic metre", "kilogrammes per cubic metre"]
|
11
|
-
|
12
10
|
unit "g/l", value: "1 kg/m³", aliases: ["g·l⁻¹", "gram per liter", "grams per liter", "gramme per litre", "grammes per litre"]
|
13
11
|
unit "g/ml", value: "1000 g/l", aliases: ["g·ml⁻¹", "gram per milliliter", "grams per milliliter", "gramme per millilitre", "grammes per millilitre"]
|
12
|
+
|
14
13
|
unit "kg/l", value: "1e+6 g/m³", aliases: ["kg·l⁻¹", "kilogram per liter", "kilograms per liter", "kilogramme per litre", "kilogrammes per litre"]
|
14
|
+
unit "kg/m³", value: "1000 g/m³", aliases: ["kg/m^3", "kg·m⁻³", "kilogram per cubic meter", "kilograms per cubic meter", "kilogramme per cubic metre", "kilogrammes per cubic metre"]
|
15
|
+
end
|
16
|
+
|
17
|
+
system :imperial do
|
18
|
+
unit "oz/ft³", value: "1.001153961 kg/m³", aliases: ["oz/ft^3", "oz·ft⁻³", "ounce per cubic foot", "ounces per cubic foot"]
|
19
|
+
unit "oz/in³", value: "1.729994044e+3 kg/m³", aliases: ["oz/in^3", "oz·in⁻³", "ounce per cubic inch", "ounces per cubic inch"]
|
20
|
+
unit "oz/gal", value: "6.236023291 kg/m³", aliases: ["oz·gal⁻¹", "ounce per gallon", "ounces per gallon"]
|
21
|
+
|
22
|
+
unit "lb/ft³", value: "16.01846337 kg/m³", aliases: ["lb/ft^3", "lb·ft⁻³", "pound per cubic foot", "pounds per cubic foot"]
|
23
|
+
unit "lb/in³", value: "2.767990471e+4 kg/m³", aliases: ["lb/in^3", "lb·in⁻³", "pound per cubic inch", "pounds per cubic inch"]
|
24
|
+
unit "lb/gal", value: "99.77637266 kg/m³", aliases: ["lb·gal⁻¹", "pound per gallon", "pounds per gallon"]
|
25
|
+
|
26
|
+
unit "slug/ft³", value: "515.3788184 kg/m³", aliases: ["slug/ft^3", "slug·ft⁻³", "slug per cubic foot", "slugs per cubic foot"]
|
27
|
+
unit "slug/in³", value: "890574.582782 kg/m³", aliases: ["slug/in^3", "slug·in⁻³", "slug per cubic inch", "slugs per cubic inch"]
|
15
28
|
end
|
16
29
|
end
|
@@ -15,6 +15,10 @@ UnitMeasurements::Velocity = UnitMeasurements.build do
|
|
15
15
|
unit "in/s", value: "0.0254 m/s", aliases: ["in·s⁻¹", "ips", "inch per second", "inches per second"]
|
16
16
|
unit "in/min", value: "1/60 in/s", aliases: ["in·min⁻¹", "ipm", "inch per minute", "inches per minute"]
|
17
17
|
unit "in/h", value: "1/60 in/min", aliases: ["in·h⁻¹", "iph", "inch per hour", "inches per hour"]
|
18
|
+
|
19
|
+
unit "mi/s", value: "1609.344 m/s", aliases: ["mi·s⁻¹", "mps", "mile per second", "miles per second"]
|
20
|
+
unit "mi/min", value: "1/60 mi/s", aliases: ["mi·min⁻¹", "mpm", "mile per minute", "miles per minute"]
|
21
|
+
unit "mi/h", value: "1/60 mi/min", aliases: ["mi·h⁻¹", "mph", "mile per hour", "miles per hour"]
|
18
22
|
end
|
19
23
|
|
20
24
|
system :foot_pound_second do
|
@@ -23,6 +27,10 @@ UnitMeasurements::Velocity = UnitMeasurements.build do
|
|
23
27
|
unit "ft/h", value: "1/60 ft/min", aliases: ["ft·h⁻¹", "fph", "foot per hour", "feet per hour"]
|
24
28
|
end
|
25
29
|
|
30
|
+
system :furlong_firkin_fortnight do
|
31
|
+
unit "fur/ftn", value: "1.663e-4 m/s", aliases: ["fur·ftn⁻¹", "furlong per fortnight", "furlongs per fortnight"]
|
32
|
+
end
|
33
|
+
|
26
34
|
system :meteorology_aviation_maritime do
|
27
35
|
unit "Kn", value: "0.514773 m/s", aliases: ["kt", "knot", "knots"]
|
28
36
|
end
|
@@ -9,6 +9,7 @@ UnitMeasurements::Volume = UnitMeasurements.build do
|
|
9
9
|
si_unit "l", aliases: ["liter", "litre", "liters", "litres"]
|
10
10
|
|
11
11
|
unit "m³", value: "1000 l", aliases: ["m^3", "cu m", "cubic meter", "cubic meters", "cubic metre", "cubic metres"]
|
12
|
+
|
12
13
|
unit "mm³", value: "1e-9 m³", aliases: ["mm^3", "cu mm", "cubic millimeter", "cubic millimeters", "cubic millimetre", "cubic millimetres"]
|
13
14
|
unit "cm³", value: "1e-6 m³", aliases: ["cm^3", "cu cm", "cubic centimeter", "cubic centimeters", "cubic centimetre", "cubic centimetres"]
|
14
15
|
unit "dm³", value: "1 l", aliases: ["dm^3", "cu dm", "cubic decimeter", "cubic decimeters", "cubic decimetre", "cubic decimetres"]
|
@@ -20,15 +21,35 @@ UnitMeasurements::Volume = UnitMeasurements.build do
|
|
20
21
|
unit "ft³", value: "1728 in³", aliases: ["ft^3", "cu ft", "cubic foot", "cubic feet"]
|
21
22
|
unit "yd³", value: "27 ft³", aliases: ["yd^3", "cu yd", "cubic yard", "cubic yards"]
|
22
23
|
unit "mi³", value: "5451776000 yd³", aliases: ["mi^3", "cu mi", "cubic mile", "cubic miles"]
|
24
|
+
unit "ftm³", value: "216 ft³", aliases: ["ftm^3", "cu ftm", "cubic fathom", "cubic fathoms"]
|
23
25
|
|
24
26
|
unit "c", value: "284.130625e-6 m³", aliases: ["cup", "cups"]
|
27
|
+
|
25
28
|
unit "qt", value: "0.0011365225 m³", aliases: ["quart", "quarts"]
|
29
|
+
unit "pk", value: "2 gal", aliases: ["peck", "pecks"]
|
26
30
|
unit "gi", value: "1/2 c", aliases: ["gill", "gills"]
|
27
31
|
unit "pt", value: "1/8 gal", aliases: ["pint", "pints"]
|
32
|
+
unit "gt", value: "1/288 floz", aliases: ["gtt", "drop", "drops"]
|
33
|
+
|
28
34
|
unit "gal", value: "4.54609 dm³", aliases: ["gallon", "gallons"]
|
35
|
+
unit "bsh", value: "8 gal", aliases: ["bu", "bushel", "bushels"]
|
36
|
+
unit "min", value: "1/480 floz", aliases: ["minim", "minims"]
|
29
37
|
unit "bbl", value: "36 gal", aliases: ["barrel", "barrels"]
|
30
38
|
unit "tsp", value: "1/24 gi", aliases: ["teaspoon", "teaspoons"]
|
39
|
+
unit "bkt", value: "4 gal", aliases: ["bucket", "buckets"]
|
40
|
+
unit "hhd", value: "2 bbl", aliases: ["hogshead", "hogsheads"]
|
41
|
+
unit "fls", value: "1/24 floz", aliases: ["fluid scruple", "fluid scruples"]
|
42
|
+
|
43
|
+
unit "dspn", value: "10 ml", aliases: ["dsp", "dessertspoon", "dessertspoons"]
|
31
44
|
unit "tbsp", value: "3 tsp", aliases: ["tbs", "tablespoon", "tablespoons"]
|
32
45
|
unit "floz", value: "1/160 gal", aliases: ["fluid ounce", "fluid ounces"]
|
46
|
+
unit "fldr", value: "1/8 floz", aliases: ["fluid drachm", "fluid drachms"]
|
47
|
+
end
|
48
|
+
|
49
|
+
system :us_customary do
|
50
|
+
unit "bdft", value: "144 in³", aliases: ["bf", "fbm", "board-foot", "board-feet"]
|
51
|
+
|
52
|
+
unit "ac⋅ft", value: "43560 ft³", aliases: ["acre-foot", "acre-feet"]
|
53
|
+
unit "ac⋅in", value: "6272640 in³", aliases: ["acre-inch", "acre-inches"]
|
33
54
|
end
|
34
55
|
end
|
data/units.md
CHANGED
@@ -3,11 +3,13 @@
|
|
3
3
|
As there are lots of units bundled with `unit_measurements`, we recommend you to
|
4
4
|
check below list of bundled units before converting your measurements.
|
5
5
|
|
6
|
-
**
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
**Legend**
|
7
|
+
|
8
|
+
| Indicator | Definition |
|
9
|
+
|:--|:--|
|
10
|
+
| * | supports [decimal SI prefixes](README.md#decimal-si-prefixes) |
|
11
|
+
| ** | supports [binary SI prefixes](README.md#binary-si-prefixes) in addition to [decimal SI prefixes](README.md#decimal-si-prefixes) |
|
12
|
+
| _Italic_ | Primitive unit of the unit group |
|
11
13
|
|
12
14
|
## 1. Length or distance
|
13
15
|
|
@@ -122,20 +124,27 @@ These units are defined in `UnitMeasurements::Area`.
|
|
122
124
|
| # | Name | Aliases |
|
123
125
|
|:--|:--|:--|
|
124
126
|
| _1_ | _m²_ | _m^2, sq m, square meter, square meters, square metre, square metres_ |
|
125
|
-
| 2 |
|
126
|
-
| 3 |
|
127
|
-
| 4 |
|
128
|
-
| 5 |
|
129
|
-
| 6 |
|
130
|
-
| 7 |
|
131
|
-
| 8 |
|
132
|
-
| 9 |
|
133
|
-
| 10 |
|
134
|
-
| 11 |
|
135
|
-
| 12 |
|
136
|
-
| 13 |
|
137
|
-
|
138
|
-
|
127
|
+
| 2 | a | are, ares |
|
128
|
+
| 3 | b | barn, barns |
|
129
|
+
| 4 | ha | hectare, hectares |
|
130
|
+
| 5 | ac | acre, acres |
|
131
|
+
| 6 | bd | board, boards |
|
132
|
+
| 7 | ro | rood |
|
133
|
+
| 8 | km² | km^2, sq km, square kilometer, square kilometers, square kilometre, square kilometres |
|
134
|
+
| 9 | in² | in^2, sq in, square inch, square inches |
|
135
|
+
| 10 | ft² | ft^2, sq ft, square foot, square feet |
|
136
|
+
| 11 | yd² | yd^2, sq yd, square yard, square yards |
|
137
|
+
| 12 | mi² | mi^2, sq mi, square mile, square miles |
|
138
|
+
| 13 | ch² | ch^2, sq ch, square chain, square chains |
|
139
|
+
| 14 | fur² | fur^2, sq fur, square furlong, square furlongs |
|
140
|
+
| 15 | rd² | rd^2, sq rd, square rod, square rods |
|
141
|
+
| 16 | lnk² | link^2, sq lnk, square link, square links |
|
142
|
+
| 17 | ac (US) | acre (US), acres (US) |
|
143
|
+
| 18 | ft² (US) | ft^2 (US), sq ft (US), square foot (US), square feet (US) |
|
144
|
+
| 19 | mi² (US) | mi^2 (US), sq mi (US), square mile (US), square miles (US) |
|
145
|
+
| 20 | ch² (US) | ch^2 (US), sq ch (US), square chain (US), square chains (US) |
|
146
|
+
|
147
|
+
## 9. Volume & capacity
|
139
148
|
|
140
149
|
These units are defined in `UnitMeasurements::Volume`.
|
141
150
|
|
@@ -151,15 +160,28 @@ These units are defined in `UnitMeasurements::Volume`.
|
|
151
160
|
| 8 | ft³ | ft^3, cu ft, cubic foot, cubic feet |
|
152
161
|
| 9 | yd³ | yd^3, cu yd, cubic yard, cubic yards |
|
153
162
|
| 10 | mi³ | mi^3, cu mi, cubic mile, cubic miles |
|
154
|
-
| 11 |
|
155
|
-
| 12 |
|
156
|
-
| 13 |
|
157
|
-
| 14 |
|
158
|
-
| 15 |
|
159
|
-
| 16 |
|
160
|
-
| 17 |
|
161
|
-
| 18 |
|
162
|
-
| 19 |
|
163
|
+
| 11 | ftm³ | ftm^3, cu ftm, cubic fathom, cubic fathoms |
|
164
|
+
| 12 | c | cup, cups |
|
165
|
+
| 13 | qt | quart, quarts |
|
166
|
+
| 14 | gi | gill, gills |
|
167
|
+
| 15 | pt | pint, pints |
|
168
|
+
| 16 | pk | peck, pecks |
|
169
|
+
| 17 | gt | gtt, drop, drops |
|
170
|
+
| 18 | gal | gallon, gallons |
|
171
|
+
| 19 | bbl | barrel, barrels |
|
172
|
+
| 20 | tsp | teaspoon, teaspoons |
|
173
|
+
| 21 | bsh | bu, bushel, bushels |
|
174
|
+
| 22 | min | minim, minims |
|
175
|
+
| 23 | bkt | bucket, buckets |
|
176
|
+
| 24 | hhd | hogshead, hogsheads |
|
177
|
+
| 25 | fls | fluid scruple, fluid scruples |
|
178
|
+
| 26 | dspn | dsp, dessertspoon, dessertspoons |
|
179
|
+
| 27 | fldr | fluid drachm, fluid drachms |
|
180
|
+
| 28 | bdft | bf, fbm, board-foot, board-feet |
|
181
|
+
| 29 | tbsp | tbs, tablespoon, tablespoons |
|
182
|
+
| 30 | floz | fluid ounce, fluid ounces |
|
183
|
+
| 31 | ac⋅ft | acre-foot, acre-feet |
|
184
|
+
| 32 | ac⋅in | acre-inch, acre-inches |
|
163
185
|
|
164
186
|
## 10. Density
|
165
187
|
|
@@ -172,6 +194,14 @@ These units are defined in `UnitMeasurements::Density`.
|
|
172
194
|
| 3 | g/l | g·l⁻¹, gram per liter, grams per liter, gramme per litre, grammes per litre |
|
173
195
|
| 4 | g/ml | g·ml⁻¹, gram per milliliter, grams per milliliter, gramme per millilitre, grammes per millilitre |
|
174
196
|
| 5 | kg/l | kg·l⁻¹, kilogram per liter, kilograms per liter, kilogramme per litre, kilogrammes per litre |
|
197
|
+
| 6 | oz/ft³ | oz/ft^3, oz·ft⁻³, ounce per cubic foot, ounces per cubic foot |
|
198
|
+
| 7 | oz/in³ | oz/in^3, oz·in⁻³, ounce per cubic inch, ounces per cubic inch |
|
199
|
+
| 8 | oz/gal | oz·gal⁻¹, ounce per gallon, ounces per gallon |
|
200
|
+
| 9 | lb/ft³ | lb/ft^3, lb·ft⁻³, pound per cubic foot, pounds per cubic foot |
|
201
|
+
| 10 | lb/in³ | lb/in^3, lb·in⁻³, pound per cubic inch, pounds per cubic inch |
|
202
|
+
| 11 | lb/gal | lb·gal⁻¹, pound per gallon, pounds per gallon |
|
203
|
+
| 12 | slug/ft³ | slug/ft^3, slug·ft⁻³, slug per cubic foot, slugs per cubic foot |
|
204
|
+
| 13 | slug/in³ | slug/in^3, slug·in⁻³, slug per cubic inch, slugs per cubic inch |
|
175
205
|
|
176
206
|
## 11. Quantity
|
177
207
|
|
@@ -243,16 +273,20 @@ These units are defined in `UnitMeasurements::Velocity`.
|
|
243
273
|
|
244
274
|
| # | Name | Aliases |
|
245
275
|
|:--|:--|:--|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
| 3 | m/
|
249
|
-
| 4 |
|
276
|
+
| 1 | Kn | kt, knot, knots |
|
277
|
+
| _2_ | _m/s_ | _m·s⁻¹, meter per second, meters per second, metre per second, metres per second_ |
|
278
|
+
| 3 | m/min | m·min⁻¹, meter per minute, meters per minute, metre per minute, metres per minute |
|
279
|
+
| 4 | m/h | m·h⁻¹, meter per hour, meters per hour, metre per hour, metres per hour |
|
250
280
|
| 5 | in/s | in·s⁻¹, ips, inch per second, inches per second |
|
251
281
|
| 6 | in/min | in·min⁻¹, ipm, inch per minute, inches per minute |
|
252
282
|
| 7 | in/h | in·h⁻¹, iph, inch per hour, inches per hour |
|
253
283
|
| 8 | ft/s | ft·s⁻¹, fps, foot per second, feet per second |
|
254
284
|
| 9 | ft/min | ft·min⁻¹, fpm, foot per minute, feet per minute |
|
255
|
-
| 10 | ft/h | ft·h⁻¹,
|
285
|
+
| 10 | ft/h | ft·h⁻¹, fph, foot per hour, feet per hour |
|
286
|
+
| 11 | mi/s | mi·s⁻¹, mps, mile per second, miles per second |
|
287
|
+
| 12 | mi/min | mi·min⁻¹, mpm, mile per minute, miles per minute |
|
288
|
+
| 13 | mi/h | mi·h⁻¹, mph, mile per hour, miles per hour |
|
289
|
+
| 14 | fur/ftn | fur·ftn⁻¹, furlong per fortnight, furlongs per fortnight |
|
256
290
|
|
257
291
|
## 17. Acceleration
|
258
292
|
|
@@ -260,10 +294,18 @@ These units are defined in `UnitMeasurements::Acceleration`.
|
|
260
294
|
|
261
295
|
| # | Name | Aliases |
|
262
296
|
|:--|:--|:--|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
| 3 |
|
266
|
-
| 4 |
|
297
|
+
| 1 | Gal | gal, galileo |
|
298
|
+
| _2_ | _m/s²_ | _m/s^2, m·s⁻², meter per second squared, meters per second squared, metre per second squared, metres per second squared_ |
|
299
|
+
| 3 | in/s² | in/s^2, in·s⁻², ips², inch per second squared, inches per second squared |
|
300
|
+
| 4 | ipm/s | in/(min⋅s), inch per minute per second, inches per minute per second |
|
301
|
+
| 5 | iph/s | in/(h⋅s), inch per hour per second, inches per hour per second |
|
302
|
+
| 5 | ft/s² | ft/s^2, ft·s⁻², fps², foot per second squared, feet per second squared |
|
303
|
+
| 6 | fpm/s | ft/(min⋅s), foot per minute per second, feet per minute per second |
|
304
|
+
| 7 | fph/s | ft/(h⋅s), foot per hour per second, feet per hour per second |
|
305
|
+
| 8 | mi/s² | mi/s^2, mi·s⁻², mps², mile per second squared, miles per second squared |
|
306
|
+
| 9 | mpm/s | mi/(min⋅s), mile per minute per second, miles per minute per second |
|
307
|
+
| 10 | mph/s | mi/(h⋅s), mile per hour per second, miles per hour per second |
|
308
|
+
| 11 | Kn/s | knot per second, knots per second |
|
267
309
|
|
268
310
|
## 18. Angular velocity or rotational speed
|
269
311
|
|
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
|
+
version: 5.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-10-
|
11
|
+
date: 2023-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|