is_it_done_yet 0.4.0 → 0.5.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
2
  SHA256:
3
- metadata.gz: e0bc205289b71dd555c838316ae32015e128f6c8a5b745cda9e3ad4634532842
4
- data.tar.gz: 8e0b4d53bd08b6bec60cca9d3db3898ce1f3f262d42128389dbe6666a5afe47d
3
+ metadata.gz: 24d08f9d4a40b523e7120e98d7e1977466a97265cfc5e9d6577e7fcc20c1f991
4
+ data.tar.gz: b7d6e1f1aea1b2fcc2c6e56ef5bdfb7716867def856bb866d073fd5eba4fcddc
5
5
  SHA512:
6
- metadata.gz: fecbd43c45b95141195fec9bfbe1f6c4136ac6d61f9f49be4309dce38d2d65473d72bafbb434c25d7f0fb38bb4542f58c03c480debdc22ea8cad7285fb240472
7
- data.tar.gz: 4920233cd6b49f8d44cbcabcfdf77c583fef7b6813905417feedf9d05529a733e7f4672d88b4f28e6cdd0568b32c7b6523058029b8382f144a24a393e221a582
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.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 (10.0.2)
15
+ byebug (11.0.0)
16
16
  coderay (1.1.2)
17
- concurrent-ruby (1.0.5)
18
- daemons (1.2.6)
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.1.0)
22
- knapsack (1.16.0)
21
+ json (2.2.0)
22
+ knapsack (1.17.1)
23
23
  rake
24
- method_source (0.9.0)
25
- mustermann (1.0.2)
26
- pry (0.11.3)
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.5)
30
- rack-contrib (2.0.1)
29
+ rack (2.0.6)
30
+ rack-contrib (2.1.0)
31
31
  rack (~> 2.0)
32
- rack-protection (2.0.1)
32
+ rack-protection (2.0.5)
33
33
  rack
34
- rack-test (1.0.0)
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.1)
39
- rspec (3.7.0)
40
- rspec-core (~> 3.7.0)
41
- rspec-expectations (~> 3.7.0)
42
- rspec-mocks (~> 3.7.0)
43
- rspec-core (3.7.1)
44
- rspec-support (~> 3.7.0)
45
- rspec-expectations (3.7.0)
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.7.0)
48
- rspec-mocks (3.7.0)
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.7.0)
51
- rspec-support (3.7.1)
52
- sinatra (2.0.1)
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.1)
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.8)
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.16.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
@@ -14,7 +14,7 @@ env_ok = ENV['CI_NODE_INDEX'] &&
14
14
  ENV['TRAVIS_JOB_NUMBER'] &&
15
15
  ENV['IIDY_TOKEN']
16
16
 
17
- args_ok = ARGV[0]
17
+ args_ok = !ARGV[0].nil?
18
18
 
19
19
  abort 'Bad env' unless env_ok
20
20
  abort 'Bad args' unless args_ok
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
- map '/health_check' do
19
- run ->(_env) { [200, { "Content-Type" => "text/plain" }, ["success"]] }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IsItDoneYet
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  end
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.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: 2018-05-17 00:00:00.000000000 Z
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
- rubyforge_project:
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