meta_manager 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/meta_manager/helper.rb +2 -2
- data/lib/meta_manager/version.rb +1 -1
- metadata +80 -92
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3ae8c4319588c19c37da506a77b81eb684a172a9
|
4
|
+
data.tar.gz: 00aced4d9e12eb183920c4631619cae8e49e4751
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9fa59902b2f50e30fca61166a3af10f759a8801efb213e0cb75d4d133128da34f14478321cc9d74dad7f57de083ad9b973c6b26b385fabb89a2c8bf25f9d3b3e
|
7
|
+
data.tar.gz: 66f67c1ad24056c47d84bf6a0f5c4693f0211a682d1b4a03f7b1903d4dc2a97ecc655aedb6a836dfacf6955200bac95078b9fa241e2e5e0451efa18889d95d58
|
data/lib/meta_manager/helper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module MetaManager
|
2
2
|
module Helper
|
3
|
-
|
3
|
+
include ::ActionView::Helpers::TagHelper
|
4
4
|
|
5
5
|
def self.included(base)
|
6
6
|
base.send :helper_method, :render_meta_tags, :render_page_title
|
@@ -15,7 +15,7 @@ module MetaManager
|
|
15
15
|
get_actual_meta_tags(record, dynamic).each do |meta_tag|
|
16
16
|
unless meta_tag.name == 'title'
|
17
17
|
type = meta_tag.name =~ /og:/ ? 'property' : 'name'
|
18
|
-
tags <<
|
18
|
+
tags << tag(:meta, type => meta_tag.name, :content => meta_tag.get_content(self))
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
data/lib/meta_manager/version.rb
CHANGED
metadata
CHANGED
@@ -1,94 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meta_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Pavel Galeta
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-11-25 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: orm_adapter
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: activerecord
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 3.0.0
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 3.0.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: mongoid
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: sqlite3
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ">="
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rails
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - ">="
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: 3.1.3
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - ">="
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: 3.1.3
|
94
83
|
description: Aimbulance CMS
|
@@ -99,132 +88,131 @@ extensions: []
|
|
99
88
|
extra_rdoc_files: []
|
100
89
|
files:
|
101
90
|
- db/migrate/20120105114018_create_meta_tags.rb
|
102
|
-
- lib/meta_manager/version.rb
|
103
91
|
- lib/meta_manager/engine.rb
|
104
92
|
- lib/meta_manager/helper.rb
|
105
|
-
- lib/meta_manager/taggable.rb
|
106
|
-
- lib/meta_manager/models/mongoid/meta_tag.rb
|
107
|
-
- lib/meta_manager/models/active_record/meta_tag.rb
|
108
93
|
- lib/meta_manager/model.rb
|
109
|
-
- lib/meta_manager/
|
94
|
+
- lib/meta_manager/models/active_record/meta_tag.rb
|
95
|
+
- lib/meta_manager/models/mongoid/meta_tag.rb
|
110
96
|
- lib/meta_manager/orm/active_record.rb
|
97
|
+
- lib/meta_manager/orm/mongoid.rb
|
98
|
+
- lib/meta_manager/taggable.rb
|
99
|
+
- lib/meta_manager/version.rb
|
111
100
|
- lib/meta_manager.rb
|
112
101
|
- lib/tasks/meta_manager_tasks.rake
|
113
102
|
- MIT-LICENSE
|
114
103
|
- Rakefile
|
115
104
|
- README.rdoc
|
116
|
-
- test/
|
117
|
-
- test/
|
118
|
-
- test/dummy/db/migrate/20111226131910_create_categories.rb
|
119
|
-
- test/dummy/db/migrate/20111226131911_create_posts.rb
|
120
|
-
- test/dummy/config.ru
|
121
|
-
- test/dummy/log/test.log
|
122
|
-
- test/dummy/app/assets/stylesheets/application.css
|
105
|
+
- test/controllers/posts_controller_test.rb
|
106
|
+
- test/controllers/welcome_controller_test.rb
|
123
107
|
- test/dummy/app/assets/javascripts/application.js
|
108
|
+
- test/dummy/app/assets/stylesheets/application.css
|
109
|
+
- test/dummy/app/controllers/application_controller.rb
|
110
|
+
- test/dummy/app/controllers/posts_controller.rb
|
111
|
+
- test/dummy/app/controllers/welcome_controller.rb
|
124
112
|
- test/dummy/app/helpers/application_helper.rb
|
125
|
-
- test/dummy/app/views/welcome/index.html.erb
|
126
|
-
- test/dummy/app/views/layouts/application.html.erb
|
127
|
-
- test/dummy/app/views/posts/show.html.erb
|
128
|
-
- test/dummy/app/views/posts/index.html.erb
|
129
113
|
- test/dummy/app/models/category.rb
|
130
114
|
- test/dummy/app/models/post.rb
|
131
|
-
- test/dummy/app/
|
132
|
-
- test/dummy/app/
|
133
|
-
- test/dummy/app/
|
134
|
-
- test/dummy/
|
135
|
-
- test/dummy/
|
136
|
-
- test/dummy/
|
137
|
-
- test/dummy/
|
138
|
-
- test/dummy/
|
115
|
+
- test/dummy/app/views/layouts/application.html.erb
|
116
|
+
- test/dummy/app/views/posts/index.html.erb
|
117
|
+
- test/dummy/app/views/posts/show.html.erb
|
118
|
+
- test/dummy/app/views/welcome/index.html.erb
|
119
|
+
- test/dummy/config/application.rb
|
120
|
+
- test/dummy/config/boot.rb
|
121
|
+
- test/dummy/config/database.yml
|
122
|
+
- test/dummy/config/environment.rb
|
139
123
|
- test/dummy/config/environments/development.rb
|
140
124
|
- test/dummy/config/environments/production.rb
|
141
125
|
- test/dummy/config/environments/test.rb
|
142
|
-
- test/dummy/config/
|
126
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
143
127
|
- test/dummy/config/initializers/inflections.rb
|
144
|
-
- test/dummy/config/initializers/secret_token.rb
|
145
128
|
- test/dummy/config/initializers/meta_manager.rb
|
146
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
147
129
|
- test/dummy/config/initializers/mime_types.rb
|
148
|
-
- test/dummy/config/initializers/
|
130
|
+
- test/dummy/config/initializers/secret_token.rb
|
149
131
|
- test/dummy/config/initializers/session_store.rb
|
132
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
150
133
|
- test/dummy/config/locales/en.yml
|
151
|
-
- test/dummy/config/application.rb
|
152
134
|
- test/dummy/config/routes.rb
|
153
|
-
- test/dummy/config
|
154
|
-
- test/dummy/
|
135
|
+
- test/dummy/config.ru
|
136
|
+
- test/dummy/db/migrate/20111226131910_create_categories.rb
|
137
|
+
- test/dummy/db/migrate/20111226131911_create_posts.rb
|
138
|
+
- test/dummy/db/test.sqlite3
|
139
|
+
- test/dummy/log/test.log
|
140
|
+
- test/dummy/public/404.html
|
141
|
+
- test/dummy/public/422.html
|
142
|
+
- test/dummy/public/500.html
|
143
|
+
- test/dummy/public/favicon.ico
|
144
|
+
- test/dummy/Rakefile
|
155
145
|
- test/dummy/script/rails
|
156
|
-
- test/
|
146
|
+
- test/meta_manager_test.rb
|
157
147
|
- test/models/category_test.rb
|
158
148
|
- test/models/meta_tag_test.rb
|
159
|
-
- test/
|
160
|
-
- test/controllers/posts_controller_test.rb
|
149
|
+
- test/test_helper.rb
|
161
150
|
homepage: https://github.com/superp/meta_manager
|
162
151
|
licenses: []
|
152
|
+
metadata: {}
|
163
153
|
post_install_message:
|
164
154
|
rdoc_options: []
|
165
155
|
require_paths:
|
166
156
|
- lib
|
167
157
|
required_ruby_version: !ruby/object:Gem::Requirement
|
168
|
-
none: false
|
169
158
|
requirements:
|
170
|
-
- -
|
159
|
+
- - ">="
|
171
160
|
- !ruby/object:Gem::Version
|
172
161
|
version: '0'
|
173
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
|
-
none: false
|
175
163
|
requirements:
|
176
|
-
- -
|
164
|
+
- - ">="
|
177
165
|
- !ruby/object:Gem::Version
|
178
166
|
version: '0'
|
179
167
|
requirements: []
|
180
168
|
rubyforge_project:
|
181
|
-
rubygems_version:
|
169
|
+
rubygems_version: 2.0.3
|
182
170
|
signing_key:
|
183
|
-
specification_version:
|
171
|
+
specification_version: 4
|
184
172
|
summary: Head meta tags manager for models.
|
185
173
|
test_files:
|
186
|
-
- test/
|
187
|
-
- test/
|
188
|
-
- test/dummy/db/migrate/20111226131910_create_categories.rb
|
189
|
-
- test/dummy/db/migrate/20111226131911_create_posts.rb
|
190
|
-
- test/dummy/config.ru
|
191
|
-
- test/dummy/log/test.log
|
192
|
-
- test/dummy/app/assets/stylesheets/application.css
|
174
|
+
- test/controllers/posts_controller_test.rb
|
175
|
+
- test/controllers/welcome_controller_test.rb
|
193
176
|
- test/dummy/app/assets/javascripts/application.js
|
177
|
+
- test/dummy/app/assets/stylesheets/application.css
|
178
|
+
- test/dummy/app/controllers/application_controller.rb
|
179
|
+
- test/dummy/app/controllers/posts_controller.rb
|
180
|
+
- test/dummy/app/controllers/welcome_controller.rb
|
194
181
|
- test/dummy/app/helpers/application_helper.rb
|
195
|
-
- test/dummy/app/views/welcome/index.html.erb
|
196
|
-
- test/dummy/app/views/layouts/application.html.erb
|
197
|
-
- test/dummy/app/views/posts/show.html.erb
|
198
|
-
- test/dummy/app/views/posts/index.html.erb
|
199
182
|
- test/dummy/app/models/category.rb
|
200
183
|
- test/dummy/app/models/post.rb
|
201
|
-
- test/dummy/app/
|
202
|
-
- test/dummy/app/
|
203
|
-
- test/dummy/app/
|
204
|
-
- test/dummy/
|
205
|
-
- test/dummy/
|
206
|
-
- test/dummy/
|
207
|
-
- test/dummy/
|
208
|
-
- test/dummy/
|
184
|
+
- test/dummy/app/views/layouts/application.html.erb
|
185
|
+
- test/dummy/app/views/posts/index.html.erb
|
186
|
+
- test/dummy/app/views/posts/show.html.erb
|
187
|
+
- test/dummy/app/views/welcome/index.html.erb
|
188
|
+
- test/dummy/config/application.rb
|
189
|
+
- test/dummy/config/boot.rb
|
190
|
+
- test/dummy/config/database.yml
|
191
|
+
- test/dummy/config/environment.rb
|
209
192
|
- test/dummy/config/environments/development.rb
|
210
193
|
- test/dummy/config/environments/production.rb
|
211
194
|
- test/dummy/config/environments/test.rb
|
212
|
-
- test/dummy/config/
|
195
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
213
196
|
- test/dummy/config/initializers/inflections.rb
|
214
|
-
- test/dummy/config/initializers/secret_token.rb
|
215
197
|
- test/dummy/config/initializers/meta_manager.rb
|
216
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
217
198
|
- test/dummy/config/initializers/mime_types.rb
|
218
|
-
- test/dummy/config/initializers/
|
199
|
+
- test/dummy/config/initializers/secret_token.rb
|
219
200
|
- test/dummy/config/initializers/session_store.rb
|
201
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
220
202
|
- test/dummy/config/locales/en.yml
|
221
|
-
- test/dummy/config/application.rb
|
222
203
|
- test/dummy/config/routes.rb
|
223
|
-
- test/dummy/config
|
224
|
-
- test/dummy/
|
204
|
+
- test/dummy/config.ru
|
205
|
+
- test/dummy/db/migrate/20111226131910_create_categories.rb
|
206
|
+
- test/dummy/db/migrate/20111226131911_create_posts.rb
|
207
|
+
- test/dummy/db/test.sqlite3
|
208
|
+
- test/dummy/log/test.log
|
209
|
+
- test/dummy/public/404.html
|
210
|
+
- test/dummy/public/422.html
|
211
|
+
- test/dummy/public/500.html
|
212
|
+
- test/dummy/public/favicon.ico
|
213
|
+
- test/dummy/Rakefile
|
225
214
|
- test/dummy/script/rails
|
226
|
-
- test/
|
215
|
+
- test/meta_manager_test.rb
|
227
216
|
- test/models/category_test.rb
|
228
217
|
- test/models/meta_tag_test.rb
|
229
|
-
- test/
|
230
|
-
- test/controllers/posts_controller_test.rb
|
218
|
+
- test/test_helper.rb
|