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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1aa914a00bde5498f75359ef60be2a0fd753e02a
4
- data.tar.gz: 3caea633a9fb12579741134d22f6480befc590a2
2
+ SHA256:
3
+ metadata.gz: b35c58bcf72157e9fcef9746b6679dbf14e8e59c4e077b610ccccc76580ab2b2
4
+ data.tar.gz: 99b5ab3a7b6902dcd79a7ff406d9b52f5886beb33fcac9082e69ecc7e7896753
5
5
  SHA512:
6
- metadata.gz: 060c24f2de3a404f149e9b8427e09c4258d8af54f35d5031fe073c2e56967432401c2d2319d28e10f8f6226868e9f10d469734fa291181713a953dc70eda7c60
7
- data.tar.gz: 65e0e622acbab6de54cc33a460ec538043b8b2f240142eaa7cdf0b4e8da9d0abaac58c5cc78e1ba01588679b408af1a1a0d0100b4430a04e9c13c34cd8dfe39c
6
+ metadata.gz: c21302d190fe2e12d95077bf8f4f38fcc2a6d9858e6ecacb2270a2a315ba0318a7aad346b19390446b06c1c63d4e898a137be4d1fc90d14bc1aa60ed832cca2b
7
+ data.tar.gz: 406675afb79c4e0a0425e4cb3e94767b1d14bdb9170ca43bbd3c00fa82ea700dc7d5912338bbd72f7807e1bab66ac58923d59ac872b774e770009267377ca47c
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.2.0
4
+
5
+ - Allow unsetting env vars (https://github.com/schneems/wait_for_it/pull/3)
@@ -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 }")
@@ -1,3 +1,3 @@
1
1
  class WaitForIt
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -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.1.2
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: 2016-06-13 00:00:00.000000000 Z
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
- rubyforge_project:
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...