sproutcore 1.0.1046 → 1.0.1049.pre.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1498) hide show
  1. data/DISTRIBUTION.yml +7 -1
  2. data/Gemfile +3 -0
  3. data/Rakefile +179 -91
  4. data/VERSION.yml +4 -4
  5. data/bin/sc-server +1 -2
  6. data/frameworks/sproutcore/Buildfile +35 -12
  7. data/frameworks/sproutcore/Gemfile +8 -0
  8. data/frameworks/sproutcore/Gemfile.lock +33 -0
  9. data/frameworks/sproutcore/README.md +68 -0
  10. data/frameworks/sproutcore/apps/docs/english.lproj/loading.rhtml +1 -1
  11. data/frameworks/sproutcore/apps/greenhouse/README +25 -0
  12. data/frameworks/sproutcore/apps/greenhouse/TODO +72 -0
  13. data/frameworks/sproutcore/apps/greenhouse/beautify.js +1058 -0
  14. data/frameworks/sproutcore/apps/greenhouse/controllers/design.js +20 -0
  15. data/frameworks/sproutcore/apps/greenhouse/controllers/file.js +75 -0
  16. data/frameworks/sproutcore/apps/greenhouse/controllers/files.js +40 -0
  17. data/frameworks/sproutcore/apps/greenhouse/controllers/layout.js +53 -0
  18. data/frameworks/sproutcore/apps/greenhouse/controllers/library.js +243 -0
  19. data/frameworks/sproutcore/apps/greenhouse/controllers/page.js +18 -0
  20. data/frameworks/sproutcore/apps/greenhouse/controllers/property.js +19 -0
  21. data/frameworks/sproutcore/apps/greenhouse/controllers/property_editor.js +17 -0
  22. data/frameworks/sproutcore/apps/greenhouse/controllers/target.js +20 -0
  23. data/frameworks/sproutcore/apps/greenhouse/controllers/targets.js +43 -0
  24. data/frameworks/sproutcore/apps/greenhouse/core.js +67 -0
  25. data/frameworks/sproutcore/apps/greenhouse/core_file.js +124 -0
  26. data/frameworks/sproutcore/apps/greenhouse/data_source.js +250 -0
  27. data/frameworks/sproutcore/apps/greenhouse/english.lproj/app_page.js +377 -0
  28. data/frameworks/sproutcore/apps/greenhouse/english.lproj/css/app-selector.css +111 -0
  29. data/frameworks/sproutcore/apps/greenhouse/english.lproj/css/button.css +310 -0
  30. data/frameworks/sproutcore/apps/greenhouse/english.lproj/css/dock.css +85 -0
  31. data/frameworks/sproutcore/apps/greenhouse/english.lproj/css/general.css +52 -0
  32. data/frameworks/sproutcore/apps/greenhouse/english.lproj/css/main-page.css +120 -0
  33. data/frameworks/sproutcore/apps/greenhouse/english.lproj/css/menu.css +52 -0
  34. data/frameworks/sproutcore/apps/greenhouse/english.lproj/css/modal.css +40 -0
  35. data/frameworks/sproutcore/apps/greenhouse/english.lproj/css/picker.css +188 -0
  36. data/frameworks/sproutcore/apps/greenhouse/english.lproj/css/search.css +60 -0
  37. data/frameworks/sproutcore/apps/greenhouse/english.lproj/css/tabbed.css +68 -0
  38. data/frameworks/sproutcore/apps/greenhouse/english.lproj/css/text-field.css +67 -0
  39. data/frameworks/sproutcore/apps/greenhouse/english.lproj/dialogs.js +278 -0
  40. data/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.eot +0 -0
  41. data/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.otf +0 -0
  42. data/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.woff +0 -0
  43. data/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.eot +0 -0
  44. data/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.otf +0 -0
  45. data/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.woff +0 -0
  46. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/app-selector/choose-app.png +0 -0
  47. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/app-selector/list-item-sel.png +0 -0
  48. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-l.png +0 -0
  49. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-m.png +0 -0
  50. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-r.png +0 -0
  51. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-l.png +0 -0
  52. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-m.png +0 -0
  53. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-r.png +0 -0
  54. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-l.png +0 -0
  55. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-r.png +0 -0
  56. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-l.png +0 -0
  57. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-r.png +0 -0
  58. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-l.png +0 -0
  59. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-r.png +0 -0
  60. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-l.png +0 -0
  61. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-r.png +0 -0
  62. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-l.png +0 -0
  63. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-r.png +0 -0
  64. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-l.png +0 -0
  65. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-r.png +0 -0
  66. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-l.png +0 -0
  67. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-m.png +0 -0
  68. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-r.png +0 -0
  69. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-l.png +0 -0
  70. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-r.png +0 -0
  71. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-l.png +0 -0
  72. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-r.png +0 -0
  73. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-l.png +0 -0
  74. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-r.png +0 -0
  75. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-l.png +0 -0
  76. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-r.png +0 -0
  77. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-l.png +0 -0
  78. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-m.png +0 -0
  79. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-r.png +0 -0
  80. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-l.png +0 -0
  81. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-m.png +0 -0
  82. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-r.png +0 -0
  83. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-l.png +0 -0
  84. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-m.png +0 -0
  85. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-r.png +0 -0
  86. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-l.png +0 -0
  87. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-m.png +0 -0
  88. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-r.png +0 -0
  89. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-l.png +0 -0
  90. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-m.png +0 -0
  91. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-r.png +0 -0
  92. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/active-m.png +0 -0
  93. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/disabled-m.png +0 -0
  94. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/regular-m.png +0 -0
  95. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-active-m.png +0 -0
  96. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-disabled-m.png +0 -0
  97. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-m.png +0 -0
  98. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-l.png +0 -0
  99. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-r.png +0 -0
  100. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-l.png +0 -0
  101. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-r.png +0 -0
  102. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-l.png +0 -0
  103. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-r.png +0 -0
  104. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-l.png +0 -0
  105. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-r.png +0 -0
  106. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-l.png +0 -0
  107. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-r.png +0 -0
  108. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-l.png +0 -0
  109. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-r.png +0 -0
  110. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/actions-active.png +0 -0
  111. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/actions.png +0 -0
  112. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector-active.png +0 -0
  113. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector.png +0 -0
  114. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/library-active.png +0 -0
  115. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/library.png +0 -0
  116. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/projects-active.png +0 -0
  117. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/projects.png +0 -0
  118. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/run-active.png +0 -0
  119. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/run.png +0 -0
  120. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/save-active.png +0 -0
  121. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/save.png +0 -0
  122. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-l.png +0 -0
  123. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-s.png +0 -0
  124. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/logos/sproutcore.png +0 -0
  125. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/main-bg.png +0 -0
  126. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-left.png +0 -0
  127. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-right.png +0 -0
  128. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom.png +0 -0
  129. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/close-active.png +0 -0
  130. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/close.png +0 -0
  131. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/left.png +0 -0
  132. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-bottom.png +0 -0
  133. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-left.png +0 -0
  134. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-right.png +0 -0
  135. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-top.png +0 -0
  136. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/right.png +0 -0
  137. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/search-active.png +0 -0
  138. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/search.png +0 -0
  139. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/top-left.png +0 -0
  140. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/top-right.png +0 -0
  141. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/top.png +0 -0
  142. data/frameworks/sproutcore/apps/greenhouse/english.lproj/images/toolbar-bg.png +0 -0
  143. data/frameworks/sproutcore/apps/greenhouse/english.lproj/inspectors.js +365 -0
  144. data/frameworks/sproutcore/apps/greenhouse/english.lproj/loading.rhtml +9 -0
  145. data/frameworks/sproutcore/apps/greenhouse/english.lproj/main_page.js +95 -0
  146. data/frameworks/sproutcore/apps/greenhouse/english.lproj/strings.js +84 -0
  147. data/frameworks/sproutcore/apps/greenhouse/fixtures/file.js +35 -0
  148. data/frameworks/sproutcore/apps/greenhouse/main.js +28 -0
  149. data/frameworks/sproutcore/apps/greenhouse/mixins/drop_down.js +97 -0
  150. data/frameworks/sproutcore/apps/greenhouse/models/design.js +22 -0
  151. data/frameworks/sproutcore/apps/greenhouse/models/dir.js +92 -0
  152. data/frameworks/sproutcore/apps/greenhouse/models/file.js +51 -0
  153. data/frameworks/sproutcore/apps/greenhouse/models/target.js +82 -0
  154. data/frameworks/sproutcore/apps/greenhouse/models/view_config.js +49 -0
  155. data/frameworks/sproutcore/apps/greenhouse/resources/test_page.js +37 -0
  156. data/frameworks/sproutcore/apps/greenhouse/states/inspector.js +144 -0
  157. data/frameworks/sproutcore/apps/greenhouse/states/library.js +133 -0
  158. data/frameworks/sproutcore/apps/greenhouse/states/main.js +223 -0
  159. data/frameworks/sproutcore/apps/greenhouse/states/modals.js +281 -0
  160. data/frameworks/sproutcore/apps/greenhouse/states/ready.js +197 -0
  161. data/frameworks/sproutcore/apps/greenhouse/tests/controllers/design.js +15 -0
  162. data/frameworks/sproutcore/apps/greenhouse/tests/controllers/designs.js +15 -0
  163. data/frameworks/sproutcore/apps/greenhouse/tests/controllers/file.js +15 -0
  164. data/frameworks/sproutcore/apps/greenhouse/tests/controllers/files.js +15 -0
  165. data/frameworks/sproutcore/apps/greenhouse/tests/models/file.js +15 -0
  166. data/frameworks/sproutcore/apps/greenhouse/tests/models/view_config.js +15 -0
  167. data/frameworks/sproutcore/apps/greenhouse/tests/views/list_item.js +15 -0
  168. data/frameworks/sproutcore/apps/greenhouse/views/anchor.js +277 -0
  169. data/frameworks/sproutcore/apps/greenhouse/views/application_list_item.js +19 -0
  170. data/frameworks/sproutcore/apps/greenhouse/views/event_blocker.js +32 -0
  171. data/frameworks/sproutcore/apps/greenhouse/views/label_designer.js +16 -0
  172. data/frameworks/sproutcore/apps/greenhouse/views/list_item.js +42 -0
  173. data/frameworks/sproutcore/apps/greenhouse/views/plist_item.js +39 -0
  174. data/frameworks/sproutcore/apps/greenhouse/views/simple_button.js +157 -0
  175. data/frameworks/sproutcore/apps/greenhouse/views/tear_off_picker.js +56 -0
  176. data/frameworks/sproutcore/apps/greenhouse/views/web.js +44 -0
  177. data/frameworks/sproutcore/apps/test_controls/Buildfile +0 -0
  178. data/frameworks/sproutcore/apps/test_controls/controllers/categories.js +108 -0
  179. data/frameworks/sproutcore/apps/test_controls/controllers/category.js +31 -0
  180. data/frameworks/sproutcore/apps/test_controls/core.js +29 -0
  181. data/frameworks/sproutcore/apps/test_controls/main.js +14 -0
  182. data/frameworks/sproutcore/apps/test_controls/resources/buttons_page.js +124 -0
  183. data/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js +45 -0
  184. data/frameworks/sproutcore/apps/test_controls/resources/flow_layout_page.js +77 -0
  185. data/frameworks/sproutcore/apps/test_controls/resources/list_page.js +40 -0
  186. data/frameworks/sproutcore/apps/test_controls/resources/loading.rhtml +9 -0
  187. data/frameworks/sproutcore/apps/test_controls/resources/main_page.css +54 -0
  188. data/frameworks/sproutcore/apps/test_controls/resources/main_page.js +136 -0
  189. data/frameworks/sproutcore/apps/test_controls/resources/progress_page.js +42 -0
  190. data/frameworks/sproutcore/apps/test_controls/resources/radio_page.js +41 -0
  191. data/frameworks/sproutcore/apps/test_controls/resources/scroll_page.js +76 -0
  192. data/frameworks/sproutcore/apps/test_controls/resources/segmented_page.js +75 -0
  193. data/frameworks/sproutcore/apps/test_controls/resources/select_page.js +60 -0
  194. data/frameworks/sproutcore/apps/test_controls/resources/sliders_page.js +53 -0
  195. data/frameworks/sproutcore/apps/test_controls/resources/strings.js +50 -0
  196. data/frameworks/sproutcore/apps/test_controls/resources/tab_page.js +15 -0
  197. data/frameworks/sproutcore/apps/test_controls/resources/text_field_page.js +40 -0
  198. data/frameworks/sproutcore/apps/tests/core.js +1 -1
  199. data/frameworks/sproutcore/apps/tests/english.lproj/loading.rhtml +1 -1
  200. data/frameworks/sproutcore/apps/tests/english.lproj/main_page.js +2 -2
  201. data/frameworks/sproutcore/apps/tests/main.js +0 -1
  202. data/frameworks/sproutcore/apps/tests/states/no_targets.js +1 -1
  203. data/frameworks/sproutcore/apps/tests/states/ready.js +1 -1
  204. data/frameworks/sproutcore/apps/tests/states/ready_detail.js +1 -1
  205. data/frameworks/sproutcore/apps/tests/states/ready_empty.js +1 -1
  206. data/frameworks/sproutcore/apps/tests/states/ready_list.js +1 -1
  207. data/frameworks/sproutcore/apps/tests/states/ready_loading.js +1 -1
  208. data/frameworks/sproutcore/apps/tests/states/ready_no_tests.js +1 -1
  209. data/frameworks/sproutcore/apps/tests/states/start.js +1 -1
  210. data/frameworks/sproutcore/apps/welcome/controllers/targets.js +7 -0
  211. data/frameworks/sproutcore/apps/welcome/core.js +1 -1
  212. data/frameworks/sproutcore/apps/welcome/english.lproj/images/main-bg.png +0 -0
  213. data/frameworks/sproutcore/apps/welcome/english.lproj/main_page.css +24 -6
  214. data/frameworks/sproutcore/apps/welcome/english.lproj/main_page.js +36 -46
  215. data/frameworks/sproutcore/bin/edit_json.rb +14 -0
  216. data/frameworks/sproutcore/bin/erubis +14 -0
  217. data/frameworks/sproutcore/bin/prettify_json.rb +14 -0
  218. data/frameworks/sproutcore/bin/rackup +14 -0
  219. data/frameworks/sproutcore/bin/rake2thor +14 -0
  220. data/frameworks/sproutcore/bin/sc-build +14 -0
  221. data/frameworks/sproutcore/bin/sc-build-number +14 -0
  222. data/frameworks/sproutcore/bin/sc-docs +14 -0
  223. data/frameworks/sproutcore/bin/sc-gen +14 -0
  224. data/frameworks/sproutcore/bin/sc-init +14 -0
  225. data/frameworks/sproutcore/bin/sc-manifest +14 -0
  226. data/frameworks/sproutcore/bin/sc-server +14 -0
  227. data/frameworks/sproutcore/bin/sproutcore +14 -0
  228. data/frameworks/sproutcore/bin/thin +14 -0
  229. data/frameworks/sproutcore/bin/thor +14 -0
  230. data/frameworks/sproutcore/design/greenhouse-statechart.graffle +9025 -0
  231. data/frameworks/sproutcore/design/greenhouse-statechart.pdf +0 -0
  232. data/frameworks/sproutcore/design/iphone-webapp-loading.psd +0 -0
  233. data/frameworks/sproutcore/frameworks/animation/core.js +349 -116
  234. data/frameworks/sproutcore/frameworks/animation/tests/core.js +78 -16
  235. data/frameworks/sproutcore/frameworks/bootstrap/core.js +1 -1
  236. data/frameworks/sproutcore/frameworks/bootstrap/setup_body_class_names.js +3 -1
  237. data/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +5 -4
  238. data/frameworks/sproutcore/frameworks/bootstrap/system/loader.js +5 -2
  239. data/frameworks/sproutcore/frameworks/core_tools/data_source.js +1 -1
  240. data/frameworks/sproutcore/frameworks/datastore/core.js +1 -1
  241. data/frameworks/sproutcore/frameworks/datastore/data_sources/cascade.js +1 -1
  242. data/frameworks/sproutcore/frameworks/datastore/data_sources/data_source.js +1 -1
  243. data/frameworks/sproutcore/frameworks/datastore/data_sources/fixtures.js +1 -1
  244. data/frameworks/sproutcore/frameworks/datastore/debug/json.js +1 -1
  245. data/frameworks/sproutcore/frameworks/datastore/debug/standard_setup.js +1 -1
  246. data/frameworks/sproutcore/frameworks/datastore/models/child_attribute.js +122 -0
  247. data/frameworks/sproutcore/frameworks/datastore/models/child_record.js +105 -0
  248. data/frameworks/sproutcore/frameworks/datastore/models/children_attribute.js +81 -0
  249. data/frameworks/sproutcore/frameworks/datastore/models/fetched_attribute.js +1 -1
  250. data/frameworks/sproutcore/frameworks/datastore/models/many_attribute.js +1 -1
  251. data/frameworks/sproutcore/frameworks/datastore/models/record.js +247 -82
  252. data/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +27 -13
  253. data/frameworks/sproutcore/frameworks/datastore/models/single_attribute.js +1 -1
  254. data/frameworks/sproutcore/frameworks/datastore/system/child_array.js +242 -0
  255. data/frameworks/sproutcore/frameworks/datastore/system/many_array.js +3 -3
  256. data/frameworks/sproutcore/frameworks/datastore/system/nested_store.js +34 -18
  257. data/frameworks/sproutcore/frameworks/datastore/system/query.js +124 -47
  258. data/frameworks/sproutcore/frameworks/datastore/system/record_array.js +1 -1
  259. data/frameworks/sproutcore/frameworks/datastore/system/store.js +106 -22
  260. data/frameworks/sproutcore/frameworks/datastore/tests/data_sources/fixtures.js +1 -1
  261. data/frameworks/sproutcore/frameworks/datastore/tests/integration/contact_model.js +1 -1
  262. data/frameworks/sproutcore/frameworks/datastore/tests/integration/cyclical_relationship.js +1 -1
  263. data/frameworks/sproutcore/frameworks/datastore/tests/integration/mail_model.js +1 -1
  264. data/frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js +1 -1
  265. data/frameworks/sproutcore/frameworks/datastore/tests/models/many_attribute.js +12 -1
  266. data/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record.js +235 -0
  267. data/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +337 -0
  268. data/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js +421 -0
  269. data/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_complex.js +304 -0
  270. data/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/parentless.js +134 -0
  271. data/frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js +1 -1
  272. data/frameworks/sproutcore/frameworks/datastore/tests/models/record/destroy.js +1 -1
  273. data/frameworks/sproutcore/frameworks/datastore/tests/models/record/error_methods.js +1 -1
  274. data/frameworks/sproutcore/frameworks/datastore/tests/models/record/normalize.js +30 -2
  275. data/frameworks/sproutcore/frameworks/datastore/tests/models/record/readAttribute.js +1 -1
  276. data/frameworks/sproutcore/frameworks/datastore/tests/models/record/refresh.js +1 -1
  277. data/frameworks/sproutcore/frameworks/datastore/tests/models/record/storeDidChangeProperties.js +1 -1
  278. data/frameworks/sproutcore/frameworks/datastore/tests/models/record/unknownProperty.js +1 -1
  279. data/frameworks/sproutcore/frameworks/datastore/tests/models/record/writeAttribute.js +1 -1
  280. data/frameworks/sproutcore/frameworks/datastore/tests/models/record_attribute.js +35 -4
  281. data/frameworks/sproutcore/frameworks/datastore/tests/models/single_attribute.js +49 -2
  282. data/frameworks/sproutcore/frameworks/datastore/tests/system/many_array/core_methods.js +1 -1
  283. data/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/chain.js +1 -1
  284. data/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChanges.js +1 -1
  285. data/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js +1 -1
  286. data/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/core_methods.js +1 -1
  287. data/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/dataHashDidChange.js +1 -1
  288. data/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/discardChanges.js +1 -1
  289. data/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readDataHash.js +1 -1
  290. data/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readEditableDataHash.js +1 -1
  291. data/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/removeDataHash.js +1 -1
  292. data/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/writeDataHash.js +1 -1
  293. data/frameworks/sproutcore/frameworks/datastore/tests/system/query/builders.js +1 -1
  294. data/frameworks/sproutcore/frameworks/datastore/tests/system/query/compare.js +15 -2
  295. data/frameworks/sproutcore/frameworks/datastore/tests/system/query/contains.js +1 -1
  296. data/frameworks/sproutcore/frameworks/datastore/tests/system/query/containsRecordTypes.js +1 -1
  297. data/frameworks/sproutcore/frameworks/datastore/tests/system/query/copy.js +1 -1
  298. data/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation.js +1 -1
  299. data/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation_of_records.js +2 -2
  300. data/frameworks/sproutcore/frameworks/datastore/tests/system/query/expandedRecordTypes.js +1 -1
  301. data/frameworks/sproutcore/frameworks/datastore/tests/system/query/parse.js +15 -1
  302. data/frameworks/sproutcore/frameworks/datastore/tests/system/query/queryWithScope.js +1 -1
  303. data/frameworks/sproutcore/frameworks/datastore/tests/system/query/record_type_is.js +1 -1
  304. data/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_comparisons.js +1 -1
  305. data/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_query_extensions.js +1 -1
  306. data/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +1 -1
  307. data/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/error_methods.js +1 -1
  308. data/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +2 -2
  309. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/cancelRecord.js +1 -1
  310. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js +1 -1
  311. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitRecord.js +1 -1
  312. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/core_methods.js +15 -2
  313. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/createRecord.js +1 -1
  314. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataHashDidChange.js +1 -1
  315. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataSourceCallbacks.js +1 -1
  316. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/destroyRecord.js +1 -1
  317. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/error_methods.js +1 -1
  318. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/find.js +1 -1
  319. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js +1 -1
  320. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/pushChanges.js +6 -6
  321. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/readDataHash.js +1 -1
  322. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/readEditableDataHash.js +1 -1
  323. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/recordDidChange.js +1 -1
  324. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/removeDataHash.js +1 -1
  325. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/retrieveRecord.js +1 -1
  326. data/frameworks/sproutcore/frameworks/datastore/tests/system/store/writeDataHash.js +1 -1
  327. data/frameworks/sproutcore/frameworks/datejs/core.js +1 -1
  328. data/frameworks/sproutcore/frameworks/datejs/extras.js +1 -1
  329. data/frameworks/sproutcore/frameworks/debug/core.js +13 -2
  330. data/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +40 -25
  331. data/frameworks/sproutcore/frameworks/designer/coders/design.js +1 -10
  332. data/frameworks/sproutcore/frameworks/designer/coders/localization.js +0 -8
  333. data/frameworks/sproutcore/frameworks/designer/controllers/controllers.js +16 -0
  334. data/frameworks/sproutcore/frameworks/designer/controllers/design.js +37 -0
  335. data/frameworks/sproutcore/frameworks/designer/controllers/designs.js +134 -0
  336. data/frameworks/sproutcore/frameworks/designer/controllers/page_design.js +44 -1
  337. data/frameworks/sproutcore/frameworks/designer/controllers/page_files.js +22 -0
  338. data/frameworks/sproutcore/frameworks/designer/core.js +16 -0
  339. data/frameworks/sproutcore/frameworks/designer/css/css_rule.js +1 -1
  340. data/frameworks/sproutcore/frameworks/designer/css/css_style.js +1 -1
  341. data/frameworks/sproutcore/frameworks/designer/css/css_style_sheet.js +1 -1
  342. data/frameworks/sproutcore/frameworks/designer/{views → designers}/button.js +2 -2
  343. data/frameworks/sproutcore/frameworks/designer/{views → designers}/label.js +1 -1
  344. data/frameworks/sproutcore/frameworks/designer/designers/object_designer.js +296 -0
  345. data/frameworks/sproutcore/frameworks/designer/{views → designers}/tab.js +3 -1
  346. data/frameworks/sproutcore/frameworks/designer/designers/text_field.js +15 -0
  347. data/frameworks/sproutcore/frameworks/designer/{views/designer.js → designers/view_designer.js} +282 -22
  348. data/frameworks/sproutcore/frameworks/designer/english.lproj/css/designer.css +96 -0
  349. data/frameworks/sproutcore/frameworks/designer/english.lproj/design_page.js +55 -0
  350. data/frameworks/sproutcore/frameworks/designer/english.lproj/high_light.css +10 -0
  351. data/frameworks/sproutcore/frameworks/designer/english.lproj/images/controller.png +0 -0
  352. data/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-bg.png +0 -0
  353. data/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-item-bg.png +0 -0
  354. data/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-item-divider.png +0 -0
  355. data/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-bg.png +0 -0
  356. data/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-divider.png +0 -0
  357. data/frameworks/sproutcore/frameworks/designer/english.lproj/images/main-bg.png +0 -0
  358. data/frameworks/sproutcore/frameworks/designer/english.lproj/images/page.png +0 -0
  359. data/frameworks/sproutcore/frameworks/designer/english.lproj/images/pane.png +0 -0
  360. data/frameworks/sproutcore/frameworks/designer/english.lproj/images/view.png +0 -0
  361. data/frameworks/sproutcore/frameworks/designer/ext/object.js +26 -0
  362. data/frameworks/sproutcore/frameworks/designer/ext/page.js +1 -1
  363. data/frameworks/sproutcore/frameworks/designer/ext/view.js +16 -0
  364. data/frameworks/sproutcore/frameworks/designer/mixins/snap_lines.js +221 -0
  365. data/frameworks/sproutcore/frameworks/designer/views/designer_drop_target.js +138 -0
  366. data/frameworks/sproutcore/frameworks/designer/views/drawing.js +219 -0
  367. data/frameworks/sproutcore/frameworks/designer/views/high_light.js +66 -0
  368. data/frameworks/sproutcore/frameworks/designer/views/page_item_view.js +130 -0
  369. data/frameworks/sproutcore/frameworks/designer/views/selection_handles.js +1 -0
  370. data/frameworks/sproutcore/frameworks/desktop/core.js +1 -1
  371. data/frameworks/sproutcore/frameworks/desktop/english.lproj/alert.css +1 -1
  372. data/frameworks/sproutcore/frameworks/desktop/english.lproj/disclosure.css +7 -11
  373. data/frameworks/sproutcore/frameworks/desktop/english.lproj/images/cap.png +0 -0
  374. data/frameworks/sproutcore/frameworks/desktop/english.lproj/images/downbutton.png +0 -0
  375. data/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-bottom.png +0 -0
  376. data/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-center.png +0 -0
  377. data/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-top.png +0 -0
  378. data/frameworks/sproutcore/frameworks/desktop/english.lproj/images/track.png +0 -0
  379. data/frameworks/sproutcore/frameworks/desktop/english.lproj/images/upbutton.png +0 -0
  380. data/frameworks/sproutcore/frameworks/desktop/english.lproj/list_item.css +27 -3
  381. data/frameworks/sproutcore/frameworks/desktop/english.lproj/menu.css +3 -5
  382. data/frameworks/sproutcore/frameworks/desktop/english.lproj/menu_item_view.css +18 -39
  383. data/frameworks/sproutcore/frameworks/desktop/english.lproj/progress.css +2 -0
  384. data/frameworks/sproutcore/frameworks/desktop/english.lproj/segmented.css +30 -38
  385. data/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +7 -5
  386. data/frameworks/sproutcore/frameworks/desktop/english.lproj/split.css +0 -70
  387. data/frameworks/sproutcore/frameworks/desktop/english.lproj/split_divider.css +0 -3
  388. data/frameworks/sproutcore/frameworks/desktop/english.lproj/tab.css +0 -1
  389. data/frameworks/sproutcore/frameworks/desktop/english.lproj/video.css +3 -0
  390. data/frameworks/sproutcore/frameworks/desktop/mixins/border.js +108 -23
  391. data/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +681 -0
  392. data/frameworks/sproutcore/frameworks/desktop/mixins/collection_group.js +1 -1
  393. data/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +1 -1
  394. data/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +1 -1
  395. data/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +130 -0
  396. data/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +6 -0
  397. data/frameworks/sproutcore/frameworks/desktop/panes/alert.js +8 -7
  398. data/frameworks/sproutcore/frameworks/desktop/panes/menu.js +944 -501
  399. data/frameworks/sproutcore/frameworks/desktop/panes/modal.js +4 -1
  400. data/frameworks/sproutcore/frameworks/desktop/panes/palette.js +10 -1
  401. data/frameworks/sproutcore/frameworks/desktop/panes/panel.js +5 -22
  402. data/frameworks/sproutcore/frameworks/desktop/panes/picker.js +268 -56
  403. data/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +249 -110
  404. data/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +93 -33
  405. data/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +9 -0
  406. data/frameworks/sproutcore/frameworks/desktop/renderers/button.js +147 -0
  407. data/frameworks/sproutcore/frameworks/desktop/renderers/checkbox.js +87 -0
  408. data/frameworks/sproutcore/frameworks/desktop/renderers/checkbox_control.js +103 -0
  409. data/frameworks/sproutcore/frameworks/desktop/renderers/disclosure.js +82 -0
  410. data/frameworks/sproutcore/frameworks/desktop/renderers/disclosure_control.js +103 -0
  411. data/frameworks/sproutcore/frameworks/desktop/renderers/image_button.js +33 -0
  412. data/frameworks/sproutcore/frameworks/desktop/renderers/list_item.js +334 -0
  413. data/frameworks/sproutcore/frameworks/desktop/renderers/masterDetail.js +23 -0
  414. data/frameworks/sproutcore/frameworks/desktop/renderers/panel.js +34 -0
  415. data/frameworks/sproutcore/frameworks/desktop/renderers/picker.js +50 -0
  416. data/frameworks/sproutcore/frameworks/desktop/renderers/segment.js +79 -0
  417. data/frameworks/sproutcore/frameworks/desktop/renderers/segmented.js +172 -0
  418. data/frameworks/sproutcore/frameworks/desktop/renderers/slider.js +86 -0
  419. data/frameworks/sproutcore/frameworks/desktop/renderers/workspace.js +22 -0
  420. data/frameworks/sproutcore/frameworks/desktop/system/drag.js +85 -51
  421. data/frameworks/sproutcore/frameworks/desktop/tests/datetime_recordattribute.js +1 -1
  422. data/frameworks/sproutcore/frameworks/desktop/tests/integration/dialog.js +1 -1
  423. data/frameworks/sproutcore/frameworks/desktop/tests/mixins/border.js +96 -0
  424. data/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/methods.js +1 -1
  425. data/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +4 -4
  426. data/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +113 -35
  427. data/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +215 -51
  428. data/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/methods.js +1 -1
  429. data/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +1 -1
  430. data/frameworks/sproutcore/frameworks/desktop/tests/panes/pane_page.js +1 -1
  431. data/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +1 -1
  432. data/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +1 -1
  433. data/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +1 -1
  434. data/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +3 -1
  435. data/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +1 -1
  436. data/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +1 -1
  437. data/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/methods.js +1 -1
  438. data/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +2 -2
  439. data/frameworks/sproutcore/frameworks/desktop/tests/views/button/methods.js +28 -4
  440. data/frameworks/sproutcore/frameworks/desktop/tests/views/button/ui.js +32 -12
  441. data/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +17 -24
  442. data/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +14 -18
  443. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/content.js +1 -1
  444. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deleteSelection.js +1 -1
  445. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deselect.js +1 -1
  446. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js +1 -1
  447. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +13 -1
  448. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/layerIdFor.js +1 -1
  449. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/length.js +1 -1
  450. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +46 -5
  451. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/nowShowing.js +1 -1
  452. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/reload.js +1 -1
  453. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/select.js +1 -1
  454. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectNextItem.js +1 -1
  455. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectPreviousItem.js +1 -1
  456. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selection.js +1 -1
  457. data/frameworks/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +1 -1
  458. data/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +76 -0
  459. data/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +455 -0
  460. data/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/methods.js +1 -1
  461. data/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +1 -1
  462. data/frameworks/sproutcore/frameworks/desktop/tests/views/grid/methods.js +1 -1
  463. data/frameworks/sproutcore/frameworks/desktop/tests/views/grid/ui.js +1 -1
  464. data/frameworks/sproutcore/frameworks/desktop/tests/views/list/render.js +1 -1
  465. data/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowDelegate.js +1 -1
  466. data/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +1 -1
  467. data/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowOffsetForContentIndex.js +1 -1
  468. data/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +1 -1
  469. data/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +1 -1
  470. data/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +45 -6
  471. data/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +7 -7
  472. data/frameworks/sproutcore/frameworks/desktop/tests/views/list_item.js +129 -21
  473. data/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/methods.js +1 -1
  474. data/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js +40 -38
  475. data/frameworks/sproutcore/frameworks/desktop/tests/views/progress/methods.js +1 -1
  476. data/frameworks/sproutcore/frameworks/desktop/tests/views/progress/ui.js +1 -1
  477. data/frameworks/sproutcore/frameworks/desktop/tests/views/radio/methods.js +24 -17
  478. data/frameworks/sproutcore/frameworks/desktop/tests/views/radio/ui.js +68 -36
  479. data/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +1 -1
  480. data/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +22 -63
  481. data/frameworks/sproutcore/frameworks/desktop/tests/views/scroller.js +90 -0
  482. data/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +8 -8
  483. data/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +8 -4
  484. data/frameworks/sproutcore/frameworks/desktop/tests/views/select/methods.js +144 -0
  485. data/frameworks/sproutcore/frameworks/desktop/tests/views/select/ui.js +216 -0
  486. data/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/methods.js +1 -1
  487. data/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +1 -1
  488. data/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js +1 -1
  489. data/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/methods.js +1 -1
  490. data/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/ui.js +1 -1
  491. data/frameworks/sproutcore/frameworks/desktop/tests/views/split/methods.js +1 -1
  492. data/frameworks/sproutcore/frameworks/desktop/tests/views/split/ui.js +1 -1
  493. data/frameworks/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +1 -1
  494. data/frameworks/sproutcore/frameworks/desktop/tests/views/static_content.js +46 -0
  495. data/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js +1 -1
  496. data/frameworks/sproutcore/frameworks/desktop/tests/views/tab/ui.js +1 -1
  497. data/frameworks/sproutcore/frameworks/desktop/tests/views/web/methods.js +1 -1
  498. data/frameworks/sproutcore/frameworks/desktop/tests/views/web/ui.js +1 -1
  499. data/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js +1 -1
  500. data/frameworks/sproutcore/frameworks/desktop/views/button.js +249 -79
  501. data/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +63 -89
  502. data/frameworks/sproutcore/frameworks/desktop/views/collection.js +358 -96
  503. data/frameworks/sproutcore/frameworks/desktop/views/date_field.js +319 -0
  504. data/frameworks/sproutcore/frameworks/desktop/views/disclosure.js +31 -17
  505. data/frameworks/sproutcore/frameworks/desktop/views/file.js +112 -0
  506. data/frameworks/sproutcore/frameworks/desktop/views/grid.js +30 -34
  507. data/frameworks/sproutcore/frameworks/desktop/views/list.js +28 -14
  508. data/frameworks/sproutcore/frameworks/desktop/views/list_item.js +480 -262
  509. data/frameworks/sproutcore/frameworks/desktop/views/master_detail.js +249 -0
  510. data/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +443 -381
  511. data/frameworks/sproutcore/frameworks/desktop/views/menu_scroll.js +74 -66
  512. data/frameworks/sproutcore/frameworks/desktop/views/navigation.js +237 -0
  513. data/frameworks/sproutcore/frameworks/desktop/views/navigation_bar.js +181 -0
  514. data/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +175 -57
  515. data/frameworks/sproutcore/frameworks/desktop/views/progress.js +29 -21
  516. data/frameworks/sproutcore/frameworks/desktop/views/radio.js +196 -204
  517. data/frameworks/sproutcore/frameworks/desktop/views/scene.js +1 -1
  518. data/frameworks/sproutcore/frameworks/desktop/views/scroll.js +1128 -94
  519. data/frameworks/sproutcore/frameworks/desktop/views/scroller.js +569 -153
  520. data/frameworks/sproutcore/frameworks/desktop/views/segmented.js +144 -129
  521. data/frameworks/sproutcore/frameworks/desktop/views/select.js +804 -0
  522. data/frameworks/sproutcore/frameworks/desktop/views/select_field.js +15 -13
  523. data/frameworks/sproutcore/frameworks/desktop/views/slider.js +77 -47
  524. data/frameworks/sproutcore/frameworks/desktop/views/source_list.js +1 -1
  525. data/frameworks/sproutcore/frameworks/desktop/views/source_list_group.js +4 -4
  526. data/frameworks/sproutcore/frameworks/desktop/views/split.js +426 -269
  527. data/frameworks/sproutcore/frameworks/desktop/views/split_divider.js +5 -3
  528. data/frameworks/sproutcore/frameworks/desktop/views/stacked.js +1 -1
  529. data/frameworks/sproutcore/frameworks/desktop/views/static_content.js +123 -0
  530. data/frameworks/sproutcore/frameworks/desktop/views/tab.js +59 -63
  531. data/frameworks/sproutcore/frameworks/desktop/views/thumb.js +5 -1
  532. data/frameworks/sproutcore/frameworks/desktop/views/toolbar.js +1 -1
  533. data/frameworks/sproutcore/frameworks/desktop/views/web.js +3 -3
  534. data/frameworks/sproutcore/frameworks/desktop/views/well.js +7 -2
  535. data/frameworks/sproutcore/frameworks/desktop/views/workspace.js +270 -0
  536. data/frameworks/sproutcore/frameworks/documentation/core.js +0 -0
  537. data/frameworks/sproutcore/frameworks/forms/english.lproj/default_styles.css +5 -0
  538. data/frameworks/sproutcore/frameworks/forms/english.lproj/strings.js +15 -0
  539. data/frameworks/sproutcore/frameworks/forms/mixins/auto_hide.js +85 -0
  540. data/frameworks/sproutcore/frameworks/forms/mixins/edit_mode.js +43 -0
  541. data/frameworks/sproutcore/frameworks/forms/renderers/form.js +24 -0
  542. data/frameworks/sproutcore/frameworks/forms/renderers/form_row.js +24 -0
  543. data/frameworks/sproutcore/frameworks/forms/tests/views/form.js +15 -0
  544. data/frameworks/sproutcore/frameworks/forms/tests/views/form_checkbox_field.js +15 -0
  545. data/frameworks/sproutcore/frameworks/forms/tests/views/form_field.js +15 -0
  546. data/frameworks/sproutcore/frameworks/forms/tests/views/form_label.js +15 -0
  547. data/frameworks/sproutcore/frameworks/forms/tests/views/form_radio_field.js +15 -0
  548. data/frameworks/sproutcore/frameworks/forms/tests/views/form_row.js +15 -0
  549. data/frameworks/sproutcore/frameworks/forms/tests/views/form_text_field.js +15 -0
  550. data/frameworks/sproutcore/frameworks/forms/views/form.js +266 -0
  551. data/frameworks/sproutcore/frameworks/forms/views/form_row.js +188 -0
  552. data/frameworks/sproutcore/frameworks/foundation/TESTING +5 -5
  553. data/frameworks/sproutcore/frameworks/foundation/controllers/array.js +11 -2
  554. data/frameworks/sproutcore/frameworks/foundation/controllers/controller.js +2 -2
  555. data/frameworks/sproutcore/frameworks/foundation/controllers/object.js +23 -3
  556. data/frameworks/sproutcore/frameworks/foundation/core.js +34 -3
  557. data/frameworks/sproutcore/frameworks/foundation/debug/control_test_pane.js +2 -3
  558. data/frameworks/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +2 -1
  559. data/frameworks/sproutcore/frameworks/foundation/english.lproj/button_view.css +4 -0
  560. data/frameworks/sproutcore/frameworks/foundation/english.lproj/core.css +109 -81
  561. data/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-logo.png +0 -0
  562. data/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.jpg +0 -0
  563. data/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.png +0 -0
  564. data/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.jpg +0 -0
  565. data/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.png +0 -0
  566. data/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup.png +0 -0
  567. data/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore.png +0 -0
  568. data/frameworks/sproutcore/frameworks/foundation/english.lproj/strings.js +1 -1
  569. data/frameworks/sproutcore/frameworks/foundation/english.lproj/text_field.css +16 -14
  570. data/frameworks/sproutcore/frameworks/foundation/english.lproj/view.css +5 -0
  571. data/frameworks/sproutcore/frameworks/foundation/ext/object.js +1 -1
  572. data/frameworks/sproutcore/frameworks/foundation/ext/run_loop.js +6 -5
  573. data/frameworks/sproutcore/frameworks/foundation/gestures/pinch.js +81 -0
  574. data/frameworks/sproutcore/frameworks/foundation/gestures/swipe.js +142 -0
  575. data/frameworks/sproutcore/frameworks/foundation/mixins/auto_mixin.js +33 -0
  576. data/frameworks/sproutcore/frameworks/foundation/mixins/auto_resize.js +74 -0
  577. data/frameworks/sproutcore/frameworks/foundation/mixins/button.js +4 -2
  578. data/frameworks/sproutcore/frameworks/foundation/mixins/collection_content.js +1 -1
  579. data/frameworks/sproutcore/frameworks/foundation/mixins/content_display.js +2 -2
  580. data/frameworks/sproutcore/frameworks/foundation/mixins/control.js +88 -15
  581. data/frameworks/sproutcore/frameworks/foundation/mixins/editable.js +3 -1
  582. data/frameworks/sproutcore/frameworks/foundation/mixins/flowed_layout.js +415 -0
  583. data/frameworks/sproutcore/frameworks/foundation/mixins/gestureable.js +106 -0
  584. data/frameworks/sproutcore/frameworks/foundation/mixins/inline_text_field.js +95 -64
  585. data/frameworks/sproutcore/frameworks/foundation/{system → mixins}/responder_context.js +42 -16
  586. data/frameworks/sproutcore/frameworks/foundation/mixins/selection_support.js +64 -83
  587. data/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +7 -53
  588. data/frameworks/sproutcore/frameworks/foundation/mixins/string.js +188 -5
  589. data/frameworks/sproutcore/frameworks/foundation/mixins/tree_item_content.js +1 -1
  590. data/frameworks/sproutcore/frameworks/foundation/mixins/validatable.js +4 -4
  591. data/frameworks/sproutcore/frameworks/foundation/panes/main.js +1 -2
  592. data/frameworks/sproutcore/frameworks/foundation/panes/pane.js +216 -53
  593. data/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +1 -1
  594. data/frameworks/sproutcore/frameworks/foundation/protocols/inline_editor_delegate.js +1 -1
  595. data/frameworks/sproutcore/frameworks/foundation/renderers/control.js +122 -0
  596. data/frameworks/sproutcore/frameworks/foundation/renderers/image.js +51 -0
  597. data/frameworks/sproutcore/frameworks/foundation/renderers/label.js +96 -0
  598. data/frameworks/sproutcore/frameworks/foundation/renderers/renderer.js +316 -0
  599. data/frameworks/sproutcore/frameworks/foundation/renderers/title.js +108 -0
  600. data/frameworks/sproutcore/frameworks/foundation/renderers/view.js +62 -0
  601. data/frameworks/sproutcore/frameworks/foundation/system/application.js +4 -3
  602. data/frameworks/sproutcore/frameworks/foundation/system/benchmark.js +5 -2
  603. data/frameworks/sproutcore/frameworks/foundation/system/browser.js +32 -37
  604. data/frameworks/sproutcore/frameworks/foundation/system/builder.js +1 -1
  605. data/frameworks/sproutcore/frameworks/foundation/system/bundle.js +18 -15
  606. data/frameworks/sproutcore/frameworks/foundation/system/core_query.js +12 -13
  607. data/frameworks/sproutcore/frameworks/foundation/system/cursor.js +6 -5
  608. data/frameworks/sproutcore/frameworks/foundation/system/datetime.js +7 -8
  609. data/frameworks/sproutcore/frameworks/foundation/system/device.js +143 -0
  610. data/frameworks/sproutcore/frameworks/foundation/system/event.js +38 -13
  611. data/frameworks/sproutcore/frameworks/foundation/system/gesture.js +245 -0
  612. data/frameworks/sproutcore/frameworks/foundation/system/image_cache.js +13 -13
  613. data/frameworks/sproutcore/frameworks/foundation/system/json.js +11 -8
  614. data/frameworks/sproutcore/frameworks/foundation/system/locale.js +7 -2
  615. data/frameworks/sproutcore/frameworks/foundation/system/math.js +57 -0
  616. data/frameworks/sproutcore/frameworks/foundation/system/page.js +2 -2
  617. data/frameworks/sproutcore/frameworks/foundation/system/platform.js +189 -0
  618. data/frameworks/sproutcore/frameworks/foundation/system/ready.js +9 -7
  619. data/frameworks/sproutcore/frameworks/foundation/system/render_context.js +155 -62
  620. data/frameworks/sproutcore/frameworks/foundation/system/request.js +21 -1
  621. data/frameworks/sproutcore/frameworks/foundation/system/responder.js +6 -3
  622. data/frameworks/sproutcore/frameworks/foundation/system/response.js +5 -3
  623. data/frameworks/sproutcore/frameworks/foundation/system/root_responder.js +1704 -233
  624. data/frameworks/sproutcore/frameworks/foundation/system/routes.js +340 -445
  625. data/frameworks/sproutcore/frameworks/foundation/system/task_queue.js +150 -0
  626. data/frameworks/sproutcore/frameworks/foundation/system/text_selection.js +1 -1
  627. data/frameworks/sproutcore/frameworks/foundation/system/theme.js +108 -0
  628. data/frameworks/sproutcore/frameworks/foundation/system/time.js +0 -5
  629. data/frameworks/sproutcore/frameworks/foundation/system/timer.js +1 -1
  630. data/frameworks/sproutcore/frameworks/foundation/system/user_defaults.js +193 -29
  631. data/frameworks/sproutcore/frameworks/foundation/system/utils.js +133 -60
  632. data/frameworks/sproutcore/frameworks/foundation/tasks/preload_bundle.js +41 -0
  633. data/frameworks/sproutcore/frameworks/foundation/tasks/task.js +17 -0
  634. data/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/array_case.js +1 -1
  635. data/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/enum_case.js +1 -1
  636. data/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/null_case.js +1 -1
  637. data/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/selection_support.js +318 -0
  638. data/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/single_case.js +1 -1
  639. data/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/empty_case.js +1 -1
  640. data/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/multiple_case.js +1 -1
  641. data/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/single_case.js +1 -1
  642. data/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/single_enumerable_case.js +87 -1
  643. data/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/outline_case.js +1 -1
  644. data/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +340 -0
  645. data/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/methods.js +1 -1
  646. data/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/ui.js +1 -1
  647. data/frameworks/sproutcore/frameworks/foundation/tests/integration/creating_views.js +1 -1
  648. data/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/content.js +1 -1
  649. data/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/displayProperties.js +1 -1
  650. data/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/keyEquivalents.js +1 -1
  651. data/frameworks/sproutcore/frameworks/foundation/tests/mixins/control/content.js +1 -1
  652. data/frameworks/sproutcore/frameworks/foundation/tests/mixins/control/displayProperties.js +1 -1
  653. data/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/api.js +52 -0
  654. data/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +227 -0
  655. data/frameworks/sproutcore/frameworks/foundation/tests/mixins/responder_context.js +75 -0
  656. data/frameworks/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +17 -0
  657. data/frameworks/sproutcore/frameworks/foundation/tests/mixins/string.js +58 -3
  658. data/frameworks/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +74 -0
  659. data/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/flat_case.js +1 -1
  660. data/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/group_case.js +1 -1
  661. data/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/outline_case.js +1 -1
  662. data/frameworks/sproutcore/frameworks/foundation/tests/renderers/renderer/base.js +170 -0
  663. data/frameworks/sproutcore/frameworks/foundation/tests/renderers/renderer/inheritance.js +39 -0
  664. data/frameworks/sproutcore/frameworks/foundation/tests/system/datetime.js +4 -9
  665. data/frameworks/sproutcore/frameworks/foundation/tests/system/locale.js +6 -1
  666. data/frameworks/sproutcore/frameworks/foundation/tests/system/math.js +39 -0
  667. data/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/begin.js +1 -1
  668. data/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/element.js +1 -1
  669. data/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/end.js +6 -1
  670. data/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/get.js +1 -1
  671. data/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_attr.js +1 -1
  672. data/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_basic.js +1 -1
  673. data/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_className.js +1 -1
  674. data/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_style.js +12 -3
  675. data/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/init.js +1 -1
  676. data/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js +1 -1
  677. data/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/push_text.js +1 -1
  678. data/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/tag.js +1 -1
  679. data/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/update.js +12 -1
  680. data/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/makeKeyPane.js +1 -1
  681. data/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/makeMainPane.js +1 -1
  682. data/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/makeMenuPane.js +48 -0
  683. data/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/targetForAction.js +1 -1
  684. data/frameworks/sproutcore/frameworks/foundation/tests/system/routes.js +333 -14
  685. data/frameworks/sproutcore/frameworks/foundation/tests/system/task_queue.js +43 -0
  686. data/frameworks/sproutcore/frameworks/foundation/tests/system/theme.js +86 -0
  687. data/frameworks/sproutcore/frameworks/foundation/tests/system/timer/invokeLater.js +7 -5
  688. data/frameworks/sproutcore/frameworks/foundation/tests/validators/date.js +1 -1
  689. data/frameworks/sproutcore/frameworks/foundation/tests/views/container/methods.js +1 -1
  690. data/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +34 -2
  691. data/frameworks/sproutcore/frameworks/foundation/tests/views/image/ui.js +1 -1
  692. data/frameworks/sproutcore/frameworks/foundation/tests/views/label/ui.js +1 -1
  693. data/frameworks/sproutcore/frameworks/foundation/tests/views/pane/append_remove.js +7 -10
  694. data/frameworks/sproutcore/frameworks/foundation/tests/views/pane/firstResponder.js +1 -1
  695. data/frameworks/sproutcore/frameworks/foundation/tests/views/pane/keyPane.js +1 -1
  696. data/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js +31 -0
  697. data/frameworks/sproutcore/frameworks/foundation/tests/views/pane/sendEvent.js +1 -1
  698. data/frameworks/sproutcore/frameworks/foundation/tests/views/pane/sendTouchEvent.js +267 -0
  699. data/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +1 -1
  700. data/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +99 -5
  701. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/animation.js +321 -0
  702. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/build.js +85 -0
  703. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/build_children.js +89 -0
  704. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/clippingFrame.js +1 -1
  705. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/convertFrames.js +1 -1
  706. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/createChildViews.js +1 -1
  707. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/createLayer.js +3 -3
  708. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/destroyLayer.js +1 -1
  709. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/didAppendToDocument.js +1 -1
  710. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/findLayerInParentLayer.js +1 -1
  711. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/init.js +1 -1
  712. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/insertBefore.js +1 -1
  713. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/layer.js +1 -1
  714. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/layoutChildViews.js +2 -2
  715. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/layoutDidChange.js +2 -2
  716. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/layoutStyle.js +289 -22
  717. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/nextValidKeyView.js +20 -1
  718. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/parentViewDidChange.js +2 -2
  719. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/prepareContext.js +28 -6
  720. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/removeChild.js +2 -2
  721. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/render.js +50 -7
  722. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/renderer.js +443 -0
  723. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/replaceChild.js +2 -2
  724. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/theme.js +41 -0
  725. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/updateLayer.js +4 -4
  726. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/updateLayerLocation.js +2 -2
  727. data/frameworks/sproutcore/frameworks/foundation/tests/views/view/viewDidResize.js +7 -6
  728. data/frameworks/sproutcore/frameworks/foundation/validators/credit_card.js +1 -1
  729. data/frameworks/sproutcore/frameworks/foundation/validators/date.js +1 -1
  730. data/frameworks/sproutcore/frameworks/foundation/validators/date_time.js +46 -0
  731. data/frameworks/sproutcore/frameworks/foundation/validators/email.js +1 -1
  732. data/frameworks/sproutcore/frameworks/foundation/validators/not_empty.js +1 -1
  733. data/frameworks/sproutcore/frameworks/foundation/validators/number.js +17 -5
  734. data/frameworks/sproutcore/frameworks/foundation/validators/password.js +1 -1
  735. data/frameworks/sproutcore/frameworks/foundation/validators/positive_integer.js +84 -0
  736. data/frameworks/sproutcore/frameworks/foundation/validators/validator.js +16 -6
  737. data/frameworks/sproutcore/frameworks/foundation/views/container.js +25 -22
  738. data/frameworks/sproutcore/frameworks/foundation/views/field.js +16 -42
  739. data/frameworks/sproutcore/frameworks/foundation/views/image.js +1 -1
  740. data/frameworks/sproutcore/frameworks/foundation/views/label.js +58 -48
  741. data/frameworks/sproutcore/frameworks/foundation/views/text_field.js +321 -133
  742. data/frameworks/sproutcore/frameworks/foundation/views/view.js +1853 -353
  743. data/frameworks/sproutcore/frameworks/jquery/jquery.js +6240 -0
  744. data/frameworks/sproutcore/frameworks/media/resources/controls.png +0 -0
  745. data/frameworks/sproutcore/frameworks/media/resources/playeras3.fla +0 -0
  746. data/frameworks/sproutcore/frameworks/media/resources/video.css +120 -0
  747. data/frameworks/sproutcore/frameworks/media/resources/videoCanvas.swf +0 -0
  748. data/frameworks/sproutcore/frameworks/media/views/audio.js +729 -0
  749. data/frameworks/sproutcore/frameworks/media/views/controls.js +90 -0
  750. data/frameworks/sproutcore/frameworks/media/views/mediaSlider.js +243 -0
  751. data/frameworks/sproutcore/frameworks/media/views/miniControls.js +63 -0
  752. data/frameworks/sproutcore/frameworks/media/views/simpleControls.js +55 -0
  753. data/frameworks/sproutcore/frameworks/media/views/video.js +829 -0
  754. data/frameworks/sproutcore/frameworks/mobile/lib/index.rhtml +2 -3
  755. data/frameworks/sproutcore/frameworks/mobile/tests/views/button/ui.js +9 -2
  756. data/frameworks/sproutcore/frameworks/mobile/views/button.js +5 -4
  757. data/frameworks/sproutcore/frameworks/runtime/core.js +46 -34
  758. data/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +1 -1
  759. data/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/indexOf.js +1 -1
  760. data/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/insertAt.js +1 -1
  761. data/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/objectAt.js +1 -1
  762. data/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/popObject.js +1 -1
  763. data/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/pushObject.js +1 -1
  764. data/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +1 -1
  765. data/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeAt.js +1 -1
  766. data/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeObject.js +1 -1
  767. data/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/replace.js +1 -1
  768. data/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/shiftObject.js +1 -1
  769. data/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/unshiftObject.js +1 -1
  770. data/frameworks/sproutcore/frameworks/runtime/mixins/array.js +36 -2
  771. data/frameworks/sproutcore/frameworks/runtime/mixins/comparable.js +1 -1
  772. data/frameworks/sproutcore/frameworks/runtime/mixins/copyable.js +1 -1
  773. data/frameworks/sproutcore/frameworks/runtime/mixins/delegate_support.js +1 -1
  774. data/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +63 -3
  775. data/frameworks/sproutcore/frameworks/runtime/mixins/freezable.js +1 -1
  776. data/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +25 -19
  777. data/frameworks/sproutcore/frameworks/runtime/private/chain_observer.js +1 -1
  778. data/frameworks/sproutcore/frameworks/runtime/private/observer_queue.js +1 -1
  779. data/frameworks/sproutcore/frameworks/runtime/private/observer_set.js +12 -7
  780. data/frameworks/sproutcore/frameworks/runtime/protocols/observable_protocol.js +1 -1
  781. data/frameworks/sproutcore/frameworks/runtime/protocols/sparse_array_delegate.js +1 -1
  782. data/frameworks/sproutcore/frameworks/runtime/system/binding.js +60 -7
  783. data/frameworks/sproutcore/frameworks/runtime/system/enumerator.js +1 -1
  784. data/frameworks/sproutcore/frameworks/runtime/system/error.js +1 -1
  785. data/frameworks/sproutcore/frameworks/runtime/system/index_set.js +2 -1
  786. data/frameworks/sproutcore/frameworks/runtime/system/object.js +37 -7
  787. data/frameworks/sproutcore/frameworks/runtime/system/range_observer.js +1 -1
  788. data/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +39 -10
  789. data/frameworks/sproutcore/frameworks/runtime/system/selection_set.js +1 -1
  790. data/frameworks/sproutcore/frameworks/runtime/system/set.js +1 -1
  791. data/frameworks/sproutcore/frameworks/runtime/system/sparse_array.js +3 -3
  792. data/frameworks/sproutcore/frameworks/runtime/tests/core/clone.js +1 -1
  793. data/frameworks/sproutcore/frameworks/runtime/tests/core/compare.js +1 -1
  794. data/frameworks/sproutcore/frameworks/runtime/tests/mixins/array.js +1 -1
  795. data/frameworks/sproutcore/frameworks/runtime/tests/mixins/comparable.js +1 -1
  796. data/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable.js +12 -1
  797. data/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +6 -1
  798. data/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/propertyChanges.js +23 -0
  799. data/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +1 -1
  800. data/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +1 -1
  801. data/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +126 -0
  802. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/add.js +1 -1
  803. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/addEach.js +1 -1
  804. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/clone.js +1 -1
  805. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +1 -1
  806. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/create.js +1 -1
  807. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexAfter.js +1 -1
  808. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexBefore.js +1 -1
  809. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +1 -1
  810. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/max.js +1 -1
  811. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/min.js +11 -1
  812. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/rangeStartForIndex.js +1 -1
  813. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/remove.js +1 -1
  814. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/removeEach.js +1 -1
  815. data/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/without.js +1 -1
  816. data/frameworks/sproutcore/frameworks/runtime/tests/system/object/bindings.js +30 -12
  817. data/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +1 -1
  818. data/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/destroy.js +1 -1
  819. data/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/objectPropertyDidChange.js +1 -1
  820. data/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/rangeDidChange.js +1 -1
  821. data/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/update.js +1 -1
  822. data/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/add.js +1 -1
  823. data/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js +1 -1
  824. data/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/indexSetForSource.js +1 -1
  825. data/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/isEqual.js +1 -1
  826. data/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/remove.js +1 -1
  827. data/frameworks/sproutcore/frameworks/statechart/core.js +11 -0
  828. data/frameworks/sproutcore/frameworks/statechart/mixins/statechart.js +337 -0
  829. data/frameworks/sproutcore/frameworks/statechart/system/state.js +176 -0
  830. data/frameworks/sproutcore/frameworks/statechart/tests/basic.js +90 -0
  831. data/frameworks/sproutcore/frameworks/statechart/tests/history.js +71 -0
  832. data/frameworks/sproutcore/frameworks/statechart/tests/nested.js +59 -0
  833. data/frameworks/sproutcore/frameworks/statechart/tests/transient.js +148 -0
  834. data/frameworks/sproutcore/frameworks/table/mixins/table_delegate.js +41 -0
  835. data/frameworks/sproutcore/frameworks/table/system/table_column.js +125 -0
  836. data/frameworks/sproutcore/frameworks/table/views/table.js +438 -0
  837. data/frameworks/sproutcore/frameworks/table/views/table_cell.js +62 -0
  838. data/frameworks/sproutcore/frameworks/table/views/table_head.js +158 -0
  839. data/frameworks/sproutcore/frameworks/table/views/table_header.js +212 -0
  840. data/frameworks/sproutcore/frameworks/table/views/table_row.js +155 -0
  841. data/frameworks/sproutcore/frameworks/test +77 -0
  842. data/frameworks/sproutcore/frameworks/testing/core.js +1 -1
  843. data/frameworks/sproutcore/frameworks/testing/extras.js +1 -1
  844. data/frameworks/sproutcore/frameworks/testing/system/dump.js +1 -1
  845. data/frameworks/sproutcore/frameworks/testing/system/equiv.js +1 -1
  846. data/frameworks/sproutcore/frameworks/testing/system/plan.js +1 -1
  847. data/frameworks/sproutcore/frameworks/testing/system/runner.js +2 -2
  848. data/frameworks/sproutcore/frameworks/testing/system/suite.js +1 -1
  849. data/frameworks/sproutcore/frameworks/testing/utils.js +1 -1
  850. data/frameworks/sproutcore/lib/index.rhtml +15 -4
  851. data/frameworks/sproutcore/themes/ace/Buildfile +0 -0
  852. data/frameworks/sproutcore/themes/ace/README.md +161 -0
  853. data/frameworks/sproutcore/themes/ace/build +2 -0
  854. data/frameworks/sproutcore/themes/ace/build-d +2 -0
  855. data/frameworks/sproutcore/themes/ace/chance/README.md +113 -0
  856. data/frameworks/sproutcore/themes/ace/chance/chance.rb +203 -0
  857. data/frameworks/sproutcore/themes/ace/chance/lib/css.rb +202 -0
  858. data/frameworks/sproutcore/themes/ace/chance/lib/slicedice.rb +391 -0
  859. data/frameworks/sproutcore/themes/ace/chance/sc-theme.rb +0 -0
  860. data/frameworks/sproutcore/themes/ace/chance/scripts/setup.rb +126 -0
  861. data/frameworks/sproutcore/themes/ace/mockups/dark.png +0 -0
  862. data/frameworks/sproutcore/themes/ace/mockups/dark.psd +0 -0
  863. data/frameworks/sproutcore/themes/ace/mockups/light.png +0 -0
  864. data/frameworks/sproutcore/themes/ace/mockups/light.psd +0 -0
  865. data/frameworks/sproutcore/themes/ace/resources/images/1.png +0 -0
  866. data/frameworks/sproutcore/themes/ace/resources/images/2.png +0 -0
  867. data/frameworks/sproutcore/themes/ace/resources/images/3.png +0 -0
  868. data/frameworks/sproutcore/themes/ace/resources/theme.css +1832 -0
  869. data/frameworks/sproutcore/themes/ace/scroll_test/resources/images/1.png +0 -0
  870. data/frameworks/sproutcore/themes/ace/scroll_test/resources/images/2.png +0 -0
  871. data/frameworks/sproutcore/themes/ace/scroll_test/resources/images/3.png +0 -0
  872. data/frameworks/sproutcore/themes/ace/scroll_test/resources/theme.css +147 -0
  873. data/frameworks/sproutcore/themes/ace/scroll_test/scrollbars.html +326 -0
  874. data/frameworks/sproutcore/themes/ace/src/body.css +13 -0
  875. data/frameworks/sproutcore/themes/ace/src/collections/list.css +4 -0
  876. data/frameworks/sproutcore/themes/ace/src/collections/list_item.css +7 -0
  877. data/frameworks/sproutcore/themes/ace/src/collections/source_list/selection.png +0 -0
  878. data/frameworks/sproutcore/themes/ace/src/collections/source_list/selection.psd +0 -0
  879. data/frameworks/sproutcore/themes/ace/src/collections/source_list/source_list_view.css +37 -0
  880. data/frameworks/sproutcore/themes/ace/src/containers/container.css +3 -0
  881. data/frameworks/sproutcore/themes/ace/src/containers/masterdetail/master-detail.css +26 -0
  882. data/frameworks/sproutcore/themes/ace/src/containers/split/split.css +4 -0
  883. data/frameworks/sproutcore/themes/ace/src/containers/tab/tab.css +9 -0
  884. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button.js +23 -0
  885. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/active_button.png +0 -0
  886. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/active_button.psd +0 -0
  887. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/button_view.css +53 -0
  888. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/normal_button.png +0 -0
  889. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/normal_button.psd +0 -0
  890. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/selected_active_button.png +0 -0
  891. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/selected_active_button.psd +0 -0
  892. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/selected_button.png +0 -0
  893. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/selected_button.psd +0 -0
  894. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/active_button.png +0 -0
  895. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/active_button.psd +0 -0
  896. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/active_button_capsule.png +0 -0
  897. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/active_button_capsule.psd +0 -0
  898. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/active_button_pointer.png +0 -0
  899. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/active_button_pointer.psd +0 -0
  900. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/button_view.css +144 -0
  901. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/normal_button.png +0 -0
  902. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/normal_button.psd +0 -0
  903. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/normal_button_capsule.png +0 -0
  904. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/normal_button_capsule.psd +0 -0
  905. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/normal_button_pointer.png +0 -0
  906. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/normal_button_pointer.psd +0 -0
  907. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_active_button.png +0 -0
  908. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_active_button.psd +0 -0
  909. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_active_button_capsule.png +0 -0
  910. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_active_button_capsule.psd +0 -0
  911. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_active_button_pointer.png +0 -0
  912. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_active_button_pointer.psd +0 -0
  913. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_button.png +0 -0
  914. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_button.psd +0 -0
  915. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_button_capsule.png +0 -0
  916. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_button_capsule.psd +0 -0
  917. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_button_pointer.png +0 -0
  918. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_button_pointer.psd +0 -0
  919. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/active_button.png +0 -0
  920. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/active_button.psd +0 -0
  921. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/active_button_pointer.png +0 -0
  922. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/active_button_pointer.psd +0 -0
  923. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/button_view_30.css +111 -0
  924. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/normal_button.png +0 -0
  925. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/normal_button.psd +0 -0
  926. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/normal_button_pointer.png +0 -0
  927. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/normal_button_pointer.psd +0 -0
  928. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_active_button.png +0 -0
  929. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_active_button.psd +0 -0
  930. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_active_button_pointer.png +0 -0
  931. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_active_button_pointer.psd +0 -0
  932. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_button.png +0 -0
  933. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_button.psd +0 -0
  934. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_button_pointer.png +0 -0
  935. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_button_pointer.psd +0 -0
  936. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/active_button.png +0 -0
  937. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/active_button.psd +0 -0
  938. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/button_view.css +57 -0
  939. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/normal_button.png +0 -0
  940. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/normal_button.psd +0 -0
  941. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/selected_active_button.png +0 -0
  942. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/selected_active_button.psd +0 -0
  943. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/selected_button.png +0 -0
  944. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/selected_button.psd +0 -0
  945. data/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/button_view.css +56 -0
  946. data/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_closed.png +0 -0
  947. data/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_closed.psd +0 -0
  948. data/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_closed_active.png +0 -0
  949. data/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_closed_active.psd +0 -0
  950. data/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_open.png +0 -0
  951. data/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_open.psd +0 -0
  952. data/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_open_active.png +0 -0
  953. data/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_open_active.psd +0 -0
  954. data/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_view.css +64 -0
  955. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox.css +25 -0
  956. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_checked.png +0 -0
  957. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_checked.psd +0 -0
  958. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_checked_active.png +0 -0
  959. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_checked_active.psd +0 -0
  960. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_mixed.png +0 -0
  961. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_mixed.psd +0 -0
  962. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_mixed_active.png +0 -0
  963. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_mixed_active.psd +0 -0
  964. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_unchecked.png +0 -0
  965. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_unchecked.psd +0 -0
  966. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_unchecked_active.png +0 -0
  967. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_unchecked_active.psd +0 -0
  968. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox.css +25 -0
  969. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_checked.png +0 -0
  970. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_checked.psd +0 -0
  971. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_checked_active.png +0 -0
  972. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_checked_active.psd +0 -0
  973. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_mixed.png +0 -0
  974. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_mixed.psd +0 -0
  975. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_mixed_active.png +0 -0
  976. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_mixed_active.psd +0 -0
  977. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_unchecked.png +0 -0
  978. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_unchecked.psd +0 -0
  979. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_unchecked_active.png +0 -0
  980. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_unchecked_active.psd +0 -0
  981. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/checkbox.css +4 -0
  982. data/frameworks/sproutcore/themes/ace/src/controls/checkboxes/checkbox_control.css +31 -0
  983. data/frameworks/sproutcore/themes/ace/src/controls/progress/progress_view/progress_view.css +70 -0
  984. data/frameworks/sproutcore/themes/ace/src/controls/progress/progress_view/progress_view_content.png +0 -0
  985. data/frameworks/sproutcore/themes/ace/src/controls/progress/progress_view/progress_view_content.psd +0 -0
  986. data/frameworks/sproutcore/themes/ace/src/controls/progress/progress_view/progress_view_indeterminate_content.psd +0 -0
  987. data/frameworks/sproutcore/themes/ace/src/controls/progress/progress_view/progress_view_track.png +0 -0
  988. data/frameworks/sproutcore/themes/ace/src/controls/progress/progress_view/progress_view_track.psd +0 -0
  989. data/frameworks/sproutcore/themes/ace/src/controls/radio/radio.css +61 -0
  990. data/frameworks/sproutcore/themes/ace/src/controls/radio/radio_active.png +0 -0
  991. data/frameworks/sproutcore/themes/ace/src/controls/radio/radio_active.psd +0 -0
  992. data/frameworks/sproutcore/themes/ace/src/controls/radio/radio_mixed.png +0 -0
  993. data/frameworks/sproutcore/themes/ace/src/controls/radio/radio_mixed.psd +0 -0
  994. data/frameworks/sproutcore/themes/ace/src/controls/radio/radio_mixed_active.png +0 -0
  995. data/frameworks/sproutcore/themes/ace/src/controls/radio/radio_mixed_active.psd +0 -0
  996. data/frameworks/sproutcore/themes/ace/src/controls/radio/radio_selected.png +0 -0
  997. data/frameworks/sproutcore/themes/ace/src/controls/radio/radio_selected.psd +0 -0
  998. data/frameworks/sproutcore/themes/ace/src/controls/radio/radio_selected_active.png +0 -0
  999. data/frameworks/sproutcore/themes/ace/src/controls/radio/radio_selected_active.psd +0 -0
  1000. data/frameworks/sproutcore/themes/ace/src/controls/radio/radio_unselected.png +0 -0
  1001. data/frameworks/sproutcore/themes/ace/src/controls/radio/radio_unselected.psd +0 -0
  1002. data/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/horizontal.css +77 -0
  1003. data/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/thumb.png +0 -0
  1004. data/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/thumb.psd +0 -0
  1005. data/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/track_and_arrows.png +0 -0
  1006. data/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/track_and_arrows.psd +0 -0
  1007. data/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/track_and_arrows_active.png +0 -0
  1008. data/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/track_and_arrows_active.psd +0 -0
  1009. data/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical.psd +0 -0
  1010. data/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/thumb.png +0 -0
  1011. data/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/thumb.psd +0 -0
  1012. data/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/track_and_arrows.png +0 -0
  1013. data/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/track_and_arrows.psd +0 -0
  1014. data/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/track_and_arrows_active.png +0 -0
  1015. data/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/track_and_arrows_active.psd +0 -0
  1016. data/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/vertical.css +74 -0
  1017. data/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented.css +92 -0
  1018. data/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_active.png +0 -0
  1019. data/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_active.psd +0 -0
  1020. data/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_normal.png +0 -0
  1021. data/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_normal.psd +0 -0
  1022. data/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_selected.png +0 -0
  1023. data/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_selected.psd +0 -0
  1024. data/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_selected_active.png +0 -0
  1025. data/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_selected_active.psd +0 -0
  1026. data/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented.css +87 -0
  1027. data/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_active.png +0 -0
  1028. data/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_active.psd +0 -0
  1029. data/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_normal.png +0 -0
  1030. data/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_normal.psd +0 -0
  1031. data/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_selected.png +0 -0
  1032. data/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_selected.psd +0 -0
  1033. data/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_selected_active.png +0 -0
  1034. data/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_selected_active.psd +0 -0
  1035. data/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented.css +93 -0
  1036. data/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_active.png +0 -0
  1037. data/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_active.psd +0 -0
  1038. data/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_normal.png +0 -0
  1039. data/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_normal.psd +0 -0
  1040. data/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_selected.png +0 -0
  1041. data/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_selected.psd +0 -0
  1042. data/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_selected_active.png +0 -0
  1043. data/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_selected_active.psd +0 -0
  1044. data/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented.css +101 -0
  1045. data/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_active.png +0 -0
  1046. data/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_active.psd +0 -0
  1047. data/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_normal.png +0 -0
  1048. data/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_normal.psd +0 -0
  1049. data/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_selected.png +0 -0
  1050. data/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_selected.psd +0 -0
  1051. data/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_selected_active.png +0 -0
  1052. data/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_selected_active.psd +0 -0
  1053. data/frameworks/sproutcore/themes/ace/src/controls/segmented/segmented.css +73 -0
  1054. data/frameworks/sproutcore/themes/ace/src/controls/segmented/segmented.js +0 -0
  1055. data/frameworks/sproutcore/themes/ace/src/controls/select/active_select.png +0 -0
  1056. data/frameworks/sproutcore/themes/ace/src/controls/select/active_select.psd +0 -0
  1057. data/frameworks/sproutcore/themes/ace/src/controls/select/menu.png +0 -0
  1058. data/frameworks/sproutcore/themes/ace/src/controls/select/normal_select.png +0 -0
  1059. data/frameworks/sproutcore/themes/ace/src/controls/select/normal_select.psd +0 -0
  1060. data/frameworks/sproutcore/themes/ace/src/controls/select/select.css +45 -0
  1061. data/frameworks/sproutcore/themes/ace/src/controls/slider/14px/knob.png +0 -0
  1062. data/frameworks/sproutcore/themes/ace/src/controls/slider/14px/knob.psd +0 -0
  1063. data/frameworks/sproutcore/themes/ace/src/controls/slider/14px/knob_active.png +0 -0
  1064. data/frameworks/sproutcore/themes/ace/src/controls/slider/14px/knob_active.psd +0 -0
  1065. data/frameworks/sproutcore/themes/ace/src/controls/slider/14px/slider.css +43 -0
  1066. data/frameworks/sproutcore/themes/ace/src/controls/slider/16px/knob.png +0 -0
  1067. data/frameworks/sproutcore/themes/ace/src/controls/slider/16px/knob.psd +0 -0
  1068. data/frameworks/sproutcore/themes/ace/src/controls/slider/16px/knob_active.png +0 -0
  1069. data/frameworks/sproutcore/themes/ace/src/controls/slider/16px/knob_active.psd +0 -0
  1070. data/frameworks/sproutcore/themes/ace/src/controls/slider/16px/slider.css +44 -0
  1071. data/frameworks/sproutcore/themes/ace/src/controls/slider/22px/knob.png +0 -0
  1072. data/frameworks/sproutcore/themes/ace/src/controls/slider/22px/knob.psd +0 -0
  1073. data/frameworks/sproutcore/themes/ace/src/controls/slider/22px/knob_active.png +0 -0
  1074. data/frameworks/sproutcore/themes/ace/src/controls/slider/22px/knob_active.psd +0 -0
  1075. data/frameworks/sproutcore/themes/ace/src/controls/slider/22px/slider.css +44 -0
  1076. data/frameworks/sproutcore/themes/ace/src/controls/slider/22px/track.png +0 -0
  1077. data/frameworks/sproutcore/themes/ace/src/controls/slider/22px/track.psd +0 -0
  1078. data/frameworks/sproutcore/themes/ace/src/controls/slider/slider.css +3 -0
  1079. data/frameworks/sproutcore/themes/ace/src/controls/slider/slider.js +27 -0
  1080. data/frameworks/sproutcore/themes/ace/src/controls/slider/track.png +0 -0
  1081. data/frameworks/sproutcore/themes/ace/src/controls/slider/track.psd +0 -0
  1082. data/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch.psd +0 -0
  1083. data/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch_handle.png +0 -0
  1084. data/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch_handle.psd +0 -0
  1085. data/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch_off.png +0 -0
  1086. data/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch_off.psd +0 -0
  1087. data/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch_on.png +0 -0
  1088. data/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch_on.psd +0 -0
  1089. data/frameworks/sproutcore/themes/ace/src/core/loading.css +50 -0
  1090. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/active_button.png +0 -0
  1091. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/active_button.psd +0 -0
  1092. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/active_button_capsule.png +0 -0
  1093. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/active_button_capsule.psd +0 -0
  1094. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/active_button_pointer.png +0 -0
  1095. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/active_button_pointer.psd +0 -0
  1096. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/button_view.css +142 -0
  1097. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/normal_button.png +0 -0
  1098. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/normal_button.psd +0 -0
  1099. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/normal_button_capsule.png +0 -0
  1100. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/normal_button_capsule.psd +0 -0
  1101. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/normal_button_pointer.png +0 -0
  1102. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/normal_button_pointer.psd +0 -0
  1103. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_active_button.png +0 -0
  1104. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_active_button.psd +0 -0
  1105. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_active_button_capsule.png +0 -0
  1106. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_active_button_capsule.psd +0 -0
  1107. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_active_button_pointer.png +0 -0
  1108. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_active_button_pointer.psd +0 -0
  1109. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_button.png +0 -0
  1110. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_button.psd +0 -0
  1111. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_button_capsule.png +0 -0
  1112. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_button_capsule.psd +0 -0
  1113. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_button_pointer.png +0 -0
  1114. data/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_button_pointer.psd +0 -0
  1115. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/active_button.png +0 -0
  1116. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/active_button.psd +0 -0
  1117. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/active_button_pointer.png +0 -0
  1118. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/active_button_pointer.psd +0 -0
  1119. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/button_view_30.css +111 -0
  1120. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/normal_button.png +0 -0
  1121. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/normal_button.psd +0 -0
  1122. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/normal_button_pointer.png +0 -0
  1123. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/normal_button_pointer.psd +0 -0
  1124. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_active_button.png +0 -0
  1125. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_active_button.psd +0 -0
  1126. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_active_button_pointer.png +0 -0
  1127. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_active_button_pointer.psd +0 -0
  1128. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_button.png +0 -0
  1129. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_button.psd +0 -0
  1130. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_button_pointer.png +0 -0
  1131. data/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_button_pointer.psd +0 -0
  1132. data/frameworks/sproutcore/themes/ace/src/dark/buttons/button.css +20 -0
  1133. data/frameworks/sproutcore/themes/ace/src/dark/buttons/button.js +3 -0
  1134. data/frameworks/sproutcore/themes/ace/src/form/iphone/form.js +21 -0
  1135. data/frameworks/sproutcore/themes/ace/src/form/iphone/form_row.js +24 -0
  1136. data/frameworks/sproutcore/themes/ace/src/form/iphone/iphone.css +51 -0
  1137. data/frameworks/sproutcore/themes/ace/src/form/iphone/iphone.js +14 -0
  1138. data/frameworks/sproutcore/themes/ace/src/form/iphone/label.js +32 -0
  1139. data/frameworks/sproutcore/themes/ace/src/panels/pane.css +3 -0
  1140. data/frameworks/sproutcore/themes/ace/src/panels/panel.css +70 -0
  1141. data/frameworks/sproutcore/themes/ace/src/panels/panel.png +0 -0
  1142. data/frameworks/sproutcore/themes/ace/src/panels/panel.psd +0 -0
  1143. data/frameworks/sproutcore/themes/ace/src/panels/picker/menu/checkmark.png +0 -0
  1144. data/frameworks/sproutcore/themes/ace/src/panels/picker/menu/checkmark.psd +0 -0
  1145. data/frameworks/sproutcore/themes/ace/src/panels/picker/menu/checkmark_active.png +0 -0
  1146. data/frameworks/sproutcore/themes/ace/src/panels/picker/menu/checkmark_active.psd +0 -0
  1147. data/frameworks/sproutcore/themes/ace/src/panels/picker/menu/down.png +0 -0
  1148. data/frameworks/sproutcore/themes/ace/src/panels/picker/menu/down.psd +0 -0
  1149. data/frameworks/sproutcore/themes/ace/src/panels/picker/menu/menu.css +154 -0
  1150. data/frameworks/sproutcore/themes/ace/src/panels/picker/menu/menu.png +0 -0
  1151. data/frameworks/sproutcore/themes/ace/src/panels/picker/menu/menu.psd +0 -0
  1152. data/frameworks/sproutcore/themes/ace/src/panels/picker/menu/menu_item.png +0 -0
  1153. data/frameworks/sproutcore/themes/ace/src/panels/picker/menu/menu_item.psd +0 -0
  1154. data/frameworks/sproutcore/themes/ace/src/panels/picker/menu/up.png +0 -0
  1155. data/frameworks/sproutcore/themes/ace/src/panels/picker/menu/up.psd +0 -0
  1156. data/frameworks/sproutcore/themes/ace/src/panels/picker/picker.css +0 -0
  1157. data/frameworks/sproutcore/themes/ace/src/panels/picker/picker.js +1 -0
  1158. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/picker.js +14 -0
  1159. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover.css +271 -0
  1160. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover.js +5 -0
  1161. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover.png +0 -0
  1162. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover.psd +0 -0
  1163. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_empty.png +0 -0
  1164. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_empty.psd +0 -0
  1165. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_notoolbar.png +0 -0
  1166. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_notoolbar.psd +0 -0
  1167. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_pointers.png +0 -0
  1168. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_pointers.psd +0 -0
  1169. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_pointers_notoolbar.png +0 -0
  1170. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_pointers_notoolbar.psd +0 -0
  1171. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_sourcelist.css +5 -0
  1172. data/frameworks/sproutcore/themes/ace/src/panels/picker/popover/workspace.js +51 -0
  1173. data/frameworks/sproutcore/themes/ace/src/theme.js +12 -0
  1174. data/frameworks/sproutcore/themes/ace/src/toolbars/normal/selection.png +0 -0
  1175. data/frameworks/sproutcore/themes/ace/src/toolbars/normal/toolbar.css +8 -0
  1176. data/frameworks/sproutcore/themes/ace/src/toolbars/normal/toolbar.png +0 -0
  1177. data/frameworks/sproutcore/themes/ace/src/toolbars/normal/toolbar.psd +0 -0
  1178. data/frameworks/sproutcore/themes/ace/src/toolbars/panel_header/panel_header.png +0 -0
  1179. data/frameworks/sproutcore/themes/ace/src/toolbars/panel_header/panel_header.psd +0 -0
  1180. data/frameworks/sproutcore/themes/empty_theme/theme.js +16 -0
  1181. data/frameworks/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x.psd +0 -0
  1182. data/frameworks/sproutcore/themes/standard_theme/english.lproj/button.css +75 -2
  1183. data/frameworks/sproutcore/themes/standard_theme/english.lproj/checkbox.css +0 -16
  1184. data/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-x.png +0 -0
  1185. data/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-y.png +0 -0
  1186. data/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-sprite.png +0 -0
  1187. data/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-theme-repeat-x.png +0 -0
  1188. data/frameworks/sproutcore/themes/standard_theme/english.lproj/menu_item_view.css +26 -2
  1189. data/frameworks/sproutcore/themes/standard_theme/english.lproj/radio.css +0 -29
  1190. data/frameworks/sproutcore/themes/standard_theme/english.lproj/scroller.css +155 -0
  1191. data/frameworks/sproutcore/themes/standard_theme/english.lproj/segmented.css +64 -69
  1192. data/frameworks/sproutcore/themes/standard_theme/english.lproj/split_view.css +2 -18
  1193. data/frameworks/sproutcore/themes/standard_theme/english.lproj/tab.css +0 -1
  1194. data/frameworks/sproutcore/themes/standard_theme/english.lproj/table.css +14 -0
  1195. data/gen/responder/Buildfile +18 -0
  1196. data/gen/responder/README +1 -0
  1197. data/gen/responder/USAGE +15 -0
  1198. data/gen/responder/templates/states/@filename@.js +39 -0
  1199. data/{Buildfile → lib/Buildfile} +37 -34
  1200. data/lib/buildtasks/build.rake +103 -0
  1201. data/{buildtasks → lib/buildtasks}/entry.rake +40 -34
  1202. data/{buildtasks → lib/buildtasks}/manifest.rake +285 -239
  1203. data/{buildtasks → lib/buildtasks}/render.rake +5 -5
  1204. data/lib/buildtasks/target.rake +65 -0
  1205. data/lib/sproutcore.rb +58 -53
  1206. data/lib/sproutcore/builders.rb +12 -0
  1207. data/lib/sproutcore/builders/base.rb +19 -20
  1208. data/lib/sproutcore/builders/bundle.rb +17 -17
  1209. data/lib/sproutcore/builders/combine.rb +14 -14
  1210. data/lib/sproutcore/builders/html.rb +68 -62
  1211. data/lib/sproutcore/builders/javascript.rb +40 -26
  1212. data/lib/sproutcore/builders/less.rb +41 -0
  1213. data/lib/sproutcore/builders/minify.rb +20 -25
  1214. data/lib/sproutcore/builders/sass.rb +20 -10
  1215. data/lib/sproutcore/builders/strings.rb +11 -10
  1216. data/lib/sproutcore/builders/stylesheet.rb +28 -12
  1217. data/lib/sproutcore/builders/test.rb +19 -19
  1218. data/lib/sproutcore/builders/test_index.rb +6 -6
  1219. data/lib/sproutcore/buildfile.rb +120 -114
  1220. data/lib/sproutcore/buildfile/build_task.rb +5 -5
  1221. data/lib/sproutcore/buildfile/buildfile_dsl.rb +22 -15
  1222. data/lib/sproutcore/buildfile/cloneable.rb +3 -3
  1223. data/lib/sproutcore/buildfile/early_time.rb +2 -2
  1224. data/lib/sproutcore/buildfile/invocation_chain.rb +3 -3
  1225. data/lib/sproutcore/buildfile/namespace.rb +3 -3
  1226. data/lib/sproutcore/buildfile/string_ext.rb +5 -1
  1227. data/lib/sproutcore/buildfile/task.rb +49 -48
  1228. data/lib/sproutcore/buildfile/task_arguments.rb +28 -8
  1229. data/lib/sproutcore/buildfile/task_manager.rb +19 -17
  1230. data/lib/sproutcore/deprecated/view_helper.rb +2 -2
  1231. data/lib/sproutcore/helpers.rb +11 -0
  1232. data/lib/sproutcore/helpers/cssmin.rb +24 -24
  1233. data/lib/sproutcore/helpers/dom_id_helper.rb +1 -1
  1234. data/lib/sproutcore/helpers/entry_sorter.rb +51 -75
  1235. data/lib/sproutcore/helpers/html5_manifest.rb +88 -0
  1236. data/lib/sproutcore/helpers/packed_optimizer.rb +20 -20
  1237. data/lib/sproutcore/helpers/static_helper.rb +79 -79
  1238. data/lib/sproutcore/helpers/tag_helper.rb +10 -10
  1239. data/lib/sproutcore/helpers/text_helper.rb +2 -2
  1240. data/lib/sproutcore/models.rb +8 -0
  1241. data/lib/sproutcore/models/generator.rb +92 -92
  1242. data/lib/sproutcore/models/hash_struct.rb +42 -27
  1243. data/lib/sproutcore/models/manifest.rb +123 -117
  1244. data/lib/sproutcore/models/manifest_entry.rb +123 -105
  1245. data/lib/sproutcore/models/project.rb +54 -54
  1246. data/lib/sproutcore/models/target.rb +212 -200
  1247. data/lib/sproutcore/rack.rb +7 -0
  1248. data/lib/sproutcore/rack/builder.rb +89 -84
  1249. data/lib/sproutcore/rack/dev.rb +55 -14
  1250. data/lib/sproutcore/rack/docs.rb +4 -4
  1251. data/lib/sproutcore/rack/filesystem.rb +118 -59
  1252. data/lib/sproutcore/rack/proxy.rb +36 -34
  1253. data/lib/sproutcore/rack/service.rb +36 -34
  1254. data/lib/sproutcore/rack/test_runner.rb +4 -4
  1255. data/lib/sproutcore/render_engines/erubis.rb +2 -2
  1256. data/lib/sproutcore/render_engines/haml.rb +2 -2
  1257. data/lib/sproutcore/tools.rb +102 -98
  1258. data/lib/sproutcore/tools/build.rb +27 -22
  1259. data/lib/sproutcore/tools/build_number.rb +3 -3
  1260. data/lib/sproutcore/tools/docs.rb +4 -4
  1261. data/lib/sproutcore/tools/gen.rb +24 -24
  1262. data/lib/sproutcore/tools/init.rb +7 -7
  1263. data/lib/sproutcore/tools/manifest.rb +13 -13
  1264. data/lib/sproutcore/tools/server.rb +11 -11
  1265. data/{vendor → lib/sproutcore/vendor}/github_gem_lint.rb +0 -0
  1266. data/{vendor → lib/sproutcore/vendor}/jsdoc/README.txt +0 -0
  1267. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/frame.js +0 -0
  1268. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/frame/Chain.js +0 -0
  1269. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/frame/Dumper.js +0 -0
  1270. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/frame/Hash.js +0 -0
  1271. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/frame/Link.js +0 -0
  1272. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/frame/Namespace.js +0 -0
  1273. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/frame/Opt.js +0 -0
  1274. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/frame/Reflection.js +0 -0
  1275. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/frame/String.js +0 -0
  1276. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/frame/Testrun.js +0 -0
  1277. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/handlers/FOODOC.js +0 -0
  1278. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/handlers/XMLDOC.js +0 -0
  1279. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/handlers/XMLDOC/DomReader.js +0 -0
  1280. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/handlers/XMLDOC/XMLDoc.js +0 -0
  1281. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/handlers/XMLDOC/XMLParse.js +0 -0
  1282. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC.js +0 -0
  1283. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/DocComment.js +0 -0
  1284. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/DocTag.js +0 -0
  1285. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/JsDoc.js +0 -0
  1286. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/JsPlate.js +0 -0
  1287. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/Lang.js +0 -0
  1288. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/Parser.js +0 -0
  1289. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/PluginManager.js +0 -0
  1290. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/Symbol.js +0 -0
  1291. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/SymbolSet.js +0 -0
  1292. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/TextStream.js +0 -0
  1293. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/Token.js +0 -0
  1294. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/TokenReader.js +0 -0
  1295. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/TokenStream.js +0 -0
  1296. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/Util.js +0 -0
  1297. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/lib/JSDOC/Walker.js +0 -0
  1298. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/main.js +0 -0
  1299. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/plugins/commentSrcJson.js +0 -0
  1300. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/plugins/frameworkPrototype.js +0 -0
  1301. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/plugins/functionCall.js +0 -0
  1302. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/plugins/publishSrcHilite.js +0 -0
  1303. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/plugins/sproutcoreTags.js +0 -0
  1304. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/plugins/symbolLink.js +0 -0
  1305. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/plugins/tagParamConfig.js +0 -0
  1306. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/plugins/tagSynonyms.js +0 -0
  1307. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/run.js +0 -0
  1308. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/t/TestDoc.js +0 -0
  1309. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/t/runner.js +0 -0
  1310. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test.js +0 -0
  1311. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/addon.js +0 -0
  1312. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/anon_inner.js +0 -0
  1313. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/augments.js +0 -0
  1314. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/augments2.js +0 -0
  1315. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/borrows.js +0 -0
  1316. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/borrows2.js +0 -0
  1317. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/config.js +0 -0
  1318. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/constructs.js +0 -0
  1319. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/encoding.js +0 -0
  1320. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/encoding_other.js +0 -0
  1321. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/functions_anon.js +0 -0
  1322. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/functions_nested.js +0 -0
  1323. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/global.js +0 -0
  1324. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/globals.js +0 -0
  1325. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/ignore.js +0 -0
  1326. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/inner.js +0 -0
  1327. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/jsdoc_test.js +0 -0
  1328. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/lend.js +0 -0
  1329. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/memberof.js +0 -0
  1330. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/memberof_constructor.js +0 -0
  1331. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/name.js +0 -0
  1332. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/namespace_nested.js +0 -0
  1333. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/nocode.js +0 -0
  1334. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/oblit_anon.js +0 -0
  1335. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/overview.js +0 -0
  1336. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/param_inline.js +0 -0
  1337. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/params_optional.js +0 -0
  1338. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/prototype.js +0 -0
  1339. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/prototype_nested.js +0 -0
  1340. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/prototype_oblit.js +0 -0
  1341. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/prototype_oblit_constructor.js +0 -0
  1342. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/public.js +0 -0
  1343. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/shared.js +0 -0
  1344. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/shared2.js +0 -0
  1345. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/shortcuts.js +0 -0
  1346. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/static_this.js +0 -0
  1347. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/synonyms.js +0 -0
  1348. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/tosource.js +0 -0
  1349. data/{vendor → lib/sproutcore/vendor}/jsdoc/app/test/variable_redefine.js +0 -0
  1350. data/{vendor → lib/sproutcore/vendor}/jsdoc/changes.txt +0 -0
  1351. data/{vendor → lib/sproutcore/vendor}/jsdoc/conf/sample.conf +0 -0
  1352. data/{vendor → lib/sproutcore/vendor}/jsdoc/java/build.xml +0 -0
  1353. data/{vendor → lib/sproutcore/vendor}/jsdoc/java/build_1.4.xml +0 -0
  1354. data/{vendor → lib/sproutcore/vendor}/jsdoc/java/classes/js.jar +0 -0
  1355. data/{vendor → lib/sproutcore/vendor}/jsdoc/java/src/JsDebugRun.java +0 -0
  1356. data/{vendor → lib/sproutcore/vendor}/jsdoc/java/src/JsRun.java +0 -0
  1357. data/{vendor → lib/sproutcore/vendor}/jsdoc/jsdebug.jar +0 -0
  1358. data/{vendor → lib/sproutcore/vendor}/jsdoc/jsrun.jar +0 -0
  1359. data/{vendor → lib/sproutcore/vendor}/jsdoc/t/TestDoc.js +0 -0
  1360. data/{vendor → lib/sproutcore/vendor}/jsdoc/t/runner.js +0 -0
  1361. data/{vendor → lib/sproutcore/vendor}/jsdoc/test.js +0 -0
  1362. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/addon.js +0 -0
  1363. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/anon_inner.js +0 -0
  1364. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/augments.js +0 -0
  1365. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/augments2.js +0 -0
  1366. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/borrows.js +0 -0
  1367. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/borrows2.js +0 -0
  1368. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/config.js +0 -0
  1369. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/constructs.js +0 -0
  1370. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/encoding.js +0 -0
  1371. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/encoding_other.js +0 -0
  1372. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/functions_anon.js +0 -0
  1373. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/functions_nested.js +0 -0
  1374. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/global.js +0 -0
  1375. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/globals.js +0 -0
  1376. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/ignore.js +0 -0
  1377. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/inner.js +0 -0
  1378. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/jsdoc_test.js +0 -0
  1379. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/lend.js +0 -0
  1380. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/memberof.js +0 -0
  1381. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/memberof_constructor.js +0 -0
  1382. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/name.js +0 -0
  1383. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/namespace_nested.js +0 -0
  1384. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/nocode.js +0 -0
  1385. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/oblit_anon.js +0 -0
  1386. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/overview.js +0 -0
  1387. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/param_inline.js +0 -0
  1388. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/params_optional.js +0 -0
  1389. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/prototype.js +0 -0
  1390. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/prototype_nested.js +0 -0
  1391. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/prototype_oblit.js +0 -0
  1392. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/prototype_oblit_constructor.js +0 -0
  1393. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/public.js +0 -0
  1394. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/shared.js +0 -0
  1395. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/shared2.js +0 -0
  1396. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/shortcuts.js +0 -0
  1397. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/static_this.js +0 -0
  1398. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/synonyms.js +0 -0
  1399. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/tosource.js +0 -0
  1400. data/{vendor → lib/sproutcore/vendor}/jsdoc/test/variable_redefine.js +0 -0
  1401. data/{vendor → lib/sproutcore/vendor}/yui-compressor/SCyuicompressor-2.4.2.jar +0 -0
  1402. data/{vendor → lib/sproutcore/vendor}/yui-compressor/yuicompressor-2.4.2.jar +0 -0
  1403. data/lib/sproutcore/version.rb +11 -0
  1404. data/spec/buildtasks/build/copy_spec.rb +16 -16
  1405. data/spec/buildtasks/build/spec_helper.rb +5 -5
  1406. data/spec/buildtasks/manifest/catalog_spec.rb +9 -9
  1407. data/spec/buildtasks/manifest/hide_buildfiles_spec.rb +15 -15
  1408. data/spec/buildtasks/manifest/localize_spec.rb +14 -14
  1409. data/spec/buildtasks/manifest/prepare_build_tasks/bundle_spec.rb +61 -61
  1410. data/spec/buildtasks/manifest/prepare_build_tasks/combine_spec.rb +52 -44
  1411. data/spec/buildtasks/manifest/prepare_build_tasks/css_spec.rb +13 -13
  1412. data/spec/buildtasks/manifest/prepare_build_tasks/html_spec.rb +29 -29
  1413. data/spec/buildtasks/manifest/prepare_build_tasks/javascript_spec.rb +11 -11
  1414. data/spec/buildtasks/manifest/prepare_build_tasks/minify_spec.rb +9 -9
  1415. data/spec/buildtasks/manifest/prepare_build_tasks/packed_spec.rb +23 -23
  1416. data/spec/buildtasks/manifest/prepare_build_tasks/sass_spec.rb +15 -15
  1417. data/spec/buildtasks/manifest/prepare_build_tasks/strings_spec.rb +11 -11
  1418. data/spec/buildtasks/manifest/prepare_build_tasks/tests_spec.rb +28 -28
  1419. data/spec/buildtasks/manifest/prepare_spec.rb +7 -7
  1420. data/spec/buildtasks/manifest/spec_helper.rb +6 -6
  1421. data/spec/buildtasks/target_spec.rb +33 -33
  1422. data/spec/fixtures/builder_tests/apps/less_test/sample.less +4 -0
  1423. data/spec/fixtures/builder_tests/apps/sass_test/sample.sass +1 -0
  1424. data/spec/fixtures/builder_tests/apps/sass_test/sample.scss +4 -0
  1425. data/spec/fixtures/buildfiles/basic/Buildfile +0 -5
  1426. data/spec/fixtures/buildfiles/installed/Buildfile +0 -2
  1427. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo3.scss +0 -0
  1428. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo4.less +0 -0
  1429. data/spec/fixtures/real_world/generators/sample_custom/templates/{filename}.js +1 -0
  1430. data/spec/lib/builders/bundle_spec.rb +79 -78
  1431. data/spec/lib/builders/combine_spec.rb +10 -10
  1432. data/spec/lib/builders/html_spec.rb +134 -133
  1433. data/spec/lib/builders/javascript_spec.rb +11 -10
  1434. data/spec/lib/builders/less_spec.rb +51 -0
  1435. data/spec/lib/builders/sass_spec.rb +38 -9
  1436. data/spec/lib/builders/spec_helper.rb +8 -8
  1437. data/spec/lib/builders/strings_spec.rb +14 -11
  1438. data/spec/lib/builders/stylesheet_spec.rb +9 -8
  1439. data/spec/lib/builders/test_index_spec.rb +10 -9
  1440. data/spec/lib/builders/test_spec.rb +36 -35
  1441. data/spec/lib/buildfile/config_for_spec.rb +15 -15
  1442. data/spec/lib/buildfile/define_spec.rb +14 -14
  1443. data/spec/lib/buildfile/dup_spec.rb +19 -19
  1444. data/spec/lib/buildfile/invoke_spec.rb +38 -33
  1445. data/spec/lib/buildfile/load_spec.rb +21 -19
  1446. data/spec/lib/buildfile/task/dup_spec.rb +14 -14
  1447. data/spec/lib/buildfile/task_defined_spec.rb +3 -3
  1448. data/spec/lib/buildfile_commands/build_task_spec.rb +3 -3
  1449. data/spec/lib/buildfile_commands/config_spec.rb +40 -40
  1450. data/spec/lib/buildfile_commands/import_spec.rb +2 -2
  1451. data/spec/lib/buildfile_commands/namespace_spec.rb +3 -3
  1452. data/spec/lib/buildfile_commands/proxies_spec.rb +12 -12
  1453. data/spec/lib/buildfile_commands/replace_task_spec.rb +7 -7
  1454. data/spec/lib/buildfile_commands/task_spec.rb +6 -6
  1455. data/spec/lib/helpers/packing_optimizer/optimize_spec.rb +5 -5
  1456. data/spec/lib/models/hash_struct/deep_clone_spec.rb +8 -8
  1457. data/spec/lib/models/hash_struct/has_options_spec.rb +10 -10
  1458. data/spec/lib/models/hash_struct/hash_spec.rb +17 -19
  1459. data/spec/lib/models/hash_struct/merge_spec.rb +4 -4
  1460. data/spec/lib/models/hash_struct/method_missing.rb +9 -9
  1461. data/spec/lib/models/manifest/add_entry_spec.rb +7 -7
  1462. data/spec/lib/models/manifest/add_transform_spec.rb +17 -15
  1463. data/spec/lib/models/manifest/build_spec.rb +19 -19
  1464. data/spec/lib/models/manifest/entry_for_spec.rb +30 -30
  1465. data/spec/lib/models/manifest/find_entry.rb +20 -20
  1466. data/spec/lib/models/manifest/prepare_spec.rb +13 -13
  1467. data/spec/lib/models/manifest_entry/cacheable_url_spec.rb +8 -8
  1468. data/spec/lib/models/manifest_entry/hyperdomain_prefix.rb +9 -9
  1469. data/spec/lib/models/manifest_entry/prepare_spec.rb +11 -11
  1470. data/spec/lib/models/project/add_target_spec.rb +7 -7
  1471. data/spec/lib/models/project/buildfile_spec.rb +4 -4
  1472. data/spec/lib/models/project/find_targets_for_spec.rb +17 -17
  1473. data/spec/lib/models/project/load_nearest_project_spec.rb +10 -10
  1474. data/spec/lib/models/project/target_for_spec.rb +6 -6
  1475. data/spec/lib/models/project/targets_spec.rb +13 -13
  1476. data/spec/lib/models/target/compute_build_number_spec.rb +24 -23
  1477. data/spec/lib/models/target/config_spec.rb +6 -6
  1478. data/spec/lib/models/target/expand_required_targets_spec.rb +14 -14
  1479. data/spec/lib/models/target/installed_languages_spec.rb +12 -12
  1480. data/spec/lib/models/target/lproj_for_spec.rb +9 -9
  1481. data/spec/lib/models/target/manifest_for_spec.rb +8 -8
  1482. data/spec/lib/models/target/parent_target_spec.rb +3 -3
  1483. data/spec/lib/models/target/prepare_spec.rb +11 -11
  1484. data/spec/lib/models/target/required_targets_spec.rb +28 -28
  1485. data/spec/lib/models/target/target_for_spec.rb +5 -5
  1486. data/spec/lib/tools/build_number_spec.rb +9 -9
  1487. data/spec/lib/tools/gen_spec.rb +34 -33
  1488. data/spec/lib/tools/tools_spec.rb +20 -19
  1489. data/spec/spec_helper.rb +28 -40
  1490. data/sproutcore.gemspec +33 -0
  1491. metadata +1741 -1056
  1492. data/buildtasks/build.rake +0 -87
  1493. data/buildtasks/target.rake +0 -61
  1494. data/frameworks/sproutcore/README +0 -64
  1495. data/frameworks/sproutcore/frameworks/desktop/english.lproj/scroller.css +0 -26
  1496. data/frameworks/sproutcore/frameworks/desktop/system/root_responder.js +0 -702
  1497. data/frameworks/sproutcore/frameworks/desktop/tests/views/scroller/methods.js +0 -72
  1498. data/frameworks/sproutcore/frameworks/desktop/tests/views/scroller/ui.js +0 -71
