Permalink
Browse files

Merge remote-tracking branch 'upstream/master'

  • Loading branch information...
2 parents aadf654 + 523c89e commit 5ac92b49610beab6fc3063211153bd8f37f93a37 Wesley Workman committed Apr 2, 2012
Showing with 174 additions and 304 deletions.
  1. +44 −0 CHANGELOG
  2. +20 −20 README.rdoc
  3. +3 −3 VERSION.yml
  4. +1 −1 lib/Buildfile
  5. +1 −1 lib/frameworks/sproutcore
  6. +17 −4 lib/gen/app/USAGE
  7. +0 −36 lib/gen/html_app/Buildfile
  8. +0 −1 lib/gen/html_app/README
  9. +0 −15 lib/gen/html_app/USAGE
  10. +0 −11 lib/gen/html_app/templates/apps/@target_name@/@target_name@.js
  11. 0 lib/gen/html_app/templates/apps/@target_name@/resources/images/.gitkeep
  12. +0 −6 lib/gen/html_app/templates/apps/@target_name@/resources/stylesheets/@target_name@.css
  13. +0 −1 lib/gen/html_app/templates/apps/@target_name@/resources/templates/@target_name@.handlebars
  14. +0 −45 lib/gen/html_project/Buildfile
  15. +0 −3 lib/gen/html_project/INIT
  16. +0 −1 lib/gen/html_project/README
  17. +0 −2 lib/gen/html_project/USAGE
  18. +0 −5 lib/gen/html_project/templates/@filename@/Buildfile
  19. +0 −4 lib/gen/html_project/templates/@filename@/README
  20. +4 −4 lib/gen/language/Buildfile
  21. +4 −4 lib/gen/language/USAGE
  22. +12 −4 lib/gen/statechart_app/USAGE
  23. +0 −45 lib/gen/statechart_project/Buildfile
  24. +0 −7 lib/gen/statechart_project/INIT
  25. +0 −1 lib/gen/statechart_project/README
  26. +0 −2 lib/gen/statechart_project/USAGE
  27. +0 −9 lib/gen/statechart_project/templates/@filename@/Buildfile
  28. +0 −3 lib/gen/statechart_project/templates/@filename@/README
  29. +1 −1 lib/sproutcore/helpers/html5_manifest.rb
  30. +25 −9 lib/sproutcore/rack/proxy.rb
  31. +18 −25 lib/sproutcore/tools.rb
  32. +10 −3 lib/sproutcore/tools/gen.rb
  33. +12 −26 lib/sproutcore/tools/init.rb
  34. +2 −2 sproutcore.gemspec
View
@@ -1,3 +1,47 @@
+*SproutCore 1.8.0 (March 06, 2012)*
+
+* Bumped the gem version to 1.8.0
+* Bumped SC to REL-1.8.0
+* Merge pull request #84 from pulletsforever/dwk/manifest.appcache
+* Merge pull request #74 from dkduck/redirect-fix
+* Figuring out how to use the language generator properly was hard to decipher, so I made the first argument the target app and the second argument the language. If no target app is given, it falls back to the default behaviour, which requires a target.
+* Fixed documentation of app and statechart_app generators.
+* Removed the statechart_project generator. It was identical to the project generator.
+* Bumped version to 1.8.0 and bumped SC framework to latest.
+* Add --statechart switch support when using sc-gen app or sc-gen project (not that it has an effect with sc-gen project, but someday it may).
+* Removed templates for html_app.
+* Removed deprecated options and removed --template which doesn't create a skeleton useful for a 1.8 project.
+* Fixed --dry-run option to work for sc-init and sc-gen.
+* Updated app.manifest to be manifest.appcache per http://html5.org/r/5812
+* Merge pull request #81 from sproutcore/team/workmanw/windows-spriting-fix
+* Bumped SC version.
+* The :mini framework (which was empty) has been removed from SproutCore for 1.8.
+* Added check before writing chance stuff to a file. If it's writing a png file it will be written as binary. This fixes spriting on Windows, previously newlines were converted to CRLF on Windows.
+* Merge pull request #79 from sproutcore/team/workmanw/sc-init-template-buildfile-fix
+* Updated abbot's Buildfile templates to reflect the changes made to sproutcore/master regarding moving the template system out of 'core_foundation' and into it's own framework 'template_view'.
+* This only returned the lines that matched and removed those that didn't.
+* Merge public branch
+* Merge pull request #76 from ChadEubanks/master
+* fixed a typo in description.
+* updated init.rb to call a statechart_project upon creation of an app using the --statechart switch and included a description of the inital files created in the statechart_project INIT file.
+* fixed indentation of the statechart.js file.
+* moved statechart.js to root of app directory, set up the statechart with just an initial ready state, and revised the property readyState to have proper casing.
+* updated statecharts switch to be --statechart and revised the generated code for statechart_app.
+* Modified abbot to have a state switch on sc-init. This builds a new sproutcore project with statecharts by default.
+* Modified abbot to have a state switch on sc-init. This builds a new sproutcore project with statecharts by default.
+* updated sc-init to include statecharts out of the box.
+* Merging public branch
+* Bumping js library submodule
+* Preprocess JSON files for static_urrl
+* Instead of overriding "readlines" everywhere, add a new "read" method and use that instead...
+* fixes a bug with automatically following redirects to external hosts
+* Typo. The proper setting is : connect_timeout
+* em-http changed the single :timeout setting to separate :inactivity_timeout and :connection_timeout settings, so this exposes these timeouts to the proxy config. Note, this still works with current Buildfiles since proxy[:timeout] is mapped over to :inactivity_timeout of em-http.
+* More complete fix for #69, thanks rykov!
+* Ruby 1.8 only allows splats for the last argument - Fixes #69
+* Updated StaticHelper to include the image_urls_for_client function
+* Typo prevented skipping of `top-right`
+
*SproutCore 1.7.1.beta (August 30, 2011)*
MINOR FEATURES
View
@@ -6,38 +6,38 @@
== DESCRIPTION:
-SproutCore is a platform for building native look-and-feel applications on
-the web. This Ruby library includes a copy of the SproutCore JavaScript
+SproutCore is a platform for building native look-and-feel applications on
+the web. This Ruby library includes a copy of the SproutCore JavaScript
framework as well as a Ruby-based build system called Abbot.
-Abbot is a build system for creating static web content. You can supply Abbot with a collection of JavaScript, HTML, CSS and image files and it will
-combine the files into a bundle that are optimized for efficient, cached
+Abbot is a build system for creating static web content. You can supply Abbot with a collection of JavaScript, HTML, CSS and image files and it will
+combine the files into a bundle that are optimized for efficient, cached
deliver directly from your server or using a CDN.
-Some of the benefits of using Abbot versus assembling your own content
+Some of the benefits of using Abbot versus assembling your own content
include:
- * Easy maintenance. Organize your source content in a way that is useful for
+ * Easy maintenance. Organize your source content in a way that is useful for
you without impacting performance on loaded apps.
-
+
* Automatically versioned URLs. Serve content with long expiration dates
while Abbot handles the cache invalidation for you.
-
+
* Dependency management. Divide your code into frameworks; load 3rd party
libraries. Abbot will make sure everything loads in the correct order.
-
+
* Packing. Combines JavaScript and CSS into single files to minimize the
number of resources you download for each page.
-
-Although Abbot is intended primarily for building Web applications that
+
+Although Abbot is intended primarily for building Web applications that
use the SproutCore JavaScript framework, you can also use it to efficiently build any kind of static web content, even if SproutCore is not involved.
-Abbot can be used both directly from the command line or as a ruby library.
-
+Abbot can be used both directly from the command line or as a ruby library.
+
== USING ABBOT WITH SPROUTCORE:
This gem includes both the Abbot build tools and a copy of the SproutCore
-JavaScript framework. You can use built-in commands to create, develop,
+JavaScript framework. You can use built-in commands to create, develop,
build, and deploy SproutCore-based applications.
== USING ABBOT FROM SOURCE:
@@ -68,32 +68,32 @@ These steps will allow the use of a development release of abbot rather than an
== KNOWN LIMITATIONS:
* Currently does not support sites using relative-links. You must specify
- the absolute path you expect built targets to be hosted as.
+ the absolute path you expect built targets to be hosted as.
== SYNOPSIS:
To create a new project:
sc-init my_app
-
+
To test said project:
cd my_app
sc-server
open http://localhost:4020/my_app (in web browser)
-
+
Write code, refresh, debug. Once you are ready to deploy, build your static
output using:
cd my_app
sc-build my_app -rc
-
+
Copy the resulting files found in my_app/tmp/build to your server and you are
deployed!
== REQUIREMENTS:
-* Ruby 1.8.6 or later. Ruby 1.9 is currently untested
+* Ruby 1.8.6 or later.
* extlib 0.9.9 or later
* rack 0.9.1 or later
* erubis 2.6.2 or later
@@ -105,7 +105,7 @@ sudo gem install sproutcore
== LICENSE:
-Copyright (c) 2009 Apple Inc.
+Copyright (c) 2009 Apple Inc.
Portions copyright (c) 2006-2011 Strobe Inc. and contributors
Permission is hereby granted, free of charge, to any person obtaining
View
@@ -1,4 +1,4 @@
----
+---
:major: 1
-:minor: 7
-:patch: 1.beta
+:minor: 8
+:patch: 1
View
@@ -117,7 +117,7 @@ mode :all do
# A hash of additional MIME types, i.e. { '.m4a' => 'audio/mp4a-latm' }
:mime_types => {},
- # Whether to generate an app.manifest file for HTML5 application caching
+ # Whether to generate an manifest.appcache file for HTML5 application caching
:html5_manifest => false,
# Which networks/URLs to allow if HTML5 application caching is turned on
:html5_manifest_networks => [],
Submodule sproutcore updated 74 files
+1 −0 Buildfile
+200 −23 CHANGELOG.md
+29 −8 README.md
+13 −13 frameworks/ajax/system/response.js
+7 −7 frameworks/bootstrap/system/browser.js
+12 −10 frameworks/bootstrap/system/loader.js
+1 −1 frameworks/core_foundation/panes/keyboard.js
+0 −1 frameworks/core_foundation/system/browser.js
+23 −12 frameworks/core_foundation/system/event.js
+4 −8 frameworks/core_foundation/system/render_context.js
+28 −47 frameworks/core_foundation/system/root_responder.js
+8 −8 frameworks/core_foundation/tests/system/render_context/helpers_style.js
+17 −16 frameworks/core_foundation/tests/system/render_context/update.js
+9 −9 frameworks/core_foundation/views/view.js
+0 −2 frameworks/datastore/models/child_attribute.js
+35 −0 frameworks/datastore/models/children_attribute.js
+13 −13 frameworks/datastore/models/record.js
+280 −288 frameworks/datastore/system/query.js
+6 −4 frameworks/datastore/system/store.js
+48 −8 frameworks/datastore/tests/models/nested_records/nested_record_array.js
+54 −1 frameworks/datastore/tests/system/query/compare.js
+1 −1 frameworks/datastore/tests/system/record_array/core_methods.js
+1 −1 frameworks/datastore/tests/system/record_array/flush.js
+37 −45 frameworks/datastore/tests/system/store/commitRecord.js
+127 −127 frameworks/datastore/tests/system/store/find.js
+3 −3 frameworks/debug/core.js
+12 −12 frameworks/desktop/panes/picker.js
+15 −15 frameworks/desktop/panes/sheet.js
+ frameworks/desktop/resources/images/icons/sc-icon-error-48.png
+4 −4 frameworks/desktop/resources/list_item.css
+8 −0 frameworks/desktop/resources/modal.css
+1 −8 frameworks/desktop/resources/panel.css
+85 −84 frameworks/desktop/tests/views/date_field/ui.js
+2 −2 frameworks/desktop/tests/views/progress/ui.js
+0 −27 frameworks/desktop/tests/views/scroll/integration.js
+245 −18 frameworks/desktop/tests/views/scroll/methods.js
+5 −0 frameworks/desktop/tests/views/scroller.js
+12 −0 frameworks/desktop/tests/views/split/methods.js
+60 −58 frameworks/desktop/views/button.js
+1 −0 frameworks/desktop/views/collection.js
+48 −48 frameworks/desktop/views/date_field.js
+137 −145 frameworks/desktop/views/list.js
+25 −6 frameworks/desktop/views/scroll.js
+1 −1 frameworks/desktop/views/scroller.js
+146 −152 frameworks/desktop/views/split.js
+5 −7 frameworks/desktop/views/static_content.js
+21 −21 frameworks/experimental/frameworks/designer/views/drawing.js
+0 −25 frameworks/experimental/frameworks/scroll_view/tests/scroll/integration.js
+2 −2 frameworks/experimental/frameworks/scroll_view/views/desktop/scroll.js
+47 −47 frameworks/foundation/mixins/validatable.js
+45 −40 frameworks/foundation/resources/text_field.css
+5 −0 frameworks/foundation/system/image_queue.js
+26 −12 frameworks/foundation/system/user_defaults.js
+20 −20 frameworks/foundation/system/utils/string_metric_optimization.js
+84 −0 frameworks/foundation/tests/system/image_queue.js
+48 −0 frameworks/foundation/tests/views/text_field/methods.js
+104 −103 frameworks/foundation/tests/views/text_field/ui.js
+1 −1 frameworks/foundation/views/image.js
+57 −53 frameworks/foundation/views/inline_text_field.js
+303 −185 frameworks/foundation/views/text_field.js
+11 −11 frameworks/jquery/jquery-buffer.js
+6 −6 frameworks/runtime/core.js
+16 −16 frameworks/runtime/system/run_loop.js
+6 −6 frameworks/statechart/system/statechart.js
+2 −2 frameworks/template_view/mixins/template_helpers/text_field_support.js
+23 −18 lib/index.rhtml
+8 −0 themes/ace/resources/button/ace/24px/button.css
+8 −0 themes/ace/resources/button/ace/30px/button.css
+8 −0 themes/ace/resources/button/dark/24px/button.css
+8 −0 themes/ace/resources/button/dark/30px/button.css
+17 −0 themes/ace/resources/button/dark/jumbo/button.css
+17 −0 themes/ace/resources/button/dark/small/button.css
+0 −3 themes/ace/resources/pane/pane.css
+44 −0 themes/ace/resources/picker/popover/popover.css
View
@@ -2,12 +2,25 @@ app - Create a new SproutCore application target.
USAGE:
- sc-gen app AppName [--filename=FILENAME] [--target=TARGET_NAME]
+ sc-gen app AppName [--filename=FILENAME] [--target=TARGET_NAME] [--statechart]
DISCUSSION:
-This generator will create a new SproutCore application for a particular project. You should pass as the first parameter your AppName you want to create. For example:
+This generator will create a new SproutCore application for a particular
+project. You should pass as the first parameter your AppName you want to
+create. For example:
-sc-gen app Todos
+ sc-gen app Todos
-defines a new application called Todos in the file apps/todos/ .
+This defines a new application called Todos in the file apps/todos/ . Or you
+can include a basic statechart for example:
+
+ sc-gen app Todos --statechart
+
+This defines a new application called Todos in the file apps/todos/ using
+statecharts. Within the apps/Todos/resources directory you will have a
+statechart.js file and a states directory with the ready_state.js file. The
+statechart.js file sets the initial state of your app to ready.
+
+As your app grows. You will create new states within the statechart.js file.
+In your states folder you will describe the states declared in the statechart.js.
View
@@ -1,36 +0,0 @@
-# ==========================================================================
-# Generator: APP
-# Copyright: ©2006-2011 Strobe Inc. and contributors
-# portions copyright ©2009 Apple Inc.
-# ==========================================================================
-
-namespace :generator do
-
- # Require a project then make sure the build root is always the project
- # root.
- task :prepare do
- GENERATOR.requires! :target_project
-
- # if the target name has a slash in it, then we are trying to create a
- # nested target. extract the final part (since this is the target name)
- # and then set the build root to the parent target.
- if GENERATOR.target_name && GENERATOR.target_name =~ /\//
- parent_target_name = GENERATOR.target_name.split('/')
- GENERATOR.target_name = parent_target_name.pop
-
- parent_target_name = parent_target_name * "/"
- project = GENERATOR.target_project
-
- GENERATOR.parent_target_name = parent_target_name
- GENERATOR.parent_target = project.target_for(parent_target_name)
- GENERATOR.requires! :parent_target, :parent_target_name
-
- GENERATOR.build_root = GENERATOR.parent_target.source_root
-
- # otherwise just use project_root
- else
- GENERATOR.build_root = GENERATOR.target_project.project_root
- end
- end
-
-end
View
@@ -1 +0,0 @@
-Your application target is now ready to use!
View
@@ -1,15 +0,0 @@
-html_app - Create a new HTML-based SproutCore application target.
-
-USAGE:
-
- sc-gen html_app AppName [--filename=FILENAME] [--target=TARGET_NAME]
-
-DISCUSSION:
-
-This generator will create a new SproutCore application for a particular project. You should pass as the first parameter your AppName you want to create. For example:
-
-sc-gen app Todos
-
-defines a new application called Todos in the file apps/todos/.
-
-Your application will be setup for using Handlebars to describe the view layer.
@@ -1,11 +0,0 @@
-<%= copyright_block(namespace) %>
-/*globals <%= namespace %> */
-
-<%= namespace %> = SC.Application.create();
-
-SC.ready(function() {
- <%= namespace %>.mainPane = SC.TemplatePane.append({
- layerId: '<%= target_name %>',
- templateName: '<%= target_name %>'
- });
-});
@@ -1,6 +0,0 @@
-<%= copyright_block(namespace, :css) %>
-
-.sc-view {
- position: relative;
- overflow: visible;
-}
@@ -1 +0,0 @@
-<h1>Welcome to SproutCore!</h1>
@@ -1,45 +0,0 @@
-# ==========================================================================
-# Generator: PROJECT
-# Copyright: ©2006-2011 Strobe Inc. and contributors
-# portions copyright ©2009 Apple Inc.
-# ==========================================================================
-
-namespace :generator do
-
- # Accept the following types of arguments:
- #
- # project . #=> Make current working directory. like sc-init
- # project project_name #=> Create project_name, namespace: ProjectName
- # project ProjectName #=> Create project_name, namespace: ProjectName
- # project NameSpace path/to/project #=> Create path/to/project, NameSpace
- #
- task :prepare do
- # get arguments & normalize
- gen = GENERATOR
- namespace = gen.arguments[1]
- project_path = gen.arguments[2]
-
- if project_path
- project_path = File.expand_path(project_path)
- namespace = File.basename(project_path) if namespace == '.'
- elsif namespace == '.'
- project_path = Dir.pwd
- namespace = File.basename(project_path)
- else
- project_path = Dir.pwd / gen.snake_case(namespace)
- end
-
- # Setup standard options for generating a project
- gen.target_name = gen.target = gen.method_name = gen.class_name = nil
- gen.build_root = File.dirname(project_path) # dir where project dir lives
- gen.filename = File.basename(project_path) # project dir name
- gen.namespace = gen.camel_case namespace
- end
-
-end
-
-# default behavior for a template is to just copy the contents of the
-# templates directory to the end destination. Add any additional configs here.
-config :templates,
- :root_dir => '_file_path_'
-
@@ -1,3 +0,0 @@
-Your new SproutCore project is ready!
-
-To get started, you can find your initial application in the "apps" directory.
@@ -1 +0,0 @@
-Your project is now ready to use!
@@ -1,2 +0,0 @@
-Usage:
- sc-gen project project_name
@@ -1,5 +0,0 @@
-<%= copyright_block(namespace, :ruby) %>
-
-# Add initial buildfile information here
-config :all, :required => "sproutcore/template_view", :theme => "sproutcore/empty_theme"
-
@@ -1,4 +0,0 @@
-<%= copyright_block(namespace, false) %>
-
-TODO: Describe Your Project
-
@@ -6,21 +6,21 @@
namespace :generator do
- # First argument must be the namespace. Second argument should be the
+ # First argument must be the namespace. Second argument should be the
# language we want to add. Generate a filename (foo.lproj) and language
# name.
task :prepare do
long_languages = %w(english french german italian spanish japanese)
- if language = GENERATOR.arguments[1]
+ if language = GENERATOR.arguments[2] || GENERATOR.arguments[1]
if long_languages.include?(language.downcase)
GENERATOR.language = language.downcase.capitalize
GENERATOR.filename = language.downcase + '.lproj'
else
- GENERATOR.language = language.gsub('_', '-')
+ GENERATOR.language = language.gsub('_', '-')
GENERATOR.filename = language.gsub('-', '_') + '.lproj'
end
end
GENERATOR.requires! :target_project, :target, :language, :filename
end
-
+
end
View
@@ -2,12 +2,12 @@ language - Create a new language for a SproutCore application.
USAGE:
- sc-gen language LanguageName [--target=TARGET_NAME]
+ sc-gen language AppName LanguageName [--target=TARGET_NAME]
DISCUSSION:
-This generator will create a new language for a particular application. Please make sure you are in the specific application directory first, or specify one with the target parameter. You should pass as the first parameter the LanguageName you want to create. For example:
+This generator will create a new language for a particular application. For example:
-sc-gen language Norwegian
+sc-gen language MyApp Norwegian
-defines a new language in your current application in the directory norwegian.lproj .
+defines a new language in the MyApp application in the directory norwegian.lproj .
Oops, something went wrong.

0 comments on commit 5ac92b4

Please sign in to comment.