dip 7.6.0 → 7.7.0

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: 077560a05e3c58c34f61f81e80a941a6bb8a88da7b8acc59cb1e8c254985467e
4
- data.tar.gz: 8d7b121d08fb87b68bf375b8651cc60f2e27307267f813ea87faf2eee6f88870
3
+ metadata.gz: f054f4d57aa8fcd971e84dfd09f64e45e468f902bec2390cea1ca22429ec5b5b
4
+ data.tar.gz: c5d1f343917d8eb814cd12bf650f5c25fc82e642b97d24d39244ff79bd0a84c1
5
5
  SHA512:
6
- metadata.gz: 1a00861123026227700fcb92e3ef1fa47f702efcfdd2bbce83363aeca5bedf7d2c669428f5837828c53edcb76975958334689657f2d52df7f8dee3e3991d0a08
7
- data.tar.gz: f2bd7865a209166096b5b9f553da6031ec7192c889f8e6e357a230fd2f9dd9c67259501f358dffde25657370a3f7cf8d628156cbad7d9524ea9505c10ff7c724
6
+ metadata.gz: f95680b8f9393ceb447641751176a44343118621a5d37670cd41e5e82ff9093e3bdabb541809ef0df18580390b78c848feee7dafb97b05c445aa9798c4c48e2c
7
+ data.tar.gz: ca40545fa4f180fd4c3740348e413ca760580aca68dc18f9f4839e3bc51155f3094a962294eba27b5fc10aa22df1ff178223c9bdaf9489cb7f6d53edef05e41c
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "thor"
4
- require_relative "./base"
4
+ require_relative "base"
5
5
  require_relative "../commands/console"
6
6
 
7
7
  module Dip
data/lib/dip/cli/dns.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "thor"
4
- require_relative "./base"
4
+ require_relative "base"
5
5
  require_relative "../commands/dns"
6
6
 
7
7
  module Dip
data/lib/dip/cli/nginx.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "thor"
4
- require_relative "./base"
4
+ require_relative "base"
5
5
  require_relative "../commands/nginx"
6
6
 
7
7
  module Dip
data/lib/dip/cli/ssh.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "thor"
4
- require_relative "./base"
4
+ require_relative "base"
5
5
  require_relative "../commands/ssh"
6
6
 
7
7
  module Dip
data/lib/dip/command.rb CHANGED
@@ -11,7 +11,7 @@ module Dip
11
11
  class ProgramRunner
12
12
  def self.call(cmdline, env: {}, **options)
13
13
  if cmdline.is_a?(Array)
14
- ::Kernel.exec(env, cmdline[0], *cmdline[1..-1], **options)
14
+ ::Kernel.exec(env, cmdline[0], *cmdline[1..], **options)
15
15
  else
16
16
  ::Kernel.exec(env, cmdline, **options)
17
17
  end
@@ -45,11 +45,11 @@ module Dip
45
45
  cmd = build_command(entry)
46
46
 
47
47
  tree[name] = cmd
48
+ base_cmd = entry.select { |k, _| k != :subcommands }
48
49
 
49
50
  entry[:subcommands]&.each do |sub_name, sub_entry|
50
51
  sub_command_defaults!(sub_entry)
51
-
52
- expand("#{name} #{sub_name}", entry.deep_merge(sub_entry), tree: tree)
52
+ expand("#{name} #{sub_name}", base_cmd.deep_merge(sub_entry), tree: tree)
53
53
  end
54
54
 
55
55
  tree
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.6.0"
4
+ VERSION = "7.7.0"
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.6.0
4
+ version: 7.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bibendi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-14 00:00:00.000000000 Z
11
+ date: 2023-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -210,7 +210,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
210
210
  requirements:
211
211
  - - ">="
212
212
  - !ruby/object:Gem::Version
213
- version: '2.5'
213
+ version: '2.7'
214
214
  required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  requirements:
216
216
  - - ">="