build 1.0.6 → 1.0.7

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: b2e4b99a0ca6f133e2a922246935b5fea4df8565
4
- data.tar.gz: 0cf67127a7ade2972d912feea1d7f60b52059185
3
+ metadata.gz: 05ef2ee33a6ebcc62d2d368fe4992cb701916a58
4
+ data.tar.gz: 433bc350471e376e90add37e243b3785508cf907
5
5
  SHA512:
6
- metadata.gz: 07d415c3b548005c3967c347777a58e0681d4af33837bfa0c45d765a05c271091f1a0530d489673b88ff732517602f1cf4047ca075d5a851a29a2f010f56787e
7
- data.tar.gz: 3af3c5c22e15a4d4abc272f1690f0ca49383e2715053589df1bc7aff10399ad19a988ffc3d6312b99301c4e1e15d78d28bc01063eea0dfe11576e5580a2375b6
6
+ metadata.gz: 3cecb031cbd5b62c2bc0c528fd119c90f0a38a6b3382c9d8a6ebd8c7aa599eb43f05546e1828032eb52d3d26744ba0f23e74d6bf28194576bdfe879eddd84cd7
7
+ data.tar.gz: cf3eec84f904879c9320711acf4e7f33582ec1ab3510d402e87b917108c6028960b528aae805fca064be8f5bc4df9e9e5187ba1fa626554718ed3c9c8e76b418
data/lib/build/task.rb CHANGED
@@ -30,9 +30,15 @@ module Build
30
30
  @arguments = arguments
31
31
  @status = status
32
32
 
33
- @command_name = arguments.find{|part| part.kind_of? String}
34
-
35
- super "#{@command_name.inspect} exited with status #{@status}"
33
+ super "#{File.basename(executable_name).inspect} exited with status #{@status.to_i}"
34
+ end
35
+
36
+ def executable_name
37
+ if @arguments[0].kind_of? Hash
38
+ @arguments[1]
39
+ else
40
+ @arguments[0]
41
+ end
36
42
  end
37
43
 
38
44
  attr :task
data/lib/build/version.rb CHANGED
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Build
22
- VERSION = "1.0.6"
22
+ VERSION = "1.0.7"
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: build
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  version: '0'
160
160
  requirements: []
161
161
  rubyforge_project:
162
- rubygems_version: 2.5.1
162
+ rubygems_version: 2.2.2
163
163
  signing_key:
164
164
  specification_version: 4
165
165
  summary: Build is a framework for working with task based build systems.