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 +8 -3
- data/lib/sprockets/asset.rb +1 -1
- data/lib/sprockets/jst_processor.rb +2 -6
- data/lib/sprockets/manifest.rb +7 -1
- data/lib/sprockets/sass_compressor.rb +1 -1
- data/lib/sprockets/sass_template.rb +2 -2
- data/lib/sprockets/version.rb +1 -1
- metadata +3 -2
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
|
163
|
-
|
164
|
-
|
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
|
data/lib/sprockets/asset.rb
CHANGED
@@ -236,7 +236,7 @@ module Sprockets
|
|
236
236
|
return false
|
237
237
|
end
|
238
238
|
|
239
|
-
# Compare dependency
|
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
|
-
|
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
|
data/lib/sprockets/manifest.rb
CHANGED
@@ -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
|
data/lib/sprockets/version.rb
CHANGED
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.
|
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
|
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:
|