homebrew_automation 0.1.2 → 0.1.4

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: 49d776c65c9e87632521fa074eae30c674f541dc8fd5f4ffbe5b1ec522196e62
4
- data.tar.gz: 42501be3a1f1503901489d1207ab572a1264785a8aebcbba9824ee59513fb09c
3
+ metadata.gz: 8fa749397cec51ec4237dcc7d68977f9d9f17efc3474247f7a15ebe5b5d22a27
4
+ data.tar.gz: bcf765d4779748aab17dddea1f6c1c653e2e7152ba9afb7383bfc664804a3e58
5
5
  SHA512:
6
- metadata.gz: e3f99f2156856a7489a874953873569c88d42c360334829d33233a7231e7057c1309ad2cf8ad1715e34154444bbb9650ef69acf7472dc8338ba604eee0beab96
7
- data.tar.gz: a7d2d286cdc1561dfbd80b6cac9e9e246422b162e3f306eb338a2fb82f070fc64100e79deb505bb4430157eed1c0f0cdeeacd8c88ee684e2069d4e2f6d122d00
6
+ metadata.gz: e7d0d5385ed82116aee5ee18d08c18bc93eabb527b3081347696ffff6c725d512d58799cb865942859e9ffdf33d914527c6647cd07b43845d39d173ea624a36d
7
+ data.tar.gz: 915c01241c91bdb4f5ccf369f9d7db8abaa34a1a5c80e8755124d63d055812c856075e45ec1e63a69f3591cdda79a289b7257b211f3c0f19570f10e2b4bbfff5
@@ -34,8 +34,9 @@ module HomebrewAutomation
34
34
  # @return [nil]
35
35
  def build
36
36
  die unless system 'brew', 'tap', tmp_tap_name, @tap_url
37
- maybe_keep_tmp = @keep_tmp ? '--keep-tmp' : ''
38
- die unless system 'brew', 'install', '--verbose', maybe_keep_tmp, '--build-bottle', fully_qualified_formula_name
37
+ maybe_keep_tmp = @keep_tmp ? ['--keep-tmp'] : []
38
+ install_cmd = ['brew', 'install', '--verbose'] + maybe_keep_tmp + ['--build-bottle', fully_qualified_formula_name]
39
+ die unless system(*install_cmd)
39
40
  die unless system 'brew', 'bottle', '--verbose', '--json', '--no-rebuild', fully_qualified_formula_name
40
41
  end
41
42
 
@@ -29,7 +29,12 @@ class HomebrewAutomation::CLI::WorkflowCommands < Thor
29
29
  HERE_HERE
30
30
  option :keep_brew_tmp, :type => :boolean
31
31
  def build_and_upload
32
- workflow.build_and_upload_bottle(sdist, tap, formula_name, bintray_version, keep_homebrew_tmp: option[:keep_brew_tmp])
32
+ workflow.build_and_upload_bottle(
33
+ sdist,
34
+ tap,
35
+ formula_name,
36
+ bintray_version,
37
+ keep_homebrew_tmp: options[:keep_brew_tmp])
33
38
  end
34
39
 
35
40
  desc 'gather-and-publish', 'Make the Tap aware of new Bottles'
@@ -2,6 +2,6 @@
2
2
  module HomebrewAutomation
3
3
 
4
4
  # Yep.
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.4'
6
6
 
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homebrew_automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - easoncxz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-26 00:00:00.000000000 Z
11
+ date: 2019-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec