system_command_helper 0.2.1 → 0.2.2

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: f0000e44e379cd14968dda17ddd7e4054088f30c
4
- data.tar.gz: 816e715bd0eb67bb2194604b5fd808c00ed61eed
3
+ metadata.gz: 07912a718174390ca7f52102bca47c97655ea5b8
4
+ data.tar.gz: 1bad63aa7ececc7812f9235426721748745f295b
5
5
  SHA512:
6
- metadata.gz: 08c8557010cd341ac727de5ec620d132dc4254c800abc1285c972e63981bcf63b2c1942698ca28c0cbb1f6f7392a7ad35c7493b5ae61a8325cf3e0f8bf124547
7
- data.tar.gz: 3f5507f4deb4e4acb96b4a947cb140bd0181396a889e1362fe298db5226d5537109e913fe7138e468e858f56a0f50441f8e182e0feae604daba3fd56262d5dba
6
+ metadata.gz: 3d5a4fe6a6795a67903f97052822fd0b82399585859f3d2fedbeb1e05196875cba4cf1c2b9f28fb56a73e16ea1bf7f733c5e132e5efecb4e9900bd940b00d2f0
7
+ data.tar.gz: 09e5b9baa517bda4c1dfd5028f63f75173b7c98a74b79e66694403f47537761954a9a4643e21a8bcbf680c032b2a4351a68c490ac1846b913ae1ddfe528a141b
@@ -1,3 +1,3 @@
1
1
  module SystemCommandHelper
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -9,7 +9,7 @@ module SystemCommandHelper
9
9
  end
10
10
  unless @no_exec
11
11
  result = system cmd
12
- if result != 0 && @on_error
12
+ if !result && @on_error
13
13
  @on_error.call(cmd, result)
14
14
  end
15
15
  result
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: system_command_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka