unit_measurements 2.6.0 → 2.6.2

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: 3d6c07c2a7f828f3e7ac525c7100d75310bde354f0e9bc07952b0b7436dc8a5b
4
- data.tar.gz: e6951bd9afaa36174a7491208e3e4844e59bbba19dd6b307e8cac3b297262658
3
+ metadata.gz: 5d98e7586a633b58cedcc99e781acb073c11ff72d76fdc38fef41e8c8d845d80
4
+ data.tar.gz: 5021c9cb06916cad76a1882694dbea4a363cd26b5378d2429ad1ba4d4ad7b6ef
5
5
  SHA512:
6
- metadata.gz: d78f1b5d0e603ed08b40769a96a6172f204019c98a103cf3fb4335bf2b47be15327588e88e4b6e286e7085632adf1e08057a09b136988b71feef1742711bfb7a
7
- data.tar.gz: cfef2825c9fb04c0449abf0e04e143fa95310c87b70d8df6c0aa4d4991568510a09f6071a2c727e0fb28977d923fb37564be6de3025b914c67cb90867d248e28
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unit_measurements (2.6.0)
4
+ unit_measurements (2.6.2)
5
5
  activesupport (~> 7.0)
6
6
 
7
7
  GEM
@@ -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: "360 deg", aliases: [:circle, :circles] # (2 * π) rad
11
- unit :mil, value: "1/6400 cir", aliases: [:mils] # ((2 * π) / 6400) rad
12
- unit :rev, value: "1 cir", aliases: [:revolution, :revolutions] # (2 * π) rad
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: "1/60 deg", aliases: [:′, :amin, :arcminute, :arcminutes] # ((π / 180) / 60) rad
17
- unit :arcsec, value: "1/60 arcmin", aliases: [:″, :asec, :arcsecond, :arcseconds] # ((π / 180) / 3600) rad
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
@@ -3,5 +3,5 @@
3
3
  # -*- warn_indent: true -*-
4
4
 
5
5
  module UnitMeasurements
6
- VERSION = "2.6.0"
6
+ VERSION = "2.6.2"
7
7
  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.0
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-24 00:00:00.000000000 Z
11
+ date: 2023-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport