dip 7.1.0 → 7.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -5
- data/lib/dip/commands/compose.rb +1 -1
- data/lib/dip/commands/run.rb +5 -1
- data/lib/dip/config.rb +13 -4
- data/lib/dip/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cadfc19302e46c5c7894019537957a5ce90cc2bc1cae559c2222579772a7fc83
|
4
|
+
data.tar.gz: c987a956bc57d96aefc0259fd15f633f19838883ee21d6d95367145e200fcb4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a5589248901774f7edef3c793861f92c6923e896b2fd39ca566b91684bc79ef9d942a4f8ebf1d1d360e624bff5f2d20eb0ea39d833e9e9f1d0d4ac12b32de7e
|
7
|
+
data.tar.gz: c3c296f2a86720b6fec17f9f824aabfdd611c6dbe0626294e6d6a055fc16f48335c0a04ef699a1190c4a21dc773eaa1b6f16faef152e1b9c55a3826d19346507
|
data/README.md
CHANGED
@@ -81,7 +81,7 @@ Also, you can check out examples at the top.
|
|
81
81
|
|
82
82
|
```yml
|
83
83
|
# Required minimum dip version
|
84
|
-
version: '7.
|
84
|
+
version: '7.1'
|
85
85
|
|
86
86
|
environment:
|
87
87
|
COMPOSE_EXT: development
|
@@ -298,8 +298,6 @@ Runs Nginx server container based on [bibendi/nginx-proxy](https://github.com/bi
|
|
298
298
|
foo-project/docker-compose.yml
|
299
299
|
|
300
300
|
```yml
|
301
|
-
version: '2'
|
302
|
-
|
303
301
|
services:
|
304
302
|
foo-web:
|
305
303
|
image: company/foo_image
|
@@ -320,8 +318,6 @@ networks:
|
|
320
318
|
baz-project/docker-compose.yml
|
321
319
|
|
322
320
|
```yml
|
323
|
-
version: '2'
|
324
|
-
|
325
321
|
services:
|
326
322
|
baz-web:
|
327
323
|
image: company/baz_image
|
data/lib/dip/commands/compose.rb
CHANGED
data/lib/dip/commands/run.rb
CHANGED
data/lib/dip/config.rb
CHANGED
@@ -62,10 +62,19 @@ module Dip
|
|
62
62
|
def load_yaml(file_path = path)
|
63
63
|
return {} unless File.exist?(file_path)
|
64
64
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
65
|
+
data = if Gem::Version.new(Psych::VERSION) >= Gem::Version.new("4.0.0")
|
66
|
+
YAML.safe_load(
|
67
|
+
ERB.new(File.read(file_path)).result,
|
68
|
+
aliases: true
|
69
|
+
)
|
70
|
+
else
|
71
|
+
YAML.safe_load(
|
72
|
+
ERB.new(File.read(file_path)).result,
|
73
|
+
[], [], true
|
74
|
+
)
|
75
|
+
end
|
76
|
+
|
77
|
+
data&.deep_symbolize_keys! || {}
|
69
78
|
end
|
70
79
|
end
|
71
80
|
|
data/lib/dip/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.1.
|
4
|
+
version: 7.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bibendi
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '0.20'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '0.20'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,7 +196,7 @@ licenses:
|
|
196
196
|
- MIT
|
197
197
|
metadata:
|
198
198
|
allowed_push_host: https://rubygems.org/
|
199
|
-
post_install_message:
|
199
|
+
post_install_message:
|
200
200
|
rdoc_options: []
|
201
201
|
require_paths:
|
202
202
|
- lib
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: '0'
|
213
213
|
requirements: []
|
214
214
|
rubygems_version: 3.1.2
|
215
|
-
signing_key:
|
215
|
+
signing_key:
|
216
216
|
specification_version: 4
|
217
217
|
summary: Ruby gem CLI tool for better interacting docker-compose files.
|
218
218
|
test_files: []
|