@@ -3,351 +3,383 @@
3
3
  # copyright 2008, Sprout Systems, Inc. and Apple Inc. all rights reserved
4
4
  # ===========================================================================
5
5
 
6
- # Tasks invoked while building Manifest objects. You can override these
6
+ # Tasks invoked while building Manifest objects. You can override these
7
7
  # tasks in your buildfiles.
8
8
  namespace :manifest do
9
-
9
+
10
10
  desc "Invoked just before a manifest object is built to setup standard properties"
11
- task :prepare do
11
+ task :prepare do |task, env|
12
12
  require 'tempfile'
13
13
 
14
+ manifest = env[:manifest]
15
+ target = env[:target]
16
+
14
17
  # make sure a language was set
15
- MANIFEST.language ||= :en
16
-
18
+ manifest[:language] ||= :en
19
+
17
20
  # build_root is target.build_root + language + build_number
18
- MANIFEST.build_root = File.join(TARGET.build_root,
19
- MANIFEST.language.to_s, TARGET.build_number.to_s)
20
-
21
+ manifest[:build_root] = File.join(target[:build_root],
22
+ manifest[:language].to_s, target[:build_number].to_s)
23
+
21
24
  # staging_root is target.staging_root + language + build_number
22
- MANIFEST.staging_root = File.join(TARGET.staging_root,
23
- MANIFEST.language.to_s, TARGET.build_number.to_s)
24
-
25
+ manifest[:staging_root] = File.join(target[:staging_root],
26
+ manifest[:language].to_s, target[:build_number].to_s)
27
+
25
28
  # cache_root is target.cache_root + language + build_number
26
- MANIFEST.cache_root = File.join(TARGET.cache_root,
27
- MANIFEST.language.to_s, TARGET.build_number.to_s)
28
-
29
+ manifest[:cache_root] = File.join(target[:cache_root],
30
+ manifest[:language].to_s, target[:build_number].to_s)
31
+
29
32
  # url_root
30
- MANIFEST.url_root =
31
- [TARGET.url_root, MANIFEST.language, TARGET.build_number].join('/')
32
-
33
+ manifest[:url_root] =
34
+ [target[:url_root], manifest[:language], target[:build_number]].join('/')
35
+
33
36
  # index_root
34
- MANIFEST.index_root =
35
- [TARGET.index_root, MANIFEST.language, TARGET.build_number].join('/')
36
-
37
+ manifest[:index_root] =
38
+ [target[:index_root], manifest[:language], target[:build_number]].join('/')
39
+
37
40
  # source_root
38
- MANIFEST.source_root = TARGET.source_root
41
+ manifest[:source_root] = target[:source_root]
39
42
  end
40
43
 
41
44
  desc "Actually builds a manifest. This will catalog all entries and then filter them"
42
45
  task :build => %w(catalog hide_buildfiles localize prepare_build_tasks:all)
43
-
46
+
44
47
  desc "first step in building a manifest, this adds a simple copy file entry for every file in the source"
45
- task :catalog do |t|
46
- source_root = TARGET.source_root
47
- Dir.glob(File.join(source_root, '**', '*')).each do |path|
48
- next if !File.exist?(path) || File.directory?(path)
49
- next if TARGET.target_directory?(path)
50
-
51
- # cut source root out to make filename. make sure path separators are /
52
- filename = path.sub /^#{Regexp.escape source_root}\//, ''
53
- filename = filename.split(::File::SEPARATOR).join('/')
54
- MANIFEST.add_entry filename, :original => true # entry:prepare will fill in the rest
48
+ task :catalog do |t, env|
49
+ target = env[:target]
50
+ manifest = env[:manifest]
51
+
52
+ source_root = target[:source_root]
53
+
54
+ SC.profile("PROFILE_CATALOG") do
55
+ Dir["#{source_root}/**/*"].each do |path|
56
+ next unless File.file?(path)
57
+ next if target.target_directory?(path)
58
+
59
+ # cut source root out to make filename. make sure path separators are /
60
+ filename = path.sub /^#{Regexp.escape source_root}\//, ''
61
+ filename = filename.split(::File::SEPARATOR).join('/')
62
+ manifest.add_entry filename, :original => true # entry:prepare will fill in the rest
63
+ end
55
64
  end
56
65
  end
57
-
66
+
58
67
  desc "hides structural files that do not belong in build include Buildfiles and debug or fixtures if turned off"
59
- task :hide_buildfiles => :catalog do
68
+ task :hide_buildfiles => :catalog do |task, env|
69
+ manifest = env[:manifest]
70
+
60
71
  # these directories are to be excluded unless CONFIG.load_"dirname" = true
61
- dirnames = %w(debug tests fixtures protocols).reject do |k|
62
- CONFIG["load_#{k}"]
72
+ dirnames = %w(debug tests fixtures protocols).reject do |k|
73
+ CONFIG[:"load_#{k}"]
63
74
  end
64
75
 
65
76
  # loop through entries and hide those that do not below...
66
- MANIFEST.entries.each do |entry|
77
+ manifest.entries.each do |entry|
67
78
 
68
79
  # if in /dirname or /foo.lproj/dirname -- hide it!
69
80
  dirnames.each do |dirname|
70
- if entry.filename =~ /^(([^\/]+)\.lproj\/)?#{dirname}\/.+$/
81
+ if entry[:filename] =~ /^(([^\/]+)\.lproj\/)?#{dirname}\/.+$/
71
82
  entry.hide!
72
83
  next
73
84
  end
74
85
  end
75
-
86
+
76
87
  # otherwise, allow if inside lproj
77
- next if entry.localized? || entry.filename =~ /^.+\.lproj\/.+$/
78
-
88
+ next if entry.localized? || entry[:filename] =~ /^.+\.lproj\/.+$/
89
+
79
90
  # allow if in tests, fixtures or debug as well...
80
- next if entry.filename =~ /^(resources|tests|fixtures|debug)\/.+$/
81
-
91
+ next if entry[:filename] =~ /^(resources|tests|fixtures|debug)\/.+$/
92
+
82
93
  # or skip if ext not js
83
- entry.hide! if entry.ext != 'js'
94
+ entry.hide! if entry[:ext] != 'js'
84
95
  end
85
96
  end
86
-
97
+
87
98
  desc "localizes files. reject any files from other languages"
88
- task :localize => [:catalog, :hide_buildfiles] do
99
+ task :localize => [:catalog, :hide_buildfiles] do |task, env|
100
+ target = env[:target]
101
+ manifest = env[:manifest]
102
+
89
103
  seen = {} # already seen entries...
90
- preferred_language = TARGET.config.preferred_language || :en
91
-
92
- MANIFEST.entries.each do |entry|
93
-
104
+ preferred_language = target.config[:preferred_language] || :en
105
+
106
+ manifest.entries.each do |entry|
107
+
94
108
  # Is a localized resource!
95
- if entry.filename =~ /^([^\/]+)\.lproj\/(.+)$/
96
- entry.language = (SC::Target::LONG_LANGUAGE_MAP[$1.to_s.downcase.to_sym]) || $1.to_sym
97
- entry.localized = true
109
+ if entry[:filename] =~ /^([^\/]+)\.lproj\/(.+)$/
110
+ entry[:language] = (SC::Target::LONG_LANGUAGE_MAP[$1.to_s.downcase.to_sym]) || $1.to_sym
111
+ entry[:localized] = true
98
112
 
99
113
  # remove .lproj dir from build paths as well..
100
114
  lang_dir = "#{$1}.lproj/"
101
- sub_str = (entry.ext == 'js') ? 'lproj/' : ''
102
- entry.filename = entry.filename.sub(lang_dir, sub_str)
103
- entry.build_path = entry.build_path.sub(lang_dir, sub_str)
104
- entry.url = entry.url.sub(lang_dir, sub_str)
105
-
115
+ sub_str = (entry[:ext] == 'js') ? 'lproj/' : ''
116
+ entry[:filename ] = entry[:filename].sub(lang_dir, sub_str)
117
+ entry[:build_path] = entry[:build_path].sub(lang_dir, sub_str)
118
+ entry[:url] = entry[:url].sub(lang_dir, sub_str)
119
+
106
120
  # if this is part of the current language, always include...
107
121
  # hide any preferred_language entry...
108
- if entry.language == MANIFEST.language
109
- seen[entry.filename].hide! if seen[entry.filename]
110
-
122
+ if entry[:language] == manifest[:language]
123
+ if seen[entry[:filename]]
124
+ seen[entry[:filename]].hide!
125
+ else
126
+ seen[entry[:filename]] = entry
127
+ end
128
+
111
129
  # if this is a preferred_language, hide unless we've seen one
112
- elsif entry.language == preferred_language
113
- if seen[entry.filename]
130
+ elsif entry[:language] == preferred_language
131
+ if seen[entry[:filename]]
114
132
  entry.hide!
115
133
  else
116
- seen[entry.filename] = entry
134
+ seen[entry[:filename]] = entry
117
135
  end
118
-
136
+
119
137
  # Otherwise, hide it...
120
138
  else
121
139
  entry.hide!
122
140
  end
123
-
141
+
124
142
  # Not a localized resource
125
143
  else
126
- entry.language = MANIFEST.language
127
- entry.localized = false
144
+ entry[:language] = manifest[:language]
145
+ entry[:localized] = false
128
146
  end
129
147
  end
130
148
  end
131
149
 
132
150
  namespace :prepare_build_tasks do
133
-
151
+
134
152
  desc "main entrypoint for preparing all build tasks. This should invoke all needed tasks"
135
- task :all => %w(css javascript bundle_info bundle_loaded sass combine minify html strings tests packed)
153
+ task :all => %w(css javascript bundle_info bundle_loaded sass scss less combine minify html strings tests packed)
136
154
 
137
155
  desc "executes prerequisites needed before one of the subtasks can be invoked. All subtasks that have this as a prereq"
138
156
  task :setup => %w(manifest:catalog manifest:hide_buildfiles manifest:localize)
139
-
157
+
140
158
  desc "create builder tasks for all unit tests based on file extension."
141
- task :tests => :setup do
142
-
159
+ task :tests => :setup do |task, env|
160
+ manifest = env[:manifest]
161
+
143
162
  # Generate test entries
144
163
  test_entries = []
145
164
  entries_by_dirname = {} # for building composites...
146
- MANIFEST.entries.each do |entry|
147
- next unless entry.filename =~ /^tests\//
165
+ manifest.entries.each do |entry|
166
+ next unless entry[:filename] =~ /^tests\//
148
167
 
149
168
  # if this is a js file, add js transform first to handle sc_static()
150
169
  # etc.
151
- if entry.ext == 'js'
152
- entry = MANIFEST.add_transform entry,
170
+ if entry[:ext] == 'js'
171
+ entry = manifest.add_transform entry,
153
172
  :build_task => 'build:javascript'
154
173
  end
155
-
174
+
156
175
  # Add transform to build into test.
157
- test_entries << MANIFEST.add_transform(entry,
176
+ test_entries << manifest.add_transform(entry,
158
177
  :build_task => "build:test",
159
178
  :entry_type => :test,
160
- :ext => :html)
161
-
179
+ :ext => 'html')
180
+
162
181
  # Strip off dirnames, saving each by dirname...
163
- dirname = entry.filename
182
+ dirname = entry[:filename]
164
183
  while (dirname = dirname.sub(/\/?[^\/]+$/,'')).size > 0
165
184
  (entries_by_dirname[dirname] ||= []) << entry
166
185
  end
167
186
  end
168
-
187
+
169
188
  # Generate composite entries for each directory...
170
189
  entries_by_dirname.each do |dirname, entries|
171
190
  filename = "#{dirname}.html"
172
- MANIFEST.add_composite filename,
191
+ manifest.add_composite filename,
173
192
  :build_task => "build:test",
174
193
  :entry_type => :test,
175
- :ext => :html,
194
+ :ext => 'html',
176
195
  :source_entries => entries,
177
196
  :hide_entries => false
178
197
  end
179
-
198
+
180
199
  # Add summary entry
181
- if CONFIG.load_tests
182
- MANIFEST.add_entry 'tests/-index.json',
183
- :composite => true,
200
+ if CONFIG[:load_tests]
201
+ manifest.add_entry 'tests/-index.json',
202
+ :composite => true,
184
203
  :source_entries => test_entries,
185
204
  :build_task => 'build:test_index',
186
205
  :entry_type => :resource
187
206
  end
188
207
  end
189
208
  task :javascript => :tests # IMPORTANT! to avoid JS including unit tests.
190
- task :html => :tests # IMPORTANT! to avoid HTML including tests
209
+ # task :html => :tests # IMPORTANT! to avoid HTML including tests
210
+
211
+ desc "scans for javascript files, annotates them and prepares combined entries for each output target"
212
+ task :javascript => :setup do |task, env|
213
+ manifest = env[:manifest]
214
+ config = CONFIG
191
215
 
192
- desc "scans for javascript files, annotates them and prepares combined entries for each output target"
193
- task :javascript => :setup do
194
216
  # select all original entries with with ext of css
195
- entries = MANIFEST.entries.select do |e|
196
- e.original? && e.ext == 'js'
217
+ entries = manifest.entries.select do |e|
218
+ e.original? && e[:ext] == 'js'
197
219
  end
198
220
 
199
221
  # add transform & tag with build directives.
200
222
  entries.each do |entry|
201
- entry = MANIFEST.add_transform entry,
202
- :lazy_instantiation => CONFIG.lazy_instantiation,
203
- :notify_onload => !CONFIG.combine_javascript,
204
- :filename => ['source', entry.filename].join('/'),
205
- :build_path => File.join(MANIFEST.build_root, 'source', entry.filename),
206
- :url => [MANIFEST.url_root, 'source', entry.filename].join("/"),
223
+ entry = manifest.add_transform entry,
224
+ :lazy_instantiation => config[:lazy_instantiation],
225
+ :notify_onload => !config[:combine_javascript],
226
+ :filename => ['source', entry[:filename]].join('/'),
227
+ :build_path => File.join(manifest[:build_root], 'source', entry[:filename]),
228
+ :url => [manifest[:url_root], 'source', entry[:filename]].join("/"),
207
229
  :build_task => 'build:javascript',
208
230
  :resource => 'javascript',
209
231
  :entry_type => :javascript
210
232
  entry.discover_build_directives!
211
233
  end
212
-
234
+
213
235
  end
214
236
 
215
237
  desc "scans for css files, creates a transform and annotates them"
216
- task :css => :setup do
217
-
238
+ task :css => :setup do |task, env|
239
+ manifest = env[:manifest]
240
+
218
241
  # select all original entries with with ext of css
219
- entries = MANIFEST.entries.select do |e|
220
- e.original? && e.ext == 'css'
242
+ entries = manifest.entries.select do |e|
243
+ e.original? && e[:ext] == 'css'
221
244
  end
222
245
 
223
246
  # add transform & tag with build directives.
224
247
  entries.each do |entry|
225
- entry = MANIFEST.add_transform entry,
226
- :filename => ['source', entry.filename].join('/'),
227
- :build_path => File.join(MANIFEST.build_root, 'source', entry.filename),
228
- :url => [MANIFEST.url_root, 'source', entry.filename].join("/"),
248
+ entry = manifest.add_transform entry,
249
+ :filename => ['source', entry[:filename]].join('/'),
250
+ :build_path => File.join(manifest[:build_root], 'source', entry[:filename]),
251
+ :url => [manifest[:url_root], 'source', entry[:filename]].join("/"),
229
252
  :build_task => 'build:css',
230
253
  :resource => 'stylesheet',
231
254
  :entry_type => :css
232
255
  entry.discover_build_directives!
233
256
  end
234
257
  end
235
-
258
+
236
259
  desc "adds a bundle_info.js entry for each dynamic_required target"
237
- task :bundle_info => %w(setup) do
238
-
260
+ task :bundle_info => %w(setup) do |task, env|
261
+ target = env[:target]
262
+ manifest = env[:manifest]
263
+ config = CONFIG
264
+
239
265
  # Populate bundle_info for all dynamic_required frameworks.
240
- # Add :debug_dynamic_required and :test_dynamic_required depending on
266
+ # Add :debug_dynamic_required and :test_dynamic_required depending on
241
267
  # the build mode.
242
- debug = CONFIG.load_debug
243
- test = CONFIG.load_tests
244
-
245
- targets = TARGET.dynamic_required_targets({ :debug => debug, :test => test, :theme => true })
268
+ debug = config[:load_debug]
269
+ test = config[:load_tests]
270
+
271
+ targets = target.dynamic_required_targets({ :debug => debug, :test => test, :theme => true })
246
272
  unless targets.size == 0
247
273
  source_entries = []
248
274
  targets.each do |t|
249
- t.manifest_for(MANIFEST.variation).build!.entries.each do |e|
275
+ t.manifest_for(manifest.variation).build!.entries.each do |e|
250
276
  source_entries << e
251
277
  end
252
278
  end
253
- MANIFEST.add_entry 'bundle_info.js',
279
+ manifest.add_entry 'bundle_info.js',
254
280
  :dynamic => true, # required to get correct timestamp for cacheable_url
255
281
  :build_task => 'build:bundle_info',
256
282
  :resource => 'javascript',
257
283
  :entry_type => :javascript,
258
284
  :composite => true,
259
285
  :source_entries => source_entries,
260
- :target => TARGET,
286
+ :target => target,
261
287
  :targets => targets,
262
- :variation => MANIFEST.variation,
288
+ :variation => manifest.variation,
263
289
  :debug => debug,
264
290
  :test => test,
265
291
  :theme => true
266
292
  end
267
293
  end
268
294
  task :bundle_info => :tests # IMPORTANT! to avoid JS including unit tests.
269
-
295
+
270
296
  desc "adds a bundle_loaded.js entry if the target is a framework"
271
- task :bundle_loaded => %w(setup) do
272
-
273
- if TARGET.target_type == :framework
274
- MANIFEST.add_entry 'bundle_loaded.js',
297
+ task :bundle_loaded => %w(setup) do |task, env|
298
+ target = env[:target]
299
+ manifest = env[:manifest]
300
+
301
+ if target[:target_type] == :framework
302
+ manifest.add_entry 'bundle_loaded.js',
275
303
  :build_task => 'build:bundle_loaded',
276
304
  :resource => 'javascript',
277
305
  :entry_type => :javascript,
278
306
  :composite => true, # does not have a source
279
307
  :source_entries => [],
280
- :target => TARGET
308
+ :target => target
281
309
  end
282
-
310
+
283
311
  end
284
312
  task :bundle_loaded => :tests # IMPORTANT! to avoid JS including unit tests.
285
-
313
+
286
314
  desc "generates combined entries for javascript and css"
287
- task :combine => %w(setup css javascript bundle_info bundle_loaded sass) do
315
+ task :combine => %w(setup css javascript bundle_info bundle_loaded sass scss less) do |task, env|
316
+ manifest = env[:manifest]
317
+ config = CONFIG
288
318
 
289
319
  # sort entries...
290
320
  css_entries = {}
291
321
  javascript_entries = {}
292
- MANIFEST.entries.each do |entry|
322
+ manifest.entries.each do |entry|
293
323
  # we can only combine entries with a resource property.
294
- next if entry.resource.nil?
295
-
324
+ next if entry[:resource].nil?
325
+
296
326
  # look for CSS or JS type entries
297
- case entry.entry_type
327
+ case entry[:entry_type]
298
328
  when :css
299
- (css_entries[entry.resource] ||= []) << entry
329
+ (css_entries[entry[:resource]] ||= []) << entry
300
330
  when :javascript
301
- (javascript_entries[entry.resource] ||= []) << entry
331
+ (javascript_entries[entry[:resource]] ||= []) << entry
302
332
  end
303
333
  end
304
334
 
305
335
  # build combined CSS entry
306
336
  css_entries.each do |resource_name, entries|
307
- MANIFEST.add_composite resource_name.ext('css'),
337
+ manifest.add_composite resource_name.ext('css'),
308
338
  :build_task => 'build:combine',
309
339
  :source_entries => entries,
310
- :hide_entries => CONFIG.combine_stylesheets,
340
+ :hide_entries => config[:combine_stylesheets],
311
341
  :ordered_entries => SC::Helpers::EntrySorter.sort(entries),
312
342
  :entry_type => :css,
313
343
  :combined => true
314
344
  end
315
-
345
+
316
346
  # build combined JS entry
317
347
  javascript_entries.each do |resource_name, entries|
318
348
  resource_name = resource_name.ext('js')
319
349
  pf = (resource_name == 'javascript.js') ? %w(source/lproj/strings.js source/core.js source/utils.js) : []
320
- MANIFEST.add_composite resource_name,
350
+ manifest.add_composite resource_name,
321
351
  :build_task => 'build:combine',
322
352
  :source_entries => entries,
323
- :top_level_lazy_instantiation => CONFIG.lazy_instantiation,
324
- :hide_entries => CONFIG.combine_javascript,
353
+ :top_level_lazy_instantiation => config[:lazy_instantiation],
354
+ :hide_entries => config[:combine_javascript],
325
355
  :ordered_entries => SC::Helpers::EntrySorter.sort(entries, pf),
326
356
  :entry_type => :javascript,
327
357
  :combined => true
328
358
  end
329
-
359
+
330
360
  end
331
361
 
332
362
  desc "adds a packed entry including javascript.js from required targets"
333
- task :packed => %w(setup combine) do
363
+ task :packed => %w(setup combine) do |task, env|
364
+ target = env[:target]
365
+ manifest = env[:manifest]
334
366
 
335
367
  # don't add packed entries for apps.
336
- if TARGET.target_type != :app
368
+ if target[:target_type] != :app
337
369
  # Handle JavaScript version. get all required targets and find their
338
370
  # javascript.js. Build packed js from that.
339
- targets = TARGET.expand_required_targets + [TARGET]
371
+ targets = target.expand_required_targets + [target]
340
372
  entries = targets.map do |target|
341
- m = target.manifest_for(MANIFEST.variation).build!
342
-
373
+ m = target.manifest_for(manifest.variation).build!
374
+
343
375
  # need to find the version that is not minified
344
376
  entry = m.entry_for('javascript.js')
345
377
  entry = entry.source_entry while entry && entry.minified?
346
378
  entry
347
379
  end
348
-
380
+
349
381
  entries.compact!
350
- MANIFEST.add_composite 'javascript-packed.js',
382
+ manifest.add_composite 'javascript-packed.js',
351
383
  :build_task => 'build:combine',
352
384
  :source_entries => entries,
353
385
  :hide_entries => false,
@@ -356,30 +388,32 @@ namespace :manifest do
356
388
  :ordered_entries => entries, # orderd by load order
357
389
  :targets => targets,
358
390
  :packed => true
359
-
360
- end
391
+
392
+ end
361
393
  end
362
394
  task :minify => :packed # IMPORTANT: don't want minified version
363
-
395
+
364
396
  desc "adds a packed entry including stylesheet.css from required targets"
365
- task :packed => %w(setup combine) do
397
+ task :packed => %w(setup combine) do |task, env|
398
+ target = env[:target]
399
+ manifest = env[:manifest]
366
400
 
367
401
  # don't add packed entries for apps.
368
- if TARGET.target_type != :app
402
+ if target[:target_type] != :app
369
403
  # Handle CSS version. get all required targets and find their
370
404
  # stylesheet.css. Build packed css from that.
371
- targets = TARGET.expand_required_targets + [TARGET]
405
+ targets = target.expand_required_targets + [target]
372
406
  entries = targets.map do |target|
373
- m = target.manifest_for(MANIFEST.variation).build!
374
-
407
+ m = target.manifest_for(manifest.variation).build!
408
+
375
409
  # need to find the version that is not minified
376
410
  entry = m.entry_for('stylesheet.css')
377
411
  entry = entry.source_entry while entry && entry.minified?
378
412
  entry
379
413
  end
380
-
414
+
381
415
  entries.compact!
382
- MANIFEST.add_composite 'stylesheet-packed.css',
416
+ manifest.add_composite 'stylesheet-packed.css',
383
417
  :build_task => 'build:combine',
384
418
  :source_entries => entries,
385
419
  :hide_entries => false,
@@ -388,46 +422,53 @@ namespace :manifest do
388
422
  :ordered_entries => entries, # orderd by load order
389
423
  :targets => targets,
390
424
  :packed => true
391
-
392
- end
425
+
426
+ end
393
427
  end
394
428
  task :minify => :packed # IMPORTANT: don't want minified version
395
-
396
-
397
- desc "create a builder task for all sass files to create css files"
398
- task :sass => :setup do
399
- MANIFEST.entries.each do |entry|
400
- next unless entry.ext == "sass"
401
-
402
-
403
- MANIFEST.add_transform entry,
404
- :filename => ['source', entry.filename].join('/'),
405
- :build_path => File.join(MANIFEST.build_root, 'source', entry.filename),
406
- :url => [MANIFEST.url_root, 'source', entry.filename].join("/"),
407
- :build_task => 'build:sass',
408
- :entry_type => :css,
409
- :ext => 'css',
410
- :resource => 'stylesheet',
411
- :required => []
429
+
430
+ #Create builder tasks for sass, scss (sass v3) and less in a DRY way
431
+ [:sass, :scss, :less].each do |csscompiler|
432
+ desc sprintf("create a builder task for all %s files to create css files", csscompiler.to_s)
433
+ task csscompiler => :setup do |task, env|
434
+ manifest = env[:manifest]
435
+
436
+ manifest.entries.each do |entry|
437
+ next unless entry[:ext] == csscompiler.to_s
438
+
439
+ manifest.add_transform entry,
440
+ :filename => ['source', entry[:filename]].join('/'),
441
+ :build_path => File.join(manifest[:build_root], 'source', entry[:filename]),
442
+ :url => [manifest[:url_root], 'source', entry[:filename]].join("/"),
443
+ :build_task => 'build:'+csscompiler.to_s,
444
+ :entry_type => :css,
445
+ :ext => 'css',
446
+ :resource => 'stylesheet',
447
+ :required => []
448
+ end
412
449
  end
413
450
  end
414
-
451
+
415
452
  desc "find all html-generating files, annotate and combine them"
416
- task :html => :setup do
417
-
453
+ task :html => :setup do |task, env|
454
+ target = env[:target]
455
+ manifest = env[:manifest]
456
+ config = CONFIG
457
+
418
458
  # select all entries with proper extensions
419
459
  known_ext = %w(rhtml erb haml)
420
- entries = MANIFEST.entries.select do |e|
421
- (e.entry_type == :html) || (e.entry_type.nil? && known_ext.include?(e.ext))
460
+ entries = manifest.entries.select do |e|
461
+ (e[:entry_type] == :html) || (e[:entry_type].nil? && known_ext.include?(e[:ext]))
422
462
  end
423
463
 
424
464
  # tag entry with build directives and sort by resource
425
465
  entries_by_resource = {}
466
+
426
467
  entries.each do |entry|
427
- entry.entry_type = :html
428
- entry.resource = 'index'
468
+ entry[:entry_type] = :html
469
+ entry[:resource] = 'index'
429
470
 
430
- entry.render_task = case entry.ext
471
+ entry[:render_task] = case entry[:ext]
431
472
  when 'rhtml'
432
473
  'render:erubis'
433
474
  when 'erb'
@@ -435,11 +476,11 @@ namespace :manifest do
435
476
  when 'haml'
436
477
  'render:haml'
437
478
  end
438
-
479
+
439
480
  # items beginning with an underscore are partials. do not build
440
- if entry.filename =~ /^_/
481
+ if entry[:filename] =~ /^_/
441
482
  entry.hide!
442
- entry.is_partial = true
483
+ entry[:is_partial] = true
443
484
 
444
485
  # not a partial
445
486
  else
@@ -448,26 +489,26 @@ namespace :manifest do
448
489
  entry.scan_source(/<%\s*sc_resource\(?\s*['"](.+)['"]\s*\)?/) do |m|
449
490
  entry.resource = m[0].ext ''
450
491
  end
451
- (entries_by_resource[entry.resource] ||= []) << entry
492
+ (entries_by_resource[entry[:resource]] ||= []) << entry
452
493
  end
453
-
494
+
454
495
  end
455
-
456
- # even if no resource was found for the index.html, add one anyway if
496
+
497
+ # even if no resource was found for the index.html, add one anyway if
457
498
  # the target is loadable
458
- if TARGET.loadable? && entries_by_resource['index'].nil?
499
+ if target.loadable? && entries_by_resource['index'].nil?
459
500
  entries_by_resource['index'] = []
460
501
  end
461
-
502
+
462
503
  # Now, build combined entry for each resource
463
504
  entries_by_resource.each do |resource_name, entries|
464
505
  resource_name = resource_name.ext('html')
465
506
  is_index = resource_name == 'index.html'
466
-
507
+
467
508
  # compute the friendly_url assuming normal install process
468
- friendly_url = [TARGET.index_root]
469
- m_language = MANIFEST.language.to_sym
470
- t_preferred = (TARGET.config.preferred_language || :en).to_sym
509
+ friendly_url = [target[:index_root]]
510
+ m_language = manifest[:language].to_sym
511
+ t_preferred = (target.config[:preferred_language] || :en).to_sym
471
512
  if is_index
472
513
  friendly_url << m_language.to_s unless t_preferred == m_language
473
514
  else
@@ -476,80 +517,85 @@ namespace :manifest do
476
517
  end
477
518
  friendly_url = friendly_url.join('/')
478
519
 
479
- is_pref_lang = (MANIFEST.language == CONFIG.preferred_language)
480
- is_hidden = !TARGET.loadable? && is_index
481
- overwrite_current = CONFIG.overwrite_current
482
-
520
+ is_pref_lang = (manifest[:language] == config[:preferred_language])
521
+ is_hidden = !target.loadable? && is_index
522
+ overwrite_current = config[:overwrite_current]
523
+
483
524
  # index.html entries get generated three times. Once for inside the
484
525
  # build dir, once for the language and once for the entire target name
485
526
  # Note that you must generate an index.html entry for all three even
486
527
  # if you won't actually use it because other index.html entries may
487
- # reference it
528
+ # reference it
488
529
  (is_index ? 3 : 1).times do |rep_cnt|
489
-
490
- MANIFEST.add_composite resource_name,
530
+
531
+ manifest.add_composite resource_name,
491
532
  :entry_type => :html,
492
533
  :combined => true,
493
534
  :build_task => 'build:html',
494
535
  :source_entries => entries, # make independent
495
536
  :hidden => is_hidden,
496
- :include_required_targets => TARGET.loadable? && is_index,
537
+ :include_required_targets => target.loadable? && is_index,
497
538
  :friendly_url => friendly_url,
498
539
  :is_index => is_index
499
-
540
+
500
541
  # if this is the index, setup next rep
501
542
  if is_index
502
543
  resource_name = File.join('..', resource_name)
503
- is_hidden = true if !TARGET.loadable? || !overwrite_current
544
+ is_hidden = true if !target.loadable? || !overwrite_current
504
545
  is_hidden = true if (rep_cnt>=2) && !is_pref_lang
505
546
  end
506
547
  end
507
-
548
+
508
549
  end
509
550
  end
510
-
551
+
511
552
  desc "creates transform entries for all css and Js entries to minify them if needed"
512
- task :minify => %w(setup javascript bundle_info bundle_loaded css combine sass) do
513
-
514
- minify_css = CONFIG.minify_css
515
- minify_css = CONFIG.minify if minify_css.nil?
516
-
517
- minify_javascript = CONFIG.minify_javascript
518
- minify_javascript = CONFIG.minify if minify_javascript.nil?
519
-
520
- MANIFEST.entries.dup.each do |entry|
521
- case entry.entry_type
553
+ task :minify => %w(setup javascript bundle_info bundle_loaded css combine sass scss less) do |task, env|
554
+ manifest = env[:manifest]
555
+ config = CONFIG
556
+
557
+ minify_css = config[:minify_css]
558
+ minify_css = config[:minify] if minify_css.nil?
559
+
560
+ minify_javascript = config[:minify_javascript]
561
+ minify_javascript = config[:minify] if minify_javascript.nil?
562
+
563
+ manifest.entries.dup.each do |entry|
564
+ case entry[:entry_type]
522
565
  when :css
523
566
  if minify_css
524
- MANIFEST.add_transform entry,
567
+ manifest.add_transform entry,
525
568
  :build_task => 'build:minify:css',
526
569
  :entry_type => :css,
527
570
  :minified => true,
528
571
  :packed => entry.packed? # carry forward
529
572
  end
530
-
573
+
531
574
  when :javascript
532
- if minify_javascript
533
- MANIFEST.add_transform entry,
575
+ if minify_javascript
576
+ manifest.add_transform entry,
534
577
  :build_task => 'build:minify:javascript',
535
578
  :entry_type => :javascript,
536
579
  :minified => true,
537
580
  :packed => entry.packed? # carry forward
538
581
  end
539
582
  end
583
+
540
584
  end
541
-
585
+
542
586
  end
543
587
 
544
- desc "adds a loc strings entry that generates a yaml file server-side functions can use"
545
- task :strings => %w(setup javascript bundle_info bundle_loaded) do
588
+ desc "adds a loc strings entry that generates a yaml file server-side functions can use"
589
+ task :strings => %w(setup javascript bundle_info bundle_loaded) do |task, env|
590
+ manifest = env[:manifest]
591
+
546
592
  # find the lproj/strings.js file...
547
- if entry = (MANIFEST.entry_for('source/lproj/strings.js') || MANIFEST.entry_for('source/lproj/strings.js', :hidden => true))
548
- MANIFEST.add_transform entry,
593
+ if entry = (manifest.entry_for('source/lproj/strings.js') || manifest.entry_for('source/lproj/strings.js', :hidden => true))
594
+ manifest.add_transform entry,
549
595
  :filename => 'strings.yaml',
550
- :build_path => File.join(MANIFEST.build_root, 'strings.yaml'),
551
- :staging_path => File.join(MANIFEST.staging_root, 'strings.yaml'),
552
- :url => [MANIFEST.url_root, 'strings.yaml'].join('/'),
596
+ :build_path => File.join(manifest[:build_root], 'strings.yaml'),
597
+ :staging_path => File.join(manifest[:staging_root], 'strings.yaml'),
598
+ :url => [manifest[:url_root], 'strings.yaml'].join('/'),
553
599
  :build_task => 'build:strings',
554
600
  :ext => 'yaml',
555
601
  :entry_type => :strings,
@@ -557,13 +603,13 @@ namespace :manifest do
557
603
  :hidden => true
558
604
  end
559
605
  end
560
-
606
+
561
607
  desc "..."
562
608
  task :image => :setup do
563
609
  end
564
-
565
-
610
+
611
+
566
612
  end
567
-
568
-
613
+
614
+
569
615
  end