sprockets 2.3.1 → 2.3.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.
Potentially problematic release.
This version of sprockets might be problematic. Click here for more details.
- data/README.md +11 -0
- data/lib/sprockets/context.rb +1 -1
- data/lib/sprockets/directive_processor.rb +1 -1
- data/lib/sprockets/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -336,6 +336,13 @@ source file before any subsequent `require` or `include` directives.
|
|
336
336
|
including it in the bundle. This is useful when you need to expire an
|
337
337
|
asset's cache in response to a change in another file.
|
338
338
|
|
339
|
+
### The `stub` Directive ###
|
340
|
+
|
341
|
+
`stub` *path* allows dependency to be excluded from the asset bundle.
|
342
|
+
The *path* must be a valid asset and may or may not already be part
|
343
|
+
of the bundle. Once stubbed, it is blacklisted and can't be brought
|
344
|
+
back by any other `require`.
|
345
|
+
|
339
346
|
# Development #
|
340
347
|
|
341
348
|
## Contributing ##
|
@@ -354,6 +361,10 @@ submit a pull request.
|
|
354
361
|
|
355
362
|
## Version History ##
|
356
363
|
|
364
|
+
**2.3.2** (March 26, 2012)
|
365
|
+
|
366
|
+
* Fix Context#logical_path with dots
|
367
|
+
|
357
368
|
**2.3.1** (February 11, 2012)
|
358
369
|
|
359
370
|
* Added bytesize to manifest
|
data/lib/sprockets/context.rb
CHANGED
@@ -126,7 +126,7 @@ module Sprockets
|
|
126
126
|
@directives ||= header.lines.each_with_index.map { |line, index|
|
127
127
|
if directive = line[DIRECTIVE_PATTERN, 1]
|
128
128
|
name, *args = Shellwords.shellwords(directive)
|
129
|
-
if respond_to?("process_#{name}_directive")
|
129
|
+
if respond_to?("process_#{name}_directive", true)
|
130
130
|
[index + 1, name, *args]
|
131
131
|
end
|
132
132
|
end
|
data/lib/sprockets/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 2.3.
|
9
|
+
- 2
|
10
|
+
version: 2.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sam Stephenson
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-
|
19
|
+
date: 2012-03-26 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|