wait_for_it 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -0
- data/lib/wait_for_it.rb +2 -2
- data/lib/wait_for_it/version.rb +1 -1
- data/wait_for_it.gemspec +0 -1
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b35c58bcf72157e9fcef9746b6679dbf14e8e59c4e077b610ccccc76580ab2b2
|
4
|
+
data.tar.gz: 99b5ab3a7b6902dcd79a7ff406d9b52f5886beb33fcac9082e69ecc7e7896753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c21302d190fe2e12d95077bf8f4f38fcc2a6d9858e6ecacb2270a2a315ba0318a7aad346b19390446b06c1c63d4e898a137be4d1fc90d14bc1aa60ed832cca2b
|
7
|
+
data.tar.gz: 406675afb79c4e0a0425e4cb3e94767b1d14bdb9170ca43bbd3c00fa82ea700dc7d5912338bbd72f7807e1bab66ac58923d59ac872b774e770009267377ca47c
|
data/CHANGELOG.md
ADDED
data/lib/wait_for_it.rb
CHANGED
@@ -131,7 +131,7 @@ class WaitForIt
|
|
131
131
|
|
132
132
|
# Same as `wait` but raises an error if timeout is reached
|
133
133
|
def wait!(input, t = timeout)
|
134
|
-
unless wait(input)
|
134
|
+
unless wait(input, t)
|
135
135
|
options = {}
|
136
136
|
options[:command] = @command
|
137
137
|
options[:input] = input
|
@@ -170,7 +170,7 @@ private
|
|
170
170
|
|
171
171
|
def spawn(command, redirection, env_hash = {})
|
172
172
|
env = {}
|
173
|
-
env_hash.each {|k, v| env[k.to_s] = v.to_s }
|
173
|
+
env_hash.each {|k, v| env[k.to_s] = v.nil? ? v : v.to_s }
|
174
174
|
|
175
175
|
# Must exec so when we kill the PID it kills the child process
|
176
176
|
@pid = Process.spawn(env, "exec #{ command } #{ redirection } #{ log }")
|
data/lib/wait_for_it/version.rb
CHANGED
data/wait_for_it.gemspec
CHANGED
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler", "~> 1.11"
|
25
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
25
|
spec.add_development_dependency "rspec", "~> 3.0"
|
27
26
|
end
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wait_for_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- schneems
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.11'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.11'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: rake
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -63,6 +49,7 @@ files:
|
|
63
49
|
- ".gitignore"
|
64
50
|
- ".rspec"
|
65
51
|
- ".travis.yml"
|
52
|
+
- CHANGELOG.md
|
66
53
|
- CODE_OF_CONDUCT.md
|
67
54
|
- Gemfile
|
68
55
|
- LICENSE.txt
|
@@ -92,8 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
79
|
- !ruby/object:Gem::Version
|
93
80
|
version: '0'
|
94
81
|
requirements: []
|
95
|
-
|
96
|
-
rubygems_version: 2.5.1
|
82
|
+
rubygems_version: 3.0.3
|
97
83
|
signing_key:
|
98
84
|
specification_version: 4
|
99
85
|
summary: Stop sleeping in your tests, instead wait for it...
|