sproutit-sproutcore 1.0.0.20090721125122 → 1.0.126

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 (38) hide show
  1. data/Rakefile +190 -29
  2. data/VERSION.yml +5 -0
  3. data/lib/sproutcore/tools/build.rb +1 -1
  4. data/lib/sproutcore.rb +9 -1
  5. metadata +6 -60
  6. data/gen/app/templates/apps/{target_name}/core.js +0 -27
  7. data/gen/app/templates/apps/{target_name}/english.lproj/loading.rhtml +0 -9
  8. data/gen/app/templates/apps/{target_name}/english.lproj/main_page.js +0 -22
  9. data/gen/app/templates/apps/{target_name}/english.lproj/strings.js +0 -15
  10. data/gen/app/templates/apps/{target_name}/main.js +0 -30
  11. data/gen/controller/templates/controllers/{filename}.js +0 -18
  12. data/gen/controller/templates/tests/controllers/{filename}.js +0 -15
  13. data/gen/framework/templates/frameworks/{target_name}/core.js +0 -21
  14. data/gen/framework/templates/frameworks/{target_name}/english.lproj/strings.js +0 -15
  15. data/gen/language/templates/{filename}/strings.js +0 -14
  16. data/gen/model/templates/fixtures/{filename}.js +0 -35
  17. data/gen/model/templates/models/{filename}.js +0 -19
  18. data/gen/model/templates/tests/models/{filename}.js +0 -15
  19. data/gen/project/templates/{filename}/Buildfile +0 -7
  20. data/gen/project/templates/{filename}/README +0 -7
  21. data/gen/test/templates/tests/{filename}.js +0 -15
  22. data/gen/theme/templates/themes/{target_name}/english.lproj/strings.js +0 -15
  23. data/gen/view/templates/tests/views/{filename}.js +0 -15
  24. data/gen/view/templates/views/{filename}.js +0 -18
  25. data/spec/buildtasks/manifest/localize_spec.rb +0 -97
  26. data/spec/buildtasks/manifest/prepare_build_tasks/combine_spec.rb +0 -246
  27. data/spec/buildtasks/manifest/prepare_build_tasks/css_spec.rb +0 -87
  28. data/spec/buildtasks/manifest/prepare_build_tasks/html_spec.rb +0 -175
  29. data/spec/buildtasks/manifest/prepare_build_tasks/javascript_spec.rb +0 -65
  30. data/spec/buildtasks/manifest/prepare_build_tasks/minify_spec.rb +0 -70
  31. data/spec/buildtasks/manifest/prepare_build_tasks/packed_spec.rb +0 -152
  32. data/spec/buildtasks/manifest/prepare_build_tasks/sass_spec.rb +0 -98
  33. data/spec/buildtasks/manifest/prepare_build_tasks/strings_spec.rb +0 -64
  34. data/spec/buildtasks/manifest/prepare_build_tasks/tests_spec.rb +0 -163
  35. data/spec/buildtasks/manifest/prepare_spec.rb +0 -43
  36. data/spec/fixtures/entry_for_project/apps/test_app/entry.txt +0 -0
  37. data/vendor/jsdoc/README.txt +0 -151
  38. data/vendor/jsdoc/changes.txt +0 -47
@@ -1,163 +0,0 @@
1
- require File.join(File.dirname(__FILE__), %w(.. spec_helper))
2
-
3
- describe "manifest:prepare_build_tasks:tests" do
4
-
5
- include SC::SpecHelpers
6
- include SC::ManifestSpecHelpers
7
-
8
- before do
9
- std_before #load real_world project
10
- end
11
-
12
- def run_task(load_tests=true)
13
- @manifest.prepare!
14
- @target.config.load_tests = load_tests # force...
15
- super('manifest:prepare_build_tasks:tests')
16
- end
17
-
18
- it "should run manifest:localize & manifest:catalog as prereq" do
19
- should_run('manifest:catalog') { run_task }
20
- should_run('manifest:localize') { run_task }
21
- end
22
-
23
- it "should create a transform entry (with entry_type == :test) for every test entry with a javascript transform entry in between" do
24
- run_task
25
- entries = @manifest.entries(:hidden => true)
26
-
27
- # find all entries referencing original source...
28
- source_entries = entries.reject do |entry|
29
- !(entry.original? && entry.filename =~ /^tests\//)
30
- end
31
- source_entries.size.should > 0 # precondition
32
-
33
- # final all test transform entries - i.e. those working on single tests.
34
- test_entries = entries.select do |e|
35
- e.entry_type == :test && e.transform?
36
- end
37
-
38
- test_entries.size.should eql(source_entries.size) # 1 for each entry?
39
- test_entries.each do |entry|
40
-
41
- # if the source_entry is a javascript, then there should be a transform
42
- # in between to handle things list static_url()
43
- original = entry.source_entry
44
- if original.ext == 'js'
45
- original.should be_transform
46
- original.build_task.should == 'build:javascript'
47
- original = original.source_entry # get true original to test with...
48
- end
49
-
50
- # get original and delete from found originals to make sure chain
51
- # exists...
52
- original.should be_original # precondition
53
- source_entries.should include(original)
54
- source_entries.delete(original) # avoid double counting
55
- end
56
-
57
- # none should be left...
58
- source_entries.size.should == 0
59
- end
60
-
61
- it "should create a composite entry for all tests" do
62
- run_task
63
-
64
- # find all entries referencing original source...
65
- entries = @manifest.entries(:hidden => true)
66
- source_entries = entries.reject do |entry|
67
- !(entry.original? && entry.filename =~ /^tests\//)
68
- end
69
- source_entries.sort! { |a,b| a.filename.to_s <=> b.filename.to_s }
70
-
71
- # find composite test entry
72
- entry = @manifest.entry_for 'tests.html', :entry_type => :test
73
- entry.should_not be_nil
74
-
75
- # get originals. since some entries will be JS transforms, just walk
76
- # back...
77
- originals = entry.source_entries.map do |entry|
78
- entry.transform? ? entry.source_entry : entry
79
- end
80
- found = originals.sort { |a,b| a.filename.to_s <=> b.filename.to_s }
81
- found.should == source_entries
82
- end
83
-
84
- it "should create a composite entry for each nested directory" do
85
- run_task
86
-
87
- # find all entries referencing original source...
88
- entries = @manifest.entries(:hidden => true)
89
- source_entries = entries.reject do |entry|
90
- !(entry.original? && entry.filename =~ /^tests\/nested\//)
91
- end
92
- source_entries.sort! { |a,b| a.filename.to_s <=> b.filename.to_s }
93
-
94
- # find composite test entry
95
- entry = @manifest.entry_for 'tests/nested.html', :entry_type => :test
96
- entry.should_not be_nil
97
- originals = entry.source_entries.map do |entry|
98
- entry.transform? ? entry.source_entry : entry
99
- end
100
- found = originals.sort { |a,b| a.filename.to_s <=> b.filename.to_s }
101
- found.should == source_entries
102
- end
103
-
104
- # check the format of each entry...
105
- describe "transform entry" do
106
-
107
- before do
108
- run_task
109
- @entries = @manifest.entries.reject { |e| e.entry_type != :test }
110
- end
111
-
112
- it "changes the filename + build_path + url ext to .html" do
113
- @entries.each do |entry|
114
- File.extname(entry.filename).should == '.html'
115
- File.extname(entry.build_path).should == '.html'
116
- File.extname(entry.url).should == '.html'
117
- end
118
- end
119
-
120
- it "assigns a build_task of build:test" do
121
- @entries.each do |entry|
122
- extname = File.extname(entry.source_entry.filename)[1..-1]
123
- entry.build_task.to_s.should == "build:test"
124
- end
125
- end
126
-
127
- end
128
-
129
- it "should create a composite entry to generate a -index.json with test entries as source (excluding composite summary entries)" do
130
- run_task
131
- entry = @manifest.entry_for('tests/-index.json')
132
-
133
- entry.should_not be_nil
134
- entry.entry_type.should == :resource
135
- entry.build_task.to_s.should == 'build:test_index'
136
-
137
- expected = @manifest.entries.select do |e|
138
- e.entry_type == :test && e.transform?
139
- end
140
-
141
- entry.source_entries.size.should eql(expected.size)
142
- entry.source_entries.each do |entry|
143
- expected.should include(entry)
144
- expected.delete(entry) # avoid double counting
145
- end
146
- expected.size.should == 0 # should have an empty size...
147
- end
148
-
149
- it "should not hide -index.json source_entries (since they are test that need to be built)" do
150
- run_task
151
- entry = @manifest.entry_for('tests/-index.json')
152
- entry.source_entries.each do |entry|
153
- entry.should_not be_hidden
154
- end
155
- end
156
-
157
- it "should not generate an -index.json entry if tests not loaded" do
158
- run_task(false)
159
- entry = @manifest.entry_for('tests/-index.json')
160
- entry.should be_nil
161
- end
162
-
163
- end
@@ -1,43 +0,0 @@
1
- require File.join(File.dirname(__FILE__), 'spec_helper')
2
-
3
- describe "manifest:prepare" do
4
-
5
- include SC::SpecHelpers
6
- include SC::ManifestSpecHelpers
7
-
8
- before do
9
- std_before
10
- end
11
-
12
- def run_task; super('manifest:prepare'); end
13
-
14
- it "sets build_root => target.build_root/language/build_number" do
15
- run_task
16
- expected = File.join(@target.build_root, 'fr', @target.build_number)
17
- @manifest.build_root.should == expected
18
- end
19
-
20
- it "sets staging_root => staging_root/language/build_number" do
21
- run_task
22
- expected = File.join(@target.staging_root, 'fr', @target.build_number)
23
- @manifest.staging_root.should == expected
24
- end
25
-
26
- it "sets url_root => url_root/language/build_number" do
27
- run_task
28
- expected = [@target.url_root, 'fr', @target.build_number] * '/'
29
- @manifest.url_root.should == expected
30
- end
31
-
32
- it "sets source_root => target.source_root" do
33
- run_task
34
- @manifest.source_root.should == @target.source_root
35
- end
36
-
37
- it "sets index_root => index_root/language/build_number" do
38
- run_task
39
- expected = [@target.index_root, 'fr', @target.build_number] * '/'
40
- @manifest.index_root.should == expected
41
- end
42
-
43
- end
@@ -1,151 +0,0 @@
1
- ======================================================================
2
-
3
- DESCRIPTION:
4
-
5
- ** NOTICE ** THIS VERSION OF THE SOFTWARE IS "BETA," MEANING IT IS IS
6
- NOT YET READY FOR USE IN A PRODUCTION ENVIRONEMNT. IT IS MADE
7
- AVAILABLE FOR PREVIEW AND TESTING PURPOSES ONLY.
8
-
9
- This is Version 2 of JsDoc Toolkit, an automatic documentation
10
- generation tool for JavaScript. It is written in JavaScript and is run
11
- from a command line (or terminal) using the Java runtime engine.
12
-
13
- Using this tool you can automatically turn JavaDoc-like comments in
14
- your JavaScript source code into published output files, such as HTML
15
- or XML.
16
-
17
- For more information, to report a bug, or to browse the technical
18
- documentation for this tool please visit the official JsDoc Toolkit
19
- project homepage at http://code.google.com/p/jsdoc-toolkit/
20
-
21
- For the most up-to-date documentation on Version 2 of JsDoc Toolkit
22
- see the Verion 2 wiki at http://jsdoctoolkit.org/wiki
23
-
24
-
25
- ======================================================================
26
-
27
- REQUIREMENTS:
28
-
29
- JsDoc Toolkit is known to work with:
30
- java version "1.6.0_03"
31
- Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
32
- on Windows XP,
33
- and java version "1.5.0_13"
34
- Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
35
- on Mac OS X 10.4.
36
-
37
- Other versions of java may or may not work with JsDoc Toolkit.
38
-
39
- ======================================================================
40
-
41
- USAGE:
42
-
43
- Running JsDoc Toolkit requires you to have Java installed on your
44
- computer. For more information see http://www.java.com/getjava/
45
-
46
- Before running the JsDoc Toolkit app you should change your current
47
- working directory to the jsdoc-toolkit folder. Then follow the
48
- examples below, or as shown on the project wiki.
49
-
50
- On a computer running Windows a valid command line to run JsDoc
51
- Toolkit might look like this:
52
-
53
- > java -jar jsrun.jar app\run.js -a -t=templates\jsdoc mycode.js
54
-
55
- On Mac OS X or Linux the same command would look like this:
56
-
57
- $ java -jar jsrun.jar app/run.js -a -t=templates/jsdoc mycode.js
58
-
59
- The above assumes your current working directory contains jsrun.jar,
60
- the "app" and "templates" subdirectories from the standard JsDoc
61
- Toolkit distribution and that the relative path to the code you wish
62
- to document is "mycode.js".
63
-
64
- The output documentation files will be saved to a new directory named
65
- "out" (by default) in the current directory, or if you specify a
66
- -d=somewhere_else option, to the somewhere_else directory.
67
-
68
- For help (usage notes) enter this on the command line:
69
-
70
- $ java -jar jsrun.jar app/run.js --help
71
-
72
- More information about the various command line options used by JsDoc
73
- Toolkit are available on the project wiki.
74
-
75
- ======================================================================
76
-
77
- TESTING:
78
-
79
- To run the suite of unit tests included with JsDoc Toolkit enter this
80
- on the command line:
81
-
82
- $ java -jar jsrun.jar app/run.js -T
83
-
84
- To see a dump of the internal data structure that JsDoc Toolkit has
85
- built from your source files use this command:
86
-
87
- $ java -jar jsrun.jar app/run.js mycode.js -Z
88
-
89
-
90
- ======================================================================
91
-
92
- LICENSE:
93
-
94
- JSDoc.pm
95
-
96
- This project is based on the JSDoc.pm tool, created by Michael
97
- Mathews and Gabriel Reid. More information on JsDoc.pm can
98
- be found on the JSDoc.pm homepage: http://jsdoc.sourceforge.net/
99
-
100
- Complete documentation on JsDoc Toolkit can be found on the project
101
- wiki at http://code.google.com/p/jsdoc-toolkit/w/list
102
-
103
- Rhino
104
-
105
- Rhino (JavaScript in Java) is open source and licensed by Mozilla
106
- under the MPL 1.1 or later/GPL 2.0 or later licenses, the text of
107
- which is available at http://www.mozilla.org/MPL/
108
-
109
- You can obtain the source code for Rhino from the Mozilla web site at
110
- http://www.mozilla.org/rhino/download.html
111
-
112
- JsDoc Toolkit is a larger work that uses the Rhino JavaScript engine
113
- but is not derived from it in any way. The Rhino library is used
114
- without modification and without any claims whatsoever.
115
-
116
- The Rhino Debugger
117
-
118
- You can obtain more information about the Rhino Debugger from the
119
- Mozilla web site at http://www.mozilla.org/rhino/debugger.html
120
-
121
- JsDoc Toolkit is a larger work that uses the Rhino Debugger but
122
- is not derived from it in any way. The Rhino Debugger is used
123
- without modification and without any claims whatsoever.
124
-
125
- JsDoc Toolkit
126
-
127
- All code specific to JsDoc Toolkit are free, open source and licensed
128
- for use under the X11/MIT License.
129
-
130
- JsDoc Toolkit is Copyright (c)2008 Michael Mathews <micmath@gmail.com>
131
-
132
- This program is free software; you can redistribute it and/or
133
- modify it under the terms below.
134
-
135
- Permission is hereby granted, free of charge, to any person obtaining
136
- a copy of this software and associated documentation files (the
137
- "Software"), to deal in the Software without restriction, including
138
- without limitation the rights to use, copy, modify, merge, publish,
139
- distribute, sublicense, and/or sell copies of the Software, and to
140
- permit persons to whom the Software is furnished to do so, subject to
141
- the following conditions: The above copyright notice and this
142
- permission notice must be included in all copies or substantial
143
- portions of the Software.
144
-
145
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
146
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
147
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
148
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
149
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
150
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
151
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,47 +0,0 @@
1
- == 2.0.1 ==
2
-
3
- * Fixed bug that prevented @fileOverview tag from being recognized.
4
- * Added support for @fieldOf as a synonym for @field plus @memberOf.
5
- * Added support for @name tag in a @fileOverview comment to control the displayed name of the file.
6
- * Added support for multiple @example tags. ( issue #152 )
7
- * Modified style sheet of jsdoc template to make more readable. ( issue #151 )
8
- * Fixed bug that prevented @since documentation from displaying correctly when it appeared in a class. ( issue #150 )
9
- * Fixed bug that caused inhertited properties to sometimes not resolve correctly. ( issue #144 )
10
- * Modified so that trailing whitespace in @example is always trimmed. ( issue #153 )
11
- * Added support for elseif to JsPlate. (hat tip to fredck)
12
- * Added support for @location urls in the @overview comment to the jsdoc template.
13
-
14
- == Changes From Versions 1.4.0 to 2.0.0 ==
15
-
16
- * Upgraded included version of Rhino from 1.6 to 1.7R1.
17
- * Removed circular references in parsed documentation objects.
18
- * Improved inheritance handling, now properties and events can be inherited same as methods.
19
- * Improved handling of cross-file relationships, now having two related objects in separate files is not a problem.
20
- * Improved ability to recognize membership of previously defined objects.
21
- * Added ability to redefine parsing behavior with plugins.
22
- * @methodOf is a synonym for @function and @memberOf.
23
- * Added @default to document default values of members that are objects.
24
- * Added ability to parse and refer to inner functions.
25
- * Fixed bug that appeared when calling a method to set properties of the instance referred to by "this".
26
- * Added ability to automatically create links to other symbols.
27
- * New "jsdoc" template now produces fully W3C valid XHTML.
28
- * Inline parameter type hint comments are now documented.
29
- * Fixed error: Locally scoped variables (declared with var) no longer appear as global.
30
- * It is now possible to run JsDoc Toolkit from any directory.
31
- * Added support for inline {@link ...} tags.
32
- * Added support for the -H command-line option to allow for custom content handlers.
33
- * Tag names @inherits and @scope changed to @borrows and @lends.
34
- ? Combining @constructor in a doclet with @lends now supported.
35
- * Multiple @lend tags now supported.
36
- * Added support for the @constructs tag, used inside a @lends block.
37
- * Added support for the @constant tag.
38
- * Fixed bug that prevented the use of [] as a default value.
39
- * Added support for the @field tag.
40
- * Added support for the @public tag (applied to inner functions).
41
- * @namespace tag can now be applied to functions, not just object literals.
42
- * Added support for the -s command line option to suppress source code output.
43
- * Added new unit test framework.
44
- * Underscored symbols are now treated as if they have a @private tag by default.
45
- * Improved support for anonymous constructors.
46
- * Added support for the nocode meta tag.
47
-