sproutcore 0.9.21 → 0.9.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- SproutCore::CSSPacker.new.compress(lines.join)
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 (lines * '')
179
+ comments.push(lines * '')
173
180
  lines = comments
174
181
  end
175
182
 
@@ -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 { |lang| build_language(lang, platform) }
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
@@ -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
@@ -2,7 +2,7 @@ module SproutCore #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- TINY = 21
5
+ TINY = 22
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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.21
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-08 00:00:00 -08:00
12
+ date: 2009-01-12 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency