seo_helper 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/seo_helper/engine3.rb +13 -0
- data/lib/seo_helper/version.rb +1 -1
- data/lib/seo_helper.rb +7 -3
- metadata +22 -42
@@ -0,0 +1,13 @@
|
|
1
|
+
require "seo_helper/helper"
|
2
|
+
|
3
|
+
module SeoHelper
|
4
|
+
class Engine3 < ::Rails::Engine
|
5
|
+
initializer "seo_helper.view_helpers" do
|
6
|
+
ActionView::Base.send :include, SeoHelper::Helper
|
7
|
+
end
|
8
|
+
|
9
|
+
initializer "seo_helper.controller_helpers" do
|
10
|
+
ActionController::Base.send :include, SeoHelper::ControllerHelper
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/seo_helper/version.rb
CHANGED
data/lib/seo_helper.rb
CHANGED
@@ -7,11 +7,15 @@ module SeoHelper
|
|
7
7
|
end
|
8
8
|
|
9
9
|
module Rails
|
10
|
-
|
11
|
-
|
12
|
-
else
|
10
|
+
case ::Rails.version.to_s
|
11
|
+
when /^4/
|
13
12
|
require "seo_helper/engine"
|
13
|
+
when /^3\.[12]/
|
14
|
+
require "seo_helper/engine3"
|
15
|
+
when /^3\.[0]/
|
16
|
+
require "seo_helper/railtie"
|
14
17
|
end
|
18
|
+
|
15
19
|
end
|
16
20
|
|
17
21
|
def self.configure
|
metadata
CHANGED
@@ -1,34 +1,23 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: seo_helper
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 1.0.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- xdite
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2012-02-07 00:00:00 +08:00
|
19
|
-
default_executable:
|
12
|
+
date: 2013-08-16 00:00:00.000000000 Z
|
20
13
|
dependencies: []
|
21
|
-
|
22
14
|
description: SEO helper of Techbang
|
23
|
-
email:
|
15
|
+
email:
|
24
16
|
- xdite@techbang.com.tw
|
25
17
|
executables: []
|
26
|
-
|
27
18
|
extensions: []
|
28
|
-
|
29
19
|
extra_rdoc_files: []
|
30
|
-
|
31
|
-
files:
|
20
|
+
files:
|
32
21
|
- .gitignore
|
33
22
|
- Gemfile
|
34
23
|
- README.markdown
|
@@ -36,44 +25,35 @@ files:
|
|
36
25
|
- lib/seo_helper.rb
|
37
26
|
- lib/seo_helper/configuration.rb
|
38
27
|
- lib/seo_helper/engine.rb
|
28
|
+
- lib/seo_helper/engine3.rb
|
39
29
|
- lib/seo_helper/format.rb
|
40
30
|
- lib/seo_helper/helper.rb
|
41
31
|
- lib/seo_helper/railtie.rb
|
42
32
|
- lib/seo_helper/version.rb
|
43
33
|
- seo_helper.gemspec
|
44
|
-
|
45
|
-
homepage: ""
|
34
|
+
homepage: ''
|
46
35
|
licenses: []
|
47
|
-
|
48
36
|
post_install_message:
|
49
37
|
rdoc_options: []
|
50
|
-
|
51
|
-
require_paths:
|
38
|
+
require_paths:
|
52
39
|
- lib
|
53
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
54
41
|
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
|
60
|
-
- 0
|
61
|
-
version: "0"
|
62
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
47
|
none: false
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
|
68
|
-
segments:
|
69
|
-
- 0
|
70
|
-
version: "0"
|
48
|
+
requirements:
|
49
|
+
- - ! '>='
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
71
52
|
requirements: []
|
72
|
-
|
73
53
|
rubyforge_project:
|
74
|
-
rubygems_version: 1.
|
54
|
+
rubygems_version: 1.8.25
|
75
55
|
signing_key:
|
76
56
|
specification_version: 3
|
77
57
|
summary: SEO helper of Techbang
|
78
58
|
test_files: []
|
79
|
-
|
59
|
+
has_rdoc:
|