unit_measurements 5.6.1 → 5.7.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: 36ff08fd4410847cd93c13c849261ddc7c7638d5550d73461827e7947aa2e188
4
- data.tar.gz: 952287fd15ec0fd62ec7b70e6751a555c47b0be5f28abdef5c1a2fdd432d9279
3
+ metadata.gz: a41d5ba2f7b2763f91970361a551dcf0ff816f63db844c9f7be7a41313737543
4
+ data.tar.gz: 7810b39944c35e4d34c94f2eb9c81db84ccc36da7794bffabe995fc0e11fb4bb
5
5
  SHA512:
6
- metadata.gz: 133041f8221f4e2993476a6761ffbd9d789aa2e890cbc91120d730e5f4be36c176083cefda6c29cb14efcb131f5f9ba8a58e0619bb1394e6900c09860a4c2c15
7
- data.tar.gz: f3e8ddc100820a02e9700b06450bf2d51fe7968364bbabd37e1ff66184ec51d987d3f68d641b6c8b90fda34f9bfea31bc2991d92a2aa9ee646ad128e9a149d66
6
+ metadata.gz: 851677d0ce182b65fcef33caba5207064921ccc4b706391d6c1a21bcbe18049ed54945162d9573b0d5884ebf82a4698cac82093a9457043a210181c7620f204a
7
+ data.tar.gz: c04c7d726fbfc23c5aee06b081f75fcefdf31ff7b7ba668079e70306be275f8b9fabe5e3974212a6d92ff5826f6ea2652d93fd934be209249d0a86bade9213ca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [5.7.0](https://github.com/shivam091/unit_measurements/compare/v5.6.1...v5.7.0) - 2023-11-04
2
+
3
+ ### What's new
4
+
5
+ - Added new units `λ`, `cd`, and `cd-ft` in `volume`.
6
+ - Added new units `tn`, `LT`, `hyl`, `cwt`, and `cwt (US)` in `weight`.
7
+ - Added new units `μ`, `cb`, `b.c.`, `S`, `ls`, `lmin`, `lh`, `ld`, `lw`, `lm`, `ly` in `length`.
8
+ - Added new units `tr`, `cyc`, `sign`, `octant`, `sextant`, and `quadrant` in `plane angle`.
9
+
10
+ ### What's removed
11
+
12
+ - Removed wrong plural aliases from units of `frequency` and `magnetic induction`.
13
+
14
+ ----------
15
+
1
16
  ## [5.6.1](https://github.com/shivam091/unit_measurements/compare/v5.6.0...v5.6.1) - 2023-11-03
2
17
 
3
18
  ### What's removed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unit_measurements (5.6.1)
4
+ unit_measurements (5.7.0)
5
5
  activesupport (~> 7.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -328,7 +328,7 @@ UnitMeasurements::Length.new(17.625, "m").round
328
328
  You can check supported mathematical functions along with their examples
329
329
  [here](https://shivam091.github.io/unit_measurements/UnitMeasurements/Math.html).
330
330
 
331
- ### Conversions
331
+ ### Numeric conversions
332
332
 
333
333
  You can convert measurement quantity directly to other numeric types viz.
334
334
  `Integer`, `BigDecimal`, `Rational`, `Complex`, and `Float`.
@@ -6,7 +6,7 @@ UnitMeasurements::Frequency = UnitMeasurements.build do
6
6
  primitive "Hz"
7
7
 
8
8
  system :metric do
9
- si_unit "Hz", aliases: ["hertz", "hertzes"]
9
+ si_unit "Hz", aliases: ["hertz"]
10
10
 
11
11
  unit "deg/s", value: [Rational(1, 360), "Hz"], aliases: ["°/s", "degree per second", "degrees per second"]
12
12
  unit "rad/s", value: [Rational(1, (2 * Math::PI)), "Hz"], aliases: ["radian per second", "radians per second"]
@@ -9,6 +9,9 @@ UnitMeasurements::Length = UnitMeasurements.build do
9
9
  si_unit "m", aliases: ["meter", "metre", "meters", "metres"]
10
10
 
11
11
  unit "Å", value: "1e-10 m", aliases: ["angstrom", "angstroms", "ångström"]
12
+ unit "μ", value: "1 μm", aliases: ["micron", "microns"]
13
+
14
+ unit "cb (M)", value: "185.2 m", aliases: ["CBL. (M)", "cable length (M)"]
12
15
  end
13
16
 
14
17
  system :imperial do
@@ -21,21 +24,36 @@ UnitMeasurements::Length = UnitMeasurements.build do
21
24
  unit "ch", value: "22 yd", aliases: ["chain", "chains"]
22
25
  unit "th", value: "1/1000 in", aliases: ["thou", "thousandth of an inch", "mil", "mils"]
23
26
  unit "nl", value: "3 nmi", aliases: ["NL", "nleague", "nleagues", "nautical league", "nautical leagues"]
27
+ unit "rd", value: "16 1/2 ft", aliases: ["rod", "rods", "perch", "pole", "lug"]
28
+ unit "cb", value: "608 ft", aliases: ["CBL.", "cable length"]
24
29
 
25
30
  unit "ftm", value: "6 ft", aliases: ["fathom", "fathoms"]
26
31
  unit "fur", value: "220 yd", aliases: ["furlong", "furlongs"]
27
32
  unit "nmi", value: "1852 m", aliases: ["NMI", "M", "NM", "nautical mile", "nautical miles"]
28
- unit "rod", value: "16 1/2 ft", aliases: ["rods", "perch", "pole", "lug"]
29
33
  unit "lnk", value: "33/50 ft", aliases: ["l", "li", "link", "links"]
30
34
  unit "lea", value: "3 mi", aliases: ["league", "leagues"]
35
+
36
+ unit "b.c.", value: "1/3 in", aliases: ["bc", "barleycorn", "barleycorns"]
31
37
  end
32
38
 
33
39
  system :us_customary do
34
40
  unit "sft", value: "1200/3937 m", aliases: ["sfoot", "sfeet", "survey-foot", "survey-feet"]
41
+
42
+ unit "cb (US)", value: "720 ft", aliases: ["CBL. (US)", "cable length (US)"]
35
43
  end
36
44
 
37
45
  system :astronomical do
46
+ unit "S", value: "1e+9 km", aliases: ["spat", "spats"]
47
+
38
48
  unit "au", value: "149597870700 m", aliases: ["astronomical unit", "astronomical units"]
39
49
  unit "pc", value: [Rational(648000, Math::PI), "au"], aliases: ["parsec", "parsecs"]
50
+
51
+ unit "ls", value: "299792458 m", aliases: ["light-second", "light-seconds"]
52
+ unit "lmin", value: "60 ls", aliases: ["light-minute", "light-minutes"]
53
+ unit "lh", value: "60 lmin", aliases: ["light-hour", "light-hours"]
54
+ unit "ld", value: "24 lh", aliases: ["light-day", "light-days"]
55
+ unit "lw", value: "7 ld", aliases: ["light-week", "light-weeks"]
56
+ unit "lm", value: "30 ld", aliases: ["light-month", "light-months"]
57
+ unit "ly", value: "365.25 ld", aliases: ["light-year", "light-years"]
40
58
  end
41
59
  end
@@ -10,6 +10,6 @@ UnitMeasurements::MagneticInduction = UnitMeasurements.build do
10
10
  end
11
11
 
12
12
  system :centimetre_gram_second do
13
- unit "G", value: "1e-4 T", aliases: ["Gs", "gauss", "gausses"]
13
+ unit "G", value: "1e-4 T", aliases: ["Gs", "gauss"]
14
14
  end
15
15
  end
@@ -8,15 +8,23 @@ 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
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
11
+ unit "deg", value: [(Math::PI / 180), "rad"], aliases: ["°", "degree", "degrees", "degree of arc", "degrees of arc", "arcdegree", "arcdegrees"]
12
+ unit "gon", value: [(Math::PI / 200), "rad"], aliases: ["ᵍ", "grad", "gradian", "gradians"]
13
+ unit "arcmin", value: [Rational(1, 60), "deg"], aliases: ["′", "amin", "arcminute", "arcminutes"]
14
+ unit "arcsec", value: [Rational(1, 60), "arcmin"], aliases: ["″", "asec", "arcsecond", "arcseconds"]
15
15
  end
16
16
 
17
- unit "cir", value: [360, "deg"], aliases: ["circle", "circles"] # (2 * π) rad
18
- unit "mil", value: [Rational(1, 6400), "cir"], aliases: ["mils"] # ((2 * π) / 6400) rad
19
- unit "rev", value: [1, "cir"], aliases: ["revolution", "revolutions"] # (2 * π) rad
17
+ unit "tr", value: [1, "cir"], aliases: ["turn", "turns"]
20
18
 
21
- unit "brad", value: [(Math::PI / 128), "rad"], aliases: ["", "bdeg", "binary degree", "binary radian", "binary degrees", "binary radians"] # (π / 128) rad
19
+ unit "cir", value: [360, "deg"], aliases: ["circle", "circles"]
20
+ unit "rev", value: [1, "cir"], aliases: ["revolution", "revolutions"]
21
+ unit "cyc", value: [1, "cir"], aliases: ["cycle", "cycles"]
22
+ unit "mil", value: [Rational(1, 6400), "cir"], aliases: ["mils"]
23
+
24
+ unit "brad", value: [(Math::PI / 128), "rad"], aliases: ["b°", "bdeg", "binary degree", "binary radian", "binary degrees", "binary radians"]
25
+
26
+ unit "sign", value: "30 deg", aliases: ["signs"]
27
+ unit "octant", value: "45 deg", aliases: ["octants"]
28
+ unit "sextant", value: "60 deg", aliases: ["sextants"]
29
+ unit "quadrant", value: "90 deg", aliases: ["quadrants"]
22
30
  end
@@ -8,6 +8,7 @@ UnitMeasurements::Volume = UnitMeasurements.build do
8
8
  system :metric do
9
9
  si_unit "l", aliases: ["liter", "litre", "liters", "litres"]
10
10
 
11
+ unit "λ", value: "1e-9 m³", aliases: ["lambda", "lambdas"]
11
12
  unit "m³", value: "1000 l", aliases: ["m^3", "cu m", "cubic meter", "cubic meters", "cubic metre", "cubic metres"]
12
13
 
13
14
  unit "mm³", value: "1e-9 m³", aliases: ["mm^3", "cu mm", "cubic millimeter", "cubic millimeters", "cubic millimetre", "cubic millimetres"]
@@ -40,16 +41,20 @@ UnitMeasurements::Volume = UnitMeasurements.build do
40
41
  unit "hhd", value: "2 bbl", aliases: ["hogshead", "hogsheads"]
41
42
  unit "fls", value: "1/24 floz", aliases: ["fluid scruple", "fluid scruples"]
42
43
 
43
- unit "dspn", value: "10 ml", aliases: ["dsp", "dessertspoon", "dessertspoons"]
44
+ unit "dspn", value: "10 ml", aliases: ["dsp", "dstspn", "dessertspoon", "dessertspoons"]
44
45
  unit "tbsp", value: "3 tsp", aliases: ["tbs", "tablespoon", "tablespoons"]
45
46
  unit "floz", value: "1/160 gal", aliases: ["fluid ounce", "fluid ounces"]
46
47
  unit "fldr", value: "1/8 floz", aliases: ["fluid drachm", "fluid drachms"]
47
48
  end
48
49
 
49
50
  system :us_customary do
51
+ unit "cd", value: "128 ft³", aliases: ["cord", "cords"]
52
+
50
53
  unit "bdft", value: "144 in³", aliases: ["bf", "fbm", "board-foot", "board-feet"]
51
54
 
52
55
  unit "ac⋅ft", value: "43560 ft³", aliases: ["acre-foot", "acre-feet"]
53
56
  unit "ac⋅in", value: "6272640 in³", aliases: ["acre-inch", "acre-inches"]
57
+
58
+ unit "cd-ft", value: "1/8 cd", aliases: ["cord-foot", "cord-feet"]
54
59
  end
55
60
  end
@@ -24,11 +24,22 @@ UnitMeasurements::Weight = UnitMeasurements.build do
24
24
  unit "oz", value: "1/16 lb", aliases: ["ounce", "ounces"]
25
25
  unit "dr", value: "1/16 oz", aliases: ["dram", "drams"]
26
26
  unit "gr", value: "1/7000 lb", aliases: ["grain", "grains"]
27
+ unit "LT", value: "2240 lb", aliases: ["imperial ton", "displacement ton", "imperial tons", "displacement tons", "long ton", "long tons", "weight ton", "weight tons"]
27
28
 
28
29
  unit "drt", value: "60 gr", aliases: ["troy dram", "troy drams"]
29
30
  unit "ozt", value: "480 gr", aliases: ["troy ounce", "troy ounces"]
30
31
  unit "lbt", value: "5760 gr", aliases: ["troy pound", "troy pounds"]
31
32
  unit "dwt", value: "1/20 ozt", aliases: ["pwt", "pennyweight", "pennyweights"]
33
+ unit "cwt", value: "112 lb", aliases: ["hundredweight", "long hundredweight", "imperial hundredweight"]
34
+ end
35
+
36
+ system :us_customary do
37
+ unit "tn", value: "2000 lb", aliases: ["ton", "tons", "short ton", "short tons"]
38
+ unit "cwt (US)", value: "100 lb", aliases: ["hundredweight (US)", "short hundredweight"]
39
+ end
40
+
41
+ system :gravitational_metric do
42
+ unit "hyl", value: "9.80665 kg", aliases: ["mug", "metric slug", "metric slugs", "hyls"]
32
43
  end
33
44
 
34
45
  system :foot_pound_second do
@@ -4,5 +4,5 @@
4
4
 
5
5
  module UnitMeasurements
6
6
  # Current stable version.
7
- VERSION = "5.6.1"
7
+ VERSION = "5.7.0"
8
8
  end
data/units.md CHANGED
@@ -7,8 +7,8 @@ check below list of bundled units before converting your measurements.
7
7
 
8
8
  | Indicator | Definition |
9
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) |
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
12
  | _emphasised typeface_ | Primitive unit of the unit group |
13
13
 
14
14
  ## 1. Length or distance
@@ -19,23 +19,36 @@ These units are defined in `UnitMeasurements::Length`.
19
19
  |:--|:--|:--|
20
20
  | _1_ | _m*_ | _meter, metre, meters, metres_ |
21
21
  | 2 | Å | angstrom, angstroms, ångström |
22
- | 3 | h | hh, hand, hands |
23
- | 4 | in | ", inch, inches |
24
- | 5 | ft | ', foot, feet |
25
- | 6 | yd | yard, yards |
26
- | 7 | mi | mile, miles, statute mile, international mile, statute miles, international miles |
27
- | 8 | ch | chain, chains |
28
- | 9 | th | thou, thousandth of an inch, mil, mils |
29
- | 10 | au | astronomical unit, astronomical units |
30
- | 11 | pc | parsec, parsecs |
31
- | 12 | nl | NL, nleague, nleagues, nautical league, nautical leagues |
32
- | 13 | ftm | fm, fathom, fathoms |
33
- | 14 | fur | furlong, furlongs |
34
- | 15 | nmi | NMI, M, NM, nautical mile, nautical miles |
35
- | 16 | rod | rods, perch, pole, lug |
36
- | 17 | lnk | l, li, link, links |
37
- | 18 | lea | league, leagues |
38
- | 19 | sft | sfoot, sfeet, survey-foot, survey-feet |
22
+ | 3 | S | spat, spats |
23
+ | 4 | μ | micron, microns |
24
+ | 5 | h | hh, hand, hands |
25
+ | 6 | in | ", inch, inches |
26
+ | 7 | ft | ', foot, feet |
27
+ | 8 | yd | yard, yards |
28
+ | 9 | mi | mile, miles, statute mile, international mile, statute miles, international miles |
29
+ | 10 | ch | chain, chains |
30
+ | 11 | th | thou, thousandth of an inch, mil, mils |
31
+ | 12 | au | astronomical unit, astronomical units |
32
+ | 13 | pc | parsec, parsecs |
33
+ | 14 | nl | NL, nleague, nleagues, nautical league, nautical leagues |
34
+ | 15 | rd | rod, rods, perch, pole, lug |
35
+ | 16 | cb | CBL., cable length |
36
+ | 17 | ls | light-second, light-seconds |
37
+ | 18 | lh | light-hour, light-hours |
38
+ | 19 | ld | light-day, light-days |
39
+ | 20 | lw | light-week, light-weeks |
40
+ | 21 | lm | light-month, light-months |
41
+ | 22 | ly | light-year, light-years |
42
+ | 23 | ftm | fm, fathom, fathoms |
43
+ | 24 | fur | furlong, furlongs |
44
+ | 25 | nmi | NMI, M, NM, nautical mile, nautical miles |
45
+ | 26 | lnk | l, li, link, links |
46
+ | 27 | lea | league, leagues |
47
+ | 28 | sft | sfoot, sfeet, survey-foot, survey-feet |
48
+ | 29 | b.c. | bc, barleycorn, barleycorns |
49
+ | 30 | lmin | light-minute, light-minutes |
50
+ | 31 | cb (M) | CBL. (M), cable length (M) |
51
+ | 32 | cb (US) | CBL. (US), cable length (US) |
39
52
 
40
53
  ## 2. Weight or mass
41
54
 
@@ -55,11 +68,16 @@ These units are defined in `UnitMeasurements::Weight`.
55
68
  | 10 | lb | lbs, lbm, pound-mass, pound, pounds, \# |
56
69
  | 11 | oz | ounce, ounces |
57
70
  | 12 | gr | grain, grains |
58
- | 13 | dwt | pennyweight, pennyweights |
59
- | 14 | ozt | troy ounce, troy ounces |
60
- | 15 | lbt | troy pound, troy pounds |
61
- | 16 | drt | troy dram, troy drams |
62
- | 17 | slug | slugs |
71
+ | 13 | tn | ton, tons, short ton, short tons |
72
+ | 14 | LT | imperial ton, displacement ton, imperial tons, displacement tons, long ton, long tons, weight ton, weight tons |
73
+ | 15 | dwt | pennyweight, pennyweights |
74
+ | 16 | ozt | troy ounce, troy ounces |
75
+ | 17 | lbt | troy pound, troy pounds |
76
+ | 18 | drt | troy dram, troy drams |
77
+ | 19 | hyl | mug, metric slug, metric slugs, hyls |
78
+ | 20 | cwt | hundredweight, long hundredweight, imperial hundredweight |
79
+ | 21 | slug | slugs |
80
+ | 22 | cwt (US) | hundredweight (US), short hundredweight |
63
81
 
64
82
  ## 3. Time or duration
65
83
 
@@ -151,37 +169,40 @@ These units are defined in `UnitMeasurements::Volume`.
151
169
  | # | Name | Aliases |
152
170
  |:--|:--|:--|
153
171
  | 1 | l* | liter, litre, liters, litres |
154
- | _2_ | _m³_ | _m^3, cu m, cubic meter, cubic meters, cubic metre, cubic metres_ |
155
- | 3 | mm³ | mm^3, cu mm, cubic millimeter, cubic millimeters, cubic millimetre, cubic millimetres |
156
- | 4 | cm³ | cm^3, cu cm, cubic centimeter, cubic centimeters, cubic centimetre, cubic centimetres |
157
- | 5 | dm³ | dm^3, cu dm, cubic decimeter, cubic decimeters, cubic decimetre, cubic decimetres |
158
- | 6 | km³ | km^3, cu km, cubic kilometer, cubic kilometers, cubic kilometre, cubic kilometres |
159
- | 7 | in³ | in^3, cu in, cubic inch, cubic inches |
160
- | 8 | ft³ | ft^3, cu ft, cubic foot, cubic feet |
161
- | 9 | yd³ | yd^3, cu yd, cubic yard, cubic yards |
162
- | 10 | mi³ | mi^3, cu mi, cubic mile, cubic miles |
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 |
172
+ | 2 | λ | lambda, lambdas |
173
+ | _3_ | _m³_ | _m^3, cu m, cubic meter, cubic meters, cubic metre, cubic metres_ |
174
+ | 4 | mm³ | mm^3, cu mm, cubic millimeter, cubic millimeters, cubic millimetre, cubic millimetres |
175
+ | 5 | cm³ | cm^3, cu cm, cubic centimeter, cubic centimeters, cubic centimetre, cubic centimetres |
176
+ | 6 | dm³ | dm^3, cu dm, cubic decimeter, cubic decimeters, cubic decimetre, cubic decimetres |
177
+ | 7 | km³ | km^3, cu km, cubic kilometer, cubic kilometers, cubic kilometre, cubic kilometres |
178
+ | 8 | in³ | in^3, cu in, cubic inch, cubic inches |
179
+ | 9 | ft³ | ft^3, cu ft, cubic foot, cubic feet |
180
+ | 10 | yd³ | yd^3, cu yd, cubic yard, cubic yards |
181
+ | 11 | mi³ | mi^3, cu mi, cubic mile, cubic miles |
182
+ | 12 | ftm³ | ftm^3, cu ftm, cubic fathom, cubic fathoms |
183
+ | 13 | c | cup, cups |
184
+ | 14 | qt | quart, quarts |
185
+ | 15 | gi | gill, gills |
186
+ | 16 | pt | pint, pints |
187
+ | 17 | pk | peck, pecks |
188
+ | 18 | gt | gtt, drop, drops |
189
+ | 19 | cd | cord, cords |
190
+ | 20 | gal | gallon, gallons |
191
+ | 21 | bbl | barrel, barrels |
192
+ | 22 | tsp | teaspoon, teaspoons |
193
+ | 23 | bsh | bu, bushel, bushels |
194
+ | 24 | min | minim, minims |
195
+ | 25 | bkt | bucket, buckets |
196
+ | 26 | hhd | hogshead, hogsheads |
197
+ | 27 | fls | fluid scruple, fluid scruples |
198
+ | 28 | dspn | dsp, dstspn, dessertspoon, dessertspoons |
199
+ | 29 | fldr | fluid drachm, fluid drachms |
200
+ | 30 | bdft | bf, fbm, board-foot, board-feet |
201
+ | 31 | tbsp | tbs, tablespoon, tablespoons |
202
+ | 32 | floz | fluid ounce, fluid ounces |
203
+ | 33 | ac⋅ft | acre-foot, acre-feet |
204
+ | 34 | ac⋅in | acre-inch, acre-inches |
205
+ | 35 | cd-ft | cord-foot, cord-feet |
185
206
 
186
207
  ## 10. Density
187
208
 
@@ -232,14 +253,20 @@ These units are defined in `UnitMeasurements::PlaneAngle`.
232
253
  | # | Name | Aliases |
233
254
  |:--|:--|:--|
234
255
  | _1_ | _rad*_ | _radian, radians_ |
235
- | 2 | deg | °, degree, degrees |
236
- | 3 | gon | ᵍ, grad, gradian, gradians |
237
- | 4 | cir | circle, circles |
238
- | 5 | mil | mils |
239
- | 6 | rev | revolution, revolutions |
240
- | 7 | brad | b°, bdeg, binary degree, binary radian, binary degrees, binary radians |
241
- | 8 | arcmin | ′, amin, arcminute, arcminutes |
242
- | 9 | arcsec | ″, asec, arcsecond, arcseconds |
256
+ | 2 | tr | turn, turns |
257
+ | 3 | deg | °, degree, degrees, degree of arc, degrees of arc, arcdegree, arcdegrees |
258
+ | 4 | gon | ᵍ, grad, gradian, gradians |
259
+ | 5 | cir | circle, circles |
260
+ | 6 | mil | mils |
261
+ | 7 | rev | revolution, revolutions |
262
+ | 8 | cyc | cycle, cycles |
263
+ | 9 | brad | b°, bdeg, binary degree, binary radian, binary degrees, binary radians |
264
+ | 10 | sign | signs |
265
+ | 11 | arcmin | ′, amin, arcminute, arcminutes |
266
+ | 12 | arcsec | ″, asec, arcsecond, arcseconds |
267
+ | 13 | octant | octants |
268
+ | 14 | sextant | sextants |
269
+ | 15 | quadrant | quadrants |
243
270
 
244
271
  ## 14. Solid angle or 3D angle
245
272
 
@@ -432,7 +459,7 @@ These units are defined in `UnitMeasurements::MagneticInduction`.
432
459
  | # | Name | Aliases |
433
460
  |:--|:--|:--|
434
461
  | _1_ | _T*_ | _tesla, teslas_ |
435
- | 2 | G | Gs, gauss, gausses |
462
+ | 2 | G | Gs, gauss |
436
463
 
437
464
  ## 29. Magnetic field
438
465
 
@@ -538,7 +565,7 @@ These units are defined in `UnitMeasurements::Frequency`.
538
565
 
539
566
  | # | Name | Aliases |
540
567
  |:--|:--|:--|
541
- | _1_ | _Hz*_ | _hertz, hertzes_ |
568
+ | _1_ | _Hz*_ | _hertz_ |
542
569
  | 2 | rad/s | radian per second, radians per second |
543
570
  | 3 | deg/s | °/s, degree per second, degrees per second |
544
571
  | 4 | rev/s | rps, revolution per second, revolutions per second |
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.6.1
4
+ version: 5.7.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-03 00:00:00.000000000 Z
11
+ date: 2023-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport