waitforit 0.0.1.pre2 → 0.0.1.pre3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1.pre2
1
+ 0.0.1.pre3
data/lib/waitforit.rb CHANGED
@@ -12,7 +12,7 @@ class Fixnum
12
12
  end
13
13
 
14
14
  def wait_until opts={}
15
- opts = {:timeout_after => 2.seconds,:retry_every => 0.1.seconds}.merge(opts)
15
+ opts = {:timeout_after => 5.seconds,:retry_every => 0.1.seconds}.merge(opts)
16
16
  start_time = Time.now
17
17
  until Time.now > start_time + opts[:timeout_after]
18
18
  return if yield == true
@@ -11,7 +11,7 @@ describe 'waitforit' do
11
11
  end
12
12
 
13
13
  it 'should throw an exception if when the prescribed action does not happen in time' do
14
- expect { wait_until { false } }.to raise_error RuntimeError
14
+ expect { wait_until(:timeout_after => 1.second) { false } }.to raise_error RuntimeError
15
15
  end
16
16
 
17
17
  it 'should keep trying for a specified period' do
data/waitforit.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{waitforit}
8
- s.version = "0.0.1.pre2"
8
+ s.version = "0.0.1.pre3"
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"]
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.pre2
5
+ version: 0.0.1.pre3
6
6
  platform: ruby
7
7
  authors:
8
8
  - lashd
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- hash: 2684531027166851086
81
+ hash: -2510664357160944603
82
82
  segments:
83
83
  - 0
84
84
  version: "0"