docker-compose 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edb84813c9cc4d41059ac30da048cf1186f88c7b
4
- data.tar.gz: 125b685436f8f677bee6a25c3a2bbcaaafbf0e6e
3
+ metadata.gz: 9be70e05cbe7893fdf65ac1b35b8afd0344d873b
4
+ data.tar.gz: 8e7c676b884b8602ff899b98c7b60f931ad4206a
5
5
  SHA512:
6
- metadata.gz: 190fed6387b2ae43f4821f8c49134d0af3dafa2cd31e088142695bf1215acaae8828b993e85fb15bb664120fcbf2c2fee985a3819327bc97e0e1826b7892c949
7
- data.tar.gz: 4a8c6635f87cb1a76d156d8147312234220bcbbdd859a2b9247a14a03099a0a5867bc6f9af8ff6647ddff2042f24e8332f45381f7c93ee6f7777fdbe52d8cac1
6
+ metadata.gz: c4672fc5a45e5cb7c91636cbbcb345f67c8eb8385e1077ab2dc8116cac514b9ec4cda6a6ee80544acc103306d9ae427f2d90952e580721866a057e707d5c953b
7
+ data.tar.gz: 5160f2d65b4c69a5ed1b6de17eb112695ba9cade0b751264e0bebe7c993473c072130be8ea340c4ee765368427634fc7bf395bbf66542b3461003f02ffe0a7fd
@@ -1,5 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.0
3
4
  - 2.1
4
5
  - 2.3.1
5
6
  before_install: gem install bundler -v 1.10.6
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.required_ruby_version = Gem::Requirement.new('~> 2.1')
22
+ spec.required_ruby_version = Gem::Requirement.new('~> 2.0')
23
23
 
24
24
  spec.add_dependency 'backticks', '~> 1.0'
25
25
 
@@ -100,7 +100,7 @@ module Docker::Compose
100
100
  # @raise [NoService] if service is not up or does not publish port
101
101
  # @return [Array] (String, Integer) pair of host address and port number
102
102
  def host_and_port(service, port)
103
- result = @session.port(service, port)
103
+ result = @session.port(service, port.to_s)
104
104
  if result
105
105
  result.chomp!
106
106
  else
@@ -115,8 +115,6 @@ module Docker::Compose
115
115
  [host, Integer(port)]
116
116
  end
117
117
 
118
- private
119
-
120
118
  # Map a single string, replacing service names with IPs and container ports
121
119
  # with the host ports that they have been mapped to.
122
120
  # @param [String] value
@@ -156,5 +154,6 @@ module Docker::Compose
156
154
  fail BadSubstitution, "Can't understand '#{value}'"
157
155
  end
158
156
  end
157
+ private :map_scalar
159
158
  end
160
159
  end
@@ -73,8 +73,6 @@ module Docker::Compose
73
73
  define
74
74
  end
75
75
 
76
- private
77
-
78
76
  def define
79
77
  namespace rake_namespace do
80
78
  desc 'Print bash exports with IP/ports of running services'
@@ -105,6 +103,7 @@ module Docker::Compose
105
103
  end
106
104
  end
107
105
  end
106
+ private :define
108
107
 
109
108
  # Substitute and set environment variables that point to network ports
110
109
  # published by docker-compose services. Optionally also print bash export
@@ -122,6 +121,7 @@ module Docker::Compose
122
121
  print_env(k, ENV[k]) if print
123
122
  end
124
123
  end
124
+ private :export_env
125
125
 
126
126
  # Transform a Ruby value into a String that can be stored in the
127
127
  # environment. This accepts nil, String, or Array and returns nil, String
@@ -138,6 +138,7 @@ module Docker::Compose
138
138
  fail ArgumentError, "Can't represent a #{v.class} in the environment"
139
139
  end
140
140
  end
141
+ private :serialize_for_env
141
142
 
142
143
  # Print an export or unset statement suitable for user's shell
143
144
  def print_env(k, v)
@@ -147,6 +148,7 @@ module Docker::Compose
147
148
  puts @shell_printer.unset(k)
148
149
  end
149
150
  end
151
+ private :print_env
150
152
 
151
153
  def print_usage
152
154
  command = "rake #{rake_namespace}:env"
@@ -154,5 +156,6 @@ module Docker::Compose
154
156
  puts @shell_printer.comment('To export these variables to your shell, run:')
155
157
  puts @shell_printer.comment(@shell_printer.eval_output(command))
156
158
  end
159
+ private :print_usage
157
160
  end
158
161
  end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Docker
3
3
  module Compose
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-compose
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Spataro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-14 00:00:00.000000000 Z
11
+ date: 2016-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backticks
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '2.1'
117
+ version: '2.0'
118
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - ">="