rebuild 0.3.0.pre2 → 0.3.0.pre3

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: c3c544d4abb0187165d72343bbdc417579854c52
4
- data.tar.gz: 11b461c49cfbb432b6e71731baaffa4a54f5d98f
3
+ metadata.gz: 57561e60786e642b55ea0dac2797b26928f43625
4
+ data.tar.gz: 1a221c7aedb3641e3fa608f9fc00fc5b3a2cb2fc
5
5
  SHA512:
6
- metadata.gz: 4285f9afc2560cc9afdf2b58ccfdba1346ca2b53a417400a8e08b0b6b15f242b9064a018ccf467da6e5fa21d91def2e0de1d4ab63e2b0653737f07f8c43075ae
7
- data.tar.gz: 0e8ff06c4c87b1376d9f4d0a402116e98196cb1578a406cf9812ed88d0486c91787802d103359a58a15e004afcd0014b09f5e1e9a0f57dd7ac510ada35ddd69e
6
+ metadata.gz: a979572424abc1a4697a212a04c8763bccbc7f8a8da84cee3d4192b30c41a2b488fd23b0bc9933bb5beaf810287320a9437ba2fd515def046584af9f8016952d
7
+ data.tar.gz: 7f5d2d6568af9e5e4731e7c0e7bd9e8bb6881a168061d7ac2458b77cfd1a4efd7f74cc592f408299e01444e7e121070afcbed9f8c14bd948539ffdd9b4270f69
@@ -4,7 +4,7 @@ module Rebuild
4
4
  class Homebrew
5
5
  class << self
6
6
  def installed?
7
- system('which brew')
7
+ system('which brew > /dev/null')
8
8
  end
9
9
 
10
10
  def install
@@ -8,7 +8,7 @@ module Rebuild
8
8
  end
9
9
 
10
10
  def agree
11
- Script.execute_exp('agree_license')
11
+ Script.execute_exp('agree_license', sudo: true)
12
12
  end
13
13
  end
14
14
  end
@@ -8,9 +8,9 @@ module Rebuild
8
8
  `sudo osascript #{script_path}`
9
9
  end
10
10
 
11
- def execute_exp(name)
11
+ def execute_exp(name, sudo: false)
12
12
  script_path = File.join(script_dir, "#{name}.exp")
13
- `sudo expect -f #{script_path}`
13
+ `#{'sudo' if sudo} expect -f #{script_path}`
14
14
  end
15
15
 
16
16
  private
@@ -1,3 +1,3 @@
1
1
  module Rebuild
2
- VERSION = '0.3.0.pre2'
2
+ VERSION = '0.3.0.pre3'
3
3
  end
data/script/homebrew.exp CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env expect -f
2
2
 
3
3
  set timeout -1
4
- spawn ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
4
+ spawn ruby -e "\"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\""
5
5
 
6
6
  expect {
7
7
  "Press RETURN to continue or any other key to abort"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rebuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.pre2
4
+ version: 0.3.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun