http_stub_docker 0.0.9 → 0.0.10

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
  SHA1:
3
- metadata.gz: 864c6dc39a45121617403dd8418bd40fbac5f32b
4
- data.tar.gz: e1d0fe960b5c0a5ff91b4f9b2660bc1dff34fc47
3
+ metadata.gz: d0c1779bb2a8fe12e40948f13ce41ef09426d5f6
4
+ data.tar.gz: c8125929abadd80021be788c27cef997efde1b40
5
5
  SHA512:
6
- metadata.gz: 166106e98df4d2f1cea0d78585cb9a9d462c791bf501f0c2c7c232b95102ad304998f5ccd0c4f09036d3d7c13603bb1ad2c2f01a7b796e33adfeccc50a033623
7
- data.tar.gz: 4d05df2c9e45d6e56c42e46edf595071532b1479b0904f3bc23d7a74b323d2a5245df7291f5fecfd7dd5e3b9036bdb11b09e63d6bbcdb85072058bd9ac299d0b
6
+ metadata.gz: a618e436af63f1523215bc69fb3fcbbd01c182e7dcee101f7a31e40eb1b910013180d7ca6a126b7284eeca28fa8748e0ddf37c48c664dcce3a75cc2e2586c962
7
+ data.tar.gz: 59ecdb8c85f13a672cf789f333167e1bc4c517cfd36c7d34d051897c232d1f7bbe5c3e4cae0e4473c571553a236f65c29725b034167df6959d813406717cf091
@@ -5,7 +5,9 @@ module HttpStubDocker
5
5
 
6
6
  PUBLISH_SCRIPT = "#{HttpStubDocker::BASE_DIR}/bin/push_docker_image_to_ecr.sh".freeze
7
7
 
8
- private_constant :PUBLISH_SCRIPT
8
+ VALID_STUB_RESPONSE_CODES = %w{ 200 302 }.freeze
9
+
10
+ private_constant :PUBLISH_SCRIPT, :VALID_STUB_RESPONSE_CODES
9
11
 
10
12
  def initialize(args)
11
13
  define_test_task(args)
@@ -21,7 +23,7 @@ module HttpStubDocker
21
23
  Bundler.require(:test)
22
24
  Wait.until!(description: "#{args.stub_name} is running", timeout_in_seconds: 10) do
23
25
  response = Net::HTTP.get_response(URI("#{args.external_base_uri}/http_stub"))
24
- raise "#{args.stub_name} is not running" unless response.code == "200"
26
+ raise "#{args.stub_name} is not running" unless VALID_STUB_RESPONSE_CODES.include?(response.code)
25
27
  end
26
28
  puts "#{args.stub_name} is running"
27
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_stub_docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - dueckes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-26 00:00:00.000000000 Z
11
+ date: 2016-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.25'
33
+ version: '0.26'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.25'
40
+ version: '0.26'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.43'
47
+ version: '0.44'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.43'
54
+ version: '0.44'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement