ruby-builder 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: cd9809d518a15197b2d91e3be672266a77055c31a54b3619b7432153e922430d
4
- data.tar.gz: 1c38bf7d4d16b8cb5e05be1f7ca9047d257ad7e9087f8e50de775948f41ba31b
3
+ metadata.gz: ed7557eb44867b81467d84b536ddb2085f1e3ae0b98fed82c831c32876312650
4
+ data.tar.gz: 8399104374f46aa4eb6b64f56719ee28cfcdbdfa73982965816d844cb95b417c
5
5
  SHA512:
6
- metadata.gz: 03b197c6bb7280ad38d3132f1ac32640c6a20de7f5200112fd8676480984613523af4da80a038b231fa7235a4a701eb0ffde47a09fc04268d1fc235800d62ec8
7
- data.tar.gz: e165f39604271dbade67a63c7c99a100664bee5d749e25188bc84cf4d81feacfdcea02094cb7b7424d3e62a92f8d324a626f85b207403e220f68ac3011526bc9
6
+ metadata.gz: 30ed52a91c637c38aaab5b2e736e457196dda58250cd52490c23d8b9e11149ade815b3c79dae3b12b17f6c412e3f456d6add0da24635fa303cd16f00edd2d08b
7
+ data.tar.gz: fb1d7fa020120716d7d26ca4529847e14c4af23959ea580bb3fc79815240b80d60aae2fe27b394a20e7abb566232a47f9669cc96b25e6166209e3c6c8f87fed6
@@ -1,4 +1,8 @@
1
1
  # CHANGELOG
2
+ ## v0.1.3
3
+
4
+ * Fix undefined variable error on command execution failure
5
+
2
6
  ## v0.1.2
3
7
 
4
8
  * Fix timestamp file removal bug in v0.1.1
@@ -35,18 +35,19 @@ module Ruby
35
35
  def execute(*command, dir: nil)
36
36
  if dir
37
37
  Dir.chdir(dir) do
38
- assert_execute(*command)
38
+ assert_execute(*command, dir: dir)
39
39
  end
40
40
  else
41
- assert_execute(*command)
41
+ assert_execute(*command, dir: dir)
42
42
  end
43
43
  end
44
44
 
45
45
  # @param [Array<String>] command
46
- def assert_execute(*command)
46
+ def assert_execute(*command, dir:)
47
47
  logger.info("+ #{command.shelljoin}")
48
48
  unless system(command.shelljoin)
49
- raise BuildFailure.new("Failed to execute '#{command.shelljoin}' at '#{dir}' (exit status: #{$?.exitstatus})")
49
+ dir_info = "at '#{dir}' " if dir
50
+ raise BuildFailure.new("Failed to execute '#{command.shelljoin}' #{dir_info}(exit status: #{$?.exitstatus})")
50
51
  end
51
52
  end
52
53
 
@@ -1,5 +1,5 @@
1
1
  module Ruby
2
2
  module Builder
3
- VERSION = "0.1.2"
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun