minke 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDY2MjFhZTEwZjI5OGY0MGFjZDVkYjVkMmViYWI5NDIzNDBhOTdiYg==
4
+ MjkyZDZjNGJhMDcwOTcyMDNlM2E4OGMxMjQ1OGVjMjM1MGJkYzlkNg==
5
5
  data.tar.gz: !binary |-
6
- YzIyM2IwMGIwNGMyNDU3MjE3Njg1YjAzZDk0YWY2NzFhM2IxZTU2Zg==
6
+ YzE3MTZkYTdiNjk3MWU1ODBjN2U5NTFlMzAyNzA3ZWFlNmRjZTYyMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGM4M2UyMzZmZmMyYzhhZTFmZWVhMDZiZDMyNDE1NDE1ODBhYzFjNjIxMWE5
10
- MjJiZWQzODFjMTFhYWNkMTc1MDU0NzBiYjM5OGI1YjU1ZWM2Y2M3ZDE2MmMx
11
- YTEyY2I0NWMzNTI5ZmU3ZDc5NjI3MDBmMDkyMmJmYmMwNmFkZTY=
9
+ NjdiODI0YWNlYThjZTc3ZjI3Mzc2NWJkZDMxNjAxODk5ZTMxYmEwMmJhMDJk
10
+ YWQ0NjZhYjhiNTI3NjViNWRlZWU4ZWYxZDVjYzRjNGY1YTUyOTQ0Mjc2NGFi
11
+ MjI0NzAwYTI2Njg1MDEwZTYyMzVlOWI4MjNmZWJkOTlmZGJmYTE=
12
12
  data.tar.gz: !binary |-
13
- MThmMTExOGM4NzIzMzc2OGFhODZiZTliNDMxYTJjMGZiYTQ3YzdmMDAyZWE2
14
- ZjZlMTkzZDA3YWE3NWJiOTJiN2Y0NzU5ZDNkMjhiYzcxYTAzNGQxODBkMDE0
15
- YzM4N2RkMTBkZDJkNjdmZTA1NDhmYjdmNGQ3OWZiYTVhMzRiNjY=
13
+ MTUwNmMwY2Q5YTg2NmUzZjJiZDQ0ZDVmY2QwMjY5Y2UwZTZhMjhhNjE1OTFl
14
+ MGE2MGMwMzc4NDEzMTExZDhhODI3OWMzYzhhNzczZDdhMTAyMGE2ODVkZjlk
15
+ MWM1YTIxOTQzOTZhYWQxMzgyMzc1ZWY1OWZiZTFmNWYxNGQ1ZGU=
@@ -17,7 +17,14 @@ module Minke
17
17
  # - task: :run, :cucumber search either the run or cucumber section of the config
18
18
  def public_address_for container_name, private_port, task
19
19
  compose = Minke::Docker::DockerCompose.new @config.compose_file_for(task), Minke::Docker::SystemRunner.new
20
- compose.public_address container_name, private_port
20
+ public_address = compose.public_address container_name, private_port
21
+
22
+ ip = @docker_runner.get_docker_ip_address
23
+ if ip != "127.0.0.1" && ip != "0.0.0.0" && ip != nil
24
+ public_address.gsub!('0.0.0.0', ip)
25
+ end
26
+
27
+ public_address
21
28
  end
22
29
  end
23
30
  end
data/lib/minke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Minke
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minke
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic Jackson