israkel 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/israkel.gemspec +3 -3
- data/lib/israkel/tasks.rb +10 -6
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.1
|
data/israkel.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "israkel"
|
|
8
|
-
s.version = "0.4.
|
|
8
|
+
s.version = "0.4.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Johannes Plunien", "Stefan Munz"]
|
|
12
|
-
s.date = "2013-
|
|
12
|
+
s.date = "2013-11-11"
|
|
13
13
|
s.description = "Collection of common rake tasks for the iPhone Simulator like start/stop and some more."
|
|
14
14
|
s.email = ["johannes.plunien@xing.com", "stefan.munz@xing.com"]
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
|
28
28
|
s.homepage = "http://github.com/xing/israkel"
|
|
29
29
|
s.licenses = ["MIT"]
|
|
30
30
|
s.require_paths = ["lib"]
|
|
31
|
-
s.rubygems_version = "1.8.
|
|
31
|
+
s.rubygems_version = "1.8.25"
|
|
32
32
|
s.summary = "Collection of common rake tasks for the iPhone Simulator."
|
|
33
33
|
|
|
34
34
|
if s.respond_to? :specification_version then
|
data/lib/israkel/tasks.rb
CHANGED
|
@@ -78,11 +78,15 @@ module ISRakel
|
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
def simulator_support_path
|
|
81
|
-
@simulator_support_path ||= File.join(
|
|
81
|
+
@simulator_support_path ||= File.join(simulator_root_path, sdk_version)
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
private
|
|
85
85
|
|
|
86
|
+
def simulator_root_path
|
|
87
|
+
File.join(ENV['HOME'], 'Library', 'Application Support', 'iPhone Simulator')
|
|
88
|
+
end
|
|
89
|
+
|
|
86
90
|
def edit_file(file)
|
|
87
91
|
content = {}
|
|
88
92
|
if File.exists?(file)
|
|
@@ -107,6 +111,7 @@ module ISRakel
|
|
|
107
111
|
desc "Reset content and settings of the iPhone Simulator"
|
|
108
112
|
task "#{name}:reset" do
|
|
109
113
|
rm_rf File.join(simulator_support_path)
|
|
114
|
+
mkdir File.join(simulator_support_path)
|
|
110
115
|
end
|
|
111
116
|
end
|
|
112
117
|
|
|
@@ -152,10 +157,9 @@ module ISRakel
|
|
|
152
157
|
JSON.parse( IO.popen(['plutil', '-convert', 'json', '-o', '-', path]) {|f| f.read} )
|
|
153
158
|
end
|
|
154
159
|
|
|
155
|
-
def
|
|
156
|
-
versions =
|
|
157
|
-
versions.
|
|
158
|
-
versions
|
|
160
|
+
def simulator_versions
|
|
161
|
+
versions = Dir.entries(simulator_root_path).reject {|e| File.directory?(e)}
|
|
162
|
+
versions.select { |sim_path| sim_path != 'User' }
|
|
159
163
|
end
|
|
160
164
|
|
|
161
165
|
def select_sdk_version
|
|
@@ -163,7 +167,7 @@ module ISRakel
|
|
|
163
167
|
return result unless result.nil?
|
|
164
168
|
choose do |menu|
|
|
165
169
|
menu.prompt = "Please select an SDK version"
|
|
166
|
-
menu.choices(*
|
|
170
|
+
menu.choices(*simulator_versions) do |version|
|
|
167
171
|
result = version
|
|
168
172
|
end
|
|
169
173
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: israkel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2013-
|
|
13
|
+
date: 2013-11-11 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: highline
|
|
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
125
125
|
version: '0'
|
|
126
126
|
segments:
|
|
127
127
|
- 0
|
|
128
|
-
hash:
|
|
128
|
+
hash: 3451152842798725739
|
|
129
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
none: false
|
|
131
131
|
requirements:
|
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
134
134
|
version: '0'
|
|
135
135
|
requirements: []
|
|
136
136
|
rubyforge_project:
|
|
137
|
-
rubygems_version: 1.8.
|
|
137
|
+
rubygems_version: 1.8.25
|
|
138
138
|
signing_key:
|
|
139
139
|
specification_version: 3
|
|
140
140
|
summary: Collection of common rake tasks for the iPhone Simulator.
|