haml-rails 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/haml-rails.gemspec +1 -1
- data/lib/haml-rails.rb +5 -1
- data/lib/haml-rails/version.rb +1 -1
- metadata +5 -6
data/haml-rails.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.rubyforge_project = "haml-rails"
|
15
15
|
s.required_rubygems_version = ">= 1.3.6"
|
16
16
|
|
17
|
-
s.add_dependency "haml", "~> 3.0
|
17
|
+
s.add_dependency "haml", "~> 3.0"
|
18
18
|
s.add_dependency "activesupport", "~> 3.0"
|
19
19
|
s.add_dependency "actionpack", "~> 3.0"
|
20
20
|
s.add_dependency "railties", "~> 3.0"
|
data/lib/haml-rails.rb
CHANGED
@@ -4,7 +4,11 @@ require 'rails'
|
|
4
4
|
module Haml
|
5
5
|
module Rails
|
6
6
|
class Railtie < ::Rails::Railtie
|
7
|
-
|
7
|
+
if ::Rails.version.to_f >= 3.1
|
8
|
+
config.app_generators.template_engine :haml
|
9
|
+
else
|
10
|
+
config.generators.template_engine :haml
|
11
|
+
end
|
8
12
|
|
9
13
|
config.before_initialize do
|
10
14
|
Haml.init_rails(binding)
|
data/lib/haml-rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haml-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 4
|
10
|
+
version: 0.3.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Andr\xC3\xA9 Arko"
|
@@ -26,12 +26,11 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 7
|
30
30
|
segments:
|
31
31
|
- 3
|
32
32
|
- 0
|
33
|
-
|
34
|
-
version: 3.0.18
|
33
|
+
version: "3.0"
|
35
34
|
type: :runtime
|
36
35
|
version_requirements: *id001
|
37
36
|
- !ruby/object:Gem::Dependency
|