sproutcore 1.5.0 → 1.6.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. data/.mailmap +32 -0
  2. data/CHANGELOG +8 -1
  3. data/Rakefile +16 -0
  4. data/VERSION.yml +2 -2
  5. data/bin/sc-build +0 -5
  6. data/bin/sc-build-number +0 -5
  7. data/bin/sc-docs +0 -5
  8. data/bin/sc-gen +0 -5
  9. data/bin/sc-init +0 -5
  10. data/bin/sc-manifest +0 -5
  11. data/bin/sc-server +0 -5
  12. data/bin/sproutcore +0 -5
  13. data/lib/frameworks/sproutcore/Buildfile +3 -3
  14. data/lib/frameworks/sproutcore/CHANGELOG.md +13 -0
  15. data/lib/frameworks/sproutcore/README.md +77 -7
  16. data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +0 -2
  17. data/lib/frameworks/sproutcore/frameworks/animation/core.js +3 -2
  18. data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +1 -1
  19. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +1 -17
  20. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/controller.js +1 -1
  21. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/object.js +4 -4
  22. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +23 -21
  23. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +1 -1
  24. data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +3 -3
  25. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/device.js +2 -2
  26. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +16 -16
  27. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/platform.js +2 -2
  28. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/render_context.js +1 -34
  29. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +29 -23
  30. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/sparse_array.js +8 -4
  31. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/string.js +20 -23
  32. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +55 -0
  33. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +49 -1
  34. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +19 -1
  35. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +2 -0
  36. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/animation.js +4 -3
  37. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout.js +1 -0
  38. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +38 -41
  39. data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +7 -82
  40. data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +12 -5
  41. data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +1 -1
  42. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/array_observers.js +82 -0
  43. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +17 -0
  44. data/lib/frameworks/sproutcore/frameworks/debug/core.js +1 -1
  45. data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +1 -1
  46. data/lib/frameworks/sproutcore/frameworks/desktop/core.js +2 -2
  47. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +33 -30
  48. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +12 -11
  49. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +7 -7
  50. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +4 -4
  51. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +20 -20
  52. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +5 -5
  53. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +10 -10
  54. data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +24 -23
  55. data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +51 -54
  56. data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +3 -3
  57. data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +1 -1
  58. data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +29 -29
  59. data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +1 -1
  60. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +3 -3
  61. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +6 -6
  62. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +4 -4
  63. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +5 -5
  64. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/master_detail.js +1 -1
  65. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +5 -5
  66. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +7 -7
  67. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +3 -3
  68. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +7 -5
  69. data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +31 -31
  70. data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +1 -1
  71. data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +35 -29
  72. data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +2 -2
  73. data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +61 -50
  74. data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +9 -2
  75. data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +2 -2
  76. data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +6 -1
  77. data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +1 -1
  78. data/lib/frameworks/sproutcore/frameworks/experimental/Buildfile +2 -0
  79. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/object.js +12 -12
  80. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/designs.js +6 -6
  81. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_files.js +1 -1
  82. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style_sheet.js +7 -9
  83. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/object_designer.js +13 -13
  84. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/view_designer.js +37 -37
  85. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/object.js +3 -2
  86. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/page.js +2 -2
  87. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/view.js +4 -3
  88. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/snap_lines.js +7 -6
  89. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/designer_drop_target.js +3 -3
  90. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/drawing.js +49 -42
  91. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/high_light.js +1 -1
  92. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/page_item_view.js +6 -6
  93. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +1 -1
  94. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/english.lproj/default_styles.css +0 -0
  95. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/english.lproj/strings.js +0 -0
  96. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/mixins/edit_mode.js +0 -0
  97. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/mixins/emptiness.js +0 -0
  98. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/render_delegates/form.js +0 -0
  99. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/render_delegates/form_row.js +0 -0
  100. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form.js +0 -0
  101. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_checkbox_field.js +0 -0
  102. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_field.js +0 -0
  103. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_label.js +0 -0
  104. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_radio_field.js +0 -0
  105. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_row.js +0 -0
  106. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_text_field.js +0 -0
  107. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/views/form.js +13 -14
  108. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/views/form_row.js +0 -0
  109. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +4 -6
  110. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +0 -1
  111. data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +2 -4
  112. data/lib/frameworks/sproutcore/frameworks/foundation/system/image_queue.js +8 -12
  113. data/lib/frameworks/sproutcore/frameworks/foundation/views/inline_text_field.js +28 -34
  114. data/lib/frameworks/sproutcore/frameworks/{foundation → routing}/system/routes.js +31 -47
  115. data/lib/frameworks/sproutcore/frameworks/{foundation → routing}/tests/system/routes.js +0 -0
  116. data/lib/frameworks/sproutcore/frameworks/runtime/core.js +2 -2
  117. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +15 -21
  118. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +8 -0
  119. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +3 -3
  120. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array_observers.js +23 -0
  121. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +1 -1
  122. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +3 -3
  123. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +3 -3
  124. data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +66 -133
  125. data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +68 -139
  126. data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +11 -11
  127. data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +23 -29
  128. data/lib/frameworks/sproutcore/lib/index.rhtml +5 -2
  129. data/lib/sproutcore/builders/minify.rb +5 -5
  130. data/lib/sproutcore/helpers/minifier.rb +6 -10
  131. data/lib/sproutcore/models/target.rb +2 -2
  132. data/lib/sproutcore/rack/proxy.rb +8 -7
  133. data/lib/sproutcore/tools.rb +16 -5
  134. data/lib/sproutcore.rb +2 -9
  135. data/spec/lib/builders/html_spec.rb +5 -5
  136. data/sproutcore.gemspec +11 -5
  137. data/vendor/chance/lib/chance.rb +4 -2
  138. data/{lib/sproutcore/vendor → vendor}/jsdoc/README.txt +0 -0
  139. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Chain.js +0 -0
  140. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Dumper.js +0 -0
  141. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Hash.js +0 -0
  142. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Link.js +0 -0
  143. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Namespace.js +0 -0
  144. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Opt.js +0 -0
  145. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Reflection.js +0 -0
  146. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/String.js +0 -0
  147. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Testrun.js +0 -0
  148. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame.js +0 -0
  149. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/FOODOC.js +0 -0
  150. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/DomReader.js +0 -0
  151. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/XMLDoc.js +0 -0
  152. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/XMLParse.js +0 -0
  153. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC.js +0 -0
  154. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/DocComment.js +0 -0
  155. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/DocTag.js +0 -0
  156. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/JsDoc.js +0 -0
  157. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/JsPlate.js +0 -0
  158. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Lang.js +0 -0
  159. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Parser.js +0 -0
  160. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/PluginManager.js +0 -0
  161. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Symbol.js +0 -0
  162. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/SymbolSet.js +0 -0
  163. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TextStream.js +0 -0
  164. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Token.js +0 -0
  165. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TokenReader.js +0 -0
  166. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TokenStream.js +0 -0
  167. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Util.js +0 -0
  168. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Walker.js +0 -0
  169. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC.js +0 -0
  170. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/main.js +0 -0
  171. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/commentSrcJson.js +0 -0
  172. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/frameworkPrototype.js +0 -0
  173. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/functionCall.js +0 -0
  174. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/publishSrcHilite.js +0 -0
  175. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/sproutcoreTags.js +0 -0
  176. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/symbolLink.js +0 -0
  177. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/tagParamConfig.js +0 -0
  178. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/tagSynonyms.js +0 -0
  179. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/run.js +0 -0
  180. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/t/TestDoc.js +0 -0
  181. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/t/runner.js +0 -0
  182. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/addon.js +0 -0
  183. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/anon_inner.js +0 -0
  184. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/augments.js +0 -0
  185. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/augments2.js +0 -0
  186. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/borrows.js +0 -0
  187. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/borrows2.js +0 -0
  188. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/config.js +0 -0
  189. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/constructs.js +0 -0
  190. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/encoding.js +0 -0
  191. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/encoding_other.js +0 -0
  192. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/functions_anon.js +0 -0
  193. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/functions_nested.js +0 -0
  194. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/global.js +0 -0
  195. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/globals.js +0 -0
  196. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/ignore.js +0 -0
  197. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/inner.js +0 -0
  198. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/jsdoc_test.js +0 -0
  199. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/lend.js +0 -0
  200. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/memberof.js +0 -0
  201. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/memberof_constructor.js +0 -0
  202. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/name.js +0 -0
  203. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/namespace_nested.js +0 -0
  204. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/nocode.js +0 -0
  205. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/oblit_anon.js +0 -0
  206. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/overview.js +0 -0
  207. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/param_inline.js +0 -0
  208. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/params_optional.js +0 -0
  209. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype.js +0 -0
  210. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_nested.js +0 -0
  211. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_oblit.js +0 -0
  212. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_oblit_constructor.js +0 -0
  213. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/public.js +0 -0
  214. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shared.js +0 -0
  215. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shared2.js +0 -0
  216. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shortcuts.js +0 -0
  217. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/static_this.js +0 -0
  218. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/synonyms.js +0 -0
  219. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/tosource.js +0 -0
  220. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/variable_redefine.js +0 -0
  221. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test.js +0 -0
  222. data/{lib/sproutcore/vendor → vendor}/jsdoc/changes.txt +0 -0
  223. data/{lib/sproutcore/vendor → vendor}/jsdoc/conf/sample.conf +0 -0
  224. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/build.xml +0 -0
  225. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/build_1.4.xml +0 -0
  226. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/classes/js.jar +0 -0
  227. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/src/JsDebugRun.java +0 -0
  228. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/src/JsRun.java +0 -0
  229. data/{lib/sproutcore/vendor → vendor}/jsdoc/jsdebug.jar +0 -0
  230. data/{lib/sproutcore/vendor → vendor}/jsdoc/jsrun.jar +0 -0
  231. data/{lib/sproutcore/vendor → vendor}/jsdoc/t/TestDoc.js +0 -0
  232. data/{lib/sproutcore/vendor → vendor}/jsdoc/t/runner.js +0 -0
  233. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/addon.js +0 -0
  234. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/anon_inner.js +0 -0
  235. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/augments.js +0 -0
  236. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/augments2.js +0 -0
  237. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/borrows.js +0 -0
  238. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/borrows2.js +0 -0
  239. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/config.js +0 -0
  240. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/constructs.js +0 -0
  241. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/encoding.js +0 -0
  242. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/encoding_other.js +0 -0
  243. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/functions_anon.js +0 -0
  244. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/functions_nested.js +0 -0
  245. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/global.js +0 -0
  246. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/globals.js +0 -0
  247. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/ignore.js +0 -0
  248. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/inner.js +0 -0
  249. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/jsdoc_test.js +0 -0
  250. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/lend.js +0 -0
  251. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/memberof.js +0 -0
  252. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/memberof_constructor.js +0 -0
  253. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/name.js +0 -0
  254. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/namespace_nested.js +0 -0
  255. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/nocode.js +0 -0
  256. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/oblit_anon.js +0 -0
  257. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/overview.js +0 -0
  258. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/param_inline.js +0 -0
  259. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/params_optional.js +0 -0
  260. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype.js +0 -0
  261. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_nested.js +0 -0
  262. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_oblit.js +0 -0
  263. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_oblit_constructor.js +0 -0
  264. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/public.js +0 -0
  265. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shared.js +0 -0
  266. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shared2.js +0 -0
  267. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shortcuts.js +0 -0
  268. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/static_this.js +0 -0
  269. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/synonyms.js +0 -0
  270. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/tosource.js +0 -0
  271. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/variable_redefine.js +0 -0
  272. data/{lib/sproutcore/vendor → vendor}/jsdoc/test.js +0 -0
  273. data/vendor/sproutcore/{src/SCCompiler/lib/yuicompressor-2.4.4.jar → lib/yuicompressor-2.4.6.jar} +0 -0
  274. metadata +176 -202
  275. data/lib/frameworks/sproutcore/frameworks/desktop/views/file.js +0 -148
  276. data/lib/sproutcore/vendor/github_gem_lint.rb +0 -22
  277. data/vendor/sproutcore/SCCompiler.jar +0 -0
  278. data/vendor/sproutcore/lib/args4j-2.0.12.jar +0 -0
  279. data/vendor/sproutcore/lib/yuicompressor-2.4.2.jar +0 -0
  280. data/vendor/sproutcore/src/SCCompiler/build.xml +0 -74
  281. data/vendor/sproutcore/src/SCCompiler/lib/args4j-2.0.12.jar +0 -0
  282. data/vendor/sproutcore/src/SCCompiler/lib/htmlcompressor-0.9.3.jar +0 -0
  283. data/vendor/sproutcore/src/SCCompiler/lib/yuicompressor-2.4.2.jar +0 -0
  284. data/vendor/sproutcore/src/SCCompiler/manifest.mf +0 -3
  285. data/vendor/sproutcore/src/SCCompiler/nbproject/build-impl.xml +0 -894
  286. data/vendor/sproutcore/src/SCCompiler/nbproject/genfiles.properties +0 -8
  287. data/vendor/sproutcore/src/SCCompiler/nbproject/private/config.properties +0 -0
  288. data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.properties +0 -10
  289. data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.xml +0 -4
  290. data/vendor/sproutcore/src/SCCompiler/nbproject/project.properties +0 -90
  291. data/vendor/sproutcore/src/SCCompiler/nbproject/project.xml +0 -15
  292. data/vendor/sproutcore/src/SCCompiler/src/com/sproutcore/Main.java +0 -348
@@ -1,148 +0,0 @@
1
- // ==========================================================================
2
- // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
- // Portions ©2008-2011 Apple Inc. All rights reserved.
5
- // License: Licensed under MIT license (see license.js)
6
- // ==========================================================================
7
-
8
- /*
9
- TODO revisit this to see if these classnames are usable
10
- */
11
-
12
- /** @class
13
-
14
- Implements a customized file input by creating a standard file input in a
15
- transparent iframe over top of a SC.ButtonView.
16
-
17
- SC.FieldView uses the SC.Control mixin which will apply CSS
18
- classnames when the state of the file view changes:
19
-
20
- - active when button is active
21
- - sel when button is toggled to a selected state
22
-
23
- @extends SC.FieldView
24
- @since SproutCore 1.0
25
- @author Tyler Keating
26
- */
27
- SC.FileView = SC.FieldView.extend(
28
- /** @scope SC.FileView.prototype */ {
29
-
30
- /**
31
- @type Array
32
- @default ['sc-file-view']
33
- @see SC.View#classNames
34
- */
35
- classNames: ['sc-file-view'],
36
-
37
- /** @private */
38
- childViews: ['button', 'form'],
39
-
40
-
41
- // ..........................................................
42
- // Properties
43
- //
44
-
45
- /**
46
- @type Boolean
47
- @default YES
48
- */
49
- autoSubmit: YES,
50
-
51
- /**
52
- The name of the action you want triggered when the button is pressed.
53
-
54
- This property is used in conjunction with the target property to execute
55
- a method when a regular button is pressed. These properties are not
56
- relevant when the button is used in toggle mode.
57
-
58
- If you do not set a target, then pressing a button will cause the
59
- responder chain to search for a view that implements the action you name
60
- here. If you set a target, then the button will try to call the method
61
- on the target itself.
62
-
63
- For legacy support, you can also set the action property to a function.
64
- Doing so will cause the function itself to be called when the button is
65
- clicked. It is generally better to use the target/action approach and
66
- to implement your code in a controller of some type.
67
-
68
- @type String
69
- @default 'uploadImage'
70
- */
71
- action: 'uploadImage',
72
-
73
- /**
74
- The target object to invoke the action on when the button is pressed.
75
-
76
- If you set this target, the action will be called on the target object
77
- directly when the button is clicked. If you leave this property set to
78
- null, then the button will search the responder chain for a view that
79
- implements the action when the button is pressed instead.
80
-
81
- @type Object
82
- @default null
83
- */
84
- target: null,
85
-
86
- /**
87
- @type String
88
- @default "Choose File"
89
- */
90
- title: "Choose File",
91
-
92
-
93
- // ..........................................................
94
- // Views
95
- //
96
-
97
- /** @private */
98
- button: SC.ButtonView.design({
99
- title: 'Choose File',
100
- theme: 'capsule'
101
- }),
102
-
103
- /** @private */
104
- form: SC.View.design({
105
- tagName: 'form',
106
-
107
- /** @private */
108
- render: function(context, firstTime) {
109
- context.attr('method', 'post').attr('action', "javascript:;").attr('enctype', 'multipart/form-data');
110
- sc_super();
111
- },
112
-
113
- childViews: ['input'],
114
-
115
- input: SC.View.design({
116
- tagName: 'input',
117
-
118
- /** @private */
119
- render: function(context, firstTime) {
120
- context.attr('type', 'file').end();
121
- sc_super();
122
- }
123
- })
124
- }),
125
-
126
-
127
- // ..........................................................
128
- // FieldView Overrides
129
- //
130
-
131
- /** @private
132
- Since it is impossible to set the value of file inputs, don't attempt it.
133
- */
134
- setFieldValue: function(newValue) {
135
- SC.Logger.log("SC.FileView: setFieldValue: %@ does nothing".fmt(newValue));
136
- //if (newValue) throw SC.$error('SC.FileView can not set the value of the file field');
137
- },
138
-
139
- /** @private */
140
- fieldValueDidChange: function(partialChange) {
141
- sc_super();
142
- if (this.get('autoSubmit')) {
143
- //this.form.submit();
144
-
145
- var resp = SC.Request.postUrl('/proxy/user/update_image').json().async(NO).send({picture: this.get('value')});
146
- }
147
- }
148
- });
@@ -1,22 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'yaml'
3
-
4
- if ARGV.size < 1
5
- puts "Usage: github-test.rb my-project.gemspec"
6
- exit
7
- end
8
-
9
- require 'rubygems/specification'
10
- data = File.read(ARGV[0])
11
- spec = nil
12
-
13
- if data !~ %r{!ruby/object:Gem::Specification}
14
- Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
15
- else
16
- spec = YAML.load(data)
17
- end
18
-
19
- spec.validate
20
-
21
- puts spec
22
- puts "OK"
Binary file
@@ -1,74 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- You may freely edit this file. See commented blocks below for -->
3
- <!-- some examples of how to customize the build. -->
4
- <!-- (If you delete it and reopen the project it will be recreated.) -->
5
- <!-- By default, only the Clean and Build commands use this build script. -->
6
- <!-- Commands such as Run, Debug, and Test only use this build script if -->
7
- <!-- the Compile on Save feature is turned off for the project. -->
8
- <!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
9
- <!-- in the project's Project Properties dialog box.-->
10
- <project name="SCCompiler" default="default" basedir=".">
11
- <description>Builds, tests, and runs the project SCCompiler.</description>
12
- <import file="nbproject/build-impl.xml"/>
13
- <!--
14
-
15
- There exist several targets which are by default empty and which can be
16
- used for execution of your tasks. These targets are usually executed
17
- before and after some main targets. They are:
18
-
19
- -pre-init: called before initialization of project properties
20
- -post-init: called after initialization of project properties
21
- -pre-compile: called before javac compilation
22
- -post-compile: called after javac compilation
23
- -pre-compile-single: called before javac compilation of single file
24
- -post-compile-single: called after javac compilation of single file
25
- -pre-compile-test: called before javac compilation of JUnit tests
26
- -post-compile-test: called after javac compilation of JUnit tests
27
- -pre-compile-test-single: called before javac compilation of single JUnit test
28
- -post-compile-test-single: called after javac compilation of single JUunit test
29
- -pre-jar: called before JAR building
30
- -post-jar: called after JAR building
31
- -post-clean: called after cleaning build products
32
-
33
- (Targets beginning with '-' are not intended to be called on their own.)
34
-
35
- Example of inserting an obfuscator after compilation could look like this:
36
-
37
- <target name="-post-compile">
38
- <obfuscate>
39
- <fileset dir="${build.classes.dir}"/>
40
- </obfuscate>
41
- </target>
42
-
43
- For list of available properties check the imported
44
- nbproject/build-impl.xml file.
45
-
46
-
47
- Another way to customize the build is by overriding existing main targets.
48
- The targets of interest are:
49
-
50
- -init-macrodef-javac: defines macro for javac compilation
51
- -init-macrodef-junit: defines macro for junit execution
52
- -init-macrodef-debug: defines macro for class debugging
53
- -init-macrodef-java: defines macro for class execution
54
- -do-jar-with-manifest: JAR building (if you are using a manifest)
55
- -do-jar-without-manifest: JAR building (if you are not using a manifest)
56
- run: execution of project
57
- -javadoc-build: Javadoc generation
58
- test-report: JUnit report generation
59
-
60
- An example of overriding the target for project execution could look like this:
61
-
62
- <target name="run" depends="SCCompiler-impl.jar">
63
- <exec dir="bin" executable="launcher.exe">
64
- <arg file="${dist.jar}"/>
65
- </exec>
66
- </target>
67
-
68
- Notice that the overridden target depends on the jar target and not only on
69
- the compile target as the regular run target does. Again, for a list of available
70
- properties which you can use, check the target you are overriding in the
71
- nbproject/build-impl.xml file.
72
-
73
- -->
74
- </project>
@@ -1,3 +0,0 @@
1
- Manifest-Version: 1.0
2
- X-COMMENT: Main-Class will be added automatically by build
3
-