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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0895c471acd8673212a232bdb180d959a36adb19
4
- data.tar.gz: 67a91de4b5995339e8fb2dfd5a36cc1fd6eb3306
3
+ metadata.gz: c1d34629de675da617d727e6b8502a012ca5f46b
4
+ data.tar.gz: de6e6167a78b09dc019051dddfdb6fffa19609df
5
5
  SHA512:
6
- metadata.gz: f45a3e7c84c73a8efb59934fbbbbc1bea5be0ca242910cc56f14f82ff04a83f2d72b09d1fab9e4d89d21ac0d46028b135edbbb8174fe2eb917824c0b1c0123e8
7
- data.tar.gz: 1e3e692244dafc6eeb9e8bbe3de66056062963d2df90dff9257c27422143645fd6c8b239abc87290b59849f1f79f0fa7b216cf35ad19b7ad383d87c475837599
6
+ metadata.gz: 325f1a37f0bb71780d1d648a017a801a3d3dba8aefc3d2f4b3d42ef806f1ec91498579394e2e1af9b57b0fd57ca0fee29a0ee89717626937b52f2a703575ffe6
7
+ data.tar.gz: eca92024b783f9214a6a57576723dec07acf3d071a95cf402f00190b46c416b9b385a37e85f4e30f74c9ca0a1bf79b53f0b2ab1b721855e762b4df735fce8b05
@@ -54,8 +54,22 @@ module Sass::Rails
54
54
  end
55
55
 
56
56
  config.assets.configure do |env|
57
- env.register_engine '.sass', Sass::Rails::SassTemplate
58
- env.register_engine '.scss', Sass::Rails::ScssTemplate
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
@@ -1,5 +1,5 @@
1
1
  module Sass
2
2
  module Rails
3
- VERSION = "5.0.5"
3
+ VERSION = "5.0.6"
4
4
  end
5
5
  end
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.5
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-06-30 00:00:00.000000000 Z
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.6.6
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.