nostradamus 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Nostradamus
2
2
  module Version
3
- STRING = "0.0.1"
3
+ STRING = "0.0.2"
4
4
  end
5
5
  end
data/lib/nostradamus.rb CHANGED
@@ -4,7 +4,7 @@ module Nostradamus
4
4
  MINUTES_REGEX = /[0-9]*:([0-9]*).*/
5
5
  SECONDS_REGEX = /[0-9]*:[0-9]*:([0-9]*)/
6
6
 
7
- def parser(human_time)
7
+ def parse(human_time)
8
8
  convert(human_time, :to => :seconds)
9
9
  end
10
10
 
@@ -4,10 +4,10 @@ require 'nostradamus'
4
4
  describe Nostradamus do
5
5
  context "human time to seconds" do
6
6
  it "should parse human time to seconds" do
7
- described_class.parser("12:00").should eq 43200
8
- described_class.parser("12:00:00").should eq 43200
9
- described_class.parser("12:15").should eq 44100
10
- described_class.parser("12:15:15").should eq 44115
7
+ described_class.parse("12:00").should eq 43200
8
+ described_class.parse("12:00:00").should eq 43200
9
+ described_class.parse("12:15").should eq 44100
10
+ described_class.parse("12:15:15").should eq 44115
11
11
  end
12
12
  end
13
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nostradamus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: