wait_for_it 0.2.0 → 0.2.1
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 +4 -4
- data/.github/workflows/check_changelog.yml +15 -0
- data/.travis.yml +3 -4
- data/CHANGELOG.md +5 -0
- data/README.md +3 -3
- data/lib/wait_for_it.rb +4 -0
- data/lib/wait_for_it/version.rb +1 -1
- data/wait_for_it.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66a6863c5dfb379547219bc052c7d96dba59fc6774953f3898266ab0942c796c
|
4
|
+
data.tar.gz: 611a8498e0c628c0db8758bb3f3c2826632b7e107bf942fb497cd9f241640781
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# WaitForIt
|
2
2
|
|
3
|
-
[](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/
|
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/
|
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
|
|
data/lib/wait_for_it.rb
CHANGED
data/lib/wait_for_it/version.rb
CHANGED
data/wait_for_it.gemspec
CHANGED
@@ -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/
|
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.
|
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:
|
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/
|
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.
|
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...
|