sproutcore 1.6.0.beta.3-x86-mingw32 → 1.6.0.rc.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +33 -0
- data/Rakefile +213 -10
- data/VERSION.yml +1 -1
- data/lib/Buildfile +5 -1
- data/lib/buildtasks/manifest.rake +7 -1
- data/lib/frameworks/sproutcore/Buildfile +3 -2
- data/lib/frameworks/sproutcore/CHANGELOG.md +154 -1
- data/lib/frameworks/sproutcore/README.md +1 -1
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.css +9 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +254 -207
- data/lib/frameworks/sproutcore/frameworks/ajax/system/response.js +243 -172
- data/lib/frameworks/sproutcore/frameworks/ajax/tests/system/request.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +5 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controls/button.js +6 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/bind.js +36 -14
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +14 -15
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js +14 -14
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/application.js +2 -7
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/platform.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/responder.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +20 -12
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/string.js +61 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/utils.js +20 -6
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/array_case.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controls/button.js +39 -57
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_style.js +5 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +32 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +28 -17
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/keyboard.js +396 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/view.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/{system → views}/bindable_span.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +78 -51
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +4 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/enabled.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/keyboard.js +233 -67
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/manipulation.js +3 -1
- data/lib/frameworks/sproutcore/frameworks/core_tools/core.js +8 -2
- data/lib/frameworks/sproutcore/frameworks/core_tools/data_source.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/target.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/data_source.js +15 -8
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_record.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/child_array.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +66 -55
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/data_source.js +190 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record_attribute.js +15 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +0 -1
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/core/system/datetime.js +212 -182
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/system/datetime.js +14 -16
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +23 -11
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/alert.css +49 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/debug/a_sample_image.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/debug/apple-logo1.jpeg +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/debug/iframe.html +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/disclosure.css +20 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/drag.css +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/icons.css +214 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/cap.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/downbutton.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-alert-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-alert-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-alert-48.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-bookmark-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-bookmark-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-cancel-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-document-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-document-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-down-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-error-48.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-favorite-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-favorite-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-folder-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-folder-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-group-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-group-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-help-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-help-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-info-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-info-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-info-48.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-left-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-options-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-options-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-redo-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-right-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-tools-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-trash-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-trash-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-undo-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-up-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-user-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/images/icons/sc-icon-user-24.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/thumb-bottom.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/thumb-center.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/thumb-top.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/track.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/images/upbutton.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/list_item.css +145 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/menu.css +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/menu_item_view.css +88 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/modal.css +3 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/panel.css +91 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/picker.css +37 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/progress.css +29 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/radio.css +11 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/segmented.css +121 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/separator.css +20 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/slider.css +34 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/split.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/split_divider.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/tab.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/toolbar.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/{english.lproj → resources}/touch-scroller.css +13 -13
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/well.css +65 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +114 -103
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/static_content.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +7 -6
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +4 -7
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +9 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/{panes → views}/select_button.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/views/form.js +35 -33
- data/lib/frameworks/sproutcore/frameworks/foundation/core.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_resize.js +15 -8
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/button.js +4 -7
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/flowed_layout.js +55 -13
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +3 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/render_delegate.js +7 -7
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/benchmark.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/blank.gif +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/bootstrap.rhtml +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/button_view.css +36 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/checkbox_view.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/debug/control-test-pane.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/favicon.ico +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore-logo.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore-startup-landscape.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore-startup-landscape.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore-startup-portrait.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore-startup-portrait.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore-startup.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/images/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/inline_editor.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/label.css +47 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/radio_view.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/{english.lproj → resources}/static_layout.css +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/text_field.css +130 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/chance.js +5 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/string.js +0 -43
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/string_measurement.js +5 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +4 -5
- data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/routing/system/routes.js +6 -3
- data/lib/frameworks/sproutcore/frameworks/routing/tests/system/routes.js +11 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/private/property_chain.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/system/error.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/logger.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/statechart/debug/monitor.js +4 -73
- data/lib/frameworks/sproutcore/frameworks/statechart/debug/sequence_matcher.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/ext/function.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/async.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/empty_state.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/history_state.js +97 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +7 -189
- data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +14 -78
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/debug/sequence_matcher.js +464 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/basic/with_concurrent_states.js +31 -11
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/with_concurrent_states.js +6 -4
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/advanced.js +40 -6
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/basic.js +22 -2
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/intermediate.js +44 -3
- data/lib/frameworks/sproutcore/frameworks/testing/core.js +61 -9
- data/lib/frameworks/sproutcore/frameworks/testing/{english.lproj → resources}/additions.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/testing/{english.lproj → resources}/runner.css +11 -2
- data/lib/frameworks/sproutcore/frameworks/testing/{english.lproj → resources}/testsuite.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +66 -27
- data/lib/frameworks/sproutcore/frameworks/testing/tests/spy_on.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/testing/tests/stub_method.js +9 -0
- data/lib/frameworks/sproutcore/frameworks/yuireset/resources/core.css +24 -0
- data/lib/frameworks/sproutcore/frameworks/yuireset/resources/fonts.css +39 -0
- data/lib/frameworks/sproutcore/frameworks/yuireset/resources/reset.css +126 -0
- data/lib/frameworks/sproutcore/frameworks/yuireset/resources/view.css +57 -0
- data/lib/frameworks/sproutcore/lib/index.rhtml +7 -4
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list.css +13 -4
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list_item.css +16 -14
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu_item.png +0 -0
- data/lib/gen/app/templates/apps/@target_name@/Buildfile +1 -4
- data/lib/gen/app/templates/apps/@target_name@/core.js +1 -4
- data/lib/gen/app/templates/apps/@target_name@/main.js +1 -4
- data/lib/gen/app/templates/apps/@target_name@/resources/main_page.js +1 -4
- data/lib/gen/app/templates/apps/@target_name@/theme.js +1 -4
- data/lib/gen/controller/templates/controllers/{@filename@.js → @filename@_controller.js} +1 -4
- data/lib/gen/controller/templates/tests/controllers/{@filename@.js → @filename@_test.js} +1 -4
- data/lib/gen/data-source/templates/data_sources/{@filename@.js → @filename@_data_source.js} +1 -4
- data/lib/gen/design/templates/resources/@filename@.js +1 -4
- data/lib/gen/framework/templates/frameworks/@target_name@/core.js +1 -4
- data/lib/gen/framework/templates/frameworks/@target_name@/english.lproj/strings.js +1 -4
- data/lib/gen/html_app/templates/apps/@target_name@/@target_name@.js +1 -4
- data/lib/gen/html_app/templates/apps/@target_name@/resources/stylesheets/@target_name@.css +2 -0
- data/lib/gen/html_project/templates/@filename@/Buildfile +1 -4
- data/lib/gen/html_project/templates/@filename@/README +1 -4
- data/lib/gen/language/templates/@filename@/strings.js +1 -4
- data/lib/gen/model/templates/fixtures/{@filename@.js → @filename@_fixtures.js} +2 -5
- data/lib/gen/model/templates/models/{@filename@.js → @filename@_model.js} +1 -4
- data/lib/gen/model/templates/tests/models/{@filename@.js → @filename@_test.js} +1 -4
- data/lib/gen/page/templates/pages/@target_name@/Buildfile +1 -4
- data/lib/gen/page/templates/pages/@target_name@/core.js +1 -4
- data/lib/gen/page/templates/pages/@target_name@/en.lproj/strings.js +1 -4
- data/lib/gen/page/templates/pages/@target_name@/resources/body.css +3 -1
- data/lib/gen/project/templates/@filename@/Buildfile +1 -4
- data/lib/gen/project/templates/@filename@/README +1 -5
- data/lib/gen/responder/templates/states/{@filename@.js → @filename@_state.js} +1 -4
- data/lib/gen/test/templates/tests/{@filename@.js → @filename@_test.js} +1 -4
- data/lib/gen/theme/templates/themes/@target_name@/resources/theme_styles.css +1 -5
- data/lib/gen/theme/templates/themes/@target_name@/theme.js +1 -4
- data/lib/gen/view/templates/tests/views/{@filename@.js → @filename@_test.js} +1 -4
- data/lib/gen/view/templates/views/{@filename@.js → @filename@_view.js} +1 -4
- data/lib/sproutcore.rb +4 -1
- data/lib/sproutcore/builders/handlebars.rb +1 -1
- data/lib/sproutcore/builders/module.rb +2 -2
- data/lib/sproutcore/helpers/static_helper.rb +4 -2
- data/lib/sproutcore/models/generator.rb +22 -0
- data/lib/sproutcore/models/manifest_entry.rb +1 -0
- data/lib/sproutcore/models/target.rb +4 -1
- data/lib/sproutcore/rack/builder.rb +3 -0
- data/lib/sproutcore/tools.rb +11 -11
- data/lib/sproutcore/tools/init.rb +10 -22
- data/lib/sproutcore/tools/manifest.rb +21 -22
- data/spec/buildtasks/manifest/prepare_build_tasks/combine_spec.rb +21 -1
- data/spec/fixtures/ordered_entries/apps/template_style/a.js +0 -0
- data/spec/fixtures/ordered_entries/apps/template_style/template_style.js +0 -0
- data/spec/lib/buildfile_commands/build_task_spec.rb +1 -1
- data/spec/lib/tools/manifest_spec.rb +11 -0
- data/sproutcore.gemspec +2 -2
- data/vendor/chance/lib/chance/instance.rb +3 -1
- metadata +150 -106
- data/lib/frameworks/sproutcore/frameworks/core_foundation/resources/core.css +0 -378
- data/lib/frameworks/sproutcore/frameworks/core_foundation/resources/view.css +0 -57
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/alert.css +0 -56
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/disclosure.css +0 -73
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/icons.css +0 -916
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/icons/shared.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/list_item.css +0 -185
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu.css +0 -12
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu_item_view.css +0 -101
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/panel.css +0 -91
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/picker.css +0 -35
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/progress.css +0 -33
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/radio.css +0 -10
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/segmented.css +0 -132
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/separator.css +0 -19
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +0 -69
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/strings.js +0 -14
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/well.css +0 -71
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/button_view.css +0 -40
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/label.css +0 -47
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/text_field.css +0 -146
- data/lib/frameworks/sproutcore/themes/empty_theme/tests/mini_icons.rhtml +0 -69
@@ -0,0 +1,41 @@
|
|
1
|
+
var object, methodSpy;
|
2
|
+
module('CoreTest.spyOn', {
|
3
|
+
setup: function() {
|
4
|
+
object = {method: function() {}};
|
5
|
+
methodSpy = CoreTest.spyOn(object, 'method');
|
6
|
+
}
|
7
|
+
});
|
8
|
+
|
9
|
+
test('when the spied upon method was called spy#wasCalled is true', function() {
|
10
|
+
object.method();
|
11
|
+
|
12
|
+
ok(methodSpy.wasCalled, 'spy should know that it was called');
|
13
|
+
});
|
14
|
+
|
15
|
+
test('when the spied upon method was not called spy#wasCalled is false', function() {
|
16
|
+
ok(!methodSpy.wasCalled, 'spy should know that it was not called');
|
17
|
+
});
|
18
|
+
|
19
|
+
test('when the spied upon method is called with a single argument the spy should know when it was called with the proper arguments', function() {
|
20
|
+
object.method('something');
|
21
|
+
|
22
|
+
ok(methodSpy.wasCalledWith('something'), 'spy should know it was called with the proper arguments');
|
23
|
+
});
|
24
|
+
|
25
|
+
test('when the spied upon method is called with multiple arguments the spy should know when it was called with the proper arguments', function() {
|
26
|
+
object.method('something', 'else');
|
27
|
+
|
28
|
+
ok(methodSpy.wasCalledWith('something', 'else'), 'spy should know it was called with the proper arguments');
|
29
|
+
});
|
30
|
+
|
31
|
+
test('when the spied upon method is called with a single argument the spy should know when it was called with the wrong arguments', function() {
|
32
|
+
object.method('something');
|
33
|
+
|
34
|
+
ok(!methodSpy.wasCalledWith('else'), 'spy should know it was called with the wrong arguments');
|
35
|
+
});
|
36
|
+
|
37
|
+
test('when the spied upon method is called with multiple arguments the spy should know when it was called with the wrong arguments', function() {
|
38
|
+
object.method('something', 'else');
|
39
|
+
|
40
|
+
ok(!methodSpy.wasCalledWith('else', 'something'), 'spy should know it was called with the wrong arguments');
|
41
|
+
});
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module('CoreQuery.stubMethod');
|
2
|
+
|
3
|
+
test('returns a set value when the stubbed method is called', function() {
|
4
|
+
var object = {method: function() {}};
|
5
|
+
var value = 'something';
|
6
|
+
CoreTest.stubMethod(object, 'method').andReturn(value);
|
7
|
+
|
8
|
+
equals(object.method(), value, 'returns a set value when the stubbed method is called');
|
9
|
+
});
|
@@ -0,0 +1,24 @@
|
|
1
|
+
.ellipsis {
|
2
|
+
white-space: nowrap;
|
3
|
+
overflow: hidden;
|
4
|
+
text-overflow: ellipsis;
|
5
|
+
-o-text-overflow: ellipsis;
|
6
|
+
-ms-text-overflow: ellipsis;
|
7
|
+
}
|
8
|
+
|
9
|
+
body {
|
10
|
+
position: absolute;
|
11
|
+
margin: 0px;
|
12
|
+
top:0px;
|
13
|
+
bottom: 0px;
|
14
|
+
left:0px;
|
15
|
+
right:0px;
|
16
|
+
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
17
|
+
font-size: 12px;
|
18
|
+
line-height: 1.4;
|
19
|
+
}
|
20
|
+
|
21
|
+
/* 3D-accelerate panes in MobileSafari */
|
22
|
+
.mobile-safari .sc-pane {
|
23
|
+
-webkit-transform: translate3d(0,0,0);
|
24
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
|
3
|
+
Code licensed under the BSD License:
|
4
|
+
http://developer.yahoo.com/yui/license.html
|
5
|
+
version: 3.3.0
|
6
|
+
build: 3167
|
7
|
+
*/
|
8
|
+
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Nudge down to get to 13px equivalent for these form elements
|
12
|
+
*/
|
13
|
+
select,
|
14
|
+
input,
|
15
|
+
button,
|
16
|
+
textarea {
|
17
|
+
font:99% arial,helvetica,clean,sans-serif;
|
18
|
+
}
|
19
|
+
|
20
|
+
/**
|
21
|
+
* To help tables remember to inherit
|
22
|
+
*/
|
23
|
+
table {
|
24
|
+
font-size:inherit;
|
25
|
+
font:100%;
|
26
|
+
}
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Bump up IE to get to 13px equivalent for these fixed-width elements
|
30
|
+
*/
|
31
|
+
pre,
|
32
|
+
code,
|
33
|
+
kbd,
|
34
|
+
samp,
|
35
|
+
tt {
|
36
|
+
font-family:monospace;
|
37
|
+
*font-size:108%;
|
38
|
+
line-height:100%;
|
39
|
+
}
|
@@ -0,0 +1,126 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
|
3
|
+
Code licensed under the BSD License:
|
4
|
+
http://developer.yahoo.com/yui/license.html
|
5
|
+
version: 3.3.0
|
6
|
+
build: 3167
|
7
|
+
*/
|
8
|
+
/*
|
9
|
+
TODO will need to remove settings on HTML since we can't namespace it.
|
10
|
+
TODO with the prefix, should I group by selector or property for weight savings?
|
11
|
+
*/
|
12
|
+
html{
|
13
|
+
color:#000;
|
14
|
+
background:#FFF;
|
15
|
+
}
|
16
|
+
/*
|
17
|
+
TODO remove settings on BODY since we can't namespace it.
|
18
|
+
*/
|
19
|
+
/*
|
20
|
+
TODO test putting a class on HEAD.
|
21
|
+
- Fails on FF.
|
22
|
+
*/
|
23
|
+
body,
|
24
|
+
div,
|
25
|
+
dl,
|
26
|
+
dt,
|
27
|
+
dd,
|
28
|
+
ul,
|
29
|
+
ol,
|
30
|
+
li,
|
31
|
+
h1,
|
32
|
+
h2,
|
33
|
+
h3,
|
34
|
+
h4,
|
35
|
+
h5,
|
36
|
+
h6,
|
37
|
+
pre,
|
38
|
+
code,
|
39
|
+
form,
|
40
|
+
fieldset,
|
41
|
+
legend,
|
42
|
+
input,
|
43
|
+
textarea,
|
44
|
+
p,
|
45
|
+
blockquote,
|
46
|
+
th,
|
47
|
+
td {
|
48
|
+
margin:0;
|
49
|
+
padding:0;
|
50
|
+
}
|
51
|
+
table {
|
52
|
+
border-collapse:collapse;
|
53
|
+
border-spacing:0;
|
54
|
+
}
|
55
|
+
fieldset,
|
56
|
+
img {
|
57
|
+
border:0;
|
58
|
+
}
|
59
|
+
/*
|
60
|
+
TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit...
|
61
|
+
*/
|
62
|
+
address,
|
63
|
+
caption,
|
64
|
+
cite,
|
65
|
+
code,
|
66
|
+
dfn,
|
67
|
+
em,
|
68
|
+
strong,
|
69
|
+
th,
|
70
|
+
var {
|
71
|
+
font-style:normal;
|
72
|
+
font-weight:normal;
|
73
|
+
}
|
74
|
+
/*
|
75
|
+
TODO Figure out where this list-style rule is best set. Hedger has a request to investigate.
|
76
|
+
*/
|
77
|
+
li {
|
78
|
+
list-style:none;
|
79
|
+
}
|
80
|
+
|
81
|
+
caption,
|
82
|
+
th {
|
83
|
+
text-align:left;
|
84
|
+
}
|
85
|
+
h1,
|
86
|
+
h2,
|
87
|
+
h3,
|
88
|
+
h4,
|
89
|
+
h5,
|
90
|
+
h6 {
|
91
|
+
font-size:100%;
|
92
|
+
font-weight:normal;
|
93
|
+
}
|
94
|
+
q:before,
|
95
|
+
q:after {
|
96
|
+
content:'';
|
97
|
+
}
|
98
|
+
abbr,
|
99
|
+
acronym {
|
100
|
+
border:0;
|
101
|
+
font-variant:normal;
|
102
|
+
}
|
103
|
+
/* to preserve line-height and selector appearance */
|
104
|
+
sup {
|
105
|
+
vertical-align:text-top;
|
106
|
+
}
|
107
|
+
sub {
|
108
|
+
vertical-align:text-bottom;
|
109
|
+
}
|
110
|
+
input,
|
111
|
+
textarea,
|
112
|
+
select {
|
113
|
+
font-family:inherit;
|
114
|
+
font-size:inherit;
|
115
|
+
font-weight:inherit;
|
116
|
+
}
|
117
|
+
/*to enable resizing for IE*/
|
118
|
+
input,
|
119
|
+
textarea,
|
120
|
+
select {
|
121
|
+
*font-size:100%;
|
122
|
+
}
|
123
|
+
/*because legend doesn't inherit in IE */
|
124
|
+
legend {
|
125
|
+
color:#000;
|
126
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/*
|
2
|
+
These CSS styles apply to all views.
|
3
|
+
*/
|
4
|
+
|
5
|
+
/* default behaviors for all views:
|
6
|
+
- use "pointer" cursor unless otherwise required
|
7
|
+
- clip overflow
|
8
|
+
*/
|
9
|
+
.sc-view {
|
10
|
+
cursor: default;
|
11
|
+
overflow: hidden;
|
12
|
+
position: absolute; /* all views are absolutely positioned. */
|
13
|
+
margin: 0px;
|
14
|
+
user-select: none;
|
15
|
+
-moz-user-select: -moz-none;
|
16
|
+
-khtml-user-select: none;
|
17
|
+
-webkit-touch-callout: none;
|
18
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
19
|
+
/* Views do not allow text selection unless you set isTextSelectable to YES.*/
|
20
|
+
&.allow-select {
|
21
|
+
-moz-user-select: text;
|
22
|
+
-khtml-user-select: text;
|
23
|
+
user-select: text;
|
24
|
+
cursor: text;
|
25
|
+
}
|
26
|
+
/*Use the following to know what view has the focus in webkit*/
|
27
|
+
/* &.focus {
|
28
|
+
outline: auto 5px solid;
|
29
|
+
outline-offset: -2px;
|
30
|
+
}*/
|
31
|
+
/* This className is useful when aligning buttons to the right */
|
32
|
+
&.text-align-right{
|
33
|
+
text-align:right;
|
34
|
+
}
|
35
|
+
&.textAlignRight {
|
36
|
+
text-align:right;
|
37
|
+
}
|
38
|
+
img {
|
39
|
+
border: none ;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
/* Set here so when we set a border-width we'll see something
|
44
|
+
* Only set on div, since occasionally we rely on native styling */
|
45
|
+
|
46
|
+
div.sc-view {
|
47
|
+
border: solid 0 transparent;
|
48
|
+
}
|
49
|
+
|
50
|
+
/* Make sure focus outlines do not appear. These don't look good. */
|
51
|
+
.sc-view:focus{
|
52
|
+
outline: none;
|
53
|
+
}
|
54
|
+
|
55
|
+
.sc-hidden {
|
56
|
+
display: none !important;
|
57
|
+
}
|
@@ -16,15 +16,18 @@
|
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
19
|
-
<meta http-equiv="X-UA-Compatible" content="IE=
|
19
|
+
<meta http-equiv="X-UA-Compatible" content="IE=EDGE<%= config.chrome_frame ? ',chrome=1' : '' %>" />
|
20
20
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
21
21
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
22
22
|
<meta name="apple-mobile-web-app-status-bar-style" content="<%= config.status_bar_style || 'default' %>" />
|
23
23
|
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
24
|
+
|
25
|
+
<% if config.touch_enabled %>
|
24
26
|
<link rel="apple-touch-icon<%= '-precomposed' if config.precomposed_icon %>" href="<%= sc_static(config.icon || 'sproutcore-logo.png') %>" />
|
25
|
-
|
26
|
-
|
27
|
-
|
27
|
+
<link rel="apple-touch-startup-image" media="screen and (orientation:portrait)" href="<%= sc_static(config.startup_image_portrait || 'sproutcore-startup-portrait.png') %>" />
|
28
|
+
<link rel="apple-touch-startup-image" media="screen and (orientation:landscape)" href="<%= sc_static(config.startup_image_landscape || 'sproutcore-startup-landscape.png') %>" />
|
29
|
+
<% end %>
|
30
|
+
<link rel="shortcut icon" href="<%= sc_static(config.favicon || 'favicon.ico') %>" type="image/x-icon" />
|
28
31
|
|
29
32
|
<% # Set the 'title' in your config to alter this setting %>
|
30
33
|
<title><%= title %></title>
|
Binary file
|
data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked_active.png
CHANGED
Binary file
|
Binary file
|
data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed_active.png
CHANGED
Binary file
|
data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked.png
CHANGED
Binary file
|
data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked_active.png
CHANGED
Binary file
|
Binary file
|
data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked_active.png
CHANGED
Binary file
|
Binary file
|
data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed_active.png
CHANGED
Binary file
|
data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked.png
CHANGED
Binary file
|
data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked_active.png
CHANGED
Binary file
|
@@ -1,4 +1,13 @@
|
|
1
|
-
$theme.sc-collection-view
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
$theme.sc-collection-view {
|
2
|
+
background: white;
|
3
|
+
border-right: 1px #A8B0BA solid;
|
4
|
+
|
5
|
+
&.alternating .sc-collection-item.even {
|
6
|
+
background: #eef3f6;
|
7
|
+
}
|
8
|
+
|
9
|
+
.sc-view.sc-collection-item.sel {
|
10
|
+
color: white;
|
11
|
+
background: #608AB9;
|
12
|
+
}
|
13
|
+
}
|
@@ -1,17 +1,19 @@
|
|
1
1
|
/* Overriding some of the styles on checkbox */
|
2
2
|
|
3
|
-
$theme.sc-list-item-view
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
$theme.sc-list-item-view {
|
4
|
+
.sc-checkbox-view {
|
5
|
+
background-color: transparent;
|
6
|
+
border: 0 none;
|
7
|
+
margin-top: -9px;
|
8
|
+
}
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
}
|
10
|
+
.disclosure {
|
11
|
+
position: absolute;
|
12
|
+
left: -12px;
|
13
|
+
top: 50%;
|
14
|
+
margin-top: -6px;
|
15
|
+
|
16
|
+
width: 18px;
|
17
|
+
height: 18px;
|
18
|
+
}
|
19
|
+
}
|
Binary file
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
# Project: <%= namespace %>
|
3
|
-
# Copyright: ©<%= Time.now.year %> My Company, Inc.
|
4
|
-
# ===========================================================================
|
1
|
+
<%= copyright_block(namespace, :ruby) %>
|
5
2
|
|
6
3
|
# This is your Buildfile for your app, <%= namespace %>. This tells SproutCore
|
7
4
|
# how to build your app. These settings override those in your project
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
// Project: <%= namespace %>
|
3
|
-
// Copyright: ©<%= Time.now.year %> My Company, Inc.
|
4
|
-
// ==========================================================================
|
1
|
+
<%= copyright_block(namespace) %>
|
5
2
|
/*globals <%= namespace %> */
|
6
3
|
|
7
4
|
/** @namespace
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
// Project: <%= namespace %>
|
3
|
-
// Copyright: ©<%= Time.now.year %> My Company, Inc.
|
4
|
-
// ==========================================================================
|
1
|
+
<%= copyright_block(namespace) %>
|
5
2
|
/*globals <%= namespace %> */
|
6
3
|
|
7
4
|
// This is the function that will start your app running. The default
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
// Project: <%= namespace %> - mainPage
|
3
|
-
// Copyright: ©<%= Time.now.year %> My Company, Inc.
|
4
|
-
// ==========================================================================
|
1
|
+
<%= copyright_block("#{namespace} - mainPage") %>
|
5
2
|
/*globals <%= namespace %> */
|
6
3
|
|
7
4
|
// This page describes the main user interface for your application.
|