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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b07d037c5f420807fbe56f174c208211fa2d5f1dcee9d6bf8bb9cf86d3f97af5
4
- data.tar.gz: 2354f68ddc596c5f1e87076a5cb7fd1f0cc37b69f0354d092db1b389a773e709
3
+ metadata.gz: cadfc19302e46c5c7894019537957a5ce90cc2bc1cae559c2222579772a7fc83
4
+ data.tar.gz: c987a956bc57d96aefc0259fd15f633f19838883ee21d6d95367145e200fcb4a
5
5
  SHA512:
6
- metadata.gz: 1c1210a158918c0bbefa63efe5f8f42cecd2ae87a532fc1b9c98667cf8304c0bedcf5cbc1f7b1aef6e0a49704420aaf45fcb99874beb33b112ff8f6c0083d163
7
- data.tar.gz: 24e5113b9c1b96799a0fff2f9c63b9e6182c44ca21fc9a5241c8421de4442c0633d28196ee6f10f474361e6c2730ed8e5bbe2739ca66683fa1eb6b0108d11fbc
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.0'
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
@@ -39,7 +39,7 @@ module Dip
39
39
  next unless file_path.exist?
40
40
 
41
41
  memo << "--file"
42
- memo << file_path.to_s
42
+ memo << Shellwords.escape(file_path.to_s)
43
43
  end
44
44
  end
45
45
  end
@@ -78,7 +78,11 @@ module Dip
78
78
 
79
79
  def get_args
80
80
  if argv.any?
81
- argv
81
+ if command[:shell]
82
+ [argv.shelljoin]
83
+ else
84
+ Array(argv)
85
+ end
82
86
  elsif !(default_args = command[:default_args]).empty?
83
87
  if command[:shell]
84
88
  default_args.shellsplit
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
- YAML.safe_load(
66
- ERB.new(File.read(file_path)).result,
67
- [], [], true
68
- )&.deep_symbolize_keys! || {}
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dip
4
- VERSION = "7.1.0"
4
+ VERSION = "7.1.4"
5
5
  end
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.0
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-04-30 00:00:00.000000000 Z
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: '1.1'
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: '1.1'
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: []