waitforit 0.0.1.pre8 → 0.0.1.pre9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/waitforit.rb +16 -0
  3. data/waitforit.gemspec +2 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1.pre8
1
+ 0.0.1.pre9
data/lib/waitforit.rb CHANGED
@@ -2,7 +2,23 @@ module TimeIncrements
2
2
  def seconds
3
3
  self * 1
4
4
  end
5
+
6
+ def minutes
7
+ seconds * 60
8
+ end
9
+
10
+ def hours
11
+ minutes * 60
12
+ end
13
+
14
+ def days
15
+ hours * 24
16
+ end
17
+
5
18
  alias_method :second, :seconds
19
+ alias_method :minute, :minutes
20
+ alias_method :hour, :hours
21
+ alias_method :day, :days
6
22
  end
7
23
  class Float
8
24
  include TimeIncrements
data/waitforit.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{waitforit}
8
- s.version = "0.0.1.pre8"
8
+ s.version = "0.0.1.pre9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["lashd"]
12
- s.date = %q{2011-08-21}
12
+ s.date = %q{2011-08-22}
13
13
  s.description = %q{Tired of sleeping when something is supposed to happen? use this to waitforit instead :)}
14
14
  s.email = %q{leon_a_d@yahoo.com}
15
15
  s.executables = ["autospec", "htmldiff", "jeweler", "ldiff", "rake", "rspec"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: waitforit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 0.0.1.pre8
5
+ version: 0.0.1.pre9
6
6
  platform: ruby
7
7
  authors:
8
8
  - lashd
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-21 00:00:00 +01:00
13
+ date: 2011-08-22 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- hash: -2601812503875648051
81
+ hash: 2947607159777357211
82
82
  segments:
83
83
  - 0
84
84
  version: "0"