nutils 0.11.1 → 0.11.2
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/lib/nutils.rb +1 -1
- data/lib/nutils/filters/sprockets.rb +2 -2
- data/lib/nutils/filters/yuicompressor.rb +4 -2
- metadata +5 -5
data/lib/nutils.rb
CHANGED
|
@@ -2,7 +2,7 @@ module Nutils
|
|
|
2
2
|
module Filters
|
|
3
3
|
# @author Arnau Siches
|
|
4
4
|
#
|
|
5
|
-
# @version 2.0.
|
|
5
|
+
# @version 2.0.2
|
|
6
6
|
#
|
|
7
7
|
# @note Requires «sprockets»
|
|
8
8
|
class SprocketWheel < Nanoc3::Filter
|
|
@@ -43,7 +43,7 @@ module Nutils
|
|
|
43
43
|
main_asset = env.find_asset(tmp_filename.realpath)
|
|
44
44
|
|
|
45
45
|
# Select just the possible items that can be dependencies
|
|
46
|
-
possible_items = @items.select do |i|
|
|
46
|
+
possible_items = @items.reject { |i| i[:content_filename].nil? }.select do |i|
|
|
47
47
|
load_path.find { |p| Pathname.new(p).realpath.to_s == Pathname.new(i[:content_filename]).dirname.realpath.to_s }
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -3,7 +3,7 @@ module Nutils
|
|
|
3
3
|
|
|
4
4
|
# @author Arnau Siches
|
|
5
5
|
#
|
|
6
|
-
# @version 1.2.
|
|
6
|
+
# @version 1.2.1
|
|
7
7
|
#
|
|
8
8
|
# @note Requires «yui-compressor»
|
|
9
9
|
class YuiCompressor < Nanoc3::Filter
|
|
@@ -24,7 +24,9 @@ module Nutils
|
|
|
24
24
|
require "yui/compressor"
|
|
25
25
|
if (params[:type] == :css)
|
|
26
26
|
compressor = ::YUI::CssCompressor.new
|
|
27
|
-
|
|
27
|
+
else
|
|
28
|
+
puts "Remember to add a params[:type] to your filter declaration to ensure straight compatibility with YUICompressor" unless params.has_key?(:type)
|
|
29
|
+
# elsif (params[:type] == :js)
|
|
28
30
|
# It fallbacks to `:type => :js` because backwards compatibility w/
|
|
29
31
|
# prior versions of the filter.
|
|
30
32
|
compressor = ::YUI::JavaScriptCompressor.new
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nutils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 55
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 11
|
|
9
|
-
-
|
|
10
|
-
version: 0.11.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.11.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Arnau Siches
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-10-
|
|
18
|
+
date: 2011-10-05 00:00:00 -04:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
93
93
|
requirements: []
|
|
94
94
|
|
|
95
95
|
rubyforge_project:
|
|
96
|
-
rubygems_version: 1.3.9.
|
|
96
|
+
rubygems_version: 1.3.9.3
|
|
97
97
|
signing_key:
|
|
98
98
|
specification_version: 3
|
|
99
99
|
summary: A set of utilities for Nanoc3.
|