cama_meta_tag 1.5 → 1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/MIT-LICENSE +0 -0
- data/Rakefile +0 -0
- data/app/controllers/plugins/cama_meta_tag/admin_controller.rb +0 -0
- data/app/helpers/plugins/cama_meta_tag/main_helper.rb +5 -1
- data/app/views/plugins/cama_meta_tag/admin/settings.html.erb +0 -0
- data/config/camaleon_plugin.json +2 -0
- data/config/initializers/custom_models.rb +0 -0
- data/config/locales/en.yml +0 -0
- data/config/routes.rb +0 -0
- data/lib/cama_meta_tag.rb +0 -0
- data/lib/cama_meta_tag/engine.rb +0 -0
- data/lib/cama_meta_tag/version.rb +2 -2
- data/lib/tasks/cama_meta_tag_tasks.rake +0 -0
- data/test/cama_meta_tag_test.rb +0 -0
- data/test/dummy/README.rdoc +0 -0
- data/test/dummy/Rakefile +0 -0
- data/test/dummy/app/assets/javascripts/application.js +0 -0
- data/test/dummy/app/assets/stylesheets/application.css +0 -0
- data/test/dummy/app/controllers/application_controller.rb +0 -0
- data/test/dummy/app/helpers/application_helper.rb +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +0 -0
- data/test/dummy/config.ru +0 -0
- data/test/dummy/config/application.rb +0 -0
- data/test/dummy/config/boot.rb +0 -0
- data/test/dummy/config/database.yml +0 -0
- data/test/dummy/config/environment.rb +0 -0
- data/test/dummy/config/environments/development.rb +0 -0
- data/test/dummy/config/environments/production.rb +0 -0
- data/test/dummy/config/environments/test.rb +0 -0
- data/test/dummy/config/initializers/assets.rb +0 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -0
- data/test/dummy/config/initializers/inflections.rb +0 -0
- data/test/dummy/config/initializers/mime_types.rb +0 -0
- data/test/dummy/config/initializers/session_store.rb +0 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/test/dummy/config/locales/en.yml +0 -0
- data/test/dummy/config/routes.rb +0 -0
- data/test/dummy/config/secrets.yml +0 -0
- data/test/dummy/public/404.html +0 -0
- data/test/dummy/public/422.html +0 -0
- data/test/dummy/public/500.html +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/integration/navigation_test.rb +0 -0
- data/test/test_helper.rb +0 -0
- metadata +23 -24
- data/app/models/plugins/cama_meta_tag/cama_meta_tag.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8625ccb9d11218c7c863d3004df0d944fa5429b14397554a108a7c0b54ec5ff2
|
4
|
+
data.tar.gz: 4d0910d8649521fc56044cd87a0c7ccec397c8210961bf5d38f76afaab22f0ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 848b89a5afff61c844e9cbf52143aa23f911265ea07fde4eb1fbec387b0349d8c592dc91cf3dd892e0e72e5de50943655c5d7803aad435e6e81a03d83203bb22
|
7
|
+
data.tar.gz: 6fcfcf3183488b5b5be35cc37a5636e2ae71c99e2e5a44ca8b728a4b5bddb6ef1e66c8ba40a556d5366a9a4b8b349354616a2ed91fcec0ecd41eb6f04c602e8e
|
data/MIT-LICENSE
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
File without changes
|
@@ -13,7 +13,7 @@ module Plugins::CamaMetaTag::MainHelper
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def cama_meta_tag_on_seo(args)
|
16
|
-
if is_page? || is_category?
|
16
|
+
if is_page? || is_category? || is_post_type?
|
17
17
|
page = args[:object].present? ? args[:object] : @cama_visited_post
|
18
18
|
tmp = {
|
19
19
|
title: page.get_option('seo_title').to_s.translate,
|
@@ -54,6 +54,10 @@ module Plugins::CamaMetaTag::MainHelper
|
|
54
54
|
!post.respond_to?(:manage_seo?)
|
55
55
|
end
|
56
56
|
|
57
|
+
def cama_meta_tag_post_type_saved(args)
|
58
|
+
args[:post_type].set_multiple_options(params[:options].permit!.to_h)
|
59
|
+
end
|
60
|
+
|
57
61
|
def cama_meta_tag_category_saved(args)
|
58
62
|
args[:category].set_multiple_options(params[:options].permit!.to_h)
|
59
63
|
end
|
File without changes
|
data/config/camaleon_plugin.json
CHANGED
@@ -14,6 +14,8 @@
|
|
14
14
|
],
|
15
15
|
"seo": ["cama_meta_tag_on_seo"],
|
16
16
|
"post_form_custom_html": ["cama_meta_tag_post_form_custom_html"],
|
17
|
+
"created_post_type": ["cama_meta_tag_post_type_saved"],
|
18
|
+
"updated_post_type": ["cama_meta_tag_post_type_saved"],
|
17
19
|
"created_post": ["cama_meta_tag_post_saved"],
|
18
20
|
"updated_post": ["cama_meta_tag_post_saved"],
|
19
21
|
"category_form": ["cama_meta_tag_category_form_custom_html"],
|
File without changes
|
data/config/locales/en.yml
CHANGED
File without changes
|
data/config/routes.rb
CHANGED
File without changes
|
data/lib/cama_meta_tag.rb
CHANGED
File without changes
|
data/lib/cama_meta_tag/engine.rb
CHANGED
File without changes
|
@@ -1,3 +1,3 @@
|
|
1
1
|
module CamaMetaTag
|
2
|
-
VERSION = "1.
|
3
|
-
end
|
2
|
+
VERSION = "1.7"
|
3
|
+
end
|
File without changes
|
data/test/cama_meta_tag_test.rb
CHANGED
File without changes
|
data/test/dummy/README.rdoc
CHANGED
File without changes
|
data/test/dummy/Rakefile
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/dummy/config.ru
CHANGED
File without changes
|
File without changes
|
data/test/dummy/config/boot.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/dummy/config/routes.rb
CHANGED
File without changes
|
File without changes
|
data/test/dummy/public/404.html
CHANGED
File without changes
|
data/test/dummy/public/422.html
CHANGED
File without changes
|
data/test/dummy/public/500.html
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/test/test_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cama_meta_tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.7'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen Peredo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -49,7 +49,6 @@ files:
|
|
49
49
|
- Rakefile
|
50
50
|
- app/controllers/plugins/cama_meta_tag/admin_controller.rb
|
51
51
|
- app/helpers/plugins/cama_meta_tag/main_helper.rb
|
52
|
-
- app/models/plugins/cama_meta_tag/cama_meta_tag.rb
|
53
52
|
- app/views/plugins/cama_meta_tag/admin/_meta_tag_fields.html.erb
|
54
53
|
- app/views/plugins/cama_meta_tag/admin/settings.html.erb
|
55
54
|
- config/camaleon_plugin.json
|
@@ -117,45 +116,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
116
|
version: '0'
|
118
117
|
requirements: []
|
119
118
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.
|
119
|
+
rubygems_version: 2.7.7
|
121
120
|
signing_key:
|
122
121
|
specification_version: 4
|
123
122
|
summary: Permit to manage the seo attributes for each page of Camaleon CMS.
|
124
123
|
test_files:
|
125
|
-
- test/
|
126
|
-
- test/dummy/app/views/layouts/application.html.erb
|
124
|
+
- test/cama_meta_tag_test.rb
|
127
125
|
- test/dummy/app/assets/javascripts/application.js
|
128
126
|
- test/dummy/app/assets/stylesheets/application.css
|
127
|
+
- test/dummy/app/controllers/application_controller.rb
|
129
128
|
- test/dummy/app/helpers/application_helper.rb
|
130
|
-
- test/dummy/
|
131
|
-
- test/dummy/bin/setup
|
129
|
+
- test/dummy/app/views/layouts/application.html.erb
|
132
130
|
- test/dummy/bin/bundle
|
133
131
|
- test/dummy/bin/rails
|
134
|
-
- test/dummy/
|
135
|
-
- test/dummy/
|
136
|
-
- test/dummy/config/locales/en.yml
|
137
|
-
- test/dummy/config/environments/production.rb
|
138
|
-
- test/dummy/config/environments/development.rb
|
139
|
-
- test/dummy/config/environments/test.rb
|
140
|
-
- test/dummy/config/environment.rb
|
132
|
+
- test/dummy/bin/rake
|
133
|
+
- test/dummy/bin/setup
|
141
134
|
- test/dummy/config/application.rb
|
142
|
-
- test/dummy/config/database.yml
|
143
135
|
- test/dummy/config/boot.rb
|
136
|
+
- test/dummy/config/database.yml
|
137
|
+
- test/dummy/config/environment.rb
|
138
|
+
- test/dummy/config/environments/development.rb
|
139
|
+
- test/dummy/config/environments/production.rb
|
140
|
+
- test/dummy/config/environments/test.rb
|
141
|
+
- test/dummy/config/initializers/assets.rb
|
144
142
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
145
|
-
- test/dummy/config/initializers/
|
143
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
146
144
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
145
|
+
- test/dummy/config/initializers/inflections.rb
|
146
|
+
- test/dummy/config/initializers/mime_types.rb
|
147
147
|
- test/dummy/config/initializers/session_store.rb
|
148
148
|
- test/dummy/config/initializers/wrap_parameters.rb
|
149
|
-
- test/dummy/config/
|
150
|
-
- test/dummy/config/
|
151
|
-
- test/dummy/config/
|
149
|
+
- test/dummy/config/locales/en.yml
|
150
|
+
- test/dummy/config/routes.rb
|
151
|
+
- test/dummy/config/secrets.yml
|
152
152
|
- test/dummy/config.ru
|
153
|
-
- test/dummy/
|
154
|
-
- test/dummy/public/favicon.ico
|
153
|
+
- test/dummy/public/404.html
|
155
154
|
- test/dummy/public/422.html
|
156
155
|
- test/dummy/public/500.html
|
157
|
-
- test/dummy/public/
|
156
|
+
- test/dummy/public/favicon.ico
|
157
|
+
- test/dummy/Rakefile
|
158
158
|
- test/dummy/README.rdoc
|
159
|
-
- test/cama_meta_tag_test.rb
|
160
159
|
- test/integration/navigation_test.rb
|
161
160
|
- test/test_helper.rb
|