system_command_helper 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c603ddb838c9bd676af5bbd085a72b7434cbe905
4
- data.tar.gz: 4233995cb5f7e0e0632cf9b3fbf7070513a29586
3
+ metadata.gz: 3251f5ef721961d53ab6b2b35d1705ac4d5c3df4
4
+ data.tar.gz: d48376f04412097e5a8321b9f3ddfd003f3daebc
5
5
  SHA512:
6
- metadata.gz: da19b379af5f839cb9f3af2943b621488dd79977c761a00a1939190c4bd65739a9bd3388fae4c23196786399f078244b27af48e688849e51457d3a8d27336b84
7
- data.tar.gz: b874dc6071daff2a53a12c836d03dee5a856fd8004afeec13c9b2b0ee72dbb06c50a66bb503a366a45b0655b18802d1c147212277cf25bd10a218d43452d5f1a
6
+ metadata.gz: 7c8752c6234d6769e4f7099ce72bc53ae792d4953ad9ddaf330571c96c56bccd5f8f4c45063537fa19d3d70d1a3d19000738a4d5d366bc1ea222ce1634ef5970
7
+ data.tar.gz: 3849067c8377865b4963f3366db5c4b1f063f63b3dd723fd3efd4ac7e5274c58b4dbb0a74c989c62be7685dd95b1ee18d713c6ef427ba877191df46454fadbc6
@@ -1,3 +1,3 @@
1
1
  module SystemCommandHelper
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -8,7 +8,11 @@ module SystemCommandHelper
8
8
  puts "\e[35m#{Dir.pwd}$\e[0m #{cmd}"
9
9
  end
10
10
  unless @no_exec
11
- system cmd
11
+ result = system cmd
12
+ if result != 0 && respond_to?(:sys_error, true)
13
+ sys_error(cmd)
14
+ end
15
+ result
12
16
  end
13
17
  end
14
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: system_command_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-20 00:00:00.000000000 Z
11
+ date: 2016-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler