is_it_done_yet 0.4.0 → 0.5.0
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/Gemfile.lock +29 -29
- data/config.ru +19 -0
- data/examples/ci-put +1 -1
- data/examples/config.ru +4 -5
- data/lib/is_it_done_yet/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24d08f9d4a40b523e7120e98d7e1977466a97265cfc5e9d6577e7fcc20c1f991
|
4
|
+
data.tar.gz: b7d6e1f1aea1b2fcc2c6e56ef5bdfb7716867def856bb866d073fd5eba4fcddc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4aa43bbea3b71f689852d922ee230590c4aea724f87d82dc29bcdd03bcb4001648abbf8d0ead7bff82b0fd2456419fead68723f3d8a24938138c3db63c647c4
|
7
|
+
data.tar.gz: 5ec6de5c539047fc55298b68eb76d8e6a228ae0774ed87f0406a6543551dcac972d64cd6731ec926a9f15f78f1634499e736105c183f7ce5539c899c71af7822
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
is_it_done_yet (0.
|
4
|
+
is_it_done_yet (0.5.0)
|
5
5
|
concurrent-ruby
|
6
6
|
json
|
7
7
|
rack-contrib
|
@@ -12,53 +12,53 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
byebug (
|
15
|
+
byebug (11.0.0)
|
16
16
|
coderay (1.1.2)
|
17
|
-
concurrent-ruby (1.
|
18
|
-
daemons (1.
|
17
|
+
concurrent-ruby (1.1.5)
|
18
|
+
daemons (1.3.1)
|
19
19
|
diff-lcs (1.3)
|
20
20
|
eventmachine (1.2.7)
|
21
|
-
json (2.
|
22
|
-
knapsack (1.
|
21
|
+
json (2.2.0)
|
22
|
+
knapsack (1.17.1)
|
23
23
|
rake
|
24
|
-
method_source (0.9.
|
25
|
-
mustermann (1.0.
|
26
|
-
pry (0.
|
24
|
+
method_source (0.9.2)
|
25
|
+
mustermann (1.0.3)
|
26
|
+
pry (0.12.2)
|
27
27
|
coderay (~> 1.1.0)
|
28
28
|
method_source (~> 0.9.0)
|
29
|
-
rack (2.0.
|
30
|
-
rack-contrib (2.0
|
29
|
+
rack (2.0.6)
|
30
|
+
rack-contrib (2.1.0)
|
31
31
|
rack (~> 2.0)
|
32
|
-
rack-protection (2.0.
|
32
|
+
rack-protection (2.0.5)
|
33
33
|
rack
|
34
|
-
rack-test (1.
|
34
|
+
rack-test (1.1.0)
|
35
35
|
rack (>= 1.0, < 3)
|
36
36
|
rack-token_auth (0.1.0)
|
37
37
|
rack
|
38
|
-
rake (12.3.
|
39
|
-
rspec (3.
|
40
|
-
rspec-core (~> 3.
|
41
|
-
rspec-expectations (~> 3.
|
42
|
-
rspec-mocks (~> 3.
|
43
|
-
rspec-core (3.
|
44
|
-
rspec-support (~> 3.
|
45
|
-
rspec-expectations (3.
|
38
|
+
rake (12.3.2)
|
39
|
+
rspec (3.8.0)
|
40
|
+
rspec-core (~> 3.8.0)
|
41
|
+
rspec-expectations (~> 3.8.0)
|
42
|
+
rspec-mocks (~> 3.8.0)
|
43
|
+
rspec-core (3.8.0)
|
44
|
+
rspec-support (~> 3.8.0)
|
45
|
+
rspec-expectations (3.8.2)
|
46
46
|
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
-
rspec-support (~> 3.
|
48
|
-
rspec-mocks (3.
|
47
|
+
rspec-support (~> 3.8.0)
|
48
|
+
rspec-mocks (3.8.0)
|
49
49
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.
|
51
|
-
rspec-support (3.
|
52
|
-
sinatra (2.0.
|
50
|
+
rspec-support (~> 3.8.0)
|
51
|
+
rspec-support (3.8.0)
|
52
|
+
sinatra (2.0.5)
|
53
53
|
mustermann (~> 1.0)
|
54
54
|
rack (~> 2.0)
|
55
|
-
rack-protection (= 2.0.
|
55
|
+
rack-protection (= 2.0.5)
|
56
56
|
tilt (~> 2.0)
|
57
57
|
thin (1.7.2)
|
58
58
|
daemons (~> 1.0, >= 1.0.9)
|
59
59
|
eventmachine (~> 1.0, >= 1.0.4)
|
60
60
|
rack (>= 1, < 3)
|
61
|
-
tilt (2.0.
|
61
|
+
tilt (2.0.9)
|
62
62
|
|
63
63
|
PLATFORMS
|
64
64
|
ruby
|
@@ -74,4 +74,4 @@ DEPENDENCIES
|
|
74
74
|
rspec
|
75
75
|
|
76
76
|
BUNDLED WITH
|
77
|
-
1.
|
77
|
+
1.17.2
|
data/config.ru
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler'
|
4
|
+
require 'rack/contrib'
|
5
|
+
require 'rack/token_auth'
|
6
|
+
require 'is_it_done_yet'
|
7
|
+
Bundler.require
|
8
|
+
|
9
|
+
# Shared secret authentication
|
10
|
+
use Rack::TokenAuth do |token, _options, _env|
|
11
|
+
token == ENV['IIDY_TOKEN']
|
12
|
+
end
|
13
|
+
|
14
|
+
# Heartbeat endpoint
|
15
|
+
map '/health_check' do
|
16
|
+
run ->(_env) { [200, { 'Content-Type' => 'text/plain' }, ['success']] }
|
17
|
+
end
|
18
|
+
|
19
|
+
run IsItDoneYet.build_app
|
data/examples/ci-put
CHANGED
data/examples/config.ru
CHANGED
@@ -6,17 +6,16 @@ require 'rack/token_auth'
|
|
6
6
|
require 'is_it_done_yet'
|
7
7
|
Bundler.require
|
8
8
|
|
9
|
-
<<<<<<< HEAD
|
10
|
-
=======
|
11
9
|
# Shared secret authentication
|
12
|
-
>>>>>>> bd110d4... EM: adding heartbeat to example setup
|
13
10
|
use Rack::TokenAuth do |token, _options, _env|
|
14
11
|
token == ENV['IIDY_TOKEN']
|
15
12
|
end
|
16
13
|
|
17
14
|
# Heartbeat endpoint
|
18
|
-
|
19
|
-
|
15
|
+
use Rack::Builder.new do
|
16
|
+
map '/health_check' do
|
17
|
+
run ->(_env) { "success" }
|
18
|
+
end
|
20
19
|
end
|
21
20
|
|
22
21
|
run IsItDoneYet.build_app
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: is_it_done_yet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Madsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -212,6 +212,7 @@ files:
|
|
212
212
|
- Rakefile
|
213
213
|
- bin/console
|
214
214
|
- bin/setup
|
215
|
+
- config.ru
|
215
216
|
- examples/ci-clear
|
216
217
|
- examples/ci-deploy
|
217
218
|
- examples/ci-post
|
@@ -242,8 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
243
|
- !ruby/object:Gem::Version
|
243
244
|
version: '0'
|
244
245
|
requirements: []
|
245
|
-
|
246
|
-
rubygems_version: 2.7.6
|
246
|
+
rubygems_version: 3.0.3
|
247
247
|
signing_key:
|
248
248
|
specification_version: 4
|
249
249
|
summary: Tracks statuses of CI build nodes
|