reset-sim 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/reset-sim +26 -0
- metadata +68 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5958a5bbf0ed4f3f944fa35e22e4b73487d28196
|
4
|
+
data.tar.gz: 55ad513e8303021b30ec1b7eb639d1c908e24f18
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4e78048714d14fc43542fa326414b6a2723755a09a1ed56063f1a897c73d8d102a04459c74950304240e357e34aaa7e59bb4c04f03ec5503b680fd2eb58a49f0
|
7
|
+
data.tar.gz: 620ee2535a4b7c333da81cdff3b6fc08298d455aa698e826b4a9b478270823412b5e9fb28d47a15575d1d566e8f094b0c1dc3ec7d0b11e8f6fbc1e0eef113ae7
|
data/bin/reset-sim
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
def osascript(script)
|
4
|
+
system 'osascript', *script.split(/\n/).map { |line| ['-e', line] }.flatten
|
5
|
+
end
|
6
|
+
|
7
|
+
osascript <<-END
|
8
|
+
tell application "iOS Simulator"
|
9
|
+
activate
|
10
|
+
end tell
|
11
|
+
|
12
|
+
tell application "System Events"
|
13
|
+
tell process "iOS Simulator"
|
14
|
+
tell menu bar 1
|
15
|
+
tell menu bar item "iOS Simulator"
|
16
|
+
tell menu "iOS Simulator"
|
17
|
+
click menu item "Reset Content and Settings…"
|
18
|
+
end tell
|
19
|
+
end tell
|
20
|
+
end tell
|
21
|
+
tell window 1
|
22
|
+
click button "Reset"
|
23
|
+
end tell
|
24
|
+
end tell
|
25
|
+
end tell
|
26
|
+
END
|
metadata
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: reset-sim
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.0'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mark Rickert
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-10-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: Adds a command to terminal that lets you easily reset the iOS Simulator
|
28
|
+
email:
|
29
|
+
- mjar81@gmail.com
|
30
|
+
executables:
|
31
|
+
- reset-sim
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- bin/reset-sim
|
36
|
+
homepage: ''
|
37
|
+
licenses:
|
38
|
+
- MIT
|
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 -> Accessability options.
|
45
|
+
|
46
|
+
Then run: reset-sim
|
47
|
+
*****************************
|
48
|
+
|
49
|
+
rdoc_options: []
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
requirements: []
|
63
|
+
rubyforge_project:
|
64
|
+
rubygems_version: 2.3.0
|
65
|
+
signing_key:
|
66
|
+
specification_version: 4
|
67
|
+
summary: Resets the iOS simulator
|
68
|
+
test_files: []
|