http_stub_docker 0.1.3 → 0.2.0.beta1

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: 568b25d6c490f1741e40f82d461e2d25bbf667bd
4
- data.tar.gz: d725a8efc2472b866d24f5e13acd6f463ae2fe89
3
+ metadata.gz: 4a724e711dfec55aca3adc0751a7a9adaa8e9b84
4
+ data.tar.gz: 7146a3ac1338cb4826c7b6a0ce0f3681c7dc3769
5
5
  SHA512:
6
- metadata.gz: afafcac6fd9cecaf9b2749ecf474efffd18d14820f12300add669a10aa5cc58111f4783020a4d65f607b0d7a24949ccf4306e70a01ab0a2b3c2732cdf187311f
7
- data.tar.gz: 5f16770314e057a313145ecc1f5d85a37ed465b7a7f9449babe720aabdde17be2e72ceb3bc8987041927dd478a00d3af3bdc7a1c839c1834b7ee499a71ca25c1
6
+ metadata.gz: b803810b3c74b44663c62e5724921b1f055db0c0ee5f4cb88d41fe427012c2ee92265cde9c0040e322214a86118f1f0f0a5d047c5074f175495010cc2b7cbe23
7
+ data.tar.gz: 520f0f2137864708be5f8c5fb6ce453059a7d241cfe548d9fa7acf01d1b63bec99c13dbb59a9202f12ffc23a6cd73c87009ee7fe8c9cff3d9aa7302450b75905
@@ -7,7 +7,7 @@ module HttpStubDocker
7
7
 
8
8
  private_constant :DEFAULT_PORT
9
9
 
10
- attr_reader :configurer, :stub_name, :stub_dir, :port, :external_base_uri, :publish_tags, :task_prefix
10
+ attr_reader :stub_configurator, :stub_name, :stub_dir, :port, :external_base_uri, :publish_tags, :task_prefix
11
11
 
12
12
  def initialize(args)
13
13
  @port = ENV["port"] || DEFAULT_PORT
@@ -50,7 +50,7 @@ module HttpStubDocker
50
50
 
51
51
  def server_running?(args)
52
52
  response = Net::HTTP.get_response(URI("#{args.external_base_uri}/http_stub/status"))
53
- response.body == (args.configurer ? "Initialized" : "Started")
53
+ response.body == "OK"
54
54
  end
55
55
 
56
56
  end
@@ -7,10 +7,9 @@ module HttpStubDocker
7
7
  HttpStub::Server::Daemon.log_dir = ::File.expand_path("#{args.stub_dir}/tmp/log", __FILE__)
8
8
  HttpStub::Server::Daemon.pid_dir = ::File.expand_path("#{args.stub_dir}/tmp/pids", __FILE__)
9
9
 
10
- configurer = args.configurer
11
- configurer.stub_server.host = "localhost"
12
- configurer.stub_server.port = args.port
13
- HttpStub::Rake::ServerDaemonTasks.new(name: :stub_server, configurer: configurer)
10
+ stub_configurator = args.stub_configurator
11
+ stub_configurator.stub_server.port = args.port
12
+ HttpStub::Rake::ServerDaemonTasks.new(name: :stub_server, configurator: stub_configurator)
14
13
  end
15
14
 
16
15
  end
@@ -1,3 +1,5 @@
1
+ require 'http_stub/configurator'
2
+
1
3
  require 'http_stub/rake/task_generators'
2
4
 
3
5
  module HttpStubDocker
@@ -1,20 +1,19 @@
1
1
  # Generated by http_stub_docker, edit at your peril
2
- FROM ruby:2.4.0-alpine
2
+ FROM ruby:2.4.2-alpine
3
3
 
4
- # Update Bundler
4
+ # Install bundle dependencies
5
+ RUN apk add --update build-base libffi-dev
6
+
7
+ # Install Bundler
5
8
  RUN gem install bundler
6
9
 
7
- # Cache dependencies
8
- COPY ["Gemfile", "Gemfile.lock", "*.gemspec", "/tmp/cache/"]
9
- WORKDIR /tmp/cache
10
- RUN bundle install --without development && rm -rf /tmp/cache
10
+ # For efficiency, cache Gems as these change less frequently than the Stubs configuration
11
+ COPY Gemfile Gemfile.lock *.gemspec /root/app/
12
+ WORKDIR /root/app
13
+ RUN bundle install --without development
11
14
 
12
15
  # Copy code
13
16
  COPY . /root/app/
14
- WORKDIR /root/app
15
-
16
- # Registers bundle in working directory
17
- RUN bundle install --without development
18
17
 
19
18
  # Expose server port
20
19
  EXPOSE <%= port %>
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.1.3
4
+ version: 0.2.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - dueckes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-09 00:00:00.000000000 Z
11
+ date: 2017-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -28,44 +28,44 @@ dependencies:
28
28
  name: http_stub
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '0.26'
33
+ version: 0.28.0.beta1
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.26'
40
+ version: 0.28.0.beta1
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.47'
47
+ version: '0.51'
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.47'
54
+ version: '0.51'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.5'
61
+ version: '3.7'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.5'
68
+ version: '3.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: wait_until
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -125,12 +125,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  version: 2.2.2
126
126
  required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - ">="
128
+ - - ">"
129
129
  - !ruby/object:Gem::Version
130
- version: '0'
130
+ version: 1.3.1
131
131
  requirements: []
132
132
  rubyforge_project: http_stub_docker
133
- rubygems_version: 2.6.10
133
+ rubygems_version: 2.6.14
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: Docker tools for http_stub