sprockets 2.3.1 → 2.3.2

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 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
@@ -53,7 +53,7 @@ module Sprockets
53
53
  # # => 'application'
54
54
  #
55
55
  def logical_path
56
- @logical_path[/^([^.]+)/, 0]
56
+ @logical_path.chomp(File.extname(@logical_path))
57
57
  end
58
58
 
59
59
  # Returns content type of file
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Sprockets
2
- VERSION = "2.3.1"
2
+ VERSION = "2.3.2"
3
3
  end
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: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 3
9
- - 1
10
- version: 2.3.1
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-02-11 00:00:00 -06:00
19
+ date: 2012-03-26 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency