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 +4 -4
- data/lib/slim-rails.rb +7 -3
- data/lib/slim-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1df82fc9b49ed94767c07d4a2e3abda72e240a2f
|
4
|
+
data.tar.gz: 85dc32f35bfe7565d68a52f30ec4e30724021bd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f0488e699e05135c3136137450ca319a34b40d96f4d9f318717d13dfc11eab11ee1db47585a4aaaa90f14d524352f04c078da95353bc8c8bee2fb69c6187d11
|
7
|
+
data.tar.gz: 602eee886fe8786aeee6748680012b27a6f88e39d6e394067536d7b85b31cde35bc16636f4fe3bb7f38c0e0ede31c2166f0c3d19211012a3d9dde81b34c051e7
|
data/lib/slim-rails.rb
CHANGED
@@ -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
|
data/lib/slim-rails/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2014-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|