mixlib-shellout 2.4.0-universal-mingw32 → 2.4.2-universal-mingw32

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: 66062834dba96ff92ce62072a8bc552da26b8d316aa821a055fb9f433b40f6c0
4
- data.tar.gz: 8686cb0ce60e410fccdf94a8cf04ba1e59ea131020b3aa03e39f838016e12516
3
+ metadata.gz: c64f2309289e0f0d38d8d9615f0b336c3c9f0e3e5652e44f5ef49724ac5d8179
4
+ data.tar.gz: '045005248298624975bbf805a4574c8abdc9a64adf2a67922eceac7499baa002'
5
5
  SHA512:
6
- metadata.gz: d11e5a4ca2ba55e1f62927337a4c22a7e9df46483fe47a547a98636abff97034dba6909d536d9ebfd66a8de6ab903a19c2fe80a9bfbd6aa8e2918a8d4badd615
7
- data.tar.gz: d69b9e8526b887c6aa8303a932bda1def449dad3430d1cfd5bfb81e164c3a8d9f5a02395700155c7244ea79f2586fa3b256cca3ed40239fc6f3a11dd4e2cdf86
6
+ metadata.gz: c28ad89fc7e4dc634e2ba4c8f4cdb451706af1d0db9b5c7971f32108076de0b91973e803c38182d1889fd14b7d506afc219105977bf728bf21e60788070c4c4d
7
+ data.tar.gz: 01d7412cf87321ea8c69a74ee88966f14116ff8abda2f76ce160b1ab45c14d7b0e21ec8077f29cc623cc44b8e7a996db247ea65df81d5d6f943901f952e9634a
data/lib/.DS_Store ADDED
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class ShellOut
3
- VERSION = "2.4.0".freeze
3
+ VERSION = "2.4.2".freeze
4
4
  end
5
5
  end
@@ -221,7 +221,7 @@ module Mixlib
221
221
  end
222
222
 
223
223
  # cmd does not parse multiple quotes well unless the whole thing is wrapped up in quotes.
224
- # https://github.com/opscode/mixlib-shellout/pull/2#issuecomment-4837859
224
+ # https://github.com/chef/mixlib-shellout/pull/2#issuecomment-4837859
225
225
  # http://ss64.com/nt/syntax-esc.html
226
226
  def run_under_cmd(command)
227
227
  [ ENV["COMSPEC"], "cmd /c \"#{command}\"" ]
@@ -229,12 +229,11 @@ module Mixlib
229
229
 
230
230
  # FIXME: this extracts ARGV[0] but is it correct?
231
231
  def candidate_executable_for_command(command)
232
- if command =~ /^\s*"(.*?)"/
233
- # If we have quotes, do an exact match
232
+ if command =~ /^\s*"(.*?)"/ || command =~ /^\s*([^\s]+)/
233
+ # If we have quotes, do an exact match, else pick the first word ignoring the leading spaces
234
234
  $1
235
235
  else
236
- # Otherwise check everything up to the first space
237
- command[0, command.index(/\s/) || command.length].strip
236
+ ""
238
237
  end
239
238
  end
240
239
 
metadata CHANGED
@@ -1,43 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixlib-shellout
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.2
5
5
  platform: universal-mingw32
6
6
  authors:
7
7
  - Chef Software Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-23 00:00:00.000000000 Z
11
+ date: 2018-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rspec
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '3.0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '3.0'
27
- - !ruby/object:Gem::Dependency
28
- name: chefstyle
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
13
  - !ruby/object:Gem::Dependency
42
14
  name: win32-process
43
15
  requirement: !ruby/object:Gem::Requirement
@@ -74,19 +46,17 @@ extra_rdoc_files:
74
46
  - README.md
75
47
  - LICENSE
76
48
  files:
77
- - Gemfile
78
49
  - LICENSE
79
50
  - README.md
80
- - Rakefile
51
+ - lib/.DS_Store
52
+ - lib/mixlib/.DS_Store
81
53
  - lib/mixlib/shellout.rb
82
54
  - lib/mixlib/shellout/exceptions.rb
83
55
  - lib/mixlib/shellout/unix.rb
84
56
  - lib/mixlib/shellout/version.rb
85
57
  - lib/mixlib/shellout/windows.rb
86
58
  - lib/mixlib/shellout/windows/core_ext.rb
87
- - mixlib-shellout-windows.gemspec
88
- - mixlib-shellout.gemspec
89
- homepage: https://www.chef.io/
59
+ homepage: https://github.com/chef/mixlib-shellout
90
60
  licenses: []
91
61
  metadata: {}
92
62
  post_install_message:
@@ -105,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
75
  version: '0'
106
76
  requirements: []
107
77
  rubyforge_project:
108
- rubygems_version: 2.7.5
78
+ rubygems_version: 2.7.7
109
79
  signing_key:
110
80
  specification_version: 4
111
81
  summary: Run external commands on Unix or Windows
data/Gemfile DELETED
@@ -1,16 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec name: "mixlib-shellout"
4
-
5
- group(:test) do
6
- gem "chefstyle", git: "https://github.com/chef/chefstyle.git", branch: "master"
7
- gem "rspec_junit_formatter"
8
- gem "rake"
9
- end
10
-
11
- group(:development) do
12
- gem "pry"
13
- gem "pry-byebug"
14
- gem "pry-stack_explorer"
15
- gem "rb-readline"
16
- end
data/Rakefile DELETED
@@ -1,16 +0,0 @@
1
- require "bundler"
2
- require "rspec/core/rake_task"
3
-
4
- Bundler::GemHelper.install_tasks name: "mixlib-shellout"
5
-
6
- require "chefstyle"
7
- require "rubocop/rake_task"
8
- desc "Run Ruby style checks"
9
- RuboCop::RakeTask.new(:style)
10
-
11
- desc "Run all specs in spec directory"
12
- RSpec::Core::RakeTask.new(:spec) do |t|
13
- t.pattern = FileList["spec/**/*_spec.rb"]
14
- end
15
-
16
- task default: [:spec, :style]
@@ -1,8 +0,0 @@
1
- gemspec = instance_eval(File.read(File.expand_path("../mixlib-shellout.gemspec", __FILE__)))
2
-
3
- gemspec.platform = Gem::Platform.new(%w{universal mingw32})
4
-
5
- gemspec.add_dependency "win32-process", "~> 0.8.2"
6
- gemspec.add_dependency "wmi-lite", "~> 1.0"
7
-
8
- gemspec
@@ -1,25 +0,0 @@
1
- $:.unshift(File.dirname(__FILE__) + "/lib")
2
- require "mixlib/shellout/version"
3
-
4
- Gem::Specification.new do |s|
5
- s.name = "mixlib-shellout"
6
- s.version = Mixlib::ShellOut::VERSION
7
- s.platform = Gem::Platform::RUBY
8
- s.extra_rdoc_files = ["README.md", "LICENSE" ]
9
- s.summary = "Run external commands on Unix or Windows"
10
- s.description = s.summary
11
- s.author = "Chef Software Inc."
12
- s.email = "info@chef.io"
13
- s.homepage = "https://www.chef.io/"
14
-
15
- s.required_ruby_version = ">= 2.2"
16
-
17
- s.add_development_dependency "rspec", "~> 3.0"
18
- s.add_development_dependency "chefstyle"
19
-
20
- s.bindir = "bin"
21
- s.executables = []
22
- s.require_path = "lib"
23
- s.files = %w{Gemfile Rakefile LICENSE README.md} + Dir.glob("*.gemspec") +
24
- Dir.glob("lib/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) }
25
- end