iCuke 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.2
1
+ 0.6.3
data/bin/icuke CHANGED
@@ -7,4 +7,21 @@ FileUtils.mkdir_p(File.join(base, 'features', 'support'))
7
7
  File.open(File.join(base, 'features', 'support', 'env.rb'), 'w') do |f|
8
8
  f.puts "require 'icuke/cucumber'"
9
9
  end
10
- FileUtils.touch File.join(base, 'features', 'example.feature')
10
+ File.open(File.join(base, 'features', 'example.feature'), 'w') do |f|
11
+ f.puts <<-EOS
12
+ Feature: User posts to their blog
13
+ In order post to my blog while I'm travelling
14
+ As an author
15
+ I want to publish posts from my iPhone
16
+
17
+ Background:
18
+ Given "bloggie.xcodeproj" is loaded in the iphone simulator
19
+
20
+ Scenario:
21
+ When I tap "New post"
22
+ And I type "My post" in "Title"
23
+ And I type "Interesting things" in "Body"
24
+ And I tap "Post"
25
+ Then I should see "Published"
26
+ EOS
27
+ end
Binary file
@@ -1,6 +1,6 @@
1
- c176db95c5a76192103390d6a795bbe7 970d686c86bdc0e0b3f0cc6b72213344 ffffffffffffffffffffffffffffffff 28100 /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/Simulator.o
2
- c176db95c8605cc3103390d6a795cc68 cc19f46b2e7fd40ced2d0831c9d78817 ffffffffffffffffffffffffffffffff 19072 /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/WaxSim.o
3
1
  00000000000000000000000000000000 c8b17f1f5c9277b7907f092e4dbdfd22 ffffffffffffffffffffffffffffffff 102 /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release/waxsim.dSYM
2
+ 5b149c07a2e0ec895eddc45abb628cff 0a3e6a01a1db808cfc4e20de2d340754 ffffffffffffffffffffffffffffffff 21840 /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
3
+ c176db95c5a711f1103390d6a795bb9a 970d686c86bdc0e0b3f0cc6b72213344 ffffffffffffffffffffffffffffffff 26920 /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/Simulator.o
4
+ c176db95c8605cc3103390d6a795cc68 cc19f46b2e7fd40ced2d0831c9d78817 ffffffffffffffffffffffffffffffff 19072 /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/WaxSim.o
4
5
  00000000000000000000000000000000 d4059fbf4aa08ceacdcd10740e75c699 ffffffffffffffffffffffffffffffff 75 /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release/waxsim
5
- 5b149c07a58245f95eddc45abb628c82 0a3e6a01a1db808cfc4e20de2d340754 ffffffffffffffffffffffffffffffff 19000 /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
6
6
  0000000007b46121000000000000137c c176db958e37cdda103390d6a795c1e2 ffffffffffffffffffffffffffffffff 40065808 /var/folders/Yk/YkurC7QxFT4n39uHQOrQJk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/WaxSim_Prefix-djbfkgtkzikglngrtbfktvvqssbi/WaxSim_Prefix.pch.gch
@@ -1,7 +1,7 @@
1
1
  TWaxSim
2
2
  v7
3
3
  r0
4
- t299169328.106032
4
+ t299857633.129210
5
5
  cCheck dependencies
6
6
  cSymLink /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release/waxsim /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
7
7
  cProcessPCH /var/folders/Yk/YkurC7QxFT4n39uHQOrQJk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/WaxSim_Prefix-djbfkgtkzikglngrtbfktvvqssbi/WaxSim_Prefix.pch.gch WaxSim_Prefix.pch normal x86_64 objective-c com.apple.compilers.gcc.4_2
@@ -59,13 +59,13 @@ t1254464641
59
59
  s1236
60
60
 
61
61
  N/System/Library/Frameworks/Foundation.framework/Foundation
62
- c000000004B73AA190000000000B37440
63
- t1265871385
62
+ c000000004C11730A0000000000B37440
63
+ t1276211978
64
64
  s11760704
65
65
 
66
66
  N/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
67
- t1277473092
68
- s19000
67
+ t1278164833
68
+ s21840
69
69
 
70
70
  N/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/Simulator.h
71
71
  c000000004C249A9600000000000002E6
@@ -75,9 +75,9 @@ i<Cocoa/Cocoa.h>
75
75
  i"iPhoneSimulatorRemoteClient.h"
76
76
 
77
77
  N/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/Simulator.m
78
- c000000004C24B13E0000000000001047
79
- t1277473086
80
- s4167
78
+ c000000004C24C15D000000000000103A
79
+ t1277477213
80
+ s4154
81
81
  i"Simulator.h"
82
82
  i<sys/param.h>
83
83
  i<objc/runtime.h>
@@ -102,12 +102,12 @@ t3
102
102
  s75
103
103
 
104
104
  N/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release/waxsim.dSYM
105
- t1277473092
105
+ t1278164833
106
106
  s102
107
107
 
108
108
  N/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/Simulator.o
109
- t1277473092
110
- s28100
109
+ t1278164831
110
+ s26920
111
111
 
112
112
  N/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/WaxSim.o
113
113
  t1277470209
@@ -130,11 +130,11 @@ s40065808
130
130
 
131
131
  CCheck dependencies
132
132
  r0
133
- lSLF07#2@18"Check dependencies299169327#299169328#0(0"0(0#1#0"5279993715474060288#0"0#
133
+ lSLF07#2@18"Check dependencies299857625#299857627#0(0"0(0#1#0"5279993715474060288#0"0#
134
134
 
135
135
  CCompileC build/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/Simulator.o /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/Simulator.m normal x86_64 objective-c com.apple.compilers.gcc.4_2
136
- s299165890.200359
137
- e299165892.589553
136
+ s299857627.584513
137
+ e299857631.722215
138
138
  r1
139
139
  xCompileC
140
140
  xbuild/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/Simulator.o
@@ -143,7 +143,7 @@ xnormal
143
143
  xx86_64
144
144
  xobjective-c
145
145
  xcom.apple.compilers.gcc.4_2
146
- lSLF07#2@74"Compile /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/Simulator.m299165890#299165892#0(0"0(0#0#66"/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/Simulator.m3401403401131030528#1746" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
147
146
  setenv LANG en_US.US-ASCII
148
147
  /Developer/usr/bin/gcc-4.2 -x objective-c -arch x86_64 -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.6.sdk -fobjc-gc -fvisibility=hidden -mmacosx-version-min=10.6 -gdwarf-2 -iquote /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-generated-files.hmap -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-own-target-headers.hmap -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-all-target-headers.hmap -iquote /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-project-headers.hmap -F/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release -F/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release/include -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/DerivedSources/x86_64 -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/DerivedSources -include /var/folders/Yk/YkurC7QxFT4n39uHQOrQJk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/WaxSim_Prefix-djbfkgtkzikglngrtbfktvvqssbi/WaxSim_Prefix.pch -c /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/Simulator.m -o /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/Simulator.o
148
+ lSLF07#2@74"Compile /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/Simulator.m299857627#299857631#0(0"0(0#0#66"/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/Simulator.m3401403401131030528#1746" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
149
149
  setenv LANG en_US.US-ASCII
150
150
  /Developer/usr/bin/gcc-4.2 -x objective-c -arch x86_64 -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.6.sdk -fobjc-gc -fvisibility=hidden -mmacosx-version-min=10.6 -gdwarf-2 -iquote /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-generated-files.hmap -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-own-target-headers.hmap -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-all-target-headers.hmap -iquote /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-project-headers.hmap -F/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release -F/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release/include -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/DerivedSources/x86_64 -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/DerivedSources -include /var/folders/Yk/YkurC7QxFT4n39uHQOrQJk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/WaxSim_Prefix-djbfkgtkzikglngrtbfktvvqssbi/WaxSim_Prefix.pch -c /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/Simulator.m -o /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/Simulator.o
151
151
 
152
152
  CCompileC build/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/WaxSim.o /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/WaxSim.m normal x86_64 objective-c com.apple.compilers.gcc.4_2
153
153
  s299163009.578672
@@ -159,23 +159,23 @@ xcom.apple.compilers.gcc.4_2
159
159
  lSLF07#2@71"Compile /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/WaxSim.m299163009#299163009#0(0"0(0#0#63"/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/WaxSim.m4644611584#1740" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
160
160
  setenv LANG en_US.US-ASCII
161
161
  /Developer/usr/bin/gcc-4.2 -x objective-c -arch x86_64 -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.6.sdk -fobjc-gc -fvisibility=hidden -mmacosx-version-min=10.6 -gdwarf-2 -iquote /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-generated-files.hmap -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-own-target-headers.hmap -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-all-target-headers.hmap -iquote /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-project-headers.hmap -F/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release -F/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release/include -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/DerivedSources/x86_64 -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/DerivedSources -include /var/folders/Yk/YkurC7QxFT4n39uHQOrQJk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/WaxSim_Prefix-djbfkgtkzikglngrtbfktvvqssbi/WaxSim_Prefix.pch -c /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/WaxSim.m -o /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/WaxSim.o
162
162
 
163
163
  CGenerateDSYMFile /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release/waxsim.dSYM /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
164
- s299165892.873408
165
- e299165892.882794
164
+ s299857633.019353
165
+ e299857633.055581
166
166
  r1
167
167
  xGenerateDSYMFile
168
168
  x/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release/waxsim.dSYM
169
169
  x/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
170
- lSLF07#2@63"GenerateDSYMFile build/Release/waxsim.dSYM ../../ext/bin/waxsim299165892#299165892#0(0"0(0#0#75"/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim4644979824#254" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
171
170
  /Developer/usr/bin/dsymutil /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim -o /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release/waxsim.dSYM
171
+ lSLF07#2@63"GenerateDSYMFile build/Release/waxsim.dSYM ../../ext/bin/waxsim299857633#299857633#0(0"0(0#0#75"/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim4645017728#254" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
172
172
  /Developer/usr/bin/dsymutil /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim -o /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release/waxsim.dSYM
173
173
 
174
174
  CLd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim normal x86_64
175
- s299165892.590548
176
- e299165892.873020
175
+ s299857631.722533
176
+ e299857633.019163
177
177
  r1
178
178
  xLd
179
179
  x/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
180
180
  xnormal
181
181
  xx86_64
182
- lSLF07#2@80"Link /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim299165892#299165892#0(0"0(0#0#0"4646552800#852" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
183
182
  setenv MACOSX_DEPLOYMENT_TARGET 10.6
184
183
  /Developer/usr/bin/gcc-4.2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release -F/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release -F/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks -filelist /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/waxsim.LinkFileList -Xlinker -rpath -Xlinker /Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks -mmacosx-version-min=10.6 -framework Foundation -framework AppKit -framework iPhoneSimulatorRemoteClient -o /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
184
+ lSLF07#2@80"Link /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim299857631#299857633#0(0"0(0#0#0"4371397632#852" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
185
185
  setenv MACOSX_DEPLOYMENT_TARGET 10.6
186
186
  /Developer/usr/bin/gcc-4.2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release -F/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release -F/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks -filelist /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/Objects-normal/x86_64/waxsim.LinkFileList -Xlinker -rpath -Xlinker /Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks -mmacosx-version-min=10.6 -framework Foundation -framework AppKit -framework iPhoneSimulatorRemoteClient -o /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
187
187
 
188
188
  CProcessPCH /var/folders/Yk/YkurC7QxFT4n39uHQOrQJk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/WaxSim_Prefix-djbfkgtkzikglngrtbfktvvqssbi/WaxSim_Prefix.pch.gch WaxSim_Prefix.pch normal x86_64 objective-c com.apple.compilers.gcc.4_2
189
189
  s299163007.121907
@@ -191,30 +191,30 @@ xcom.apple.compilers.gcc.4_2
191
191
  lSLF07#2@28"Precompile WaxSim_Prefix.pch299163007#299163009#0(0"0(0#0#72"/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/WaxSim_Prefix.pch4644678752#1625" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
192
192
  setenv LANG en_US.US-ASCII
193
193
  /Developer/usr/bin/gcc-4.2 -x objective-c-header -arch x86_64 -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.6.sdk -fobjc-gc -fvisibility=hidden -mmacosx-version-min=10.6 -gdwarf-2 -iquote /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-generated-files.hmap -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-own-target-headers.hmap -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-all-target-headers.hmap -iquote /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/waxsim-project-headers.hmap -F/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release -F/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release/include -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/DerivedSources/x86_64 -I/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/WaxSim.build/Release/WaxSim.build/DerivedSources -c /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/WaxSim_Prefix.pch -o /var/folders/Yk/YkurC7QxFT4n39uHQOrQJk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/WaxSim_Prefix-djbfkgtkzikglngrtbfktvvqssbi/WaxSim_Prefix.pch.gch
194
194
 
195
195
  CSetMode u+w,go-w,a+rX /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
196
- s299169328.102763
197
- e299169328.105913
196
+ s299857633.119678
197
+ e299857633.129096
198
198
  r1
199
199
  xSetMode
200
200
  xu+w,go-w,a+rX
201
201
  x/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
