sprockets 2.1.0.beta → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprockets might be problematic. Click here for more details.
- data/README.md +30 -2
- data/lib/sprockets/directive_processor.rb +3 -2
- data/lib/sprockets/version.rb +1 -1
- metadata +8 -11
data/README.md
CHANGED
@@ -110,7 +110,7 @@ way to do this is with the `map` method in `config.ru`:
|
|
110
110
|
environment.append_path 'app/assets/stylesheets'
|
111
111
|
run environment
|
112
112
|
end
|
113
|
-
|
113
|
+
|
114
114
|
map '/' do
|
115
115
|
run YourRackApp
|
116
116
|
end
|
@@ -336,7 +336,9 @@ 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
|
-
#
|
339
|
+
# Development #
|
340
|
+
|
341
|
+
## Contributing ##
|
340
342
|
|
341
343
|
The Sprockets source code is [hosted on
|
342
344
|
GitHub](https://github.com/sstephenson/sprockets). You can check out a
|
@@ -350,6 +352,32 @@ tracker](https://github.com/sstephenson/sprockets/issues). Or, clone
|
|
350
352
|
the Sprockets repository, write a failing test case, fix the bug and
|
351
353
|
submit a pull request.
|
352
354
|
|
355
|
+
## Version History ##
|
356
|
+
|
357
|
+
**2.1.0** (November 11, 2011)
|
358
|
+
|
359
|
+
* Preserve directive whitespace.
|
360
|
+
* Performance and caching bug fixes.
|
361
|
+
|
362
|
+
**2.0.3** (October 17, 2011)
|
363
|
+
|
364
|
+
* Detect format extensions from right to left.
|
365
|
+
* Make JST namespace configurable.
|
366
|
+
|
367
|
+
**2.0.2** (October 4, 2011)
|
368
|
+
|
369
|
+
* Fixed loading stale cache from bundler gems.
|
370
|
+
|
371
|
+
**2.0.1** (September 30, 2011)
|
372
|
+
|
373
|
+
* Fixed bug with fingerprinting file names with multiple dots.
|
374
|
+
* Decode URIs as default internal.
|
375
|
+
* Fix symlinked asset directories.
|
376
|
+
|
377
|
+
**2.0.0** (August 29, 2011)
|
378
|
+
|
379
|
+
* Initial public release.
|
380
|
+
|
353
381
|
# License #
|
354
382
|
|
355
383
|
Copyright © 2011 Sam Stephenson <<sstephenson@gmail.com>>
|
@@ -103,9 +103,10 @@ module Sprockets
|
|
103
103
|
# Returns the header String with any directives stripped.
|
104
104
|
def processed_header
|
105
105
|
lineno = 0
|
106
|
-
@processed_header ||= header.lines.
|
106
|
+
@processed_header ||= header.lines.map { |line|
|
107
107
|
lineno += 1
|
108
|
-
|
108
|
+
# Replace directive line with a clean break
|
109
|
+
directives.assoc(lineno) ? "\n" : line
|
109
110
|
}.join.chomp
|
110
111
|
end
|
111
112
|
|
data/lib/sprockets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 11
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
9
|
- 0
|
10
|
-
|
11
|
-
version: 2.1.0.beta
|
10
|
+
version: 2.1.0
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Sam Stephenson
|
@@ -17,7 +16,7 @@ autorequire:
|
|
17
16
|
bindir: bin
|
18
17
|
cert_chain: []
|
19
18
|
|
20
|
-
date: 2011-11-
|
19
|
+
date: 2011-11-11 00:00:00 -06:00
|
21
20
|
default_executable:
|
22
21
|
dependencies:
|
23
22
|
- !ruby/object:Gem::Dependency
|
@@ -236,14 +235,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
236
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
236
|
none: false
|
238
237
|
requirements:
|
239
|
-
- - "
|
238
|
+
- - ">="
|
240
239
|
- !ruby/object:Gem::Version
|
241
|
-
hash:
|
240
|
+
hash: 3
|
242
241
|
segments:
|
243
|
-
-
|
244
|
-
|
245
|
-
- 1
|
246
|
-
version: 1.3.1
|
242
|
+
- 0
|
243
|
+
version: "0"
|
247
244
|
requirements: []
|
248
245
|
|
249
246
|
rubyforge_project: sprockets
|