jammit-ebtd 0.6.7 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
data/jammit-ebtd.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jammit-ebtd'
3
- s.date = '2012-09-18'
4
- s.version = '0.6.7'
3
+ s.date = '2012-10-04'
4
+ s.version = '0.6.8'
5
5
 
6
6
  s.homepage = "https://github.com/m16a1/jammit-ebtd"
7
7
  s.summary = "Industrial Strength Asset Packaging for Rails"
data/lib/jammit-ebtd.rb CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path(File.dirname(__FILE__))
4
4
  # to all of the configuration options.
5
5
  module Jammit
6
6
 
7
- VERSION = "0.6.6"
7
+ VERSION = "0.6.8"
8
8
 
9
9
  ROOT = File.expand_path(File.dirname(__FILE__) + '/..')
10
10
 
@@ -96,7 +96,11 @@ module Jammit
96
96
  def compress_css(paths, variant=nil, asset_url=nil)
97
97
  @asset_contents = {}
98
98
  css = concatenate_and_tag_assets(paths, variant)
99
- css = @css_compressor.compress(css) if Jammit.compress_assets
99
+ begin
100
+ css = @css_compressor.compress(css) if Jammit.compress_assets
101
+ rescue
102
+ puts paths
103
+ end
100
104
  case variant
101
105
  when nil then return css
102
106
  when :datauri then return with_data_uris(css)
@@ -157,7 +157,7 @@ module Jammit
157
157
  config.each do |name, globs|
158
158
  globs ||= []
159
159
  packages[name] = {}
160
- paths = get_file_list(globs.flatten.uniq).uniq.sort
160
+ paths = get_file_list(globs.flatten.uniq).uniq
161
161
  packages[name][:paths] = paths
162
162
  if !paths.grep(Jammit.template_extension_matcher).empty?
163
163
  packages[name][:urls] = paths.grep(JS_EXTENSION).map {|path| path.sub(path_to_url, '') }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jammit-ebtd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-18 00:00:00.000000000 Z
12
+ date: 2012-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cssmin