202
- lSLF07#2@42"SetMode u+w,go-w,a+rX ../../ext/bin/waxsim299169328#299169328#0(0"0(0#0#75"/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim4646474080#171" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
203
202
  /bin/chmod -RH u+w,go-w,a+rX /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
203
+ lSLF07#2@42"SetMode u+w,go-w,a+rX ../../ext/bin/waxsim299857633#299857633#0(0"0(0#0#75"/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim4371341184#171" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
204
204
  /bin/chmod -RH u+w,go-w,a+rX /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
205
205
 
206
206
  CSetOwnerAndGroup robholland:staff /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
207
- s299169328.096747
208
- e299169328.102557
207
+ s299857633.090237
208
+ e299857633.119474
209
209
  r1
210
210
  xSetOwnerAndGroup
211
211
  xrobholland:staff
212
212
  x/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
213
- lSLF07#2@54"SetOwnerAndGroup robholland:staff ../../ext/bin/waxsim299169328#299169328#0(0"0(0#0#75"/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim28429264708632676#179" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
214
213
  /usr/sbin/chown -RH robholland:staff /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
214
+ lSLF07#2@54"SetOwnerAndGroup robholland:staff ../../ext/bin/waxsim299857633#299857633#0(0"0(0#0#75"/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim4371131632#179" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
215
215
  /usr/sbin/chown -RH robholland:staff /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
216
216
 
217
217
  CStrip /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
218
- s299165892.882964
219
- e299165892.886695
218
+ s299857633.055740
219
+ e299857633.090092
220
220
  r1
221
221
  xStrip
222
222
  x/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
223
- lSLF07#2@26"Strip ../../ext/bin/waxsim299165892#299165892#0(0"0(0#0#75"/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim4641841632#167" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
224
223
  /Developer/usr/bin/strip /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
224
+ lSLF07#2@26"Strip ../../ext/bin/waxsim299857633#299857633#0(0"0(0#0#75"/Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim4371086240#167" cd /Users/robholland/Development/Unboxed/icuke/ext/WaxSim
225
225
  /Developer/usr/bin/strip /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
226
226
 
227
227
  CSymLink /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/build/Release/waxsim /Users/robholland/Development/Unboxed/icuke/ext/WaxSim/../../ext/bin/waxsim
228
228
  s299163007.114494
data/ext/bin/waxsim CHANGED
Binary file
Binary file
@@ -143,6 +143,8 @@ SYNTHESIZE_SINGLETON_FOR_CLASS(iCukeHTTPServer);
143
143
  //
144
144
  - (void)start
145
145
  {
146
+ NSLog(@"[iCuke] server starting up");
147
+
146
148
  self.lastError = nil;
147
149
  self.state = SERVER_STATE_STARTING;
148
150
 
@@ -191,6 +193,19 @@ SYNTHESIZE_SINGLETON_FOR_CLASS(iCukeHTTPServer);
191
193
  [listeningHandle acceptConnectionInBackgroundAndNotify];
192
194
 
193
195
  self.state = SERVER_STATE_RUNNING;
196
+
197
+ if (UIApplicationDidEnterBackgroundNotification != NULL) {
198
+ [[NSNotificationCenter defaultCenter]
199
+ addObserver:self
200
+ selector:@selector(applicationDidEnterBackground:)
201
+ name:UIApplicationDidEnterBackgroundNotification
202
+ object:nil];
203
+ }
204
+ }
205
+
206
+ - (void)applicationDidEnterBackground:(NSNotification *)note;
207
+ {
208
+ [self stop];
194
209
  }
195
210
 
196
211
  //
@@ -227,6 +242,8 @@ SYNTHESIZE_SINGLETON_FOR_CLASS(iCukeHTTPServer);
227
242
  //
228
243
  - (void)stop
229
244
  {
245
+ NSLog(@"[iCuke] server shutting down");
246
+
230
247
  self.state = SERVER_STATE_STOPPING;
231
248
 
232
249
  [[NSNotificationCenter defaultCenter]
@@ -254,6 +271,13 @@ SYNTHESIZE_SINGLETON_FOR_CLASS(iCukeHTTPServer);
254
271
  }
255
272
 
256
273
  self.state = SERVER_STATE_IDLE;
274
+
275
+ if (UIApplicationDidEnterBackgroundNotification != NULL) {
276
+ [[NSNotificationCenter defaultCenter]
277
+ removeObserver:self
278
+ name:UIApplicationDidEnterBackgroundNotification
279
+ object:nil];
280
+ }
257
281
  }
258
282
 
259
283
  //
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.6.2"
8
+ s.version = "0.6.3"
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-06-25}
12
+ s.date = %q{2010-07-03}
13
13
  s.description = %q{Cucumber support for iPhone applications}
14
14
  s.email = %q{rob@the-it-refinery.co.uk}
15
15
  s.executables = ["icuke", "icuke-module"]
@@ -15,13 +15,22 @@ class ICukeWorld
15
15
  end
16
16
 
17
17
  def launch(application, options = {})
18
- @simulator.launch(application, options)
18
+ process = ICuke::Simulator::Process.new(application, options)
19
+ @simulator.launch(process)
19
20
  end
20
21
 
21
22
  def quit
22
23
  @simulator.quit
23
24
  end
24
25
 
26
+ def suspend
27
+ @simulator.suspend
28
+ end
29
+
30
+ def resume
31
+ @simulator.resume
32
+ end
33
+
25
34
  def screen
26
35
  @screen ||= Screen.new(response)
27
36
  end
@@ -243,6 +252,14 @@ When /^I scroll (down|up|left|right)(?: to "([^\"]*)")?$/ do |direction, text|
243
252
  end
244
253
  end
245
254
 
255
+ When /^I suspend the application/ do
256
+ suspend
257
+ end
258
+
259
+ When /^I resume the application/ do
260
+ resume
261
+ end
262
+
246
263
  Then /^I put the phone into recording mode$/ do
247
264
  record
248
265
  end
data/lib/icuke/waxsim.rb CHANGED
@@ -5,24 +5,22 @@ module ICuke
5
5
  class Simulator
6
6
  include Timeout
7
7
 
8
- def launch(project_file, options = {})
9
- options = {
8
+ attr_accessor :current_process
9
+
10
+ def launch(process)
11
+ process = process.with_options({
10
12
  :configuration => 'Debug',
11
- :env => {}
12
- }.merge(options)
13
-
14
- app_name = File.basename(project_file, '.xcodeproj')
15
- directory = "#{File.dirname(project_file)}/build/#{options[:configuration]}-iphonesimulator"
16
-
17
- options[:env]['CFFIXED_USER_HOME'] = Dir.mktmpdir
18
-
19
- command = ICuke::SDK.launch("#{directory}/#{app_name}.app", options[:platform], options[:env])
20
- @simulator = BackgroundProcess.run(command)
13
+ :env => {
14
+ 'CFFIXED_USER_HOME' => Dir.mktmpdir
15
+ }
16
+ })
17
+ @simulator = BackgroundProcess.run(process.command)
18
+ self.current_process = process
21
19
 
22
20
  timeout(30) do
23
21
  begin
24
22
  view
25
- rescue Errno::ECONNREFUSED
23
+ rescue Errno::ECONNREFUSED, Errno::ECONNRESET, EOFError
26
24
  sleep(0.5)
27
25
  retry
28
26
  end
@@ -30,8 +28,45 @@ module ICuke
30
28
  end
31
29
 
32
30
  def quit
33
- get '/quit' rescue nil
31
+ get '/quit' rescue nil # results in a hard exit(0)
34
32
  @simulator.wait
33
+ self.current_process = nil
34
+ end
35
+
36
+ def suspend
37
+ @simulator.kill('QUIT') # invokes the normal app exit routine
38
+ @simulator.wait
39
+ sleep 1
40
+ end
41
+
42
+ def resume
43
+ launch(self.current_process)
44
+ end
45
+
46
+ class Process
47
+ def initialize(project_file, launch_options = {})
48
+ @project_file = project_file
49
+ @launch_options = launch_options
50
+ end
51
+
52
+ # returns a new Process, treat Process as an immutable value object
53
+ def with_options(options = {})
54
+ self.class.new(@project_file, options.merge(@launch_options))
55
+ end
56
+
57
+ def command
58
+ ICuke::SDK.launch("#{directory}/#{app_name}.app", @launch_options[:platform], @launch_options[:env])
59
+ end
60
+
61
+ private
62
+
63
+ def app_name
64
+ File.basename(@project_file, '.xcodeproj')
65
+ end
66
+
67
+ def directory
68
+ "#{File.dirname(@project_file)}/build/#{@launch_options[:configuration]}-iphonesimulator"
69
+ end
35
70
  end
36
71
  end
37
72
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 2
9
- version: 0.6.2
8
+ - 3
9
+ version: 0.6.3
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-06-25 00:00:00 +01:00
17
+ date: 2010-07-03 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency