jammit-ebtd 0.6.7 → 0.6.8
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/jammit-ebtd.gemspec +2 -2
- data/lib/jammit-ebtd.rb +1 -1
- data/lib/jammit/compressor.rb +5 -1
- data/lib/jammit/packager.rb +1 -1
- metadata +2 -2
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-
|
|
4
|
-
s.version = '0.6.
|
|
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
data/lib/jammit/compressor.rb
CHANGED
|
@@ -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
|
-
|
|
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)
|
data/lib/jammit/packager.rb
CHANGED
|
@@ -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
|
|
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.
|
|
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-
|
|
12
|
+
date: 2012-10-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: cssmin
|