rebuild 0.0.4.pre5 → 0.0.4.pre6

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: 2a63eb0712f9f802c8a573ff7c1b89f175e124ee
4
- data.tar.gz: b23aa7f2b47ede6108056bc53d9ac0a808724e75
3
+ metadata.gz: 43ff4a73ea5bb5d2bc52cef08af5f8a09cfb2182
4
+ data.tar.gz: f42995ede3d8902718f8fc0d24190e1b26804517
5
5
  SHA512:
6
- metadata.gz: c3d7c71894d7dd0cf59cbed96687cb68344225a19489a1b4f903b17aad3e432271851573ed7394fda39931a351b63ca72cab9ab3022d119deed6195f726a17b2
7
- data.tar.gz: 2c4c02c49354f1a9a89ccbc99097bd754d94ebb9ead6c44e60c4a8fa50453af8bef7a13136e01e2962d2f4eb525a420196e0027fc19114dbc5cebd1a111c706f
6
+ metadata.gz: 06cd96ac694d6629fd491fb3d802b472f980066e6d9152c256d6e6e4a0e4174907018c2f039739aabda077f4df937cd965b91a73f7703edb6a4de3439f21bae4
7
+ data.tar.gz: bd3f79a7be4662e8800d986f9530129afe218382d66897b9350f16fe0af4a7f025dfdf16d9a644e38643131e64666d7c5352d7c48c3cf1be00dfa045d3839b14
@@ -1,3 +1,3 @@
1
1
  module Rebuild
2
- VERSION = '0.0.4.pre5'
2
+ VERSION = '0.0.4.pre6'
3
3
  end
@@ -1,9 +1,23 @@
1
1
  #!/usr/bin/env osascript
2
2
 
3
3
  -- Fist: Click Install Button
4
- delay 0.4
5
- tell application "System Events"
6
- set installer to application process "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
4
+ set timeoutSeconds to 8.0
5
+
6
+ my doWithTimeout("click UI Element \"Install\" of window 1 of application process \"Install Command Line Developer Toold\"", timeoutSeconds)
7
+ my doWithTimeout("click UI Element \"Agree\" of window 1 of application process \"Install Command Line Developer Toold\"", timeoutSeconds)
8
+
9
+ on doWithTimeout(uiScript, timeoutSeconds)
10
+ set endDate to (current date) + timeoutSeconds
11
+ repeat
12
+ try
13
+ run script "tell application \"System Events\"
14
+ " & uiScript & "
15
+ end tell"
16
+ exit repeat
17
+ on error errorMessage
18
+ if ((current date) > endDate) then
19
+ error "Can not " & uiScript
20
+ end if
21
+ end try
22
+ end repeat
23
+ end doWithTimeout
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.pre5
4
+ version: 0.0.4.pre6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun