pups 1.1.0 → 1.1.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 +4 -4
- data/lib/pups/docker.rb +1 -5
- data/lib/pups/version.rb +1 -1
- data/test/docker_test.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5203de15040af48165295c4d93c85351b5995c137e9334566877a7875733f05
|
4
|
+
data.tar.gz: 6337c83523bc6e0e17d9f3ba494d62e7a629415a4ce75f95db8e92e998837993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a4e356fde18db799f68049198eac4195a46c3d73f1919a66f473f195676a322a1759050bb01dfa6c447a4d705d6dce583bd6215e6a3412a339ffe55e2f57a48
|
7
|
+
data.tar.gz: 065473a360bac01f433757db10c513fc6790d49521218f6a3db5a55279386fa4ee89818c0aa16b07e37cc8f3375de705dae8fc9966191fabb2c17bf16675ad21
|
data/lib/pups/docker.rb
CHANGED
@@ -55,11 +55,7 @@ class Pups::Docker
|
|
55
55
|
# special characters than any of the other config variables on a Linux system:
|
56
56
|
# - the value side of an environment variable
|
57
57
|
# - the value side of a label.
|
58
|
-
|
59
|
-
"\"#{Shellwords.escape(str)}\""
|
60
|
-
else
|
61
|
-
Shellwords.escape(str)
|
62
|
-
end
|
58
|
+
Shellwords.escape(str)
|
63
59
|
end
|
64
60
|
|
65
61
|
def normalize_output(output)
|
data/lib/pups/version.rb
CHANGED
data/test/docker_test.rb
CHANGED
@@ -46,7 +46,7 @@ module Pups
|
|
46
46
|
config = Config.load_config(yaml)
|
47
47
|
Config.transform_config_with_templated_vars(config.config['env_template'], config.config["env"])
|
48
48
|
args = Docker.generate_env_arguments(config.config["env"])
|
49
|
-
assert_equal("--env password
|
49
|
+
assert_equal("--env password=#{Shellwords.escape('eggs*`echo`@e$t| = >>$()&list;#')}", args)
|
50
50
|
end
|
51
51
|
|
52
52
|
def test_gen_env_arguments_quoted_with_a_space
|
@@ -58,7 +58,7 @@ module Pups
|
|
58
58
|
config = Config.load_config(yaml)
|
59
59
|
Config.transform_config_with_templated_vars(config.config['env_template'], config.config["env"])
|
60
60
|
args = Docker.generate_env_arguments(config.config["env"])
|
61
|
-
assert_equal('--env a_variable=
|
61
|
+
assert_equal('--env a_variable=here\ is\ a\ sentence', args)
|
62
62
|
end
|
63
63
|
|
64
64
|
def test_gen_env_arguments_newline
|
@@ -77,7 +77,7 @@ this password is
|
|
77
77
|
config = Config.load_config(yaml)
|
78
78
|
Config.transform_config_with_templated_vars(config.config['env_template'], config.config["env"])
|
79
79
|
args = Docker.generate_env_arguments(config.config["env"])
|
80
|
-
assert_equal('--env password=
|
80
|
+
assert_equal('--env password=this\ password\ is\ a\ weird\ one\ ', args)
|
81
81
|
end
|
82
82
|
|
83
83
|
def test_gen_expose_arguments
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pups
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|