wait_until 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 22db9e2fa2a1a5f61ee499e2788a4d5325a5e475
4
- data.tar.gz: 303c9e68f12cf8d032285b734d76a8815d09d2a2
3
+ metadata.gz: fda8f4fcee46c7d2d20f75ac05ad27aa74092d55
4
+ data.tar.gz: 9411470c6fefa44fabb608fdd856869813d3459e
5
5
  SHA512:
6
- metadata.gz: 760560930ca34ccc982696c011b014f091ea482034aad4e4903f249eb24490349931313c889a32483c0b3aca6b643c6ce3f336f3b34da7ce75c6cf05ca06048c
7
- data.tar.gz: f5ef6964e2c83bbf6210437c7d6b0082401dd43e3a1013b86858dddc9838c14254f5f58bec5a490b1b4aa8488d2b4af1239eb2f43e274adfd5ad23ccc83bb649
6
+ metadata.gz: 0016e0f6c78d14283024120000a1d4dfb3b9cebc9a78ddef2c70aa60397fbb8ac915b698ec639246843062548fdaddaf5a7c46522b6c618d31faec771903e307
7
+ data.tar.gz: 024e70bc0f3e21b7f5c7ac2ac49d66919b7ce9f92a2b3b3093e4f2c6924f9ce0388782bb11f5f3f161d77b32cec89bc357c6f1e110795628df2c3034812bb1c1
@@ -1,3 +1,3 @@
1
1
  module WaitUntil
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -15,8 +15,8 @@ describe WaitUntil::Wait do
15
15
  lambda { WaitUntil::Wait.until_true!("some operation") { true } }
16
16
  end
17
17
 
18
- it "should execute without error" do
19
- block.should_not raise_error
18
+ it "executes without error" do
19
+ expect(block).to_not raise_error
20
20
  end
21
21
 
22
22
  end
@@ -30,21 +30,21 @@ describe WaitUntil::Wait do
30
30
  end
31
31
  end
32
32
 
33
- it "should raise an error indicating the operation timed-out" do
34
- block.should raise_error(/Timed-out waiting until 'another operation finishes'/i)
33
+ it "raises an error indicating the operation timed-out" do
34
+ expect(block).to raise_error(/Timed-out waiting until 'another operation finishes'/i)
35
35
  end
36
36
 
37
37
  context "and a timeout is provided" do
38
38
 
39
39
  let(:timeout_in_seconds) { 2 }
40
40
 
41
- it "should wait until at least a period of time matching the timeout before raising an error" do
41
+ it "waits until at least a period of time matching the timeout before raising an error" do
42
42
  start_time = Time.now
43
43
 
44
- block.should raise_error
44
+ expect(block).to raise_error
45
45
 
46
46
  period_of_time_waited = (Time.now - start_time)
47
- period_of_time_waited.should be >= timeout_in_seconds
47
+ expect(period_of_time_waited).to be >= timeout_in_seconds
48
48
  end
49
49
 
50
50
  end
@@ -53,14 +53,14 @@ describe WaitUntil::Wait do
53
53
 
54
54
  context "when the block eventually returns true" do
55
55
 
56
- it "should execute without error" do
56
+ it "executes without error" do
57
57
  invocation_count = 0
58
- lambda do
58
+ expect(lambda do
59
59
  WaitUntil::Wait.until_true!("some operation") do
60
60
  invocation_count += 1
61
61
  invocation_count == 3
62
62
  end
63
- end.should_not raise_error
63
+ end).to_not raise_error
64
64
  end
65
65
 
66
66
  end
@@ -75,8 +75,8 @@ describe WaitUntil::Wait do
75
75
  lambda { WaitUntil::Wait.until_false!("some operation") { false } }
76
76
  end
77
77
 
78
- it "should execute without error" do
79
- block.should_not raise_error
78
+ it "executes without error" do
79
+ expect(block).to_not raise_error
80
80
  end
81
81
 
82
82
  end
@@ -90,21 +90,21 @@ describe WaitUntil::Wait do
90
90
  end
91
91
  end
92
92
 
93
- it "should raise an error indicating the operation timed-out" do
94
- block.should raise_error(/Timed-out waiting until 'another operation finishes'/i)
93
+ it "raises an error indicating the operation timed-out" do
94
+ expect(block).to raise_error(/Timed-out waiting until 'another operation finishes'/i)
95
95
  end
96
96
 
97
97
  context "and a timeout is provided" do
98
98
 
99
99
  let(:timeout_in_seconds) { 2 }
100
100
 
101
- it "should wait until at least a period of time matching the timeout before raising an error" do
101
+ it "waits until at least a period of time matching the timeout before raising an error" do
102
102
  start_time = Time.now
103
103
 
104
- block.should raise_error
104
+ expect(block).to raise_error
105
105
 
106
106
  period_of_time_waited = (Time.now - start_time)
107
- period_of_time_waited.should be >= timeout_in_seconds
107
+ expect(period_of_time_waited).to be >= timeout_in_seconds
108
108
  end
109
109
 
110
110
  end
@@ -113,14 +113,14 @@ describe WaitUntil::Wait do
113
113
 
114
114
  context "when the block eventually returns false" do
115
115
 
116
- it "should execute without error" do
116
+ it "executes without error" do
117
117
  invocation_count = 0
