cama_meta_tag 1.5 → 1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +0 -0
  3. data/Rakefile +0 -0
  4. data/app/controllers/plugins/cama_meta_tag/admin_controller.rb +0 -0
  5. data/app/helpers/plugins/cama_meta_tag/main_helper.rb +5 -1
  6. data/app/views/plugins/cama_meta_tag/admin/settings.html.erb +0 -0
  7. data/config/camaleon_plugin.json +2 -0
  8. data/config/initializers/custom_models.rb +0 -0
  9. data/config/locales/en.yml +0 -0
  10. data/config/routes.rb +0 -0
  11. data/lib/cama_meta_tag.rb +0 -0
  12. data/lib/cama_meta_tag/engine.rb +0 -0
  13. data/lib/cama_meta_tag/version.rb +2 -2
  14. data/lib/tasks/cama_meta_tag_tasks.rake +0 -0
  15. data/test/cama_meta_tag_test.rb +0 -0
  16. data/test/dummy/README.rdoc +0 -0
  17. data/test/dummy/Rakefile +0 -0
  18. data/test/dummy/app/assets/javascripts/application.js +0 -0
  19. data/test/dummy/app/assets/stylesheets/application.css +0 -0
  20. data/test/dummy/app/controllers/application_controller.rb +0 -0
  21. data/test/dummy/app/helpers/application_helper.rb +0 -0
  22. data/test/dummy/app/views/layouts/application.html.erb +0 -0
  23. data/test/dummy/config.ru +0 -0
  24. data/test/dummy/config/application.rb +0 -0
  25. data/test/dummy/config/boot.rb +0 -0
  26. data/test/dummy/config/database.yml +0 -0
  27. data/test/dummy/config/environment.rb +0 -0
  28. data/test/dummy/config/environments/development.rb +0 -0
  29. data/test/dummy/config/environments/production.rb +0 -0
  30. data/test/dummy/config/environments/test.rb +0 -0
  31. data/test/dummy/config/initializers/assets.rb +0 -0
  32. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -0
  33. data/test/dummy/config/initializers/cookies_serializer.rb +0 -0
  34. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -0
  35. data/test/dummy/config/initializers/inflections.rb +0 -0
  36. data/test/dummy/config/initializers/mime_types.rb +0 -0
  37. data/test/dummy/config/initializers/session_store.rb +0 -0
  38. data/test/dummy/config/initializers/wrap_parameters.rb +0 -0
  39. data/test/dummy/config/locales/en.yml +0 -0
  40. data/test/dummy/config/routes.rb +0 -0
  41. data/test/dummy/config/secrets.yml +0 -0
  42. data/test/dummy/public/404.html +0 -0
  43. data/test/dummy/public/422.html +0 -0
  44. data/test/dummy/public/500.html +0 -0
  45. data/test/dummy/public/favicon.ico +0 -0
  46. data/test/integration/navigation_test.rb +0 -0
  47. data/test/test_helper.rb +0 -0
  48. metadata +23 -24
  49. data/app/models/plugins/cama_meta_tag/cama_meta_tag.rb +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 19dc3b83d6953ce13aa7e9576538b98bc3db4f1c
4
- data.tar.gz: fdc1215987f7af55012bc8becd8fad2b3a2a6040
2
+ SHA256:
3
+ metadata.gz: 8625ccb9d11218c7c863d3004df0d944fa5429b14397554a108a7c0b54ec5ff2
4
+ data.tar.gz: 4d0910d8649521fc56044cd87a0c7ccec397c8210961bf5d38f76afaab22f0ad
5
5
  SHA512:
6
- metadata.gz: 1ed68854e29a3e76209422e4d7049efc1393ee845a9c16531b524464b639eba762fac25bdbe677982302aab3778181b5588a79d8366b8e29c99e47ac3e1018a2
7
- data.tar.gz: 8dcee521f64fc1a8b5a26d688fe1f7384c53ab3c90d14a4a167957477fe9c7cfa6bf56fec177fba8e21cd679d2cfbdabeb9bd899b4345f9c9fab31b59f61267a
6
+ metadata.gz: 848b89a5afff61c844e9cbf52143aa23f911265ea07fde4eb1fbec387b0349d8c592dc91cf3dd892e0e72e5de50943655c5d7803aad435e6e81a03d83203bb22
7
+ data.tar.gz: 6fcfcf3183488b5b5be35cc37a5636e2ae71c99e2e5a44ca8b728a4b5bddb6ef1e66c8ba40a556d5366a9a4b8b349354616a2ed91fcec0ecd41eb6f04c602e8e
File without changes
data/Rakefile CHANGED
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
@@ -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
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module CamaMetaTag
2
- VERSION = "1.5"
3
- end
2
+ VERSION = "1.7"
3
+ end
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
File without changes
File without changes
File without changes
File without changes
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.5'
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: 2018-05-29 00:00:00.000000000 Z
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.6.10
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/dummy/app/controllers/application_controller.rb
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/bin/rake
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/config/secrets.yml
135
- - test/dummy/config/routes.rb
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/mime_types.rb
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/initializers/assets.rb
150
- - test/dummy/config/initializers/cookies_serializer.rb
151
- - test/dummy/config/initializers/inflections.rb
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/Rakefile
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/404.html
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
@@ -1,6 +0,0 @@
1
- # class Plugins::CamaMetaTag::CamaMetaTag < ActiveRecord::Base
2
- # belongs_to :site, class_name: "CamleonCms::Site"
3
-
4
- # here create your models normally
5
- # notice: your tables in database will be plugins_cama_meta_tag in plural (check rails documentation)
6
- # end