sass-rails 5.0.5 → 5.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sass/rails/railtie.rb +16 -2
- data/lib/sass/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1d34629de675da617d727e6b8502a012ca5f46b
|
4
|
+
data.tar.gz: de6e6167a78b09dc019051dddfdb6fffa19609df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 325f1a37f0bb71780d1d648a017a801a3d3dba8aefc3d2f4b3d42ef806f1ec91498579394e2e1af9b57b0fd57ca0fee29a0ee89717626937b52f2a703575ffe6
|
7
|
+
data.tar.gz: eca92024b783f9214a6a57576723dec07acf3d071a95cf402f00190b46c416b9b385a37e85f4e30f74c9ca0a1bf79b53f0b2ab1b721855e762b4df735fce8b05
|
data/lib/sass/rails/railtie.rb
CHANGED
@@ -54,8 +54,22 @@ module Sass::Rails
|
|
54
54
|
end
|
55
55
|
|
56
56
|
config.assets.configure do |env|
|
57
|
-
env.register_engine
|
58
|
-
|
57
|
+
if env.respond_to?(:register_engine)
|
58
|
+
args = ['.sass', Sass::Rails::SassTemplate]
|
59
|
+
args << { silence_deprecation: true } if env.method(:register_engine).arity.abs > 2
|
60
|
+
env.register_engine(*args)
|
61
|
+
|
62
|
+
args = ['.scss', Sass::Rails::ScssTemplate]
|
63
|
+
args << { silence_deprecation: true } if env.method(:register_engine).arity.abs > 2
|
64
|
+
env.register_engine(*args)
|
65
|
+
end
|
66
|
+
|
67
|
+
if env.respond_to?(:register_transformer)
|
68
|
+
env.register_transformer 'text/sass', 'text/css',
|
69
|
+
Sprockets::SassProcessor.new(importer: SassImporter, sass_config: app.config.sass)
|
70
|
+
env.register_transformer 'text/scss', 'text/css',
|
71
|
+
Sprockets::ScssProcessor.new(importer: SassImporter, sass_config: app.config.sass)
|
72
|
+
end
|
59
73
|
|
60
74
|
env.context_class.class_eval do
|
61
75
|
class_attribute :sass_config
|
data/lib/sass/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wycats
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-07-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project:
|
168
|
-
rubygems_version: 2.
|
168
|
+
rubygems_version: 2.5.1
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: Sass adapter for the Rails asset pipeline.
|