sproutcore 0.9.21 → 0.9.22
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.
@@ -57,7 +57,14 @@ module SproutCore
|
|
57
57
|
# the data (such as minifcation and comment stripping)
|
58
58
|
def join(lines)
|
59
59
|
if bundle.minify?
|
60
|
-
|
60
|
+
options = {
|
61
|
+
:preserveComments => false,
|
62
|
+
:preserveNewlines => false,
|
63
|
+
:preserveSpaces => true,
|
64
|
+
:preserveColors => false,
|
65
|
+
:skipMisc => false
|
66
|
+
}
|
67
|
+
SproutCore::CSSPacker.new.compress(lines.join, options)
|
61
68
|
else
|
62
69
|
lines.join
|
63
70
|
end
|
@@ -169,7 +176,7 @@ module SproutCore
|
|
169
176
|
end
|
170
177
|
# now minify and prepend any static
|
171
178
|
comments.push "\n" unless comments.empty?
|
172
|
-
comments.push
|
179
|
+
comments.push(lines * '')
|
173
180
|
lines = comments
|
174
181
|
end
|
175
182
|
|
data/lib/sproutcore/bundle.rb
CHANGED
@@ -560,7 +560,16 @@ module SproutCore
|
|
560
560
|
SC.logger.debug("~ Source Root: #{source_root}")
|
561
561
|
SC.logger.debug("~ Build Root: #{build_root}")
|
562
562
|
|
563
|
-
languages.uniq.each
|
563
|
+
languages.uniq.each do |lang|
|
564
|
+
build_language(lang, platform)
|
565
|
+
|
566
|
+
# Copy the index.html file up one level as well...
|
567
|
+
if index_entry = entry_for('index.html', :language => lang)
|
568
|
+
dir = File.dirname File.dirname(index_entry.build_path) # lang dir
|
569
|
+
FileUtils.mkdir_p(dir)
|
570
|
+
FileUtils.cp_r(index_entry.build_path, File.join(dir,'index.html'))
|
571
|
+
end
|
572
|
+
end
|
564
573
|
|
565
574
|
# After build is complete, try to copy the index.html file of the
|
566
575
|
# preferred language to the build_root
|
data/lib/sproutcore/library.rb
CHANGED
@@ -376,7 +376,7 @@ module SproutCore
|
|
376
376
|
def initialize(rp, opts = {}, next_lib = nil)
|
377
377
|
@root_path = rp
|
378
378
|
@next_library = next_lib
|
379
|
-
@load_opts = opts
|
379
|
+
@load_opts = opts.dup
|
380
380
|
@proxies = {}
|
381
381
|
load_environment!(opts)
|
382
382
|
end
|
@@ -401,7 +401,7 @@ module SproutCore
|
|
401
401
|
env[:build_number] = build_number
|
402
402
|
end
|
403
403
|
end
|
404
|
-
|
404
|
+
|
405
405
|
(@environment[:all] ||= {}).merge!(@load_opts)
|
406
406
|
|
407
407
|
end
|
data/lib/sproutcore/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sproutcore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Jolley, Erich Ocean
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-01-
|
12
|
+
date: 2009-01-12 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|