sproutcore 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. data/History.txt +233 -0
  2. data/Manifest.txt +67 -34
  3. data/bin/sc-build +12 -1
  4. data/bin/sc-gen +1 -1
  5. data/bin/sproutcore +14 -0
  6. data/clients/sc_docs/controllers/docs.js +38 -8
  7. data/clients/sc_docs/english.lproj/body.css +80 -127
  8. data/clients/sc_docs/english.lproj/body.rhtml +43 -23
  9. data/clients/sc_docs/english.lproj/no_docs.rhtml +2 -1
  10. data/clients/sc_docs/english.lproj/tabs.rhtml +16 -0
  11. data/clients/sc_docs/main.js +14 -9
  12. data/clients/sc_docs/models/doc.js +1 -1
  13. data/clients/sc_docs/tests/controllers/docs.rhtml +1 -2
  14. data/clients/sc_docs/tests/models/doc.rhtml +1 -2
  15. data/clients/sc_docs/tests/views/doc_frame.rhtml +1 -2
  16. data/clients/sc_docs/tests/views/doc_label_view.rhtml +1 -2
  17. data/clients/sc_docs/views/doc_frame.js +1 -1
  18. data/clients/sc_test_runner/controllers/runner.js +31 -8
  19. data/clients/sc_test_runner/english.lproj/body.css +62 -122
  20. data/clients/sc_test_runner/english.lproj/body.rhtml +62 -26
  21. data/clients/sc_test_runner/main.js +1 -6
  22. data/clients/sc_test_runner/models/test.js +14 -1
  23. data/clients/sc_test_runner/views/runner_frame.js +4 -2
  24. data/clients/view_builder/builders/builder.js +339 -0
  25. data/clients/view_builder/builders/button.js +81 -0
  26. data/clients/view_builder/controllers/document.js +21 -0
  27. data/clients/view_builder/core.js +19 -0
  28. data/clients/view_builder/english.lproj/body.css +77 -0
  29. data/clients/view_builder/english.lproj/body.rhtml +41 -0
  30. data/clients/{sc_docs → view_builder}/english.lproj/controls.css +0 -0
  31. data/clients/view_builder/english.lproj/strings.js +14 -0
  32. data/clients/view_builder/main.js +38 -0
  33. data/clients/view_builder/tests/controllers/document.rhtml +20 -0
  34. data/clients/view_builder/tests/views/builder.rhtml +20 -0
  35. data/clients/view_builder/views/builder.js +23 -0
  36. data/frameworks/prototype/prototype.js +1 -1
  37. data/frameworks/sproutcore/Core.js +32 -7
  38. data/frameworks/sproutcore/README +1 -1
  39. data/frameworks/sproutcore/animation/animation.js +411 -0
  40. data/frameworks/sproutcore/controllers/array.js +17 -9
  41. data/frameworks/sproutcore/controllers/collection.js +9 -110
  42. data/frameworks/sproutcore/controllers/controller.js +1 -1
  43. data/frameworks/sproutcore/controllers/object.js +2 -1
  44. data/frameworks/sproutcore/drag/drag.js +267 -56
  45. data/frameworks/sproutcore/drag/drag_data_source.js +24 -16
  46. data/frameworks/sproutcore/drag/drag_source.js +53 -42
  47. data/frameworks/sproutcore/drag/drop_target.js +2 -2
  48. data/frameworks/sproutcore/english.lproj/buttons.css +337 -236
  49. data/frameworks/sproutcore/english.lproj/core.css +115 -0
  50. data/frameworks/sproutcore/english.lproj/icons.css +227 -0
  51. data/{clients/sc_docs → frameworks/sproutcore}/english.lproj/images/indicator.gif +0 -0
  52. data/frameworks/sproutcore/english.lproj/images/sc-theme-sprite.png +0 -0
  53. data/frameworks/sproutcore/english.lproj/images/sc-theme-ysprite.png +0 -0
  54. data/frameworks/sproutcore/english.lproj/images/shared-icons.png +0 -0
  55. data/frameworks/sproutcore/english.lproj/menu.css +1 -1
  56. data/frameworks/sproutcore/english.lproj/strings.js +1 -1
  57. data/frameworks/sproutcore/english.lproj/theme.css +405 -31
  58. data/frameworks/sproutcore/foundation/application.js +15 -11
  59. data/frameworks/sproutcore/foundation/benchmark.js +1 -1
  60. data/frameworks/sproutcore/foundation/binding.js +2 -2
  61. data/frameworks/sproutcore/foundation/date.js +1 -1
  62. data/frameworks/sproutcore/foundation/error.js +1 -1
  63. data/frameworks/sproutcore/foundation/input_manager.js +32 -21
  64. data/frameworks/sproutcore/foundation/mock.js +1 -1
  65. data/frameworks/sproutcore/foundation/node_descriptor.js +9 -6
  66. data/frameworks/sproutcore/foundation/object.js +249 -177
  67. data/frameworks/sproutcore/foundation/page.js +5 -2
  68. data/frameworks/sproutcore/foundation/path_module.js +11 -10
  69. data/frameworks/sproutcore/foundation/responder.js +5 -2
  70. data/frameworks/sproutcore/foundation/routes.js +17 -13
  71. data/frameworks/sproutcore/foundation/run_loop.js +249 -11
  72. data/frameworks/sproutcore/foundation/server.js +1 -1
  73. data/frameworks/sproutcore/foundation/set.js +3 -3
  74. data/frameworks/sproutcore/foundation/string.js +5 -3
  75. data/frameworks/sproutcore/foundation/timer.js +371 -0
  76. data/frameworks/sproutcore/foundation/undo_manager.js +1 -1
  77. data/frameworks/sproutcore/foundation/unittest.js +3 -3
  78. data/frameworks/sproutcore/foundation/utils.js +161 -2
  79. data/frameworks/sproutcore/globals/panels.js +1 -1
  80. data/frameworks/sproutcore/globals/popups.js +4 -3
  81. data/frameworks/sproutcore/globals/window.js +44 -4
  82. data/frameworks/sproutcore/lib/button_views.rb +328 -0
  83. data/frameworks/sproutcore/lib/collection_view.rb +80 -0
  84. data/frameworks/sproutcore/lib/core_views.rb +281 -0
  85. data/frameworks/sproutcore/lib/form_views.rb +253 -0
  86. data/frameworks/sproutcore/lib/index.rhtml +2 -0
  87. data/frameworks/sproutcore/lib/menu_views.rb +88 -0
  88. data/frameworks/sproutcore/{foundation → mixins}/array.js +60 -29
  89. data/frameworks/sproutcore/mixins/control.js +265 -0
  90. data/frameworks/sproutcore/mixins/delegate_support.js +66 -0
  91. data/frameworks/sproutcore/{foundation → mixins}/observable.js +176 -6
  92. data/frameworks/sproutcore/mixins/scrollable.js +245 -0
  93. data/frameworks/sproutcore/mixins/selection_support.js +148 -0
  94. data/frameworks/sproutcore/mixins/validatable.js +152 -0
  95. data/frameworks/sproutcore/models/collection.js +5 -5
  96. data/frameworks/sproutcore/models/record.js +1 -1
  97. data/frameworks/sproutcore/models/store.js +1 -1
  98. data/frameworks/sproutcore/panes/dialog.js +1 -1
  99. data/frameworks/sproutcore/panes/manager.js +1 -1
  100. data/frameworks/sproutcore/panes/menu.js +1 -1
  101. data/frameworks/sproutcore/panes/overlay.js +2 -2
  102. data/frameworks/sproutcore/panes/panel.js +1 -1
  103. data/frameworks/sproutcore/panes/picker.js +1 -1
  104. data/frameworks/sproutcore/tests/controllers/array.rhtml +44 -4
  105. data/frameworks/sproutcore/tests/foundation/timer/invalidate.rhtml +33 -0
  106. data/frameworks/sproutcore/tests/foundation/timer/invokeLater.rhtml +145 -0
  107. data/frameworks/sproutcore/tests/foundation/timer/isPaused.rhtml +70 -0
  108. data/frameworks/sproutcore/tests/foundation/timer/schedule.rhtml +145 -0
  109. data/frameworks/sproutcore/tests/views/{scroll.rhtml → checkbox.rhtml} +3 -3
  110. data/frameworks/sproutcore/tests/views/{collection.rhtml → collection/base.rhtml} +33 -32
  111. data/frameworks/sproutcore/tests/views/collection/incremental_rendering.rhtml +260 -0
  112. data/frameworks/sproutcore/tests/views/image_cell.rhtml +19 -0
  113. data/frameworks/sproutcore/tests/views/label_item.rhtml +2 -4
  114. data/frameworks/sproutcore/tests/views/list.rhtml +2 -3
  115. data/frameworks/sproutcore/tests/views/list_item.rhtml +20 -0
  116. data/frameworks/sproutcore/tests/views/slider.rhtml +20 -0
  117. data/frameworks/sproutcore/tests/views/text_cell.rhtml +19 -0
  118. data/frameworks/sproutcore/tests/views/view/clippingFrame.rhtml +395 -0
  119. data/frameworks/sproutcore/tests/views/view/frame.rhtml +353 -0
  120. data/frameworks/sproutcore/tests/views/view/innerFrame.rhtml +347 -0
  121. data/frameworks/sproutcore/tests/views/view/isVisibleInWindow.rhtml +148 -0
  122. data/frameworks/sproutcore/tests/views/view/scrollFrame.rhtml +468 -0
  123. data/frameworks/sproutcore/validators/credit_card.js +33 -13
  124. data/frameworks/sproutcore/validators/date.js +26 -6
  125. data/frameworks/sproutcore/validators/email.js +21 -3
  126. data/frameworks/sproutcore/validators/not_empty.js +11 -1
  127. data/frameworks/sproutcore/validators/number.js +18 -4
  128. data/frameworks/sproutcore/validators/password.js +12 -1
  129. data/frameworks/sproutcore/validators/validator.js +204 -194
  130. data/frameworks/sproutcore/views/{button.js → button/button.js} +96 -94
  131. data/frameworks/sproutcore/views/button/checkbox.js +29 -0
  132. data/frameworks/sproutcore/views/button/disclosure.js +42 -0
  133. data/frameworks/sproutcore/views/button/radio.js +29 -0
  134. data/frameworks/sproutcore/views/{collection.js → collection/collection.js} +1373 -1024
  135. data/frameworks/sproutcore/views/collection/grid.js +124 -46
  136. data/frameworks/sproutcore/views/collection/image_cell.js +17 -46
  137. data/frameworks/sproutcore/views/collection/list.js +45 -35
  138. data/frameworks/sproutcore/views/collection/source_list.js +386 -0
  139. data/frameworks/sproutcore/views/collection/table.js +118 -0
  140. data/frameworks/sproutcore/views/container.js +7 -2
  141. data/frameworks/sproutcore/views/error_explanation.js +23 -10
  142. data/frameworks/sproutcore/views/{checkbox_field.js → field/checkbox_field.js} +16 -6
  143. data/frameworks/sproutcore/views/field/field.js +219 -0
  144. data/frameworks/sproutcore/views/{radio_field.js → field/radio_field.js} +27 -12
  145. data/frameworks/sproutcore/views/{select_field.js → field/select_field.js} +116 -90
  146. data/frameworks/sproutcore/views/{text_field.js → field/text_field.js} +57 -8
  147. data/frameworks/sproutcore/views/{textarea_field.js → field/textarea_field.js} +13 -3
  148. data/frameworks/sproutcore/views/filter_button.js +2 -2
  149. data/frameworks/sproutcore/views/form.js +3 -3
  150. data/frameworks/sproutcore/views/image.js +128 -21
  151. data/frameworks/sproutcore/views/inline_text_editor.js +1 -1
  152. data/frameworks/sproutcore/views/label.js +149 -92
  153. data/frameworks/sproutcore/views/list_item.js +225 -0
  154. data/frameworks/sproutcore/views/menu_item.js +10 -4
  155. data/frameworks/sproutcore/views/pagination.js +11 -4
  156. data/frameworks/sproutcore/views/popup_button.js +25 -21
  157. data/frameworks/sproutcore/views/popup_menu.js +10 -4
  158. data/frameworks/sproutcore/views/progress.js +29 -16
  159. data/frameworks/sproutcore/views/radio_group.js +1 -1
  160. data/frameworks/sproutcore/views/scroll.js +60 -20
  161. data/frameworks/sproutcore/views/segmented.js +1 -1
  162. data/frameworks/sproutcore/views/slider.js +132 -0
  163. data/frameworks/sproutcore/views/source_list_group.js +130 -0
  164. data/frameworks/sproutcore/views/spinner.js +1 -1
  165. data/frameworks/sproutcore/views/split.js +292 -0
  166. data/frameworks/sproutcore/views/split_divider.js +109 -0
  167. data/frameworks/sproutcore/views/tab.js +1 -1
  168. data/frameworks/sproutcore/views/toolbar.js +1 -1
  169. data/frameworks/sproutcore/views/view.js +1272 -591
  170. data/generators/client/templates/english.lproj/body.css +1 -1
  171. data/generators/controller/controller_generator.rb +1 -1
  172. data/generators/controller/templates/test.rhtml +2 -1
  173. data/generators/model/templates/test.rhtml +1 -1
  174. data/generators/test/templates/test.rhtml +1 -1
  175. data/generators/view/templates/test.rhtml +1 -1
  176. data/jsdoc/templates/sproutcore/class.tmpl +241 -338
  177. data/jsdoc/templates/sproutcore/default.css +105 -155
  178. data/jsdoc/templates/sproutcore/index.tmpl +43 -8
  179. data/jsdoc/templates/sproutcore/publish.js +9 -4
  180. data/lib/sproutcore/build_tools/html_builder.rb +29 -13
  181. data/lib/sproutcore/build_tools/resource_builder.rb +1 -1
  182. data/lib/sproutcore/bundle.rb +86 -25
  183. data/lib/sproutcore/jsdoc.rb +2 -0
  184. data/lib/sproutcore/version.rb +1 -1
  185. data/lib/sproutcore/view_helpers.rb +36 -3
  186. data/tasks/deployment.rake +1 -1
  187. metadata +69 -36
  188. data/clients/sc_docs/english.lproj/icons/small/next.png +0 -0
  189. data/clients/sc_docs/english.lproj/icons/small/reset.png +0 -0
  190. data/clients/sc_docs/english.lproj/images/gradients.png +0 -0
  191. data/clients/sc_docs/english.lproj/images/toolbar.png +0 -0
  192. data/clients/sc_docs/english.lproj/warning.rhtml +0 -6
  193. data/clients/sc_test_runner/english.lproj/warning.rhtml +0 -6
  194. data/frameworks/sproutcore/english.lproj/buttons.png +0 -0
  195. data/frameworks/sproutcore/english.lproj/collections.css +0 -82
  196. data/frameworks/sproutcore/english.lproj/images/buttons-sprite.png +0 -0
  197. data/frameworks/sproutcore/views/collection/collection_item.js +0 -36
  198. data/frameworks/sproutcore/views/collection/text_cell.js +0 -128
  199. data/frameworks/sproutcore/views/field.js +0 -214
  200. data/frameworks/sproutcore/views/workspace.js +0 -170
  201. data/generators/client/templates/english.lproj/controls.css +0 -0
  202. data/generators/framework/templates/english.lproj/body.css +0 -0
  203. data/generators/framework/templates/english.lproj/body.rhtml +0 -3
  204. data/generators/framework/templates/english.lproj/controls.css +0 -0
  205. data/lib/sproutcore/view_helpers/button_views.rb +0 -302
  206. data/lib/sproutcore/view_helpers/core_views.rb +0 -292
  207. data/lib/sproutcore/view_helpers/form_views.rb +0 -258
  208. data/lib/sproutcore/view_helpers/menu_views.rb +0 -94
@@ -132,7 +132,7 @@ module SproutCore
132
132
  # Final processing of file. Remove comments & minify
133
133
  def join(lines)
134
134
 
135
- if BuildTools.minify?
135
+ if bundle.minify?
136
136
  # first suck out any comments that should be retained
137
137
  comments = []
138
138
  include_line = false
@@ -3,46 +3,49 @@ require 'sproutcore/build_tools'
3
3
  module SproutCore
4
4
 
5
5
  # A bundle can map a directory of source files to an output format optimized
6
- # for delivery on the web. It can also return the URLs to use for a particular client.
7
- # A Bundle cannot actually build resources for you, but it works in concert with the
8
- # ResourceBuilder to help you with that.
6
+ # for delivery on the web. It can also return the URLs to use for a
7
+ # particular client. A Bundle cannot actually build resources for you, but
8
+ # it works in concert with the ResourceBuilder to help you with that.
9
9
  #
10
- # When you create a bundle, you must pass the name of the client and the library the bundle
11
- # belongs to. The library is used to generate default paths for most resources and to find
12
- # other bundles.
10
+ # When you create a bundle, you must pass the name of the client and the
11
+ # library the bundle belongs to. The library is used to generate default
12
+ # paths for most resources and to find other bundles.
13
13
  #
14
14
  # You must provide the following properties to every build:
