rebuild 0.0.4.pre3 → 0.0.4.pre4

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: 0d22ea5452ac09acb910e54205ce3670452e7170
4
- data.tar.gz: de8c34d8fe6a86876f56064f4f283f0b1e1e825d
3
+ metadata.gz: 252205f7757278bc35d1a30b4eb006f1b2f7960c
4
+ data.tar.gz: 961cbda444f2effbbf79d7cfad38a7da0591bd56
5
5
  SHA512:
6
- metadata.gz: 15e54d2d3c7ee8140c8e1d448747c615787121c02df6bc71aa6f953c66bdf1d24a6fb7b39c11d6b0e7a863f36e397f99913cadcdc2a4a1fd90ecb12568a1661f
7
- data.tar.gz: 401835de0f265f38c3efe0a5322a4ff166e554cbf9bbbb3a857296d761118ec4f2b52372aa09c7cfba265fc747f84798a8d49e2a46b0d1700bf202628d3eacf9
6
+ metadata.gz: db4867577ef9dfc494e20101ddd0e29f8086f2f31e5f8ef8023f4dc20f6f689a8d8a5802e371f374d41733c99b2d1671b6ee63c21a327353f48c6864dac8cf9a
7
+ data.tar.gz: ef1c983276fcb8787a549a3b22df9a33085c949bbf6c628c33c4b8f97eab85109f161003bad896b7b41fbb0ed290bc6ee76120694609bbe8608f53e326b6040d
@@ -15,8 +15,7 @@ module Rebuild
15
15
  obtain_accesibility
16
16
 
17
17
  `xcode-select --install`
18
- execute_scpt('click_install')
19
- execute_scpt('click_agree')
18
+ execute_scpt('start_install')
20
19
 
21
20
  sleep 5 until installed?
22
21
  execute_scpt('click_finish')
@@ -1,3 +1,3 @@
1
1
  module Rebuild
2
- VERSION = '0.0.4.pre3'
2
+ VERSION = '0.0.4.pre4'
3
3
  end
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env osascript
2
+
3
+ -- Fist: Click Install Button
4
+ delay 0.4
5
+ tell application "System Events"
6
+ set installer to "Install Command Line Developer Tools"
7
+ click UI Element "Install" of window 1 of installer
8
+ click UI Element "Agree" of window 1 of installer
9
+ end tell
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.0.4.pre3
4
+ version: 0.0.4.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
@@ -73,9 +73,8 @@ files:
73
73
  - lib/rebuild/runner.rb
74
74
  - lib/rebuild/version.rb
75
75
  - rebuild.gemspec
76
- - script/click_agree.scpt
77
76
  - script/click_finish.scpt
78
- - script/click_install.scpt
77
+ - script/start_install.scpt
79
78
  homepage: https://github.com/k0kubun/rebuild
80
79
  licenses:
81
80
  - MIT
@@ -1,22 +0,0 @@
1
- #!/usr/bin/env osascript
2
-
3
- -- Second: Click Agree Button
4
- set timeoutSeconds to 2.0
5
- set uiScript to "click UI Element 3 of window 1 of application process \"Install Command Line Developer Tools\""
6
- my doWithTimeout(uiScript, timeoutSeconds)
7
-
8
- on doWithTimeout(uiScript, timeoutSeconds)
9
- set endDate to (current date) + timeoutSeconds
10
- repeat
11
- try
12
- run script "tell application \"System Events\"
13
- " & uiScript & "
14
- end tell"
15
- exit repeat
16
- on error errorMessage
17
- if ((current date) > endDate) then
18
- error "Can not " & uiScript
19
- end if
20
- end try
21
- end repeat
22
- end doWithTimeout
@@ -1,22 +0,0 @@
1
- #!/usr/bin/env osascript
2
-
3
- -- Fist: Click Install Button
4
- set timeoutSeconds to 1.0
5
- set uiScript to "click UI Element 4 of window 1 of application process \"Install Command Line Developer Tools\""
6
- my doWithTimeout(uiScript, timeoutSeconds)
7
-
8
- on doWithTimeout(uiScript, timeoutSeconds)
9
- set endDate to (current date) + timeoutSeconds
10
- repeat
11
- try
12
- run script "tell application \"System Events\"
13
- " & uiScript & "
14
- end tell"
15
- exit repeat
16
- on error errorMessage
17
- if ((current date) > endDate) then
18
- error "Can not " & uiScript
19
- end if
20
- end try
21
- end repeat
22
- end doWithTimeout