simple_unit_converter 0.1.3 → 0.1.5

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: e8b0a558de784482dad4ff65f0c4fdad815fdf6b397ec231e535f486bd2044de
4
- data.tar.gz: 04be7ea178dcbe5c72271b9b97be74a94e821588cd49843f9c90ab5ce6773936
3
+ metadata.gz: 65c31c0a42bb8cca05b5634eb8e3bcdc605f241b2a64cb086b3809823b5c2eb0
4
+ data.tar.gz: 6d7311476a743c9d2acc0d2f36802a5cd302d27dda64105ff5950e07dc0c8218
5
5
  SHA512:
6
- metadata.gz: 6e7c33da9e7e4f330425aaa977c7512870ff1a07f2899268ead86d9fd6409e0d5fd429b365310799fe88c21b973de43ffd0b1111d8548e3c634d53203c1473fd
7
- data.tar.gz: 533abb6ff29193bbb49decaabbd9d5018b2efe5bc2e2e5cd9f304c5aee4baeacd932532c6e4513aeaa48de6cae87cdc9ee6a7845aef4c6ed99aa43dd86d72666
6
+ metadata.gz: c652a8593ea2b6a0e89fbfe6822807bef58111322f6e2aca73adffc0b126efadf4410dfcdd99e4a9d75f6a394e150434bc37222b9f8d795c1dfc2c6c1a004683
7
+ data.tar.gz: 5f16216a74ca50c6f63e666a11dc6f5e93ccea71a560bfb87622fc375f273fe5d7af2daefe457c8f4ef229a329fcdd072ef18086f8635db8b44f58674c612f98
@@ -10,32 +10,32 @@ module AreaConversion
10
10
  def to_square_centimeter
11
11
  self/(centimeter**2)
12
12
  end
13
- alias :to_square_centimeter :to_centimeter_square
13
+ alias :to_centimeter_square :to_square_centimeter
14
14
 
15
15
  def to_square_inch
16
16
  self/(inch**2)
17
17
  end
18
- alias :to_square_inch :to_inch_square
18
+ alias :to_inch_square :to_square_inch
19
19
 
20
20
  def to_square_foot
21
21
  self/(foot**2)
22
22
  end
23
- alias :to_square_foot :to_foot_square
23
+ alias :to_foot_square :to_square_foot
24
24
 
25
25
  def square_yard
26
26
  self/(yard**2)
27
27
  end
28
- alias :to_square_yard :to_yard_square
28
+ alias :to_yard_square :to_square_yard
29
29
 
30
30
  def to_square_mile
31
31
  self/(mile**2)
32
32
  end
33
- alias :to_square_mile :to_mile_square
33
+ alias :to_mile_square :to_square_mile
34
34
 
35
35
  def to_square_kilometer
36
36
  self/(kilometer**2)
37
37
  end
38
- alias :to_square_kilometer :to_kilometer_square
38
+ alias :to_kilometer_square :to_square_kilometer
39
39
 
40
40
  def to_hectare
41
41
  self/(100**2)
@@ -6,22 +6,22 @@ module MotionConversion
6
6
  def to_kilometer_per_hour
7
7
  self/(kilometer/hour)
8
8
  end
9
- alias :to_kilometer_per_hour :to_kmph
9
+ alias :to_kmph :to_kilometer_per_hour
10
10
 
11
11
  + def to_mile_per_hour
12
12
  self/(mile/hour)
13
13
  end
14
- alias :to_miles_per_hour :to_mph
14
+ alias :to_mph :to_mile_per_hour
15
15
 
16
16
  def to_meter_per_second
17
17
  self
18
18
  end
19
- alias :to_meter_per_second :to_mps
19
+ alias :to_mps :to_meter_per_second
20
20
 
21
21
  def to_foot_per_second
22
22
  self/(foot)
23
23
  end
24
- alias :to_foot_per_second :to_fps
24
+ alias :to_fps :to_foot_per_second
25
25
 
26
26
  def to_knot
27
27
  self*1.94384
@@ -27,22 +27,22 @@ module Prefix
27
27
  def kilo
28
28
  1000
29
29
  end
30
- alias :kilo :thousand
30
+ alias :thousand :kilo
31
31
 
32
32
  def mega
33
33
  1000*kilo
34
34
  end
35
- alias :mega :million
35
+ alias :million :mega
36
36
 
37
37
  def giga
38
38
  1000*mega
39
39
  end
40
- alias :giga :billion
40
+ alias :billion :giga
41
41
 
42
42
  def tera
43
43
  1000*giga
44
44
  end
45
- alias :tera :trillion
45
+ alias :trillion :tera
46
46
 
47
47
  def peta
48
48
  1000*tera
@@ -11,32 +11,32 @@ module AreaUnit
11
11
  def square_centimeter
12
12
  self*(centimeter**2)
13
13
  end
14
- alias :square_centimeter :centimeter_square
14
+ alias :centimeter_square :square_centimeter
15
15
 
16
16
  def square_inch
17
17
  self*(inch**2)
18
18
  end
19
- alias :square_inch :inch_square
19
+ alias :inch_square :square_inch
20
20
 
21
21
  def square_foot
22
22
  self*(foot**2)
23
23
  end
24
- alias :square_foot :foot_square
24
+ alias :foot_square :square_foot
25
25
 
26
26
  def square_yard
27
27
  self*(yard**2)
28
28
  end
29
- alias :square_yard :yard_square
29
+ alias :yard_square :square_yard
30
30
 
31
31
  def square_mile
32
32
  self*(mile**2)
33
33
  end
34
- alias :square_mile :mile_square
34
+ alias :mile_square :square_mile
35
35
 
36
36
  def square_kilometer
37
37
  self*(kilometer**2)
38
38
  end
39
- alias :square_kilometer :kilometer_square
39
+ alias :kilometer_square :square_kilometer
40
40
 
41
41
  def hectare
42
42
  self*(100**2)
@@ -6,17 +6,17 @@ module MotionUnit
6
6
  def mile_per_hour
7
7
  self*(mile/hour)
8
8
  end
9
- alias :mile_per_hour :mph
9
+ alias :mph :mile_per_hour
10
10
 
11
11
  def kilometer_per_hour
12
12
  self*(kilometer/hour)
13
13
  end
14
- alias :kilo_per_hour :kmph
14
+ alias :kmph :kilo_per_hour
15
15
 
16
16
  def foot_per_second
17
17
  self*(foot)
18
18
  end
19
- alias :foot_per_second :fps
19
+ alias :fps :foot_per_second
20
20
 
21
21
  def knot
22
22
  self*0.514444
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.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ankur Chauhan