15
15
  #
16
- # bundle_name:: A name used to identify the client for required URLs, etc.
17
- # library:: The root URL of the library holding the client
16
+ # bundle_name:: A name used to identify the client for required URLs, etc.
17
+ # library:: The root URL of the library holding the client
18
18
  #
19
- # The following properties are also required, but have defaults you can rely use:
19
+ # The following properties are also required, but have defaults you can rely
20
+ # use:
20
21
  #
21
22
  # bundle_type:: :framework|:client (default :client)
22
23
  # required_bundles:: Names of required frameworks. (default: none)
23
- # stylesheet_libs:: URLs to requires CSS not managed by the build system. (default: none)
24
- # javascript_libs:: URLS to requires JavaScript notn managed by the build system (def:non)
24
+ # stylesheet_libs:: URLs to requires CSS not managed by the build system.
25
+ # (default: none)
26
+ # javascript_libs:: URLS to requires JavaScript notn managed by the build
27
+ # system (def:non)
25
28
  #
26
- # The following properties are required for the build process but can be generated
27
- # automatically using other properties you specify:
29
+ # The following properties are required for the build process but can be
30
+ # generated automatically using other properties you specify:
28
31
  #
29
32
  # source_root:: The directory containing the source files
30
- # default: :library_root/pluralize(:build_type)/:bundle_name
33
+ # default: :library_root/pluralize(:bundle_type)/:bundle_name
31
34
  #
32
35
  # build_root:: The directory that should contain the built files.
33
36
  # default: :public_root/:url_prefix/:bundle_name
34
37
  #
35
38
  # url_root:: The url that can be used to reach the built resources
36
- # default: /:url_prefix/:bundle_name
39
+ # default: /:url_prefix/:bundle_name
37
40
  #
38
- # index_root:: The root url that can be used to reach retrieve the index.html.
39
- # default: /:index_prefix/:bundle_name
41
+ # index_root:: The root url that can be used to reach retrieve the
42
+ # index.html. default: /:index_prefix/:bundle_name
40
43
  #
41
- # If you do not want to specify all of these options, you can provide the following defaults
42
- # and the rest will be inferred:
44
+ # If you do not want to specify all of these options, you can provide the
45
+ # following defaults and the rest will be inferred:
43
46
  #
44
- # library_root:: The root URL for the library. This is computed from the library if
45
- # you pass one.
47
+ # library_root:: The root URL for the library. This is computed from
48
+ # the library if you pass one.
46
49
  #
47
50
  # public_root:: The root directory accessible to the web browser.
48
51
  # default: :library_root/public
@@ -53,13 +56,15 @@ module SproutCore
53
56
  # index_prefix:: The prefix to put in front of all index.html request.
54
57
  # default: ''
55
58
  #
56
- # preferred_language:: The default language to use for this bundle. Defaults to :en
59
+ # preferred_language:: The default language to use for this bundle.
60
+ # Defaults to :en
57
61
  #
58
- # build_mode:: Determines whether the JS & CSS resources should be combined or
59
- # linked directly
62
+ # build_mode:: Determines whether the JS & CSS resources should be
63
+ # combined or linked directly
60
64
  #
61
65
  # layout: Path to the layout resource. This should be of the form
62
- # bundle_name:relative_path/to/client. Default: sproutcore:lib/index.html
66
+ # bundle_name:relative_path/to/client. Default:
67
+ # sproutcore:lib/index.html
63
68
  #
64
69
  class Bundle
65
70
 
@@ -104,6 +109,12 @@ module SproutCore
104
109
  return ret
105
110
  end
106
111
 
112
+ # ==== Returns
113
+ # True if the build_mode is not development to minify the JS.
114
+ def minify?
115
+ build_mode != :development
116
+ end
117
+
107
118
  # ==== Returns
108
119
  # The computed path to the layout rhtml.
109
120
  def layout_path
@@ -452,6 +463,56 @@ module SproutCore
452
463
  end
453
464
  end
454
465
 
466
+ ######################################################
467
+ ## RUBY HELPERS
468
+ ##
469
+
470
+ # ==== Returns
471
+ # Array of path to helper files that need to be loaded into memory
472
+ # before any HTML from the bundle can be rendered.
473
+ #
474
+ def helper_paths
475
+ File.exists?(File.join(source_root,'lib')) ? Dir.glob(File.join(source_root, 'lib', '**', '*.rb')) : []
476
+ end
477
+
478
+ # ==== Returns
479
+ # The helper path ending in the specified name (sans extension)
480
+ #
481
+ def helper_for(helper_name)
482
+ paths = helper_paths
483
+
484
+ ret = nil
485
+ paths.each do |path|
486
+ if path =~ /#{helper_name}(\.rb)?$/
487
+ ret = path
488
+ break
489
+ end
490
+ end
491
+
492
+ return ret
493
+ end
494
+
495
+ # ==== Returns
496
+ # The contents of the helper file at the specified path. For performance
497
+ # reasons, the contents are only loaded once and reused unless the file's
498
+ # mtime has changed.
499
+ def helper_contents_for(path)
500
+
501
+ # Oops...file has been deleted!
502
+ return '' if !File.exists?(path)
503
+
504
+ @_cached_helper_contents ||= {}
505
+ cached = @_cached_helper_contents[path]
506
+
507
+ return cached[:contents] if cached && (cached[:mtime] == File.mtime(path))
508
+
509
+ # Not cached, build it.
510
+ cached = { :mtime => File.mtime(path), :contents => File.read(path) }
511
+ @_cached_helper_contents[path] = cached
512
+
513
+ return cached[:contents]
514
+ end
515
+
455
516
  ######################################################
456
517
  ## MANIFESTS
457
518
  ##
@@ -32,6 +32,8 @@ module SproutCore
32
32
  jar_path = File.join(jsdoc_root, 'app', 'js.jar')
33
33
  runjs_path = File.join(jsdoc_root, 'app', 'run.js')
34
34
  template_path = File.join(jsdoc_root, 'templates', 'sproutcore')
35
+
36
+ puts "GENERATING: java -Djsdoc.dir=#{jsdoc_root} -jar #{jar_path} #{runjs_path} -t=#{template_path} -d=#{build_path} #{files * ' '} -v"
35
37
 
36
38
  SC.logger.debug `java -Djsdoc.dir=#{jsdoc_root} -jar #{jar_path} #{runjs_path} -t=#{template_path} -d=#{build_path} #{files * ' '} -v`
37
39
 
@@ -2,7 +2,7 @@ module SproutCore #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -600,7 +600,7 @@ module SproutCore
600
600
 
601
601
  module ViewHelpers
602
602
 
603
- def self.view_helper(helper_name,opts={},&prepare_block)
603
+ def view_helper(helper_name,opts={},&prepare_block)
604
604
  hs = SproutCore::ViewHelperSupport::HelperState.new(helper_name,opts,&prepare_block)
605
605
  SproutCore::ViewHelperSupport.set_helper(helper_name, hs)
606
606
 
@@ -623,8 +623,41 @@ module SproutCore
623
623
  return ret
624
624
  end
625
625
 
626
+ # Call this method to load a helper. This will get the file contents
627
+ # and eval it.
628
+ def require_helpers(helper_name, bundle=nil)
629
+
630
+ # save bundle for future use
631
+ unless bundle.nil?
632
+ old_helper_bundle = @helper_bundle
633
+ @helper_bundle = bundle
634
+ end
635
+
636
+ # Get all the helper paths we want to load
637
+ if helper_name.nil?
638
+ paths = @helper_bundle.helper_paths
639
+ else
640
+ paths = [@helper_bundle.helper_for(helper_name)]
641
+ end
642
+ paths.compact!
643
+
644
+ # Create list of loaded helper paths
645
+ @loaded_helpers = [] if @loaded_helpers.nil?
646
+
647
+ # If a helper path was found, load it. May require other helpers
648
+ paths.each do |path|
649
+ next if @loaded_helpers.include?(path)
650
+ @loaded_helpers << path
651
+
652
+ eval(@helper_bundle.helper_contents_for(path))
653
+ end
654
+
655
+ # restore old bundle helper.
656
+ unless bundle.nil?
657
+ @helper_bundler = old_helper_bundle
658
+ end
659
+ end
660
+
626
661
  end
627
662
 
628
663
  end
629
-
630
- Dir.glob(File.join(File.dirname(__FILE__),'view_helpers','**','*.rb')).each { |x| require x }
@@ -37,7 +37,7 @@ namespace :manifest do
37
37
  files.reject! do |x|
38
38
  path_parts = x.split('/')
39
39
 
40
- File.directory?(x) || IGNORE_DIRS.include?(path_parts.first)
40
+ (path_parts.last[0..0] == '.') || File.directory?(x) || IGNORE_DIRS.include?(path_parts.first)
41
41
  end
42
42
 
43
43
  f = File.open(File.join(APP_ROOT, 'Manifest.txt'), 'w')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sproutcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Jolley
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-18 00:00:00 -07:00
12
+ date: 2008-04-22 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -77,15 +77,9 @@ files:
77
77
  - clients/sc_docs/core.js
78
78
  - clients/sc_docs/english.lproj/body.css
79
79
  - clients/sc_docs/english.lproj/body.rhtml
80
- - clients/sc_docs/english.lproj/controls.css
81
- - clients/sc_docs/english.lproj/icons/small/next.png
82
- - clients/sc_docs/english.lproj/icons/small/reset.png
83
- - clients/sc_docs/english.lproj/images/gradients.png
84
- - clients/sc_docs/english.lproj/images/indicator.gif
85
- - clients/sc_docs/english.lproj/images/toolbar.png
86
80
  - clients/sc_docs/english.lproj/no_docs.rhtml
87
81
  - clients/sc_docs/english.lproj/strings.js
88
- - clients/sc_docs/english.lproj/warning.rhtml
82
+ - clients/sc_docs/english.lproj/tabs.rhtml
89
83
  - clients/sc_docs/fixtures/doc.js
90
84
  - clients/sc_docs/main.js
91
85
  - clients/sc_docs/models/doc.js
@@ -107,15 +101,27 @@ files:
107
101
  - clients/sc_test_runner/english.lproj/images/toolbar.png
108
102
  - clients/sc_test_runner/english.lproj/no_tests.rhtml
109
103
  - clients/sc_test_runner/english.lproj/strings.js
110
- - clients/sc_test_runner/english.lproj/warning.rhtml
111
104
  - clients/sc_test_runner/fixtures/test.js
112
105
  - clients/sc_test_runner/main.js
113
106
  - clients/sc_test_runner/models/test.js
114
107
  - clients/sc_test_runner/views/runner_frame.js
115
108
  - clients/sc_test_runner/views/test_label.js
109
+ - clients/view_builder/builders/builder.js
110
+ - clients/view_builder/builders/button.js
111
+ - clients/view_builder/controllers/document.js
112
+ - clients/view_builder/core.js
113
+ - clients/view_builder/english.lproj/body.css
114
+ - clients/view_builder/english.lproj/body.rhtml
115
+ - clients/view_builder/english.lproj/controls.css
116
+ - clients/view_builder/english.lproj/strings.js
117
+ - clients/view_builder/main.js
118
+ - clients/view_builder/tests/controllers/document.rhtml
119
+ - clients/view_builder/tests/views/builder.rhtml
120
+ - clients/view_builder/views/builder.js
116
121
  - config/hoe.rb
117
122
  - config/requirements.rb
118
123
  - frameworks/prototype/prototype.js
124
+ - frameworks/sproutcore/animation/animation.js
119
125
  - frameworks/sproutcore/controllers/array.js
120
126
  - frameworks/sproutcore/controllers/collection.js
121
127
  - frameworks/sproutcore/controllers/controller.js
@@ -127,9 +133,12 @@ files:
127
133
  - frameworks/sproutcore/drag/drop_target.js
128
134
  - frameworks/sproutcore/english.lproj/blank.gif
129
135
  - frameworks/sproutcore/english.lproj/buttons.css
130
- - frameworks/sproutcore/english.lproj/buttons.png
131
- - frameworks/sproutcore/english.lproj/collections.css
132
- - frameworks/sproutcore/english.lproj/images/buttons-sprite.png
136
+ - frameworks/sproutcore/english.lproj/core.css
137
+ - frameworks/sproutcore/english.lproj/icons.css
138
+ - frameworks/sproutcore/english.lproj/images/indicator.gif
139
+ - frameworks/sproutcore/english.lproj/images/sc-theme-sprite.png
140
+ - frameworks/sproutcore/english.lproj/images/sc-theme-ysprite.png
141
+ - frameworks/sproutcore/english.lproj/images/shared-icons.png
133
142
  - frameworks/sproutcore/english.lproj/images/sproutcore-logo.png
134
143
  - frameworks/sproutcore/english.lproj/images/sticky-note.png
135
144
  - frameworks/sproutcore/english.lproj/inline_text_editor.css
@@ -153,7 +162,6 @@ files:
153
162
  - frameworks/sproutcore/english.lproj/theme.css
154
163
  - frameworks/sproutcore/foundation/animator.js
155
164
  - frameworks/sproutcore/foundation/application.js
156
- - frameworks/sproutcore/foundation/array.js
157
165
  - frameworks/sproutcore/foundation/benchmark.js
158
166
  - frameworks/sproutcore/foundation/binding.js
159
167
  - frameworks/sproutcore/foundation/date.js
@@ -163,7 +171,6 @@ files:
163
171
  - frameworks/sproutcore/foundation/mock.js
164
172
  - frameworks/sproutcore/foundation/node_descriptor.js
165
173
  - frameworks/sproutcore/foundation/object.js
166
- - frameworks/sproutcore/foundation/observable.js
167
174
  - frameworks/sproutcore/foundation/page.js
168
175
  - frameworks/sproutcore/foundation/path_module.js
169
176
  - frameworks/sproutcore/foundation/responder.js
@@ -172,13 +179,26 @@ files:
172
179
  - frameworks/sproutcore/foundation/server.js
173
180
  - frameworks/sproutcore/foundation/set.js
174
181
  - frameworks/sproutcore/foundation/string.js
182
+ - frameworks/sproutcore/foundation/timer.js
175
183
  - frameworks/sproutcore/foundation/undo_manager.js
176
184
  - frameworks/sproutcore/foundation/unittest.js
177
185
  - frameworks/sproutcore/foundation/utils.js
178
186
  - frameworks/sproutcore/globals/panels.js
179
187
  - frameworks/sproutcore/globals/popups.js
180
188
  - frameworks/sproutcore/globals/window.js
189
+ - frameworks/sproutcore/lib/button_views.rb
190
+ - frameworks/sproutcore/lib/collection_view.rb
191
+ - frameworks/sproutcore/lib/core_views.rb
192
+ - frameworks/sproutcore/lib/form_views.rb
181
193
  - frameworks/sproutcore/lib/index.rhtml
194
+ - frameworks/sproutcore/lib/menu_views.rb
195
+ - frameworks/sproutcore/mixins/array.js
196
+ - frameworks/sproutcore/mixins/control.js
197
+ - frameworks/sproutcore/mixins/delegate_support.js
198
+ - frameworks/sproutcore/mixins/observable.js
199
+ - frameworks/sproutcore/mixins/scrollable.js
200
+ - frameworks/sproutcore/mixins/selection_support.js
201
+ - frameworks/sproutcore/mixins/validatable.js
182
202
  - frameworks/sproutcore/models/collection.js
183
203
  - frameworks/sproutcore/models/record.js
184
204
  - frameworks/sproutcore/models/store.js
@@ -196,14 +216,28 @@ files:
196
216
  - frameworks/sproutcore/tests/foundation/application.rhtml
197
217
  - frameworks/sproutcore/tests/foundation/array.rhtml
198
218
  - frameworks/sproutcore/tests/foundation/object.rhtml
219
+ - frameworks/sproutcore/tests/foundation/timer/invalidate.rhtml
220
+ - frameworks/sproutcore/tests/foundation/timer/invokeLater.rhtml
221
+ - frameworks/sproutcore/tests/foundation/timer/isPaused.rhtml
222
+ - frameworks/sproutcore/tests/foundation/timer/schedule.rhtml
199
223
  - frameworks/sproutcore/tests/globals/window.rhtml
200
224
  - frameworks/sproutcore/tests/panes/pane.rhtml
201
- - frameworks/sproutcore/tests/views/collection.rhtml
225
+ - frameworks/sproutcore/tests/views/checkbox.rhtml
226
+ - frameworks/sproutcore/tests/views/collection/base.rhtml
227
+ - frameworks/sproutcore/tests/views/collection/incremental_rendering.rhtml
228
+ - frameworks/sproutcore/tests/views/image_cell.rhtml
202
229
  - frameworks/sproutcore/tests/views/label_item.rhtml
203
230
  - frameworks/sproutcore/tests/views/list.rhtml
231
+ - frameworks/sproutcore/tests/views/list_item.rhtml
204
232
  - frameworks/sproutcore/tests/views/popup_button.rhtml
205
- - frameworks/sproutcore/tests/views/scroll.rhtml
233
+ - frameworks/sproutcore/tests/views/slider.rhtml
234
+ - frameworks/sproutcore/tests/views/text_cell.rhtml
206
235
  - frameworks/sproutcore/tests/views/text_field.rhtml
236
+ - frameworks/sproutcore/tests/views/view/clippingFrame.rhtml
237
+ - frameworks/sproutcore/tests/views/view/frame.rhtml
238
+ - frameworks/sproutcore/tests/views/view/innerFrame.rhtml
239
+ - frameworks/sproutcore/tests/views/view/isVisibleInWindow.rhtml
240
+ - frameworks/sproutcore/tests/views/view/scrollFrame.rhtml
207
241
  - frameworks/sproutcore/validators/credit_card.js
208
242
  - frameworks/sproutcore/validators/date.js
209
243
  - frameworks/sproutcore/validators/email.js
@@ -211,45 +245,51 @@ files:
211
245
  - frameworks/sproutcore/validators/number.js
212
246
  - frameworks/sproutcore/validators/password.js
213
247
  - frameworks/sproutcore/validators/validator.js
214
- - frameworks/sproutcore/views/button.js
215
- - frameworks/sproutcore/views/checkbox_field.js
216
- - frameworks/sproutcore/views/collection/collection_item.js
248
+ - frameworks/sproutcore/views/button/button.js
249
+ - frameworks/sproutcore/views/button/checkbox.js
250
+ - frameworks/sproutcore/views/button/disclosure.js
251
+ - frameworks/sproutcore/views/button/radio.js
252
+ - frameworks/sproutcore/views/collection/collection.js
217
253
  - frameworks/sproutcore/views/collection/grid.js
218
254
  - frameworks/sproutcore/views/collection/image_cell.js
219
255
  - frameworks/sproutcore/views/collection/list.js
220
- - frameworks/sproutcore/views/collection/text_cell.js
221
- - frameworks/sproutcore/views/collection.js
256
+ - frameworks/sproutcore/views/collection/source_list.js
257
+ - frameworks/sproutcore/views/collection/table.js
222
258
  - frameworks/sproutcore/views/container.js
223
259
  - frameworks/sproutcore/views/error_explanation.js
224
- - frameworks/sproutcore/views/field.js
260
+ - frameworks/sproutcore/views/field/checkbox_field.js
261
+ - frameworks/sproutcore/views/field/field.js
262
+ - frameworks/sproutcore/views/field/radio_field.js
263
+ - frameworks/sproutcore/views/field/select_field.js
264
+ - frameworks/sproutcore/views/field/text_field.js
265
+ - frameworks/sproutcore/views/field/textarea_field.js
225
266
  - frameworks/sproutcore/views/filter_button.js
226
267
  - frameworks/sproutcore/views/form.js
227
268
  - frameworks/sproutcore/views/image.js
228
269
  - frameworks/sproutcore/views/inline_text_editor.js
229
270
  - frameworks/sproutcore/views/label.js
271
+ - frameworks/sproutcore/views/list_item.js
230
272
  - frameworks/sproutcore/views/menu_item.js
231
273
  - frameworks/sproutcore/views/pagination.js
232
274
  - frameworks/sproutcore/views/popup_button.js
233
275
  - frameworks/sproutcore/views/popup_menu.js
234
276
  - frameworks/sproutcore/views/progress.js
235
- - frameworks/sproutcore/views/radio_field.js
236
277
  - frameworks/sproutcore/views/radio_group.js
237
278
  - frameworks/sproutcore/views/scroll.js
238
279
  - frameworks/sproutcore/views/segmented.js
239
- - frameworks/sproutcore/views/select_field.js
280
+ - frameworks/sproutcore/views/slider.js
281
+ - frameworks/sproutcore/views/source_list_group.js
240
282
  - frameworks/sproutcore/views/spinner.js
283
+ - frameworks/sproutcore/views/split.js
284
+ - frameworks/sproutcore/views/split_divider.js
241
285
  - frameworks/sproutcore/views/tab.js
242
- - frameworks/sproutcore/views/text_field.js
243
- - frameworks/sproutcore/views/textarea_field.js
244
286
  - frameworks/sproutcore/views/toolbar.js
245
287
  - frameworks/sproutcore/views/view.js
246
- - frameworks/sproutcore/views/workspace.js
247
288
  - generators/client/client_generator.rb
248
289
  - generators/client/README
249
290
  - generators/client/templates/core.js
250
291
  - generators/client/templates/english.lproj/body.css
251
292
  - generators/client/templates/english.lproj/body.rhtml
252
- - generators/client/templates/english.lproj/controls.css
253
293
  - generators/client/templates/english.lproj/strings.js
254
294
  - generators/client/templates/main.js
255
295
  - generators/client/USAGE
@@ -260,9 +300,6 @@ files:
260
300
  - generators/framework/framework_generator.rb
261
301
  - generators/framework/README
262
302
  - generators/framework/templates/core.js
263
- - generators/framework/templates/english.lproj/body.css
264
- - generators/framework/templates/english.lproj/body.rhtml
265
- - generators/framework/templates/english.lproj/controls.css
266
303
  - generators/framework/templates/english.lproj/strings.js
267
304
  - generators/framework/USAGE
268
305
  - generators/language/language_generator.rb
@@ -325,10 +362,6 @@ files:
325
362
  - lib/sproutcore/merb/router.rb
326
363
  - lib/sproutcore/merb.rb
327
364
  - lib/sproutcore/version.rb
328
- - lib/sproutcore/view_helpers/button_views.rb
329
- - lib/sproutcore/view_helpers/core_views.rb
330
- - lib/sproutcore/view_helpers/form_views.rb
331
- - lib/sproutcore/view_helpers/menu_views.rb
332
365
  - lib/sproutcore/view_helpers.rb
333
366
  - lib/sproutcore.rb
334
367
  - License.txt