rebuild 0.3.0.pre3 → 0.3.0.pre4

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: 57561e60786e642b55ea0dac2797b26928f43625
4
- data.tar.gz: 1a221c7aedb3641e3fa608f9fc00fc5b3a2cb2fc
3
+ metadata.gz: f6deaa0fa07f8d9993e756558e87d62d6b93e5e7
4
+ data.tar.gz: 5e31f30511642946a1695fe045c10044e0365bd6
5
5
  SHA512:
6
- metadata.gz: a979572424abc1a4697a212a04c8763bccbc7f8a8da84cee3d4192b30c41a2b488fd23b0bc9933bb5beaf810287320a9437ba2fd515def046584af9f8016952d
7
- data.tar.gz: 7f5d2d6568af9e5e4731e7c0e7bd9e8bb6881a168061d7ac2458b77cfd1a4efd7f74cc592f408299e01444e7e121070afcbed9f8c14bd948539ffdd9b4270f69
6
+ metadata.gz: 5aa32c5b0338dd14bfff763b5ccff9bc3c875f98a2caf161238ebf7be08a98dae7838bff460fa2529257d2818a2efbaa11fb1008b199fca2a5af5a74f4ac75ac
7
+ data.tar.gz: 30a36a931f44ef6f65014f31d46de52b6b900f1af8c4c0acbcc9d4469b62e396215416a1f1f9c42b0e1f6110b6b79c862cf7e6366ebfd522b252401734090fb6
@@ -8,7 +8,7 @@ module Rebuild
8
8
  end
9
9
 
10
10
  def install
11
- Script.execute_exp('homebrew')
11
+ Script.execute_sh('homebrew')
12
12
  end
13
13
  end
14
14
  end
@@ -13,6 +13,11 @@ module Rebuild
13
13
  `#{'sudo' if sudo} expect -f #{script_path}`
14
14
  end
15
15
 
16
+ def execute_sh(name)
17
+ script_path = File.join(script_dir, "#{name}.sh")
18
+ system('sh', script_path)
19
+ end
20
+
16
21
  private
17
22
 
18
23
  def script_dir
@@ -1,3 +1,3 @@
1
1
  module Rebuild
2
- VERSION = '0.3.0.pre3'
2
+ VERSION = '0.3.0.pre4'
3
3
  end
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env bash
2
+
3
+ install_url=https://raw.githubusercontent.com/Homebrew/install/master/install
4
+ temp_script=/tmp/brew_installer
5
+ curl -fsSL $install_url > $temp_script
6
+
7
+ expect -c '
8
+ set timeout -1
9
+ spawn ruby /tmp/brew_installer
10
+
11
+ expect {
12
+ "Press RETURN to continue or any other key to abort"
13
+ {
14
+ send "\r"
15
+ exp_continue
16
+ }
17
+ }
18
+ '
19
+
20
+ rm $temp_script
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.pre3
4
+ version: 0.3.0.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
@@ -82,7 +82,7 @@ files:
82
82
  - rebuild.gemspec
83
83
  - script/agree_license.exp
84
84
  - script/click_done.scpt
85
- - script/homebrew.exp
85
+ - script/homebrew.sh
86
86
  - script/start_install.scpt
87
87
  homepage: https://github.com/k0kubun/rebuild
88
88
  licenses:
data/script/homebrew.exp DELETED
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env expect -f
2
-
3
- set timeout -1
4
- spawn ruby -e "\"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\""
5
-
6
- expect {
7
- "Press RETURN to continue or any other key to abort"
8
- {
9
- send "\r"
10
- exp_continue
11
- }
12
- }