unit_measurements 2.6.0 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/Gemfile.lock +1 -1
- data/lib/unit_measurements/unit_groups/plane_angle.rb +5 -5
- data/lib/unit_measurements/version.rb +1 -1
- 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: 5d98e7586a633b58cedcc99e781acb073c11ff72d76fdc38fef41e8c8d845d80
|
4
|
+
data.tar.gz: 5021c9cb06916cad76a1882694dbea4a363cd26b5378d2429ad1ba4d4ad7b6ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bcc7575bd131b9287278e49e65c6718545d0d5361ca66a0c2a5100ad3aa9ca6b319eaac4eac47cd068b11ef0a325592ad99b1758eb2d00e3cd56b5ae5284867
|
7
|
+
data.tar.gz: ec28a588d149670874e64a136159e26beecc0ef01b154657d6c0b72ef940dac9aa9b37991a5392b9f4c18395c07d4d65036e74a48f254844e8f1441493be927e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
## [2.6.2](https://github.com/shivam091/unit_measurements/compare/v2.6.1...v2.6.2) - 2023-08-25
|
2
|
+
|
3
|
+
### What's changed
|
4
|
+
|
5
|
+
- Replaced `String` by `Symbol` in unit names and symbols.
|
6
|
+
|
7
|
+
----------
|
8
|
+
|
9
|
+
## [2.6.1](https://github.com/shivam091/unit_measurements/compare/v2.6.0...v2.6.1) - 2023-08-24
|
10
|
+
|
11
|
+
### What's changed
|
12
|
+
|
13
|
+
- Replaced `Symbol` by `String` in unit names and symbols.
|
14
|
+
|
15
|
+
----------
|
16
|
+
|
1
17
|
## [2.6.0](https://github.com/shivam091/unit_measurements/compare/v2.5.0...v2.6.0) - 2023-08-24
|
2
18
|
|
3
19
|
### What's new
|
data/Gemfile.lock
CHANGED
@@ -7,12 +7,12 @@ UnitMeasurements::PlaneAngle = UnitMeasurements.build do
|
|
7
7
|
|
8
8
|
unit :deg, value: [(Math::PI / 180), :rad], aliases: [:°, :degree, :degrees] # (π / 180) rad
|
9
9
|
unit :gon, value: [(Math::PI / 200), :rad], aliases: [:ᵍ, :grad, :gradian, :gradians] # (π / 200) rad
|
10
|
-
unit :cir, value:
|
11
|
-
unit :mil, value:
|
12
|
-
unit :rev, value:
|
10
|
+
unit :cir, value: [360, :deg], aliases: [:circle, :circles] # (2 * π) rad
|
11
|
+
unit :mil, value: [Rational(1, 6400), :cir], aliases: [:mils] # ((2 * π) / 6400) rad
|
12
|
+
unit :rev, value: [1, :cir], aliases: [:revolution, :revolutions] # (2 * π) rad
|
13
13
|
|
14
14
|
unit :brad, value: [(Math::PI / 128), :rad], aliases: [:b°, :bdeg, :"binary degree", :"binary radian", :"binary degrees", :"binary radians"] # (π / 128) rad
|
15
15
|
|
16
|
-
unit :arcmin, value:
|
17
|
-
unit :arcsec, value:
|
16
|
+
unit :arcmin, value: [Rational(1, 60), :deg], aliases: [:′, :amin, :arcminute, :arcminutes] # ((π / 180) / 60) rad
|
17
|
+
unit :arcsec, value: [Rational(1, 60), :arcmin], aliases: [:″, :asec, :arcsecond, :arcseconds] # ((π / 180) / 3600) rad
|
18
18
|
end
|
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: 2.6.
|
4
|
+
version: 2.6.2
|
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-09-
|
11
|
+
date: 2023-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|