execute 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cmd.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb5849ed77968b2bff03b404912ac816b7cdba0a
4
- data.tar.gz: f9a8dddcc9b8c4c8dd9646dfd52a3d6c62eee5c1
3
+ metadata.gz: a4d4c888689d37135cedba9dbf61a2963f97066d
4
+ data.tar.gz: 196a5620ff0582ea455925c8aae841ca0ce29172
5
5
  SHA512:
6
- metadata.gz: f5a2e9c471de81a107e1bdd57a6caf58259453c21a39b29d96ce48fb5209f2f7c2c722e2eb6aea3a77978fd12d7080e3a3766e89a337397903188896f73a2cad
7
- data.tar.gz: 9377cd1d96227b66be3febd5cc78a19e25800816aa933060140174121adfd8695908a8e0967400434b8558574785bba16bcd4751a94f3e7f1578e2b2f842f6d9
6
+ metadata.gz: c171bfa381441135ab4e6aa87a3ca0954a97d0e60bd35ec9af359be7a821fdcb09cab20b8eb6b17ccf338c29adeb1a80449b3ddb28fa684408fde3ade6ce20b0
7
+ data.tar.gz: 9e59c7df1084d4ebb4d4974eed14e5bafc2727212fda6ce7b91491bcf20229998746ecb322f6469814829a0e41d29746bef6a6a5811572616ff31ddc7d45866c
data/lib/cmd.rb CHANGED
@@ -79,10 +79,10 @@ class CMD < Hash
79
79
 
80
80
  yield
81
81
 
82
- match = cmd.match(/\\(?<path>.+\.exe)/i)
82
+ match = cmd.match(/\"(?<path>.+\.exe)/i)
83
83
  return if(match.nil?)
84
84
 
85
- exe = match.named_captures['path']
85
+ exe = match[:path]
86
86
  exe = File.basename(exe)
87
87
  #puts "Exe: #{exe}"
88
88
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall