calatrava 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. data/.gitignore +9 -0
  2. data/.rvmrc +2 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +202 -0
  5. data/Plans.md +20 -0
  6. data/README.md +73 -0
  7. data/Rakefile +26 -0
  8. data/bin/calatrava +6 -0
  9. data/calatrava.gemspec +35 -0
  10. data/features/cli.feature +14 -0
  11. data/features/project.feature +48 -0
  12. data/features/step_definitions/template_steps.rb +8 -0
  13. data/features/support/env.rb +5 -0
  14. data/lib/calatrava/app.rb +30 -0
  15. data/lib/calatrava/manifest.rb +44 -0
  16. data/lib/calatrava/project.rb +218 -0
  17. data/lib/calatrava/resources_build_phase.rb +19 -0
  18. data/lib/calatrava/tasks/apache.rb +44 -0
  19. data/lib/calatrava/tasks/artifact.rb +24 -0
  20. data/lib/calatrava/tasks/assets.rb +6 -0
  21. data/lib/calatrava/tasks/automation.rb +38 -0
  22. data/lib/calatrava/tasks/bootstrap.rb +10 -0
  23. data/lib/calatrava/tasks/build.rb +1 -0
  24. data/lib/calatrava/tasks/configuration.rb +41 -0
  25. data/lib/calatrava/tasks/droid.rb +83 -0
  26. data/lib/calatrava/tasks/haml.rb +71 -0
  27. data/lib/calatrava/tasks/ios.rb +73 -0
  28. data/lib/calatrava/tasks/kernel.rb +52 -0
  29. data/lib/calatrava/tasks/precommit.rb +22 -0
  30. data/lib/calatrava/tasks/release.rb +17 -0
  31. data/lib/calatrava/tasks/shell.rb +17 -0
  32. data/lib/calatrava/tasks/web.rb +82 -0
  33. data/lib/calatrava/tasks.rb +93 -0
  34. data/lib/calatrava/template.rb +44 -0
  35. data/lib/calatrava/templates/.rvmrc.calatrava +2 -0
  36. data/lib/calatrava/templates/Gemfile.calatrava +4 -0
  37. data/lib/calatrava/templates/Rakefile +1 -0
  38. data/lib/calatrava/templates/assets/lib/ICanHaz.js +542 -0
  39. data/lib/calatrava/templates/assets/lib/underscore.js +1059 -0
  40. data/lib/calatrava/templates/assets/lib/zepto.js +1355 -0
  41. data/lib/calatrava/templates/build_env.sh +2 -0
  42. data/lib/calatrava/templates/config/environments.yml +17 -0
  43. data/lib/calatrava/templates/config/templates/env.coffee.erb +7 -0
  44. data/lib/calatrava/templates/config/templates/httpd.conf.erb +33 -0
  45. data/lib/calatrava/templates/droid/app/bridge.coffee +130 -0
  46. data/lib/calatrava/templates/droid/calatrava/ant/calatrava.xml +48 -0
  47. data/lib/calatrava/templates/droid/calatrava/calatrava-build.xml +91 -0
  48. data/lib/calatrava/templates/droid/calatrava/ivy.xml +8 -0
  49. data/lib/calatrava/templates/droid/calatrava/ivysettings.xml +12 -0
  50. data/lib/calatrava/templates/droid/calatrava/src/com/CALATRAVA_TMPL/AndroidManifest.xml.calatrava +20 -0
  51. data/lib/calatrava/templates/droid/calatrava/src/com/CALATRAVA_TMPL/ConversionForm.java.calatrava +27 -0
  52. data/lib/calatrava/templates/droid/calatrava/src/com/CALATRAVA_TMPL/Title.java.calatrava +23 -0
  53. data/lib/calatrava/templates/droid/calatrava/src/com/calatrava/CalatravaPage.java +13 -0
  54. data/lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/AjaxRequestManager.java +166 -0
  55. data/lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/AssetRepository.java +17 -0
  56. data/lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/KernelBridge.java +25 -0
  57. data/lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/Launcher.java +85 -0
  58. data/lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/PageRegistry.java +225 -0
  59. data/lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/RegisteredActivity.java +86 -0
  60. data/lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/RequestLoader.java +31 -0
  61. data/lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/RhinoService.java +212 -0
  62. data/lib/calatrava/templates/droid/calatrava/src/com/calatrava/shell/WebViewActivity.java +247 -0
  63. data/lib/calatrava/templates/droid/manifest.yml +1 -0
  64. data/lib/calatrava/templates/ios/Podfile.calatrava +5 -0
  65. data/lib/calatrava/templates/ios/manifest.yml +1 -0
  66. data/lib/calatrava/templates/ios/res/js/bridge.js +249 -0
  67. data/lib/calatrava/templates/ios/res/xibs/ProgressViewController.xib +334 -0
  68. data/lib/calatrava/templates/ios/res/xibs/WebViewController.xib +173 -0
  69. data/lib/calatrava/templates/ios/src/AppDelegate.h +8 -0
  70. data/lib/calatrava/templates/ios/src/AppDelegate.m +56 -0
  71. data/lib/calatrava/templates/ios/src/CALATRAVA_TMPL-Info.plist +45 -0
  72. data/lib/calatrava/templates/ios/src/CALATRAVA_TMPL-Prefix.pch +14 -0
  73. data/lib/calatrava/templates/ios/src/ConversionFormViewController.h +16 -0
  74. data/lib/calatrava/templates/ios/src/ConversionFormViewController.m +179 -0
  75. data/lib/calatrava/templates/ios/src/ConversionFormViewController.xib +357 -0
  76. data/lib/calatrava/templates/ios/src/en.lproj/InfoPlist.strings +2 -0
  77. data/lib/calatrava/templates/ios/src/main.m +10 -0
  78. data/lib/calatrava/templates/ios/test/AJAXConnectionTest.m +21 -0
  79. data/lib/calatrava/templates/ios/test/AppTests-Prefix.pch +8 -0
  80. data/lib/calatrava/templates/ios/test/CalatravaiOSTests-Info.plist +22 -0
  81. data/lib/calatrava/templates/ios/test/TWBridgePageRegistryTest.m +15 -0
  82. data/lib/calatrava/templates/ios/test/en.lproj/InfoPlist.strings +2 -0
  83. data/lib/calatrava/templates/kernel/.gitignore +1 -0
  84. data/lib/calatrava/templates/kernel/app/calatrava.coffee +8 -0
  85. data/lib/calatrava/templates/kernel/app/converter/controller.converter.coffee +50 -0
  86. data/lib/calatrava/templates/kernel/app/converter/init.converter.coffee +11 -0
  87. data/lib/calatrava/templates/kernel/app/pageHelper.coffee +17 -0
  88. data/lib/calatrava/templates/kernel/features/support/bridge.coffee +124 -0
  89. data/lib/calatrava/templates/kernel/features/support/spec_helper.js +49 -0
  90. data/lib/calatrava/templates/kernel/spec/converter/controller.converter.spec.coffee +37 -0
  91. data/lib/calatrava/templates/kernel/spec/environment.spec_helper.coffee +25 -0
  92. data/lib/calatrava/templates/kernel/spec/spec_helper.js +49 -0
  93. data/lib/calatrava/templates/kernel/spec/stubView.coffee +18 -0
  94. data/lib/calatrava/templates/kernel/watchr.rb +17 -0
  95. data/lib/calatrava/templates/package.json +20 -0
  96. data/lib/calatrava/templates/shell/layouts/single_page.haml +23 -0
  97. data/lib/calatrava/templates/shell/pages/converter/conversionForm.haml +12 -0
  98. data/lib/calatrava/templates/shell/pages/converter/page.conversionForm.coffee +42 -0
  99. data/lib/calatrava/templates/shell/shell.scss +1 -0
  100. data/lib/calatrava/templates/shell/support/shell.coffee +21 -0
  101. data/lib/calatrava/templates/web/apache/conf/mime.types +1357 -0
  102. data/lib/calatrava/templates/web/app/source/bridge.coffee +158 -0
  103. data/lib/calatrava/templates/web/app/source/init.coffee +14 -0
  104. data/lib/calatrava/templates/web/app/views/index.haml +18 -0
  105. data/lib/calatrava/templates/web/deploy/instance.sh +10 -0
  106. data/lib/calatrava/templates/web/manifest.yml +1 -0
  107. data/lib/calatrava/version.rb +3 -0
  108. data/lib/calatrava.rb +5 -0
  109. metadata +302 -0
