simple_unit_converter 0.1.8 → 0.2.0

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: ec64a8b84faae12613e986ebd6ded46ffaceeb19386b2017851241229b636a89
4
- data.tar.gz: cdff3ab13fdd7d62ed46df064550249b44b93353a1ad4954ad84f678026a27e8
3
+ metadata.gz: af8a384286c3b2794c1c699fc13f5a81ebffdec2538d35ee7eb7c691b51d9902
4
+ data.tar.gz: b1495dbf99f46717ca67eae5332c65212da8f796fe1d29f0bb813290ec6046bc
5
5
  SHA512:
6
- metadata.gz: 62eca193c85eb0c3b1a8a7b5ac2726cd899b9426c046820e0380e6fc2754669001926bcb055c0a69cefd6fedf1eb84000289d92f9893d58236fb47b9b4381fdb
7
- data.tar.gz: 0d5faa83d21601ebd9f6525e01ea51de23b0ab445313cb238402554cedcc8775618313214b7820cba39fd817c8b4ed154d603681e6b4408612e6764be4b23d55
6
+ metadata.gz: d4f69a35d9ef4506e6f832a1112046b5693667303267ba8c49f6a4895416e82575bce20b417417830afaf7a24b6a6f6a9eee2b9a0e444a1e6a551660baf4df36
7
+ data.tar.gz: b5627987b84852d0c78b0b38533c3d8540017bef49346bc4108a0f0ae52bdcb1f5e9e3b557f0368fed81a09e21e30142985ee586181c314af4087446bbc51f89
@@ -22,18 +22,18 @@ class Float
22
22
  include MotionUnit
23
23
  include AreaConversion
24
24
  include AreaUnit
25
- include ByteConversion
26
- include ByteUnit
27
- include EnergyConversion
28
- include EnergyUnit
29
- include LengthConversion
30
- include LengthUnit
31
- include MassConversion
32
- include MassUnit
33
- include PowerConversion
34
- include PowerUnit
35
- include TemperatureConversion
36
- include TemperatureUnit
37
- include VolumeConversion
38
- include VolumeUnit
25
+ # include ByteConversion
26
+ # include ByteUnit
27
+ # include EnergyConversion
28
+ # include EnergyUnit
29
+ # include LengthConversion
30
+ # include LengthUnit
31
+ # include MassConversion
32
+ # include MassUnit
33
+ # include PowerConversion
34
+ # include PowerUnit
35
+ # include TemperatureConversion
36
+ # include TemperatureUnit
37
+ # include VolumeConversion
38
+ # include VolumeUnit
39
39
  end
@@ -22,18 +22,18 @@ class Integer
22
22
  include MotionUnit
23
23
  include AreaConversion
24
24
  include AreaUnit
25
- include ByteConversion
26
- include ByteUnit
27
- include EnergyConversion
28
- include EnergyUnit
29
- include LengthConversion
30
- include LengthUnit
31
- include MassConversion
32
- include MassUnit
33
- include PowerConversion
34
- include PowerUnit
35
- include TemperatureConversion
36
- include TemperatureUnit
37
- include VolumeConversion
38
- include VolumeUnit
25
+ # include ByteConversion
26
+ # include ByteUnit
27
+ # include EnergyConversion
28
+ # include EnergyUnit
29
+ # include LengthConversion
30
+ # include LengthUnit
31
+ # include MassConversion
32
+ # include MassUnit
33
+ # include PowerConversion
34
+ # include PowerUnit
35
+ # include TemperatureConversion
36
+ # include TemperatureUnit
37
+ # include VolumeConversion
38
+ # include VolumeUnit
39
39
  end
@@ -12,11 +12,11 @@ module CommonUnit
12
12
  end
13
13
 
14
14
  def yard
15
- foot*3
15
+ foot*3.0
16
16
  end
17
17
 
18
18
  def mile
19
- yard*1760
19
+ yard*1760.0
20
20
  end
21
21
 
22
22
  def meter
@@ -40,7 +40,7 @@ module CommonUnit
40
40
  end
41
41
 
42
42
  def minute
43
- 60
43
+ 60.0
44
44
  end
45
45
 
46
46
  def hour
@@ -25,7 +25,7 @@ module Prefix
25
25
  end
26
26
 
27
27
  def kilo
28
- 1000
28
+ 1000.0
29
29
  end
30
30
  alias :thousand :kilo
31
31
 
@@ -18,6 +18,11 @@ module MotionUnit
18
18
  end
19
19
  alias :fps :foot_per_second
20
20
 
21
+ def meter_per_second
22
+ self
23
+ end
24
+ alias :mps :meter_per_second
25
+
21
26
  def knot
22
27
  self*0.514444
23
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_unit_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ankur Chauhan