nanoc-sprockets-filter 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +14 -0
- data/README.md +5 -5
- data/lib/nanoc/filters/sprockets.rb +1 -1
- data/lib/nanoc/helpers/sprockets.rb +0 -30
- metadata +5 -9
data/CHANGELOG.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
## 0.1.0 - 23 April 2013
|
2
|
+
|
3
|
+
### Improvements
|
4
|
+
|
5
|
+
- [#1][] Removed unused method missing to increase performences. ([@francois2metz][])
|
6
|
+
|
7
|
+
### Bug fixes
|
8
|
+
|
9
|
+
- [#2][] Fixing up the readme's language and some errors in the code samples. ([@crazysim][])
|
10
|
+
|
11
|
+
[#1]: https://github.com/yannlugrin/nanoc-sprockets-filter/issues/1
|
12
|
+
[#2]: https://github.com/yannlugrin/nanoc-sprockets-filter/issues/2
|
13
|
+
[@francois2metz]: https://github.com/francois2metz
|
14
|
+
[@crazysim]: https://github.com/crazysim
|
data/README.md
CHANGED
@@ -18,9 +18,9 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
We
|
22
|
-
gems for
|
23
|
-
javascripts. All
|
21
|
+
We recommend installing the [sprockets-sass][sprockets-sass] and [sprockets-helpers][sprockets-helpers]
|
22
|
+
gems for better integration. Also, use the [uglifier][uglifier] gem to minify
|
23
|
+
javascripts. All these dependencies are optional and you can use any other
|
24
24
|
compressor supported by Sprockets.
|
25
25
|
|
26
26
|
Require dependencies and configure Sprockets helpers to generate assets
|
@@ -46,7 +46,7 @@ supported by Sprockets.
|
|
46
46
|
```ruby
|
47
47
|
compile %r{/assets/(stylesheets|javascripts)/.+/} do
|
48
48
|
filter :sprockets, {
|
49
|
-
:css_compressor => :scss
|
49
|
+
:css_compressor => :scss,
|
50
50
|
:js_compressor => :uglifier
|
51
51
|
}
|
52
52
|
end
|
@@ -58,7 +58,7 @@ gzipped version of stylesheets and javascripts files.
|
|
58
58
|
```ruby
|
59
59
|
compile %r{/assets/(stylesheets|javascripts)/.+/}, :rep => :gzip do
|
60
60
|
filter :sprockets, {
|
61
|
-
:css_compressor => :scss
|
61
|
+
:css_compressor => :scss,
|
62
62
|
:js_compressor => :uglifier
|
63
63
|
}
|
64
64
|
filter :gzip
|
@@ -34,36 +34,6 @@ module Nanoc
|
|
34
34
|
base.send :include, ::Sprockets::Helpers
|
35
35
|
base.send :include, ModuleMethods
|
36
36
|
end
|
37
|
-
|
38
|
-
def self.method_missing(method, *args)
|
39
|
-
if ::Sprockets::Helpers.respond_to?(method)
|
40
|
-
if block_given?
|
41
|
-
::Sprockets::Helpers.send(method, *args) do |*block_args|
|
42
|
-
yield *block_args
|
43
|
-
end
|
44
|
-
else
|
45
|
-
::Sprockets::Helpers.send(method, *args)
|
46
|
-
end
|
47
|
-
else
|
48
|
-
super
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
def method_missing(method, *args)
|
53
|
-
if ::Sprockets::Helpers.respond_to?(method)
|
54
|
-
if block_given?
|
55
|
-
::Sprockets::Helpers.send(method, *args) do |*block_args|
|
56
|
-
yield *block_args
|
57
|
-
end
|
58
|
-
else
|
59
|
-
::Sprockets::Helpers.send(method, *args)
|
60
|
-
end
|
61
|
-
else
|
62
|
-
super
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
37
|
end
|
67
38
|
end
|
68
39
|
end
|
69
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanoc-sprockets-filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
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:
|
12
|
+
date: 2013-04-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nanoc
|
@@ -84,6 +84,7 @@ extensions: []
|
|
84
84
|
extra_rdoc_files: []
|
85
85
|
files:
|
86
86
|
- .gitignore
|
87
|
+
- CHANGELOG.md
|
87
88
|
- Gemfile
|
88
89
|
- LICENSE
|
89
90
|
- README.md
|
@@ -104,23 +105,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
105
|
- - ! '>='
|
105
106
|
- !ruby/object:Gem::Version
|
106
107
|
version: '0'
|
107
|
-
segments:
|
108
|
-
- 0
|
109
|
-
hash: -1833548163494978094
|
110
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
109
|
none: false
|
112
110
|
requirements:
|
113
111
|
- - ! '>='
|
114
112
|
- !ruby/object:Gem::Version
|
115
113
|
version: '0'
|
116
|
-
segments:
|
117
|
-
- 0
|
118
|
-
hash: -1833548163494978094
|
119
114
|
requirements: []
|
120
115
|
rubyforge_project:
|
121
|
-
rubygems_version: 1.8.
|
116
|
+
rubygems_version: 1.8.25
|
122
117
|
signing_key:
|
123
118
|
specification_version: 3
|
124
119
|
summary: A nanoc filter to use Sprockets, a Ruby library for compiling and serving
|
125
120
|
web assets.
|
126
121
|
test_files: []
|
122
|
+
has_rdoc:
|