reset-sim 1.2.0 → 1.3.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 +1 -36
  3. metadata +4 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a71c670f340aebefd6d7113bca7e4c69ad064bf
4
- data.tar.gz: a0dadebb8e03814c372186ea2e029c743e72b4a3
3
+ metadata.gz: d5cb0c77b9b87ee0b36c616c245cdd06cc208df2
4
+ data.tar.gz: e831e81b8ec63b8dd956ca40233013b50bba6985
5
5
  SHA512:
6
- metadata.gz: 7dc805d34bce66d9558f1bfcb3acfce84b6531f8f6efeeeabbdefab1254950b9b7203f3737c4c84413fc3bf4807c621c117e8dba99ce9ce110210f36f3c08210
7
- data.tar.gz: 8742b20bbb2eff386d9dcb3a77978aa77d0fbeb4472aa515db0b4b2389610a9cd630fc31265ac5c7b6b747de7542cd2a491df01d8052d8e652806653156c7374
6
+ metadata.gz: c6b772c6696f90f6fc2e5450fe4ac6a43c1f98de6740895f36e363fd2382af3baa6518bb6e2abb019c84974a7e86bb01703775ea72326ce093f53d19e7d4a871
7
+ data.tar.gz: d39df88ab7dd6bac75aee974450ebb8f027b66f290a1def11ec153afdb2e27dd98c8133f1c7b6ed072ee7d283c588efca0dc0e434d37cfa1f84c1cf131662e0c
@@ -1,38 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- def osascript(script)
4
- system 'osascript', *script.split(/\n/).map { |line| ['-e', line] }.flatten
5
- end
6
-
7
- osascript <<-END
8
-
9
- -- assume most people are on xcode7 or greater
10
- -- so try that first
11
- set simulator_app_name to missing value
12
- try
13
- tell application "Simulator" to activate
14
- set simulator_app_name to "Simulator"
15
- on error number -1728
16
- log "Trying legacy iOS Simulator application..."
17
- try
18
- tell application "iOS Simulator" to activate
19
- set simulator_app_name to "iOS Simulator"
20
- on error number -1728
21
- log "No Simulator application installed"
22
- end try
23
- end try
24
-
25
-
26
- if simulator_app_name is not equal to missing value
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
32
- tell process simulator_app_name
33
- keystroke tab
34
- keystroke return
35
- end tell
36
- end tell
37
- end if
38
- END
3
+ system 'killall "Simulator" 2> /dev/null && xcrun simctl erase all'
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.2.0
4
+ version: 1.3.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: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -33,19 +33,11 @@ extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
35
  - bin/reset-sim
36
- homepage: ''
36
+ homepage: https://github.com/OTGApps/reset-sim
37
37
  licenses:
38
38
  - MIT
39
39
  metadata: {}
40
- post_install_message: |2+
41
-
42
- ********* IMPORTANT *********
43
- In order to work properly you must add your terminal application in
44
- System Preferences -> Privacy -> Accessibility options.
45
-
46
- Then run: reset-sim
47
- *****************************
48
-
40
+ post_install_message:
49
41
  rdoc_options: []
50
42
  require_paths:
51
43
  - lib