sprockets 2.8.1 → 2.8.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
@@ -159,9 +159,9 @@ variables, mixins, operations and functions.
159
159
 
160
160
  If the `less` gem is available to your application, you can use LESS
161
161
  to write CSS assets in Sprockets. Note that the LESS compiler is
162
- written in JavaScript, and at the time of this writing, the `less` gem
163
- depends on `therubyracer` which embeds the V8 JavaScript runtime in
164
- Ruby.
162
+ written in JavaScript and the `less` gem (on MRI) uses `therubyracer`
163
+ which embeds the V8 JavaScript runtime in Ruby, while on JRuby you're
164
+ going to need `therubyrhino` gem installed.
165
165
 
166
166
  To write CSS assets with LESS, use the extension `.css.less`.
167
167
 
@@ -361,6 +361,11 @@ submit a pull request.
361
361
 
362
362
  ## Version History ##
363
363
 
364
+ **2.8.2** (December 10, 2012)
365
+
366
+ * Fixed top level Sass constant references
367
+ * Fixed manifest logger when environment is disabled
368
+
364
369
  **2.8.1** (October 31, 2012)
365
370
 
366
371
  * Fixed Sass importer bug
@@ -236,7 +236,7 @@ module Sprockets
236
236
  return false
237
237
  end
238
238
 
239
- # Compare dependency mime to the actual mtime. If the
239
+ # Compare dependency mtime to the actual mtime. If the
240
240
  # dependency mtime is newer than the actual mtime, the file
241
241
  # hasn't changed since we created this `Asset` instance.
242
242
  #
@@ -2,9 +2,7 @@ require 'tilt'
2
2
 
3
3
  module Sprockets
4
4
  class JstProcessor < Tilt::Template
5
- def self.default_mime_type
6
- 'application/javascript'
7
- end
5
+ self.default_mime_type = 'application/javascript'
8
6
 
9
7
  def self.default_namespace
10
8
  'this.JST'
@@ -18,9 +16,7 @@ module Sprockets
18
16
 
19
17
  def evaluate(scope, locals, &block)
20
18
  <<-JST
21
- (function() {
22
- #{namespace} || (#{namespace} = {});
23
- #{namespace}[#{scope.logical_path.inspect}] = #{indent(data)};
19
+ (function() { #{namespace} || (#{namespace} = {}); #{namespace}[#{scope.logical_path.inspect}] = #{indent(data)};
24
20
  }).call(this);
25
21
  JST
26
22
  end
@@ -240,7 +240,13 @@ module Sprockets
240
240
  end
241
241
 
242
242
  def logger
243
- environment.logger
243
+ if environment
244
+ environment.logger
245
+ else
246
+ logger = Logger.new($stderr)
247
+ logger.level = Logger::FATAL
248
+ logger
249
+ end
244
250
  end
245
251
 
246
252
  def benchmark
@@ -16,7 +16,7 @@ module Sprockets
16
16
  end
17
17
 
18
18
  def evaluate(context, locals, &block)
19
- Sass::Engine.new(data, {
19
+ ::Sass::Engine.new(data, {
20
20
  :syntax => :scss,
21
21
  :cache => false,
22
22
  :read_cache => false,
@@ -11,7 +11,7 @@ module Sprockets
11
11
 
12
12
  def self.engine_initialized?
13
13
  defined?(::Sass::Engine) && defined?(::Sass::Script::Functions) &&
14
- Sass::Script::Functions < Sprockets::SassFunctions
14
+ ::Sass::Script::Functions < Sprockets::SassFunctions
15
15
  end
16
16
 
17
17
  def initialize_engine
@@ -23,7 +23,7 @@ module Sprockets
23
23
  # Install custom functions. It'd be great if this didn't need to
24
24
  # be installed globally, but could be passed into Engine as an
25
25
  # option.
26
- Sass::Script::Functions.send :include, Sprockets::SassFunctions
26
+ ::Sass::Script::Functions.send :include, Sprockets::SassFunctions
27
27
  end
28
28
 
29
29
  def prepare
@@ -1,3 +1,3 @@
1
1
  module Sprockets
2
- VERSION = "2.8.1"
2
+ VERSION = "2.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.1
4
+ version: 2.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-31 00:00:00.000000000 Z
13
+ date: 2012-12-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hike
@@ -351,3 +351,4 @@ signing_key:
351
351
  specification_version: 3
352
352
  summary: Rack-based asset packaging system
353
353
  test_files: []
354
+ has_rdoc: