iCuke 0.5.4 → 0.5.5
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/README.rdoc +2 -4
- data/VERSION +1 -1
- data/iCuke.gemspec +2 -2
- data/lib/icuke/com.apple.Accessibility.plist +0 -0
- data/lib/icuke/xcode.rb +28 -0
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -30,13 +30,10 @@ to function sensibly. If your accessibility information is not accurate, iCuke m
|
|
30
30
|
|
31
31
|
== Bugs
|
32
32
|
|
33
|
-
iCuke does not currently automate enabling the Accessibility Inspecter, which is required to be running for iCuke to
|
34
|
-
function. I am still deciding how best to achieve this is in a reliable fashion.
|
35
|
-
|
36
33
|
iCuke does not support testing applications on real devices, because I don't know of a way get a preload library to load
|
37
34
|
on the device.
|
38
35
|
|
39
|
-
iCuke does not support drags
|
36
|
+
iCuke does not support drags or pinches yet. They'll be here soon!
|
40
37
|
|
41
38
|
iCuke compiles against the 3.1.2 SDK. I'm not sure how to make that configurable as the compilation is done at gem
|
42
39
|
install time.
|
@@ -53,6 +50,7 @@ Thanks go to the people who's work iCuke is based on:
|
|
53
50
|
|
54
51
|
* Matt Gallagher
|
55
52
|
* Ian Dees
|
53
|
+
* Felipe Barreto
|
56
54
|
|
57
55
|
== Note on Patches/Pull Requests
|
58
56
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.5
|
data/iCuke.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{iCuke}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Rob Holland"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-06-02}
|
13
13
|
s.description = %q{Cucumber support for iPhone applications}
|
14
14
|
s.email = %q{rob@the-it-refinery.co.uk}
|
15
15
|
s.extensions = ["ext/iCuke/Rakefile"]
|
Binary file
|
data/lib/icuke/xcode.rb
CHANGED
@@ -101,6 +101,8 @@ module ICuke
|
|
101
101
|
settings[:active_target] = project.targets[options[:target]]
|
102
102
|
end
|
103
103
|
|
104
|
+
set_preferences
|
105
|
+
|
104
106
|
XCode.with_settings(project, settings) do
|
105
107
|
executable = project.active_executable.get
|
106
108
|
options[:env].each_pair do |name, value|
|
@@ -131,6 +133,32 @@ module ICuke
|
|
131
133
|
|
132
134
|
def quit
|
133
135
|
IPhoneSimulator.quit
|
136
|
+
restore_preferences
|
137
|
+
end
|
138
|
+
|
139
|
+
private
|
140
|
+
|
141
|
+
def accessibility_plist
|
142
|
+
File.expand_path(File.join('~', 'Library', 'Application Support', 'iPhone Simulator', '3.1.2', 'Library', 'Preferences', 'com.apple.Accessibility.plist'))
|
143
|
+
end
|
144
|
+
|
145
|
+
def accessibility_plist_backup
|
146
|
+
accessibility_plist + '.icuke'
|
147
|
+
end
|
148
|
+
|
149
|
+
def restore_preferences
|
150
|
+
if File.exists? accessibility_plist_backup
|
151
|
+
FileUtils.mv accessibility_plist_backup, accessibility_plist
|
152
|
+
else
|
153
|
+
FileUtils.rm accessibility_plist
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
def set_preferences
|
158
|
+
if File.exists? accessibility_plist
|
159
|
+
FileUtils.mv accessibility_plist, accessibility_plist_backup
|
160
|
+
end
|
161
|
+
FileUtils.cp File.join(File.dirname(__FILE__), 'com.apple.Accessibility.plist'), accessibility_plist
|
134
162
|
end
|
135
163
|
end
|
136
164
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 5
|
9
|
+
version: 0.5.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Rob Holland
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-06-02 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|