118
- lambda do
118
+ expect(lambda do
119
119
  WaitUntil::Wait.until_false!("some operation") do
120
120
  invocation_count += 1
121
121
  invocation_count < 3
122
122
  end
123
- end.should_not raise_error
123
+ end).to_not raise_error
124
124
  end
125
125
 
126
126
  end
@@ -135,8 +135,8 @@ describe WaitUntil::Wait do
135
135
  lambda { WaitUntil::Wait.until!("some operation") { } }
136
136
  end
137
137
 
138
- it "should execute without error" do
139
- block.should_not raise_error
138
+ it "executes without error" do
139
+ expect(block).to_not raise_error
140
140
  end
141
141
 
142
142
  end
@@ -152,21 +152,21 @@ describe WaitUntil::Wait do
152
152
  end
153
153
  end
154
154
 
155
- it "should raise an error indicating the operation timed-out" do
156
- block.should raise_error(/Timed-out waiting until 'some operation finishes'/i)
155
+ it "raises an error indicating the operation timed-out" do
156
+ expect(block).to raise_error(/Timed-out waiting until 'some operation finishes'/i)
157
157
  end
158
158
 
159
159
  context "and a timeout is provided" do
160
160
 
161
161
  let(:timeout_in_seconds) { 2 }
162
162
 
163
- it "should wait until at least a period of time matching the timeout before raising an error" do
163
+ it "waits until at least a period of time matching the timeout before raising an error" do
164
164
  start_time = Time.now
165
165
 
166
- block.should raise_error
166
+ expect(block).to raise_error
167
167
 
168
168
  period_of_time_waited = (Time.now - start_time)
169
- period_of_time_waited.should be >= timeout_in_seconds
169
+ expect(period_of_time_waited).to be >= timeout_in_seconds
170
170
  end
171
171
 
172
172
  end
@@ -175,14 +175,14 @@ describe WaitUntil::Wait do
175
175
 
176
176
  context "when the block eventually executes without error" do
177
177
 
178
- it "should execute without error" do
178
+ it "executes without error" do
179
179
  invocation_count = 0
180
- lambda do
180
+ expect(lambda do
181
181
  WaitUntil::Wait.until!("some operation") do
182
182
  invocation_count += 1
183
183
  raise "forced error" if invocation_count < 3
184
184
  end
185
- end.should_not raise_error
185
+ end).to_not raise_error
186
186
  end
187
187
 
188
188
  end
@@ -2,10 +2,10 @@ describe WaitUntil do
2
2
 
3
3
  describe "when loaded" do
4
4
 
5
- it "should define the global Wait class as the WaitUntil::Wait class" do
6
- Wait.should eql(WaitUntil::Wait)
5
+ it "defines the global Wait class as the WaitUntil::Wait class" do
6
+ expect(::Wait).to eql(WaitUntil::Wait)
7
7
  end
8
8
 
9
9
  end
10
10
 
11
- end
11
+ end
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wait_until
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ueckerman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-15 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: metric_fu
14
+ name: travis-lint
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.7'
19
+ version: '2.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.7'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rspec
28
+ name: metric_fu
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.14'
33
+ version: '4.11'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.14'
40
+ version: '4.11'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
42
+ name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.1'
47
+ version: '3.2'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.1'
54
+ version: '3.2'
55
55
  - !ruby/object:Gem::Dependency
56
- name: simplecov
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.8'
61
+ version: '10.4'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.8'
68
+ version: '10.4'
69
69
  - !ruby/object:Gem::Dependency
70
- name: travis-lint
70
+ name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.7'
75
+ version: '0.9'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.7'
82
+ version: '0.9'
83
83
  description: Suspends execution until state changes via ::Wait.until! methods, timing-out
84
84
  after a configured period of time
85
85
  email: matthew.ueckerman@myob.com
@@ -87,12 +87,12 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - ./lib/wait_until.rb
91
- - ./lib/wait_until/version.rb
92
- - ./lib/wait_until/wait.rb
93
- - ./spec/lib/wait_until/wait_spec.rb
94
- - ./spec/lib/wait_until/wait_until_spec.rb
95
- - ./spec/spec_helper.rb
90
+ - "./lib/wait_until.rb"
91
+ - "./lib/wait_until/version.rb"
92
+ - "./lib/wait_until/wait.rb"
93
+ - "./spec/lib/wait_until/wait_spec.rb"
94
+ - "./spec/lib/wait_until/wait_until_spec.rb"
95
+ - "./spec/spec_helper.rb"
96
96
  homepage: http://github.com/MYOB-Technology/wait_until
97
97
  licenses:
98
98
  - MIT
@@ -103,21 +103,21 @@ require_paths:
103
103
  - lib
104
104
  required_ruby_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - '>='
106
+ - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: 1.9.3
109
109
  required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - '>='
111
+ - - ">="
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project: wait_until
116
- rubygems_version: 2.2.1
116
+ rubygems_version: 2.2.2
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Suspends execution until state changes via ::Wait.until! methods
120
120
  test_files:
121
- - ./spec/lib/wait_until/wait_spec.rb
122
- - ./spec/lib/wait_until/wait_until_spec.rb
123
- - ./spec/spec_helper.rb
121
+ - "./spec/lib/wait_until/wait_spec.rb"
122
+ - "./spec/lib/wait_until/wait_until_spec.rb"
123
+ - "./spec/spec_helper.rb"