xcselect 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/xcselect +4 -2
- data/lib/xcselect/version.rb +1 -1
- data/lib/xcselect/xcode.rb +9 -1
- data/pkg/xcselect-0.0.7.gem +0 -0
- metadata +4 -3
data/bin/xcselect
CHANGED
@@ -73,8 +73,10 @@ class Main
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def open_xcode
|
76
|
-
|
77
|
-
|
76
|
+
# TODO: Add conditionall code to look for a project
|
77
|
+
# and if there isn't one then just open xcode
|
78
|
+
xcodepath = "#{Xcode.current_xcode_path}"
|
79
|
+
puts "Opening Xcode in #{xcodepath}"
|
78
80
|
`open -a #{xcodepath} *.xcodeproj`
|
79
81
|
end
|
80
82
|
|
data/lib/xcselect/version.rb
CHANGED
data/lib/xcselect/xcode.rb
CHANGED
@@ -44,7 +44,15 @@ class Xcode
|
|
44
44
|
def self.current_xcode
|
45
45
|
`xcode-select -print-path`.chomp
|
46
46
|
end
|
47
|
-
|
47
|
+
|
48
|
+
def self.current_xcode_path
|
49
|
+
path = self.current_xcode
|
50
|
+
if path =~ /(.*Xcode.app)/
|
51
|
+
path = $1
|
52
|
+
end
|
53
|
+
return path
|
54
|
+
end
|
55
|
+
|
48
56
|
def eql?(o)
|
49
57
|
return false if o.nil?
|
50
58
|
return (o.folder == folder && o.version == version && o.build == build)
|
Binary file
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 8
|
9
|
+
version: 0.0.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kim Hunter
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-12-
|
17
|
+
date: 2011-12-15 00:00:00 +10:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- pkg/xcselect-0.0.4.gem
|
42
42
|
- pkg/xcselect-0.0.5.gem
|
43
43
|
- pkg/xcselect-0.0.6.gem
|
44
|
+
- pkg/xcselect-0.0.7.gem
|
44
45
|
- xcselect.gemspec
|
45
46
|
has_rdoc: true
|
46
47
|
homepage: ""
|