xcselect 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/xcsim +10 -2
- data/lib/xcselect/version.rb +1 -1
- data/lib/xcselect/xcapp.rb +1 -1
- metadata +3 -3
data/bin/xcsim
CHANGED
@@ -51,7 +51,12 @@ class Main
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def run
|
54
|
-
|
54
|
+
begin
|
55
|
+
send(command || :show_apps)
|
56
|
+
rescue Exception => e
|
57
|
+
puts e
|
58
|
+
exit 4
|
59
|
+
end
|
55
60
|
end
|
56
61
|
|
57
62
|
|
@@ -115,11 +120,13 @@ class Main
|
|
115
120
|
|
116
121
|
def show_latest_cache
|
117
122
|
app = XcApp.last_built_app
|
123
|
+
raise "No sim folder" if app.nil?
|
118
124
|
open_path app.cache_path
|
119
125
|
end
|
120
126
|
|
121
127
|
def show_latest_docs
|
122
128
|
app = XcApp.last_built_app
|
129
|
+
raise "No sim folder" if app.nil?
|
123
130
|
open_path app.documents_path
|
124
131
|
end
|
125
132
|
|
@@ -132,7 +139,8 @@ class Main
|
|
132
139
|
return @exit_code = 1 if apps.size == 0
|
133
140
|
if apps.size == 1
|
134
141
|
puts "opening only app #{apps}" unless @options[:print]
|
135
|
-
open_path
|
142
|
+
open_path apps.last.base_dir
|
143
|
+
return
|
136
144
|
end
|
137
145
|
|
138
146
|
last_app = XcApp.sort_by_touch_time(apps).last
|
data/lib/xcselect/version.rb
CHANGED
data/lib/xcselect/xcapp.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcselect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-05 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A more user friendly interface to the xcode-select command showing more
|
15
15
|
info, xcsim - access the simulator application folders quickly
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
version: '0'
|
58
58
|
requirements: []
|
59
59
|
rubyforge_project: xcselect
|
60
|
-
rubygems_version: 1.8.
|
60
|
+
rubygems_version: 1.8.23
|
61
61
|
signing_key:
|
62
62
|
specification_version: 3
|
63
63
|
summary: xcselect - Xcode Select
|