Skip to content

Commit

Permalink
Merge pull request #54 from shivam091/5.5.0
Browse files Browse the repository at this point in the history
5.5.0
  • Loading branch information
shivam091 authored Oct 28, 2023
2 parents 8ef95b2 + d893f83 commit 8b0a756
Show file tree
Hide file tree
Showing 10 changed files with 2,046 additions and 156 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [5.5.0](https://github.com/shivam091/unit_measurements/compare/v5.4.1...v5.5.0) - 2023-10-29

### What's new

- Added new units `ipm/s`, `iph/s`, `mi/s²`, `mpm/s`, `mph/s`, `fpm/s`, `fph/s`, `Gal` in acceleration.
- Added new units `mi/s`, `mi/min`, `mi/h`, and `fur/ftn` in velocity.
- Added new units `lnk²`, `ac`, `ft²`, `mi²`, `ch²`, `bd`, and `ro` in area.

### What's updated

- Changed unit name `rod²` to `rd²` along with its aliases.

----------

## [5.4.1](https://github.com/shivam091/unit_measurements/compare/v5.4.0...v5.4.1) - 2023-10-28

### What's updated
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
unit_measurements (5.4.1)
unit_measurements (5.5.0)
activesupport (~> 7.0)

GEM
Expand Down
12 changes: 12 additions & 0 deletions lib/unit_measurements/unit_groups/acceleration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,25 @@

system :imperial do
unit "in/s²", value: "0.0254 m/s²", aliases: ["in/s^2", "in·s⁻²", "ips²", "inch per second squared", "inches per second squared"]
unit "ipm/s", value: "0.0004233333 m/s²", aliases: ["in/(min⋅s)", "inch per minute per second", "inches per minute per second"]
unit "iph/s", value: "7.055555e-6 m/s²", aliases: ["in/(h⋅s)", "inch per hour per second", "inches per hour per second"]

unit "mi/s²", value: "1609.344 m/s²", aliases: ["mi/s^2", "mi·s⁻²", "mps²", "mile per second squared", "miles per second squared"]
unit "mpm/s", value: "26.8224 m/s²", aliases: ["mi/(min⋅s)", "mile per minute per second", "miles per minute per second"]
unit "mph/s", value: "0.44704 m/s²", aliases: ["mi/(h⋅s)", "mile per hour per second", "miles per hour per second"]
end

system :foot_pound_second do
unit "ft/s²", value: "0.3048 m/s²", aliases: ["ft/s^2", "ft·s⁻²", "fps²", "foot per second squared", "feet per second squared"]
unit "fpm/s", value: "0.00508 m/s²", aliases: ["ft/(min⋅s)", "foot per minute per second", "feet per minute per second"]
unit "fph/s", value: "8.466667e-5 m/s²", aliases: ["ft/(h⋅s)", "foot per hour per second", "feet per hour per second"]
end

system :meteorology_aviation_maritime do
unit "Kn/s", value: "0.5144444 m/s²", aliases: ["knot per second", "knots per second"]
end

system :centimetre_gram_second do
unit "Gal", value: "1e-2 m/s²", aliases: ["gal", "galileo"]
end
end
17 changes: 16 additions & 1 deletion lib/unit_measurements/unit_groups/area.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,33 @@
unit "a", value: "100 m²", aliases: ["are", "ares"]
unit "b", value: "1e-28 m²", aliases: ["barn", "barns"]
unit "m²", aliases: ["m^2", "sq m", "square meter", "square meters", "square metre", "square metres"]

unit "ha", value: "10000 m²", aliases: ["hectare", "hectares"]
unit "km²", value: "1e+6 m²", aliases: ["km^2", "sq km", "square kilometer", "square kilometers", "square kilometre", "square kilometres"]
end

system :imperial do
unit "ac", value: "4046.8564224 m²", aliases: ["acre", "acres"]

unit "in²", value: "0.00064516 m²", aliases: ["in^2", "sq in", "square inch", "square inches"]
unit "ft²", value: "144 in²", aliases: ["ft^2", "sq ft", "square foot", "square feet"]
unit "yd²", value: "9 ft²", aliases: ["yd^2", "sq yd", "square yard", "square yards"]
unit "mi²", value: "3097600 yd²", aliases: ["mi^2", "sq mi", "square mile", "square miles"]
unit "ch²", value: "484 yd²", aliases: ["ch^2", "sq ch", "square chain", "square chains"]
unit "rd²", value: "272 1/4 ft²", aliases: ["rd^2", "sq rd", "square rod", "square rods"]

unit "fur²", value: "48400 yd²", aliases: ["fur^2", "sq fur", "square furlong", "square furlongs"]
unit "rod²", value: "272 1/4 ft²", aliases: ["rod^2", "sq rod", "square rod", "square rods"]
unit "lnk²", value: "4.0468564224e-2 m²", aliases: ["link^2", "sq lnk", "square link", "square links"]
end

system :us_customary do
unit "ac (US)", value: "4046.873 m²", aliases: ["acre (US)", "acres (US)"]

unit "ft² (US)", value: "0.09290341161327482 m²", aliases: ["ft^2 (US)", "sq ft (US)", "square foot (US)", "square feet (US)"]
unit "mi² (US)", value: "2.58999847e+6 m²", aliases: ["mi^2 (US)", "sq mi (US)", "square mile (US)", "square miles (US)"]
unit "ch² (US)", value: "404.6873 m²", aliases: ["ch^2 (US)", "sq ch (US)", "square chain (US)", "square chains (US)"]
end

unit "bd", value: "0.00774192 m²", aliases: ["board", "boards"]
unit "ro", value: "1/4 ac", aliases: ["rood"]
end
8 changes: 8 additions & 0 deletions lib/unit_measurements/unit_groups/velocity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
unit "in/s", value: "0.0254 m/s", aliases: ["in·s⁻¹", "ips", "inch per second", "inches per second"]
unit "in/min", value: "1/60 in/s", aliases: ["in·min⁻¹", "ipm", "inch per minute", "inches per minute"]
unit "in/h", value: "1/60 in/min", aliases: ["in·h⁻¹", "iph", "inch per hour", "inches per hour"]

unit "mi/s", value: "1609.344 m/s", aliases: ["mi·s⁻¹", "mps", "mile per second", "miles per second"]
unit "mi/min", value: "1/60 mi/s", aliases: ["mi·min⁻¹", "mpm", "mile per minute", "miles per minute"]
unit "mi/h", value: "1/60 mi/min", aliases: ["mi·h⁻¹", "mph", "mile per hour", "miles per hour"]
end

system :foot_pound_second do
Expand All @@ -23,6 +27,10 @@
unit "ft/h", value: "1/60 ft/min", aliases: ["ft·h⁻¹", "fph", "foot per hour", "feet per hour"]
end

system :furlong_firkin_fortnight do
unit "fur/ftn", value: "1.663e-4 m/s", aliases: ["fur·ftn⁻¹", "furlong per fortnight", "furlongs per fortnight"]
end

system :meteorology_aviation_maritime do
unit "Kn", value: "0.514773 m/s", aliases: ["kt", "knot", "knots"]
end
Expand Down
2 changes: 1 addition & 1 deletion lib/unit_measurements/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

module UnitMeasurements
# Current stable version.
VERSION = "5.4.1"
VERSION = "5.5.0"
end
Loading

0 comments on commit 8b0a756

Please sign in to comment.