@@ -0,0 +1,334 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
3
+ <data>
4
+ <int key="IBDocument.SystemTarget">1296</int>
5
+ <string key="IBDocument.SystemVersion">11D50b</string>
6
+ <string key="IBDocument.InterfaceBuilderVersion">2182</string>
7
+ <string key="IBDocument.AppKitVersion">1138.32</string>
8
+ <string key="IBDocument.HIToolboxVersion">568.00</string>
9
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
10
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
11
+ <string key="NS.object.0">1181</string>
12
+ </object>
13
+ <array key="IBDocument.IntegratedClassDependencies">
14
+ <string>IBUIImageView</string>
15
+ <string>IBUIView</string>
16
+ <string>IBUILabel</string>
17
+ <string>IBProxyObject</string>
18
+ </array>
19
+ <array key="IBDocument.PluginDependencies">
20
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
21
+ </array>
22
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
23
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
24
+ <integer value="1" key="NS.object.0"/>
25
+ </object>
26
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
27
+ <object class="IBProxyObject" id="372490531">
28
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
29
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
30
+ </object>
31
+ <object class="IBProxyObject" id="975951072">
32
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
33
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
34
+ </object>
35
+ <object class="IBUIView" id="191373211">
36
+ <reference key="NSNextResponder"/>
37
+ <int key="NSvFlags">274</int>
38
+ <array class="NSMutableArray" key="NSSubviews">
39
+ <object class="IBUIView" id="628879584">
40
+ <reference key="NSNextResponder" ref="191373211"/>
41
+ <int key="NSvFlags">292</int>
42
+ <array class="NSMutableArray" key="NSSubviews">
43
+ <object class="IBUIImageView" id="732811145">
44
+ <reference key="NSNextResponder" ref="628879584"/>
45
+ <int key="NSvFlags">274</int>
46
+ <string key="NSFrame">{{56, 53}, {18, 18}}</string>
47
+ <reference key="NSSuperview" ref="628879584"/>
48
+ <reference key="NSWindow"/>
49
+ <reference key="NSNextKeyView" ref="649060078"/>
50
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
51
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
52
+ <object class="NSCustomResource" key="IBUIImage">
53
+ <string key="NSClassName">NSImage</string>
54
+ <string key="NSResourceName">plane1.png</string>
55
+ </object>
56
+ </object>
57
+ <object class="IBUILabel" id="649060078">
58
+ <reference key="NSNextResponder" ref="628879584"/>
59
+ <int key="NSvFlags">292</int>
60
+ <string key="NSFrame">{{20, 79}, {90, 21}}</string>
61
+ <reference key="NSSuperview" ref="628879584"/>
62
+ <reference key="NSWindow"/>
63
+ <reference key="NSNextKeyView"/>
64
+ <bool key="IBUIOpaque">NO</bool>
65
+ <bool key="IBUIClipsSubviews">YES</bool>
66
+ <int key="IBUIContentMode">7</int>
67
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
68
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
69
+ <string key="IBUIText">Loading...</string>
70
+ <object class="NSColor" key="IBUITextColor">
71
+ <int key="NSColorSpace">1</int>
72
+ <bytes key="NSRGB">MSAxIDEAA</bytes>
73
+ </object>
74
+ <nil key="IBUIHighlightedColor"/>
75
+ <int key="IBUIBaselineAdjustment">1</int>
76
+ <float key="IBUIMinimumFontSize">10</float>
77
+ <int key="IBUITextAlignment">1</int>
78
+ <object class="IBUIFontDescription" key="IBUIFontDescription">
79
+ <string key="name">Helvetica-Bold</string>
80
+ <string key="family">Helvetica</string>
81
+ <int key="traits">2</int>
82
+ <double key="pointSize">16</double>
83
+ </object>
84
+ <object class="NSFont" key="IBUIFont">
85
+ <string key="NSName">Helvetica-Bold</string>
86
+ <double key="NSSize">16</double>
87
+ <int key="NSfFlags">16</int>
88
+ </object>
89
+ </object>
90
+ </array>
91
+ <string key="NSFrame">{{95, 140}, {130, 124}}</string>
92
+ <reference key="NSSuperview" ref="191373211"/>
93
+ <reference key="NSWindow"/>
94
+ <reference key="NSNextKeyView" ref="732811145"/>
95
+ <object class="NSColor" key="IBUIBackgroundColor">
96
+ <int key="NSColorSpace">3</int>
97
+ <bytes key="NSWhite">MC4zMzMzMzMzMzMzAA</bytes>
98
+ </object>
99
+ <float key="IBUIAlpha">0.80000001192092896</float>
100
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
101
+ </object>
102
+ </array>
103
+ <string key="NSFrame">{{0, 20}, {320, 460}}</string>
104
+ <reference key="NSSuperview"/>
105
+ <reference key="NSWindow"/>
106
+ <reference key="NSNextKeyView" ref="628879584"/>
107
+ <object class="NSColor" key="IBUIBackgroundColor">
108
+ <int key="NSColorSpace">3</int>
109
+ <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
110
+ </object>
111
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
112
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
113
+ </object>
114
+ </array>
115
+ <object class="IBObjectContainer" key="IBDocument.Objects">
116
+ <array class="NSMutableArray" key="connectionRecords">
117
+ <object class="IBConnectionRecord">
118
+ <object class="IBCocoaTouchOutletConnection" key="connection">
119
+ <string key="label">view</string>
120
+ <reference key="source" ref="372490531"/>
121
+ <reference key="destination" ref="191373211"/>
122
+ </object>
123
+ <int key="connectionID">3</int>
124
+ </object>
125
+ <object class="IBConnectionRecord">
126
+ <object class="IBCocoaTouchOutletConnection" key="connection">
127
+ <string key="label">bgView</string>
128
+ <reference key="source" ref="372490531"/>
129
+ <reference key="destination" ref="628879584"/>
130
+ </object>
131
+ <int key="connectionID">12</int>
132
+ </object>
133
+ <object class="IBConnectionRecord">
134
+ <object class="IBCocoaTouchOutletConnection" key="connection">
135
+ <string key="label">imageView</string>
136
+ <reference key="source" ref="372490531"/>
137
+ <reference key="destination" ref="732811145"/>
138
+ </object>
139
+ <int key="connectionID">10</int>
140
+ </object>
141
+ </array>
142
+ <object class="IBMutableOrderedSet" key="objectRecords">
143
+ <array key="orderedObjects">
144
+ <object class="IBObjectRecord">
145
+ <int key="objectID">0</int>
146
+ <array key="object" id="0"/>
147
+ <reference key="children" ref="1000"/>
148
+ <nil key="parent"/>
149
+ </object>
150
+ <object class="IBObjectRecord">
151
+ <int key="objectID">1</int>
152
+ <reference key="object" ref="191373211"/>
153
+ <array class="NSMutableArray" key="children">
154
+ <reference ref="628879584"/>
155
+ </array>
156
+ <reference key="parent" ref="0"/>
157
+ </object>
158
+ <object class="IBObjectRecord">
159
+ <int key="objectID">-1</int>
160
+ <reference key="object" ref="372490531"/>
161
+ <reference key="parent" ref="0"/>
162
+ <string key="objectName">File's Owner</string>
163
+ </object>
164
+ <object class="IBObjectRecord">
165
+ <int key="objectID">-2</int>
166
+ <reference key="object" ref="975951072"/>
167
+ <reference key="parent" ref="0"/>
168
+ </object>
169
+ <object class="IBObjectRecord">
170
+ <int key="objectID">8</int>
171
+ <reference key="object" ref="628879584"/>
172
+ <array class="NSMutableArray" key="children">
173
+ <reference ref="732811145"/>
174
+ <reference ref="649060078"/>
175
+ </array>
176
+ <reference key="parent" ref="191373211"/>
177
+ </object>
178
+ <object class="IBObjectRecord">
179
+ <int key="objectID">9</int>
180
+ <reference key="object" ref="732811145"/>
181
+ <reference key="parent" ref="628879584"/>
182
+ </object>
183
+ <object class="IBObjectRecord">
184
+ <int key="objectID">11</int>
185
+ <reference key="object" ref="649060078"/>
186
+ <reference key="parent" ref="628879584"/>
187
+ </object>
188
+ </array>
189
+ </object>
190
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
191
+ <string key="-1.CustomClassName">ProgressViewController</string>
192
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
193
+ <string key="-2.CustomClassName">UIResponder</string>
194
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
195
+ <string key="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
196
+ <string key="11.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
197
+ <string key="8.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
198
+ <string key="9.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
199
+ </dictionary>
200
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
201
+ <nil key="activeLocalization"/>
202
+ <dictionary class="NSMutableDictionary" key="localizations"/>
203
+ <nil key="sourceID"/>
204
+ <int key="maxID">13</int>
205
+ </object>
206
+ <object class="IBClassDescriber" key="IBDocument.Classes">
207
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
208
+ <object class="IBPartialClassDescription">
209
+ <string key="className">DLFontFixer</string>
210
+ <string key="superclassName">NSObject</string>
211
+ <dictionary class="NSMutableDictionary" key="toManyOutletInfosByName">
212
+ <object class="IBToManyOutletInfo" key="viewsToMakeWhitneyBlack">
213
+ <string key="name">viewsToMakeWhitneyBlack</string>
214
+ <string key="candidateClassName">UIView</string>
215
+ <string key="collectionClassName">NSArray</string>
216
+ </object>
217
+ <object class="IBToManyOutletInfo" key="viewsToMakeWhitneyBlackItalic">
218
+ <string key="name">viewsToMakeWhitneyBlackItalic</string>
219
+ <string key="candidateClassName">UIView</string>
220
+ <string key="collectionClassName">NSArray</string>
221
+ </object>
222
+ <object class="IBToManyOutletInfo" key="viewsToMakeWhitneyBold">
223
+ <string key="name">viewsToMakeWhitneyBold</string>
224
+ <string key="candidateClassName">UIView</string>
225
+ <string key="collectionClassName">NSArray</string>
226
+ </object>
227
+ <object class="IBToManyOutletInfo" key="viewsToMakeWhitneyBoldItalic">
228
+ <string key="name">viewsToMakeWhitneyBoldItalic</string>
229
+ <string key="candidateClassName">UIView</string>
230
+ <string key="collectionClassName">NSArray</string>
231
+ </object>
232
+ <object class="IBToManyOutletInfo" key="viewsToMakeWhitneyBook">
233
+ <string key="name">viewsToMakeWhitneyBook</string>
234
+ <string key="candidateClassName">UIView</string>
235
+ <string key="collectionClassName">NSArray</string>
236
+ </object>
237
+ <object class="IBToManyOutletInfo" key="viewsToMakeWhitneyBookItalic">
238
+ <string key="name">viewsToMakeWhitneyBookItalic</string>
239
+ <string key="candidateClassName">UIView</string>
240
+ <string key="collectionClassName">NSArray</string>
241
+ </object>
242
+ <object class="IBToManyOutletInfo" key="viewsToMakeWhitneyLight">
243
+ <string key="name">viewsToMakeWhitneyLight</string>
244
+ <string key="candidateClassName">UIView</string>
245
+ <string key="collectionClassName">NSArray</string>
246
+ </object>
247
+ <object class="IBToManyOutletInfo" key="viewsToMakeWhitneyLightItalic">
248
+ <string key="name">viewsToMakeWhitneyLightItalic</string>
249
+ <string key="candidateClassName">UIView</string>
250
+ <string key="collectionClassName">NSArray</string>
251
+ </object>
252
+ <object class="IBToManyOutletInfo" key="viewsToMakeWhitneyMedium">
253
+ <string key="name">viewsToMakeWhitneyMedium</string>
254
+ <string key="candidateClassName">UIView</string>
255
+ <string key="collectionClassName">NSArray</string>
256
+ </object>
257
+ <object class="IBToManyOutletInfo" key="viewsToMakeWhitneyMediumItalic">
258
+ <string key="name">viewsToMakeWhitneyMediumItalic</string>
259
+ <string key="candidateClassName">UIView</string>
260
+ <string key="collectionClassName">NSArray</string>
261
+ </object>
262
+ <object class="IBToManyOutletInfo" key="viewsToMakeWhitneySemibold">
263
+ <string key="name">viewsToMakeWhitneySemibold</string>
264
+ <string key="candidateClassName">UIView</string>
265
+ <string key="collectionClassName">NSArray</string>
266
+ </object>
267
+ <object class="IBToManyOutletInfo" key="viewsToMakeWhitneySemiboldItalic">
268
+ <string key="name">viewsToMakeWhitneySemiboldItalic</string>
269
+ <string key="candidateClassName">UIView</string>
270
+ <string key="collectionClassName">NSArray</string>
271
+ </object>
272
+ </dictionary>
273
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
274
+ <string key="majorKey">IBProjectSource</string>
275
+ <string key="minorKey">./Classes/DLFontFixer.h</string>
276
+ </object>
277
+ </object>
278
+ <object class="IBPartialClassDescription">
279
+ <string key="className">ProgressViewController</string>
280
+ <string key="superclassName">UIViewController</string>
281
+ <dictionary class="NSMutableDictionary" key="outlets">
282
+ <string key="bgView">UIView</string>
283
+ <string key="imageView">UIImageView</string>
284
+ </dictionary>
285
+ <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
286
+ <object class="IBToOneOutletInfo" key="bgView">
287
+ <string key="name">bgView</string>
288
+ <string key="candidateClassName">UIView</string>
289
+ </object>
290
+ <object class="IBToOneOutletInfo" key="imageView">
291
+ <string key="name">imageView</string>
292
+ <string key="candidateClassName">UIImageView</string>
293
+ </object>
294
+ </dictionary>
295
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
296
+ <string key="majorKey">IBProjectSource</string>
297
+ <string key="minorKey">./Classes/ProgressViewController.h</string>
298
+ </object>
299
+ </object>
300
+ <object class="IBPartialClassDescription">
301
+ <string key="className">UIViewController</string>
302
+ <object class="NSMutableDictionary" key="outlets">
303
+ <string key="NS.key.0">fontFixer</string>
304
+ <string key="NS.object.0">DLFontFixer</string>
305
+ </object>
306
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
307
+ <string key="NS.key.0">fontFixer</string>
308
+ <object class="IBToOneOutletInfo" key="NS.object.0">
309
+ <string key="name">fontFixer</string>
310
+ <string key="candidateClassName">DLFontFixer</string>
311
+ </object>
312
+ </object>
313
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
314
+ <string key="majorKey">IBProjectSource</string>
315
+ <string key="minorKey">./Classes/UIViewController.h</string>
316
+ </object>
317
+ </object>
318
+ </array>
319
+ </object>
320
+ <int key="IBDocument.localizationMode">0</int>
321
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
322
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
323
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
324
+ <real value="1296" key="NS.object.0"/>
325
+ </object>
326
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
327
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
328
+ <object class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
329
+ <string key="NS.key.0">plane1.png</string>
330
+ <string key="NS.object.0">{18, 18}</string>
331
+ </object>
332
+ <string key="IBCocoaTouchPluginVersion">1181</string>
333
+ </data>
334
+ </archive>
@@ -0,0 +1,173 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
3
+ <data>
4
+ <int key="IBDocument.SystemTarget">1280</int>
5
+ <string key="IBDocument.SystemVersion">11D50d</string>
6
+ <string key="IBDocument.InterfaceBuilderVersion">2182</string>
7
+ <string key="IBDocument.AppKitVersion">1138.32</string>
8
+ <string key="IBDocument.HIToolboxVersion">568.00</string>
9
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
10
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
11
+ <string key="NS.object.0">1181</string>
12
+ </object>
13
+ <array key="IBDocument.IntegratedClassDependencies">
14
+ <string>IBProxyObject</string>
15
+ <string>IBUIView</string>
16
+ <string>IBUIWebView</string>
17
+ </array>
18
+ <array key="IBDocument.PluginDependencies">
19
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
20
+ </array>
21
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
22
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
23
+ <integer value="1" key="NS.object.0"/>
24
+ </object>
25
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
26
+ <object class="IBProxyObject" id="372490531">
27
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
28
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
29
+ </object>
30
+ <object class="IBProxyObject" id="975951072">
31
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
32
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
33
+ </object>
34
+ <object class="IBUIView" id="191373211">
35
+ <reference key="NSNextResponder"/>
36
+ <int key="NSvFlags">274</int>
37
+ <array class="NSMutableArray" key="NSSubviews">
38
+ <object class="IBUIWebView" id="655117342">
39
+ <reference key="NSNextResponder" ref="191373211"/>
40
+ <int key="NSvFlags">274</int>
41
+ <string key="NSFrameSize">{320, 460}</string>
42
+ <reference key="NSSuperview" ref="191373211"/>
43
+ <reference key="NSWindow"/>
44
+ <object class="NSColor" key="IBUIBackgroundColor">
45
+ <int key="NSColorSpace">3</int>
46
+ <bytes key="NSWhite">MCAwAA</bytes>
47
+ </object>
48
+ <bool key="IBUIOpaque">NO</bool>
49
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
50
+ <int key="IBUIDataDetectorTypes">1</int>
51
+ <bool key="IBUIDetectsPhoneNumbers">YES</bool>
52
+ </object>
53
+ </array>
54
+ <string key="NSFrame">{{0, 20}, {320, 460}}</string>
55
+ <reference key="NSSuperview"/>
56
+ <reference key="NSWindow"/>
57
+ <reference key="NSNextKeyView"/>
58
+ <object class="NSColor" key="IBUIBackgroundColor">
59
+ <int key="NSColorSpace">3</int>
60
+ <bytes key="NSWhite">MQA</bytes>
61
+ <object class="NSColorSpace" key="NSCustomColorSpace">
62
+ <int key="NSID">2</int>
63
+ </object>
64
+ </object>
65
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
66
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
67
+ </object>
68
+ </array>
69
+ <object class="IBObjectContainer" key="IBDocument.Objects">
70
+ <array class="NSMutableArray" key="connectionRecords">
71
+ <object class="IBConnectionRecord">
72
+ <object class="IBCocoaTouchOutletConnection" key="connection">
73
+ <string key="label">view</string>
74
+ <reference key="source" ref="372490531"/>
75
+ <reference key="destination" ref="191373211"/>
76
+ </object>
77
+ <int key="connectionID">3</int>
78
+ </object>
79
+ <object class="IBConnectionRecord">
80
+ <object class="IBCocoaTouchOutletConnection" key="connection">
81
+ <string key="label">_webView</string>
82
+ <reference key="source" ref="372490531"/>
83
+ <reference key="destination" ref="655117342"/>
84
+ </object>
85
+ <int key="connectionID">6</int>
86
+ </object>
87
+ </array>
88
+ <object class="IBMutableOrderedSet" key="objectRecords">
89
+ <array key="orderedObjects">
90
+ <object class="IBObjectRecord">
91
+ <int key="objectID">0</int>
92
+ <array key="object" id="0"/>
93
+ <reference key="children" ref="1000"/>
94
+ <nil key="parent"/>
95
+ </object>
96
+ <object class="IBObjectRecord">
97
+ <int key="objectID">1</int>
98
+ <reference key="object" ref="191373211"/>
99
+ <array class="NSMutableArray" key="children">
100
+ <reference ref="655117342"/>
101
+ </array>
102
+ <reference key="parent" ref="0"/>
103
+ </object>
104
+ <object class="IBObjectRecord">
105
+ <int key="objectID">-1</int>
106
+ <reference key="object" ref="372490531"/>
107
+ <reference key="parent" ref="0"/>
108
+ <string key="objectName">File's Owner</string>
109
+ </object>
110
+ <object class="IBObjectRecord">
111
+ <int key="objectID">-2</int>
112
+ <reference key="object" ref="975951072"/>
113
+ <reference key="parent" ref="0"/>
114
+ </object>
115
+ <object class="IBObjectRecord">
116
+ <int key="objectID">4</int>
117
+ <reference key="object" ref="655117342"/>
118
+ <reference key="parent" ref="191373211"/>
119
+ </object>
120
+ </array>
121
+ </object>
122
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
123
+ <string key="-1.CustomClassName">WebViewController</string>
124
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
125
+ <string key="-2.CustomClassName">UIResponder</string>
126
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
127
+ <string key="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
128
+ <string key="4.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
129
+ </dictionary>
130
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
131
+ <nil key="activeLocalization"/>
132
+ <dictionary class="NSMutableDictionary" key="localizations"/>
133
+ <nil key="sourceID"/>
134
+ <int key="maxID">6</int>
135
+ </object>
136
+ <object class="IBClassDescriber" key="IBDocument.Classes">
137
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
138
+ <object class="IBPartialClassDescription">
139
+ <string key="className">BaseUIViewController</string>
140
+ <string key="superclassName">UIViewController</string>
141
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
142
+ <string key="majorKey">IBProjectSource</string>
143
+ <string key="minorKey">./Classes/BaseUIViewController.h</string>
144
+ </object>
145
+ </object>
146
+ <object class="IBPartialClassDescription">
147
+ <string key="className">WebViewController</string>
148
+ <string key="superclassName">BaseUIViewController</string>
149
+ <object class="NSMutableDictionary" key="outlets">
150
+ <string key="NS.key.0">_webView</string>
151
+ <string key="NS.object.0">UIWebView</string>
152
+ </object>
153
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
154
+ <string key="NS.key.0">_webView</string>
155
+ <object class="IBToOneOutletInfo" key="NS.object.0">
156
+ <string key="name">_webView</string>
157
+ <string key="candidateClassName">UIWebView</string>
158
+ </object>
159
+ </object>
160
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
161
+ <string key="majorKey">IBProjectSource</string>
162
+ <string key="minorKey">./Classes/WebViewController.h</string>
163
+ </object>
164
+ </object>
165
+ </array>
166
+ </object>
167
+ <int key="IBDocument.localizationMode">0</int>
168
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
169
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
170
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
171
+ <string key="IBCocoaTouchPluginVersion">1181</string>
172
+ </data>
173
+ </archive>
@@ -0,0 +1,8 @@
1
+ #import <UIKit/UIKit.h>
2
+
3
+ @interface AppDelegate : UIResponder <UIApplicationDelegate>
4
+
5
+ @property (strong, nonatomic) UIWindow *window;
6
+ @property (strong, nonatomic) UINavigationController *rootNavController;
7
+
8
+ @end
@@ -0,0 +1,56 @@
1
+ #import "AppDelegate.h"
2
+
3
+ #import "KernelBridge.h"
4
+
5
+ @implementation AppDelegate
6
+
7
+ @synthesize rootNavController = _rootNavController;
8
+ @synthesize window = _window;
9
+
10
+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
11
+ {
12
+ UIViewController *rootVC = [[UIViewController alloc] init];
13
+ rootVC.view.backgroundColor = [UIColor orangeColor];
14
+
15
+ self.rootNavController = [[UINavigationController alloc] initWithRootViewController:rootVC];
16
+ self.rootNavController.navigationBarHidden = YES;
17
+
18
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
19
+ [self.window addSubview:self.rootNavController.view];
20
+ [self.window makeKeyAndVisible];
21
+
22
+ KernelBridge *kernel = [KernelBridge sharedKernel];
23
+ [kernel startWith:self.rootNavController];
24
+ [kernel launch:@"example.converter.start"];
25
+
26
+ return YES;
27
+ }
28
+
29
+ - (void)applicationWillResignActive:(UIApplication *)application
30
+ {
31
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
32
+ // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
33
+ }
34
+
35
+ - (void)applicationDidEnterBackground:(UIApplication *)application
36
+ {
37
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
38
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
39
+ }
40
+
41
+ - (void)applicationWillEnterForeground:(UIApplication *)application
42
+ {
43
+ // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
44
+ }
45
+
46
+ - (void)applicationDidBecomeActive:(UIApplication *)application
47
+ {
48
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
49
+ }
50
+
51
+ - (void)applicationWillTerminate:(UIApplication *)application
52
+ {
53
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
54
+ }
55
+
56
+ @end
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleDisplayName</key>
8
+ <string>${PRODUCT_NAME}</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>${EXECUTABLE_NAME}</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>com.thoughtworks.${PRODUCT_NAME:rfc1034identifier}</string>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
+ <string>6.0</string>
15
+ <key>CFBundleName</key>
16
+ <string>${PRODUCT_NAME}</string>
17
+ <key>CFBundlePackageType</key>
18
+ <string>APPL</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>1.0</string>
21
+ <key>CFBundleSignature</key>
22
+ <string>????</string>
23
+ <key>CFBundleVersion</key>
24
+ <string>1.0</string>
25
+ <key>LSRequiresIPhoneOS</key>
26
+ <true/>
27
+ <key>UIRequiredDeviceCapabilities</key>
28
+ <array>
29
+ <string>armv7</string>
30
+ </array>
31
+ <key>UISupportedInterfaceOrientations</key>
32
+ <array>
33
+ <string>UIInterfaceOrientationPortrait</string>
34
+ <string>UIInterfaceOrientationLandscapeLeft</string>
35
+ <string>UIInterfaceOrientationLandscapeRight</string>
36
+ </array>
37
+ <key>UISupportedInterfaceOrientations~ipad</key>
38
+ <array>
39
+ <string>UIInterfaceOrientationPortrait</string>
40
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
41
+ <string>UIInterfaceOrientationLandscapeLeft</string>
42
+ <string>UIInterfaceOrientationLandscapeRight</string>
43
+ </array>
44
+ </dict>
45
+ </plist>
@@ -0,0 +1,14 @@
1
+ //
2
+ // Prefix header for all source files of the 'test' target in the 'test' project
3
+ //
4
+
5
+ #import <Availability.h>
6
+
7
+ #ifndef __IPHONE_3_0
8
+ #warning "This project uses features only available in iOS SDK 3.0 and later."
9
+ #endif
10
+
11
+ #ifdef __OBJC__
12
+ #import <UIKit/UIKit.h>
13
+ #import <Foundation/Foundation.h>
14
+ #endif
@@ -0,0 +1,16 @@
1
+ //
2
+ // ConversionFormViewController.h
3
+ // currencyConverter
4
+ //
5
+ // Created by Giles Alexander on 7/26/12.
6
+ // Copyright (c) 2012 ThoughtWorks. All rights reserved.
7
+ //
8
+
9
+ #import "BaseUIViewController.h"
10
+
11
+ @interface ConversionFormViewController : BaseUIViewController<UIPickerViewDataSource, UIPickerViewDelegate>
12
+
13
+ - (void)render:(NSDictionary *)jsViewObject;
14
+
15
+
16
+ @end