awesome_spawn 1.4.0 → 1.4.1

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
  SHA1:
3
- metadata.gz: 815be141f2f958bbb4ff8eb364d285cd6110d78b
4
- data.tar.gz: 322d170526af46c9ad840b69fe20f61794f46386
3
+ metadata.gz: 2377955010be58dc1a2612d2293c2b423721fbdc
4
+ data.tar.gz: 294a70bb931c7eda8f4ae676f9635202679175b3
5
5
  SHA512:
6
- metadata.gz: 041a6034a9bf220ffc96511c370a03ed26cd9183efddff30f5bd4ffe8c8ce9af81a199e34c608b7862969f6f6e7eec026f0a1552b1321adee1f80e86e3196609
7
- data.tar.gz: abe800672e213bd32dc8d96baf82a311ab301a97ad303d5f500105cd0c179829b12fd98752872f14df34e236af13a315a476ee80926fb1b3ee83a733c178da79
6
+ metadata.gz: 0c3671bcf020eb3c28750fcfdd67f19387100bf43064f9e1359f2bf690d7e984b7eceaa33d8ea198e47b42ecb01c27eae89f73c7f3bde5ef7aab915c4192d7ab
7
+ data.tar.gz: 1c512c6c1a18ca52bf255f1626b281f38c94c74ef17c9dae8bf220c0617ac36ff024f6d08ea0589790d583b532c9613f0b65d20a2ae573dbecf274c0e7168fcf
@@ -83,7 +83,7 @@ module AwesomeSpawn
83
83
  KEY_REGEX = /^((?:--?)?)(.+?)(=?)$/
84
84
 
85
85
  def sanitize_key(key)
86
- return key if key.nil? || key.empty?
86
+ return key if key.nil? || key.to_s.empty?
87
87
  key = convert_symbol_key(key) if key.kind_of?(Symbol)
88
88
 
89
89
  case key
@@ -1,3 +1,3 @@
1
1
  module AwesomeSpawn
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
@@ -34,6 +34,13 @@ describe AwesomeSpawn::CommandLineBuilder do
34
34
  expect(actual).to eq "/usr/bin/ruby -v"
35
35
  end
36
36
 
37
+ it "with Pathname in params" do
38
+ options = ["-d", Pathname.new("script.rb")]
39
+
40
+ actual = subject.build(Pathname.new("/usr/bin/ruby"), options)
41
+ expect(actual).to eq "/usr/bin/ruby -d script.rb"
42
+ end
43
+
37
44
  context "with Hash" do
38
45
  it "that is empty" do
39
46
  assert_params({}, "")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_spawn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Frey
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-01-26 00:00:00.000000000 Z
14
+ date: 2016-06-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler