reset-sim 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/reset-sim +6 -10
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27098c4ccbd598b01cffe8c3e215f17d62af8b7e
4
- data.tar.gz: 2b9483db8a67d1eb2627fb540d478cad3dd5e9c9
3
+ metadata.gz: 1a71c670f340aebefd6d7113bca7e4c69ad064bf
4
+ data.tar.gz: a0dadebb8e03814c372186ea2e029c743e72b4a3
5
5
  SHA512:
6
- metadata.gz: 073e05f09bf7547e2e3e968c6f89c38807f8afbb75eec856aef9424fc582e4303079a679033c464117ded000506d2a2ea8c0ff21047d5366b5800eed0b35fd2c
7
- data.tar.gz: 0ca6b429904122e65703fe52195f294afc4aa6fc109cb5571967052b7d1c2153146957fdfee2f33fa1ec7e92e65a8f3fb64a48d1ba93cc6bb27ecd2207f2fdc2
6
+ metadata.gz: 7dc805d34bce66d9558f1bfcb3acfce84b6531f8f6efeeeabbdefab1254950b9b7203f3737c4c84413fc3bf4807c621c117e8dba99ce9ce110210f36f3c08210
7
+ data.tar.gz: 8742b20bbb2eff386d9dcb3a77978aa77d0fbeb4472aa515db0b4b2389610a9cd630fc31265ac5c7b6b747de7542cd2a491df01d8052d8e652806653156c7374
@@ -25,17 +25,13 @@ osascript <<-END
25
25
 
26
26
  if simulator_app_name is not equal to missing value
27
27
  tell application "System Events"
28
+ click menu item ¬
29
+ "Erase All Content and Settings…" of menu 1 of menu bar item ¬
30
+ "Hardware" of menu bar 1 of application process simulator_app_name
31
+ delay 0.5
28
32
  tell process simulator_app_name
29
- tell menu bar 1
30
- tell menu bar item simulator_app_name
31
- tell menu simulator_app_name
32
- click menu item "Reset Content and Settings…"
33
- end tell
34
- end tell
35
- end tell
36
- tell window 1
37
- click button "Reset"
38
- end tell
33
+ keystroke tab
34
+ keystroke return
39
35
  end tell
40
36
  end tell
41
37
  end if
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reset-sim
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rickert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-07 00:00:00.000000000 Z
11
+ date: 2019-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  version: '0'
62
62
  requirements: []
63
63
  rubyforge_project:
64
- rubygems_version: 2.2.0
64
+ rubygems_version: 2.5.2.3
65
65
  signing_key:
66
66
  specification_version: 4
67
67
  summary: Resets the iOS simulator