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.
- data/Rakefile +190 -29
- data/VERSION.yml +5 -0
- data/lib/sproutcore/tools/build.rb +1 -1
- data/lib/sproutcore.rb +9 -1
- metadata +6 -60
- data/gen/app/templates/apps/{target_name}/core.js +0 -27
- data/gen/app/templates/apps/{target_name}/english.lproj/loading.rhtml +0 -9
- data/gen/app/templates/apps/{target_name}/english.lproj/main_page.js +0 -22
- data/gen/app/templates/apps/{target_name}/english.lproj/strings.js +0 -15
- data/gen/app/templates/apps/{target_name}/main.js +0 -30
- data/gen/controller/templates/controllers/{filename}.js +0 -18
- data/gen/controller/templates/tests/controllers/{filename}.js +0 -15
- data/gen/framework/templates/frameworks/{target_name}/core.js +0 -21
- data/gen/framework/templates/frameworks/{target_name}/english.lproj/strings.js +0 -15
- data/gen/language/templates/{filename}/strings.js +0 -14
- data/gen/model/templates/fixtures/{filename}.js +0 -35
- data/gen/model/templates/models/{filename}.js +0 -19
- data/gen/model/templates/tests/models/{filename}.js +0 -15
- data/gen/project/templates/{filename}/Buildfile +0 -7
- data/gen/project/templates/{filename}/README +0 -7
- data/gen/test/templates/tests/{filename}.js +0 -15
- data/gen/theme/templates/themes/{target_name}/english.lproj/strings.js +0 -15
- data/gen/view/templates/tests/views/{filename}.js +0 -15
- data/gen/view/templates/views/{filename}.js +0 -18
- data/spec/buildtasks/manifest/localize_spec.rb +0 -97
- data/spec/buildtasks/manifest/prepare_build_tasks/combine_spec.rb +0 -246
- data/spec/buildtasks/manifest/prepare_build_tasks/css_spec.rb +0 -87
- data/spec/buildtasks/manifest/prepare_build_tasks/html_spec.rb +0 -175
- data/spec/buildtasks/manifest/prepare_build_tasks/javascript_spec.rb +0 -65
- data/spec/buildtasks/manifest/prepare_build_tasks/minify_spec.rb +0 -70
- data/spec/buildtasks/manifest/prepare_build_tasks/packed_spec.rb +0 -152
- data/spec/buildtasks/manifest/prepare_build_tasks/sass_spec.rb +0 -98
- data/spec/buildtasks/manifest/prepare_build_tasks/strings_spec.rb +0 -64
- data/spec/buildtasks/manifest/prepare_build_tasks/tests_spec.rb +0 -163
- data/spec/buildtasks/manifest/prepare_spec.rb +0 -43
- data/spec/fixtures/entry_for_project/apps/test_app/entry.txt +0 -0
- data/vendor/jsdoc/README.txt +0 -151
- data/vendor/jsdoc/changes.txt +0 -47
data/Rakefile
CHANGED
@@ -5,50 +5,211 @@
|
|
5
5
|
# and contributors
|
6
6
|
# ===========================================================================
|
7
7
|
|
8
|
-
#
|
9
|
-
|
8
|
+
# Rakefile used to build the SproutCore Gem. Requires Jeweler to function.
|
9
|
+
|
10
|
+
ROOT_PATH = File.dirname(__FILE__)
|
11
|
+
|
12
|
+
# files to ignore changes in
|
13
|
+
IGNORE_CHANGES = %w[.gitignore .gitmodules .DS_Store .gemspec VERSION.yml ^pkg ^tmp ^coverage]
|
10
14
|
|
11
15
|
################################################
|
12
|
-
## LOAD
|
16
|
+
## LOAD DEPENDENCIES
|
13
17
|
##
|
14
18
|
begin
|
15
|
-
require '
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
19
|
+
require 'jeweler'
|
20
|
+
require 'extlib'
|
21
|
+
|
22
|
+
$:.unshift(ROOT_PATH / 'lib')
|
23
|
+
require 'sproutcore'
|
24
|
+
|
25
|
+
rescue LoadError => e
|
26
|
+
$stderr.puts "WARN: some required gems are not installed (try rake init to setup)"
|
20
27
|
end
|
21
28
|
|
22
|
-
ensure_in_path 'lib'
|
23
|
-
require 'sproutcore'
|
24
29
|
|
25
30
|
################################################
|
26
|
-
##
|
31
|
+
## PROJECT DESCRIPTION
|
27
32
|
##
|
28
33
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
34
|
+
Jeweler::Tasks.new do |gemspec|
|
35
|
+
gemspec.name = 'sproutcore'
|
36
|
+
gemspec.authors = 'Sprout Systems, Inc. Apple, Inc. and contributors'
|
37
|
+
gemspec.email = 'contact@sproutcore.com'
|
38
|
+
gemspec.homepage = 'http://www.sproutcore.com/sproutcore'
|
39
|
+
gemspec.summary = "SproutCore is a platform for building native look-and-feel applications on the web"
|
40
|
+
|
41
|
+
gemspec.add_dependency 'rack', '>= 0.9.1'
|
42
|
+
gemspec.add_dependency 'json_pure', ">= 1.1.0"
|
43
|
+
gemspec.add_dependency 'extlib', ">= 0.9.9"
|
44
|
+
gemspec.add_dependency 'erubis', ">= 2.6.2"
|
45
|
+
gemspec.add_development_dependency 'jeweler', ">= 1.0.1"
|
46
|
+
gemspec.rubyforge_project = "sproutcore"
|
47
|
+
gemspec.files.include *%w[**/.* lib/thor/**/* frameworks/sproutcore/**/*]
|
48
|
+
gemspec.files.exclude *%w[^coverage/ .gitignore .gitmodules .DS_Store tmp .hashinfo .svn .git]
|
49
|
+
|
50
|
+
gemspec.extra_rdoc_files.include *%w[History.txt README.txt]
|
51
|
+
|
52
|
+
gemspec.description = File.read(ROOT_PATH / 'README.txt')
|
53
|
+
end
|
33
54
|
|
34
55
|
################################################
|
35
|
-
##
|
56
|
+
## CORE TASKS
|
36
57
|
##
|
58
|
+
|
59
|
+
desc "performs an initial setup on the tools. Installs gems, init submodules"
|
60
|
+
task :init do
|
61
|
+
$stdout.puts "Installing gems (may ask for password)"
|
62
|
+
`sudo gem install rack jeweler json_pure extlib erubis`
|
63
|
+
|
64
|
+
$stdout.puts "Setup submodules"
|
65
|
+
`git submodule update --init`
|
66
|
+
end
|
67
|
+
|
68
|
+
desc "computes the current hash of the code. used to autodetect build changes"
|
69
|
+
task :hash_content do
|
70
|
+
|
71
|
+
require 'yaml'
|
72
|
+
require 'digest/md5'
|
73
|
+
|
74
|
+
ignore = IGNORE_CHANGES.map do |x|
|
75
|
+
if x =~ /^\^/
|
76
|
+
/^#{Regexp.escape(ROOT_PATH / x[1..-1])}/
|
77
|
+
else
|
78
|
+
/#{Regexp.escape(x)}/
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# First, get the hashinfo if it exists. use this to decide if we need to
|
83
|
+
# rehash
|
84
|
+
hashinfo_path = ROOT_PATH / '.hashinfo.yml'
|
85
|
+
hash_date = 0
|
86
|
+
hash_digest = nil
|
87
|
+
|
88
|
+
if File.exist?(hashinfo_path)
|
89
|
+
yaml = YAML.load_file(hashinfo_path)
|
90
|
+
hash_date = yaml['date'] || yaml[:date] || hash_date
|
91
|
+
hash_digest = yaml['digest'] || yaml[:digest] || hash_digest
|
92
|
+
end
|
93
|
+
|
94
|
+
# paths to search
|
95
|
+
paths = Dir.glob(File.join(ROOT_PATH, '**', '*')).reject do |path|
|
96
|
+
File.directory?(path) || (ignore.find { |i| path =~ i })
|
97
|
+
end
|
98
|
+
|
99
|
+
cur_date = 0
|
100
|
+
paths.each do |path|
|
101
|
+
mtime = File.mtime(path)
|
102
|
+
mtime = mtime.nil? ? 0 : mtime.to_i
|
103
|
+
puts "detected file change: #{path.gsub(ROOT_PATH,'')}" if mtime > hash_date
|
104
|
+
cur_date = mtime if mtime > cur_date
|
105
|
+
end
|
106
|
+
|
107
|
+
if hash_digest.nil? || (cur_date != hash_date)
|
108
|
+
digests = paths.map do |path|
|
109
|
+
Digest::SHA1.hexdigest(File.read(path))
|
110
|
+
end
|
111
|
+
digests.compact!
|
112
|
+
hash_digest = Digest::SHA1.hexdigest(digests.join)
|
113
|
+
end
|
114
|
+
hash_date = cur_date
|
115
|
+
|
116
|
+
# write cache
|
117
|
+
File.open(hashinfo_path, 'w+') do |f|
|
118
|
+
YAML.dump({ :date => hash_date, :digest => hash_digest }, f)
|
119
|
+
end
|
37
120
|
|
38
|
-
|
121
|
+
# finally set the hash
|
122
|
+
CONTENT_HASH = hash_digest
|
123
|
+
puts "CONTENT_HASH = #{CONTENT_HASH}"
|
124
|
+
end
|
125
|
+
|
126
|
+
desc "updates the VERSION file, bumbing the build rev if the current commit has changed"
|
127
|
+
task :update_version => 'hash_content' do
|
39
128
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
129
|
+
path = ROOT_PATH / 'VERSION.yml'
|
130
|
+
|
131
|
+
require 'yaml'
|
132
|
+
|
133
|
+
# first, load the current yaml if possible
|
134
|
+
major = 1
|
135
|
+
minor = 0
|
136
|
+
build = 99
|
137
|
+
rev = '-0-'
|
138
|
+
|
139
|
+
if File.exist?(path)
|
140
|
+
yaml = YAML.load_file(path)
|
141
|
+
major = yaml['major'] || yaml[:major] || major
|
142
|
+
minor = yaml['minor'] || yaml[:minor] || minor
|
143
|
+
build = yaml['patch'] || yaml[:patch] || build
|
144
|
+
rev = yaml['digest'] || yaml[:digest] || rev
|
145
|
+
end
|
146
|
+
|
147
|
+
build += 1 if rev != CONTENT_HASH #increment if needed
|
148
|
+
rev = CONTENT_HASH
|
149
|
+
|
150
|
+
puts "write version #{[major, minor, build].join('.')} => #{path}"
|
151
|
+
File.open(path, 'w+') do |f|
|
152
|
+
YAML.dump({
|
153
|
+
:major => major, :minor => minor, :patch => build, :digest => rev
|
154
|
+
}, f)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
def fixup_gemspec
|
159
|
+
from_path = ROOT_PATH / 'sproutcore.gemspec'
|
160
|
+
to_path = ROOT_PATH / 'sproutcore-abbot.gemspec'
|
161
|
+
|
162
|
+
if File.exists?(from_path)
|
163
|
+
FileUtils.rm(to_path) if File.exists?(to_path)
|
164
|
+
FileUtils.cp(from_path, to_path)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
# Extend install to cleanup the generate and cleanup the gemspec afterwards
|
169
|
+
task :build => 'gemspec:generate' do
|
170
|
+
fixup_gemspec
|
171
|
+
end
|
49
172
|
|
50
|
-
#
|
51
|
-
|
52
|
-
PROJ.version += ".#{Time.now.strftime("%Y%m%d%H%M%S")}" if !ENV['VERSION']
|
173
|
+
# Extend gemspec to rename afterware
|
174
|
+
task :gemspec do
|
53
175
|
|
176
|
+
fixup_gemspec
|
177
|
+
end
|
178
|
+
|
179
|
+
desc "cleanup the pkg dir"
|
180
|
+
task :clean do
|
181
|
+
path = ROOT_PATH / 'pkg'
|
182
|
+
FileUtils.rm_r(path) if File.directory?(path)
|
183
|
+
`rm #{ROOT_PATH / '*.gem'}`
|
184
|
+
end
|
185
|
+
|
186
|
+
namespace :git do
|
187
|
+
|
188
|
+
desc "verifies there are no pending changes to commit to git"
|
189
|
+
task :verify_clean do
|
190
|
+
result = `cd #{ROOT_PATH}; git status`
|
191
|
+
if !(result =~ /nothing to commit \(working directory clean\)/)
|
192
|
+
$stderr.puts "\nFATAL: Cannot complete task with changes pending."
|
193
|
+
$stderr.puts " Commit your changes to git to continue.\n\n"
|
194
|
+
exit(1)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
desc "Collects the current SHA1 commit hash into COMMIT_ID"
|
199
|
+
task :collect_commit do
|
200
|
+
log = `git log HEAD^..HEAD`
|
201
|
+
COMMIT_ID = log.split("\n").first.match(/commit ([\w]+)/).to_a[1]
|
202
|
+
if COMMIT_ID.empty?
|
203
|
+
$stderr.puts "\nFATAL: Cannot discover current commit id"
|
204
|
+
exit(1)
|
205
|
+
else
|
206
|
+
$stdout.puts "COMMIT_ID = #{COMMIT_ID}"
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
end
|
211
|
+
|
212
|
+
# Write a new version everytime we generate
|
213
|
+
task 'gemspec:generate' => :update_version
|
214
|
+
|
54
215
|
# EOF
|
data/VERSION.yml
ADDED
data/lib/sproutcore.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
require 'rubygems'
|
8
8
|
require 'logger'
|
9
9
|
require 'extlib'
|
10
|
+
require 'yaml'
|
10
11
|
|
11
12
|
$KCODE = 'u'
|
12
13
|
require 'jcode'
|
@@ -15,12 +16,18 @@ require 'jcode'
|
|
15
16
|
YES = true
|
16
17
|
NO = false
|
17
18
|
|
19
|
+
|
18
20
|
module SproutCore
|
19
21
|
|
20
22
|
# :stopdoc:
|
21
|
-
VERSION = '1.0.0'
|
22
23
|
LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
|
23
24
|
PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
|
25
|
+
|
26
|
+
VERSION_PATH = PATH / 'VERSION.yml'
|
27
|
+
VERSION_INFO = YAML.load_file(VERSION_PATH)
|
28
|
+
|
29
|
+
VERSION = [VERSION_INFO[:major], VERSION_INFO[:minor], VERSION_INFO[:patch]].join('.')
|
30
|
+
|
24
31
|
# :startdoc:
|
25
32
|
|
26
33
|
# Returns the version string for the library.
|
@@ -122,6 +129,7 @@ end # module SC
|
|
122
129
|
|
123
130
|
SC = SproutCore # alias
|
124
131
|
|
132
|
+
|
125
133
|
SC.require_all_libs_relative_to(__FILE__)
|
126
134
|
%w(buildfile models helpers deprecated builders render_engines tools rack).each do |dir|
|
127
135
|
SC.require_all_libs_relative_to(__FILE__, ['sproutcore', dir])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sproutit-sproutcore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.126
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sprout Systems, Inc. Apple, Inc. and contributors
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-22 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -53,16 +53,16 @@ dependencies:
|
|
53
53
|
version: 2.6.2
|
54
54
|
version:
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: jeweler
|
57
57
|
type: :development
|
58
58
|
version_requirement:
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
63
|
+
version: 1.0.1
|
64
64
|
version:
|
65
|
-
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 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 deliver directly from your server or using a CDN. 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 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 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."
|
65
|
+
description: "sproutcore - abbot by Charles Jolley and contributors http://www.sproutcore.com http://github.com/sproutit/sproutcore-abbot == 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 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 deliver directly from your server or using a CDN. 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 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 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. == 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, build, and deploy SproutCore-based applications. == KNOWN LIMITATIONS: * Currently does not support sites using relative-links. You must specify 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 * extlib 0.9.9 or later * rack 0.9.1 or later * erubis 2.6.2 or later * json_pure 1.1.0 or later == INSTALL: sudo gem install sproutcore == LICENSE: Copyright (c) 2009 Apple, Inc. Portions copyright (c) 2006-2009 Sprout Systems, Inc. and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
|
66
66
|
email: contact@sproutcore.com
|
67
67
|
executables:
|
68
68
|
- sc-build
|
@@ -77,37 +77,13 @@ extensions: []
|
|
77
77
|
extra_rdoc_files:
|
78
78
|
- History.txt
|
79
79
|
- README.txt
|
80
|
-
- Todo.txt
|
81
|
-
- bin/sc-build
|
82
|
-
- bin/sc-build-number
|
83
|
-
- bin/sc-gen
|
84
|
-
- bin/sc-init
|
85
|
-
- bin/sc-manifest
|
86
|
-
- bin/sc-server
|
87
|
-
- bin/sproutcore
|
88
|
-
- lib/thor/.autotest
|
89
|
-
- lib/thor/CHANGELOG.rdoc
|
90
|
-
- lib/thor/LICENSE
|
91
|
-
- lib/thor/README.markdown
|
92
|
-
- lib/thor/Rakefile
|
93
|
-
- lib/thor/Thorfile
|
94
|
-
- lib/thor/bin/rake2thor
|
95
|
-
- lib/thor/bin/thor
|
96
|
-
- lib/thor/script/destroy
|
97
|
-
- lib/thor/script/generate
|
98
|
-
- lib/thor/spec/fixtures/task.thor
|
99
|
-
- lib/thor/spec/spec.opts
|
100
|
-
- lib/thor/task.thor
|
101
|
-
- lib/thor/thor.gemspec
|
102
|
-
- spec/fixtures/entry_for_project/apps/test_app/entry.txt
|
103
|
-
- vendor/jsdoc/README.txt
|
104
|
-
- vendor/jsdoc/changes.txt
|
105
80
|
files:
|
106
81
|
- Buildfile
|
107
82
|
- History.txt
|
108
83
|
- README.txt
|
109
84
|
- Rakefile
|
110
85
|
- Todo.txt
|
86
|
+
- VERSION.yml
|
111
87
|
- bin/sc-build
|
112
88
|
- bin/sc-build-number
|
113
89
|
- bin/sc-gen
|
@@ -878,50 +854,31 @@ files:
|
|
878
854
|
- gen/app/Buildfile
|
879
855
|
- gen/app/README
|
880
856
|
- gen/app/USAGE
|
881
|
-
- gen/app/templates/apps/{target_name}/core.js
|
882
|
-
- gen/app/templates/apps/{target_name}/english.lproj/loading.rhtml
|
883
|
-
- gen/app/templates/apps/{target_name}/english.lproj/main_page.js
|
884
|
-
- gen/app/templates/apps/{target_name}/english.lproj/strings.js
|
885
|
-
- gen/app/templates/apps/{target_name}/main.js
|
886
857
|
- gen/controller/Buildfile
|
887
858
|
- gen/controller/README
|
888
859
|
- gen/controller/USAGE
|
889
|
-
- gen/controller/templates/controllers/{filename}.js
|
890
|
-
- gen/controller/templates/tests/controllers/{filename}.js
|
891
860
|
- gen/framework/Buildfile
|
892
861
|
- gen/framework/README
|
893
862
|
- gen/framework/USAGE
|
894
|
-
- gen/framework/templates/frameworks/{target_name}/core.js
|
895
|
-
- gen/framework/templates/frameworks/{target_name}/english.lproj/strings.js
|
896
863
|
- gen/language/Buildfile
|
897
864
|
- gen/language/README
|
898
865
|
- gen/language/USAGE
|
899
|
-
- gen/language/templates/{filename}/strings.js
|
900
866
|
- gen/model/Buildfile
|
901
867
|
- gen/model/README
|
902
868
|
- gen/model/USAGE
|
903
|
-
- gen/model/templates/fixtures/{filename}.js
|
904
|
-
- gen/model/templates/models/{filename}.js
|
905
|
-
- gen/model/templates/tests/models/{filename}.js
|
906
869
|
- gen/project/Buildfile
|
907
870
|
- gen/project/INIT
|
908
871
|
- gen/project/README
|
909
872
|
- gen/project/USAGE
|
910
|
-
- gen/project/templates/{filename}/Buildfile
|
911
|
-
- gen/project/templates/{filename}/README
|
912
873
|
- gen/test/Buildfile
|
913
874
|
- gen/test/README
|
914
875
|
- gen/test/USAGE
|
915
|
-
- gen/test/templates/tests/{filename}.js
|
916
876
|
- gen/theme/Buildfile
|
917
877
|
- gen/theme/README
|
918
878
|
- gen/theme/USAGE
|
919
|
-
- gen/theme/templates/themes/{target_name}/english.lproj/strings.js
|
920
879
|
- gen/view/Buildfile
|
921
880
|
- gen/view/README
|
922
881
|
- gen/view/USAGE
|
923
|
-
- gen/view/templates/tests/views/{filename}.js
|
924
|
-
- gen/view/templates/views/{filename}.js
|
925
882
|
- lib/sproutcore.rb
|
926
883
|
- lib/sproutcore/builders/base.rb
|
927
884
|
- lib/sproutcore/builders/combine.rb
|
@@ -1011,17 +968,6 @@ files:
|
|
1011
968
|
- spec/buildtasks/build/spec_helper.rb
|
1012
969
|
- spec/buildtasks/manifest/catalog_spec.rb
|
1013
970
|
- spec/buildtasks/manifest/hide_buildfiles_spec.rb
|
1014
|
-
- spec/buildtasks/manifest/localize_spec.rb
|
1015
|
-
- spec/buildtasks/manifest/prepare_build_tasks/combine_spec.rb
|
1016
|
-
- spec/buildtasks/manifest/prepare_build_tasks/css_spec.rb
|
1017
|
-
- spec/buildtasks/manifest/prepare_build_tasks/html_spec.rb
|
1018
|
-
- spec/buildtasks/manifest/prepare_build_tasks/javascript_spec.rb
|
1019
|
-
- spec/buildtasks/manifest/prepare_build_tasks/minify_spec.rb
|
1020
|
-
- spec/buildtasks/manifest/prepare_build_tasks/packed_spec.rb
|
1021
|
-
- spec/buildtasks/manifest/prepare_build_tasks/sass_spec.rb
|
1022
|
-
- spec/buildtasks/manifest/prepare_build_tasks/strings_spec.rb
|
1023
|
-
- spec/buildtasks/manifest/prepare_build_tasks/tests_spec.rb
|
1024
|
-
- spec/buildtasks/manifest/prepare_spec.rb
|
1025
971
|
has_rdoc:
|
1026
972
|
homepage:
|
1027
973
|
post_install_message:
|
@@ -1,27 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// Project: <%= namespace %>
|
3
|
-
// Copyright: ©<%= Time.now.year %> My Company, Inc.
|
4
|
-
// ==========================================================================
|
5
|
-
/*globals <%= namespace %> */
|
6
|
-
|
7
|
-
/** @namespace
|
8
|
-
|
9
|
-
My cool new app. Describe your application.
|
10
|
-
|
11
|
-
@extends SC.Object
|
12
|
-
*/
|
13
|
-
<%= namespace %> = SC.Object.create(
|
14
|
-
/** @scope <%= namespace %>.prototype */ {
|
15
|
-
|
16
|
-
NAMESPACE: '<%= namespace %>',
|
17
|
-
VERSION: '0.1.0',
|
18
|
-
|
19
|
-
// This is your application store. You will use this store to access all
|
20
|
-
// of your model data. You can also set a data source on this store to
|
21
|
-
// connect to a backend server. The default setup below connects the store
|
22
|
-
// to any fixtures you define.
|
23
|
-
store: SC.Store.create().from(SC.Record.fixtures)
|
24
|
-
|
25
|
-
// TODO: Add global constants or singleton objects needed by your app here.
|
26
|
-
|
27
|
-
}) ;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<%% content_for :loading do %>
|
2
|
-
<%% # Any HTML in this file will be visible on screen while your page loads
|
3
|
-
# its application JavaScript. SproutCore applications are optimized for
|
4
|
-
# caching and startup very fast, so your users will often only see this
|
5
|
-
# content for a brief moment on their first app load, if at all.
|
6
|
-
%>
|
7
|
-
<p class="loading">Loading...<p>
|
8
|
-
|
9
|
-
<%% end %>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// Project: <%= namespace %> - mainPage
|
3
|
-
// Copyright: ©<%= Time.now.year %> My Company, Inc.
|
4
|
-
// ==========================================================================
|
5
|
-
/*globals <%= namespace %> */
|
6
|
-
|
7
|
-
// This page describes the main user interface for your application.
|
8
|
-
<%= namespace %>.mainPage = SC.Page.design({
|
9
|
-
|
10
|
-
// The main pane is made visible on screen as soon as your app is loaded.
|
11
|
-
// Add childViews to this pane for views to display immediately on page
|
12
|
-
// load.
|
13
|
-
mainPane: SC.MainPane.design({
|
14
|
-
childViews: 'labelView'.w(),
|
15
|
-
|
16
|
-
labelView: SC.LabelView.design({
|
17
|
-
layout: { centerX: 0, centerY: 0, width: 100, height: 18 },
|
18
|
-
tagName: "h1", value: "Hello World"
|
19
|
-
})
|
20
|
-
})
|
21
|
-
|
22
|
-
});
|
@@ -1,15 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// Project: <%= namespace %> Strings
|
3
|
-
// Copyright: ©<%= Time.now.year %> My Company, Inc.
|
4
|
-
// ==========================================================================
|
5
|
-
/*globals <%= namespace %> */
|
6
|
-
|
7
|
-
// Place strings you want to localize here. In your app, use the key and
|
8
|
-
// localize it using "key string".loc(). HINT: For your key names, use the
|
9
|
-
// english string with an underscore in front. This way you can still see
|
10
|
-
// how your UI will look and you'll notice right away when something needs a
|
11
|
-
// localized string added to this file!
|
12
|
-
//
|
13
|
-
SC.stringsFor('English', {
|
14
|
-
// "_String Key": "Localized String"
|
15
|
-
}) ;
|
@@ -1,30 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// Project: <%= namespace %>
|
3
|
-
// Copyright: ©<%= Time.now.year %> My Company, Inc.
|
4
|
-
// ==========================================================================
|
5
|
-
/*globals <%= namespace %> */
|
6
|
-
|
7
|
-
// This is the function that will start your app running. The default
|
8
|
-
// implementation will load any fixtures you have created then instantiate
|
9
|
-
// your controllers and awake the elements on your page.
|
10
|
-
//
|
11
|
-
// As you develop your application you will probably want to override this.
|
12
|
-
// See comments for some pointers on what to do next.
|
13
|
-
//
|
14
|
-
<%= namespace %>.main = function main() {
|
15
|
-
|
16
|
-
// Step 1: Instantiate Your Views
|
17
|
-
// The default code here will make the mainPane for your application visible
|
18
|
-
// on screen. If you app gets any level of complexity, you will probably
|
19
|
-
// create multiple pages and panes.
|
20
|
-
<%= namespace %>.getPath('mainPage.mainPane').append() ;
|
21
|
-
|
22
|
-
// Step 2. Set the content property on your primary controller.
|
23
|
-
// This will make your app come alive!
|
24
|
-
|
25
|
-
// TODO: Set the content property on your primary controller
|
26
|
-
// ex: <%= class_name %>.contactsController.set('content',<%= class_name %>.contacts);
|
27
|
-
|
28
|
-
} ;
|
29
|
-
|
30
|
-
function main() { <%= namespace %>.main(); }
|
@@ -1,18 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// Project: <%= namespace_instance_name %>
|
3
|
-
// Copyright: ©<%= Time.now.year %> My Company, Inc.
|
4
|
-
// ==========================================================================
|
5
|
-
/*globals <%= namespace %> */
|
6
|
-
|
7
|
-
/** @class
|
8
|
-
|
9
|
-
(Document Your Controller Here)
|
10
|
-
|
11
|
-
@extends <%= base_class_name || 'SC.Object' %>
|
12
|
-
*/
|
13
|
-
<%= namespace_instance_name %> = <%= base_class_name || 'SC.Object' %>.create(
|
14
|
-
/** @scope <%= namespace_instance_name %>.prototype */ {
|
15
|
-
|
16
|
-
// TODO: Add your own code here.
|
17
|
-
|
18
|
-
}) ;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// Project: <%= namespace_instance_name %> Unit Test
|
3
|
-
// Copyright: ©<%= Time.now.year %> My Company, Inc.
|
4
|
-
// ==========================================================================
|
5
|
-
/*globals <%= namespace %> module test ok equals same stop start */
|
6
|
-
|
7
|
-
module("<%= namespace_instance_name %>");
|
8
|
-
|
9
|
-
// TODO: Replace with real unit test for <%= namespace_instance_name %>
|
10
|
-
test("test description", function() {
|
11
|
-
var expected = "test";
|
12
|
-
var result = "test";
|
13
|
-
equals(result, expected, "test should equal test");
|
14
|
-
});
|
15
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// Project: <%= namespace %>
|
3
|
-
// Copyright: ©<%= Time.now.year %> My Company, Inc.
|
4
|
-
// ==========================================================================
|
5
|
-
/*globals <%= namespace %> */
|
6
|
-
|
7
|
-
/** @namespace
|
8
|
-
|
9
|
-
My cool new framework. Describe your framework.
|
10
|
-
|
11
|
-
@extends SC.Object
|
12
|
-
*/
|
13
|
-
<%= namespace %> = SC.Object.create(
|
14
|
-
/** @scope <%= namespace %>.prototype */ {
|
15
|
-
|
16
|
-
NAMESPACE: '<%= namespace %>',
|
17
|
-
VERSION: '0.1.0',
|
18
|
-
|
19
|
-
// TODO: Add global constants or singleton objects needed by your app here.
|
20
|
-
|
21
|
-
}) ;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// Project: <%= namespace %> Strings
|
3
|
-
// Copyright: ©<%= Time.now.year %> My Company, Inc.
|
4
|
-
// ==========================================================================
|
5
|
-
/*globals <%= namespace %> */
|
6
|
-
|
7
|
-
// Place strings you want to localize here. In your app, use the key and
|
8
|
-
// localize it using "key string".loc(). HINT: For your key names, use the
|
9
|
-
// english string with an underscore in front. This way you can still see
|
10
|
-
// how your UI will look and you'll notice right away when something needs a
|
11
|
-
// localized string added to this file!
|
12
|
-
//
|
13
|
-
SC.stringsFor('English', {
|
14
|
-
// "_String Key": "Localized String"
|
15
|
-
}) ;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// Project: <%= namespace %> Strings
|
3
|
-
// Copyright: ©<%= Time.now.year %> My Company, Inc.
|
4
|
-
// ==========================================================================
|
5
|
-
|
6
|
-
// Place strings you want to localize here. In your app, use the key and
|
7
|
-
// localize it using "key string".loc(). HINT: For your key names, use the
|
8
|
-
// english string with an underscore in front. This way you can still see
|
9
|
-
// how your UI will look and you'll notice right away when something needs a
|
10
|
-
// localized string added to this file!
|
11
|
-
//
|
12
|
-
SC.stringsFor('<%= language %>', {
|
13
|
-
// "_String Key": "Localized String"
|
14
|
-
}) ;
|