m9t 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/m9t.rb +1 -1
  2. data/lib/m9t/base.rb +0 -1
  3. data/lib/m9t/speed.rb +5 -0
  4. metadata +2 -2
data/lib/m9t.rb CHANGED
@@ -37,7 +37,7 @@ module M9t
37
37
  module VERSION #:nodoc:
38
38
  MAJOR = 0
39
39
  MINOR = 1
40
- TINY = 6
40
+ TINY = 7
41
41
 
42
42
  STRING = [MAJOR, MINOR, TINY].join('.')
43
43
  end
@@ -15,7 +15,6 @@ module M9t
15
15
  sub.instance_eval do
16
16
  M9t::Base.add_options(sub)
17
17
  end
18
- puts "New subclass: #{sub}"
19
18
  end
20
19
 
21
20
  # Returns the classes current options - see the specific class for defaults
@@ -36,6 +36,11 @@ module M9t
36
36
  new(knots.to_f / MS_TO_KNOTS, options)
37
37
  end
38
38
 
39
+ # Alias for new
40
+ def meters_per_second(*args)
41
+ new(*args)
42
+ end
43
+
39
44
  # Identity conversion. Simply returns the supplied number
40
45
  def to_meters_per_second(mps)
41
46
  mps.to_f
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 6
9
- version: 0.1.6
8
+ - 7
9
+ version: 0.1.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joe Yates