kumo_dockercloud 3.5.0 → 3.5.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba517a6429847cb8c9451cc72b4c34e6eece96f9
|
4
|
+
data.tar.gz: 7a6a60908dcec60b09bfb6170a1651852e32ebac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2cf3ec253bc1d672a1296b4f0cf06725f142c0d0b035ef7ee5d0f1a45aff610daf8dc04e18c62b9119fdbed66beebc93d1e0e56cfbe5e0f7b2872d819f00834
|
7
|
+
data.tar.gz: b4bafb4f2aba62e1112bd526fd97aa35c4185295faf13294943b11f3648ef6fb36715f4b91a1b1e2f428625440e65ce4dd4bc1c230308e6394d1af473b0459a9
|
@@ -22,7 +22,7 @@ module KumoDockerCloud
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def self.escape_characters_that_need_special_handling(env_hash)
|
25
|
-
env_hash.keys.reduce({}) { |acc, key| acc[key] = env_hash[key].gsub(/[$]{1}/, "$$"); acc }
|
25
|
+
env_hash.keys.reduce({}) { |acc, key| acc[key] = (env_hash[key].is_a? String) ? env_hash[key].gsub(/[$]{1}/, "$$") : env_hash[key]; acc }
|
26
26
|
end
|
27
27
|
|
28
28
|
private_class_method :make_all_root_level_keys_strings
|
@@ -76,6 +76,30 @@ describe KumoDockerCloud::StackFile do
|
|
76
76
|
})
|
77
77
|
end
|
78
78
|
end
|
79
|
+
|
80
|
+
|
81
|
+
context 'and environment variables that are numeric' do
|
82
|
+
let(:stack_template) do
|
83
|
+
<<-eos
|
84
|
+
application-stack-name:
|
85
|
+
image: a-thing
|
86
|
+
environment:
|
87
|
+
TEST: 555
|
88
|
+
eos
|
89
|
+
end
|
90
|
+
|
91
|
+
# to work around https://github.com/docker/dockercloud-cli/issues/17
|
92
|
+
it 'passes those values through' do
|
93
|
+
|
94
|
+
expect(subject).to eq(app_name => {
|
95
|
+
'image' => 'a-thing',
|
96
|
+
'environment' => {
|
97
|
+
'TEST' => 555,
|
98
|
+
'KEY' => 'VALUE'
|
99
|
+
}
|
100
|
+
})
|
101
|
+
end
|
102
|
+
end
|
79
103
|
end
|
80
104
|
|
81
105
|
context 'without any existing environment' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kumo_dockercloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Redbubble
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-07-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httpi
|