wait_for_it 0.2.0 → 0.2.1

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
2
  SHA256:
3
- metadata.gz: b35c58bcf72157e9fcef9746b6679dbf14e8e59c4e077b610ccccc76580ab2b2
4
- data.tar.gz: 99b5ab3a7b6902dcd79a7ff406d9b52f5886beb33fcac9082e69ecc7e7896753
3
+ metadata.gz: 66a6863c5dfb379547219bc052c7d96dba59fc6774953f3898266ab0942c796c
4
+ data.tar.gz: 611a8498e0c628c0db8758bb3f3c2826632b7e107bf942fb497cd9f241640781
5
5
  SHA512:
6
- metadata.gz: c21302d190fe2e12d95077bf8f4f38fcc2a6d9858e6ecacb2270a2a315ba0318a7aad346b19390446b06c1c63d4e898a137be4d1fc90d14bc1aa60ed832cca2b
7
- data.tar.gz: 406675afb79c4e0a0425e4cb3e94767b1d14bdb9170ca43bbd3c00fa82ea700dc7d5912338bbd72f7807e1bab66ac58923d59ac872b774e770009267377ca47c
6
+ metadata.gz: 569a8596d078fa7e01a9ddf5a29db879c7e423148d8731e3088444db07aad8cbeca19f0800b2d5702f319ca9e6afc56073de0d7654661f7f037444a44de24a74
7
+ data.tar.gz: a86d30d28d09a3da42a8b26281a4728234865fc0a637e1dc6b2495568b5cda5e6c4e6e47033dfda859ab7d39a564f6947e188553a57a1adbf1b229ac0f659438
@@ -0,0 +1,15 @@
1
+ name: Check Changelog
2
+
3
+
4
+ on: [pull_request]
5
+
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - uses: actions/checkout@v1
12
+ - name: Check that CHANGELOG is touched
13
+ run: |
14
+ cat $GITHUB_EVENT_PATH | jq .pull_request.title | grep -i '\[\(\(changelog skip\)\|\(ci skip\)\)\]' || git diff remotes/origin/${{ github.base_ref }} --name-only | grep CHANGELOG.md
15
+
@@ -1,8 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 2.3.0
5
- - 2.0
6
- - 2.1
7
3
  - 2.2
4
+ - 2.5
5
+ - 2.6
6
+ - 2.7
8
7
  before_install: gem install bundler -v 1.11.2
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1
4
+
5
+ - Fix variable not initialized warnings
6
+
3
7
  ## 0.2.0
4
8
 
5
9
  - Allow unsetting env vars (https://github.com/schneems/wait_for_it/pull/3)
10
+
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # WaitForIt
2
2
 
3
- [![Build Status](https://travis-ci.org/schneems/wait_for_it.svg?branch=master)](https://travis-ci.org/schneems/wait_for_it)
3
+ [![Build Status](https://travis-ci.org/zombocom/wait_for_it.svg?branch=master)](https://travis-ci.org/zombocom/wait_for_it)
4
4
 
5
5
  Spawns processes and waits for them so you can integration test really complicated things with determinism. For inspiration behind why you should use something like this check out my talk [Testing the Untestable](https://www.youtube.com/watch?v=QHMKIHkY1nM). You can test long running processes such as webservers, or features that require concurrency or libraries that use global configuration.
6
6
 
@@ -26,7 +26,7 @@ Or install it yourself as:
26
26
 
27
27
  ## Usage
28
28
 
29
- > For actual usage examples check out the [specs](https://github.com/schneems/wait_for_it/blob/master/spec/wait_for_it_spec.rb).
29
+ > For actual usage examples check out the [specs](https://github.com/zombocom/wait_for_it/blob/master/spec/wait_for_it_spec.rb).
30
30
 
31
31
  This library spawns processes (sorry, doesn't work on windows) and instead of sleeping a predetermined time to wait for that process to do something it reads in a log file until certain outputs are received. For example if you wanted to test booting up a puma webserver, manually when you start it you might get this output
32
32
 
@@ -163,7 +163,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
163
163
 
164
164
  ## Contributing
165
165
 
166
- Bug reports and pull requests are welcome on GitHub at https://github.com/schneems/wait_for_it. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
166
+ Bug reports and pull requests are welcome on GitHub at https://github.com/zombocom/wait_for_it. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
167
167
 
168
168
  ## License
169
169
 
@@ -19,6 +19,10 @@ class WaitForIt
19
19
  DEFAULT_TIMEOUT = 10 # seconds
20
20
  DEFAULT_OUT = ">>"
21
21
  DEFAULT_ENV = {}
22
+ @wait_for = nil
23
+ @timeout = nil
24
+ @redirection = nil
25
+ @env = nil
22
26
 
23
27
  # Configure global WaitForIt settings
24
28
  def self.config
@@ -1,3 +1,3 @@
1
1
  class WaitForIt
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{ Stop sleeping in your tests, instead wait for it... }
13
13
  spec.description = %q{ Make your complicated integration tests more deterministic with wait for it}
14
- spec.homepage = "https://github.com/schneems/wait_for_it"
14
+ spec.homepage = "https://github.com/zombocom/wait_for_it"
15
15
  spec.license = "MIT"
16
16
 
17
17
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wait_for_it
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - schneems
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-07 00:00:00.000000000 Z
11
+ date: 2020-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -46,6 +46,7 @@ executables: []
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
+ - ".github/workflows/check_changelog.yml"
49
50
  - ".gitignore"
50
51
  - ".rspec"
51
52
  - ".travis.yml"
@@ -60,7 +61,7 @@ files:
60
61
  - lib/wait_for_it.rb
61
62
  - lib/wait_for_it/version.rb
62
63
  - wait_for_it.gemspec
63
- homepage: https://github.com/schneems/wait_for_it
64
+ homepage: https://github.com/zombocom/wait_for_it
64
65
  licenses:
65
66
  - MIT
66
67
  metadata: {}
@@ -79,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
80
  - !ruby/object:Gem::Version
80
81
  version: '0'
81
82
  requirements: []
82
- rubygems_version: 3.0.3
83
+ rubygems_version: 3.1.2
83
84
  signing_key:
84
85
  specification_version: 4
85
86
  summary: Stop sleeping in your tests, instead wait for it...