slim-rails 2.1.4 → 2.1.5

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: 43abc80fe24529f245f36461c7c497ddeb64eb60
4
- data.tar.gz: 419ebda92192dbd6e94148c5f7b276615f070be8
3
+ metadata.gz: 1df82fc9b49ed94767c07d4a2e3abda72e240a2f
4
+ data.tar.gz: 85dc32f35bfe7565d68a52f30ec4e30724021bd3
5
5
  SHA512:
6
- metadata.gz: 99d61f8dee5dd750fe98331270a172ad471559ebc866d3e2aa8d7df94a215e6fb10bd08589cb18ed99512002bcb7187ab3d4b85d9416e2505c8478ea9a51fb96
7
- data.tar.gz: 9d1ba8b49d78ff06ddcbac2a00b1aa8de4b359d01d9e75d4eefd7f6f9b70112117ed4e3c04770664204ba02296c8ed6fcaddddc50852b77f585fe0afa3ecb09a
6
+ metadata.gz: 5f0488e699e05135c3136137450ca319a34b40d96f4d9f318717d13dfc11eab11ee1db47585a4aaaa90f14d524352f04c078da95353bc8c8bee2fb69c6187d11
7
+ data.tar.gz: 602eee886fe8786aeee6748680012b27a6f88e39d6e394067536d7b85b31cde35bc16636f4fe3bb7f38c0e0ede31c2166f0c3d19211012a3d9dde81b34c051e7
@@ -3,14 +3,18 @@ require 'slim'
3
3
 
4
4
  module Slim
5
5
  module Rails
6
- class Railtie < ::Rails::Railtie
6
+ class Railtie < ::Rails::Railtie
7
7
  if ::Rails.version.to_s >= '3.1'
8
- config.app_generators.template_engine :slim
8
+ config.app_generators.template_engine :slim
9
9
  else
10
10
  config.generators.template_engine :slim
11
11
  end
12
12
 
13
- initializer 'slim_rails.configure_template_digestor' do
13
+ initializer 'slim_rails.configure_template_digestor' do |app|
14
+ if app.assets && app.assets.respond_to?(:register_engine)
15
+ app.assets.register_engine '.slim', Slim::Template
16
+ end
17
+
14
18
  ActiveSupport.on_load(:action_view) do
15
19
  ActiveSupport.on_load(:after_initialize) do
16
20
  begin
@@ -1,5 +1,5 @@
1
1
  module Slim
2
2
  module Rails
3
- VERSION = "2.1.4"
3
+ VERSION = "2.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slim-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonardo Almeida
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-09 00:00:00.000000000 Z
11
+ date: 2014-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake