camaleon_cms 2.7.2 → 2.7.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of camaleon_cms might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/app/apps/plugins/front_cache/front_cache_helper.rb +2 -1
- data/app/models/camaleon_cms/category.rb +0 -2
- data/app/models/camaleon_cms/nav_menu.rb +0 -2
- data/app/models/camaleon_cms/nav_menu_item.rb +0 -2
- data/app/models/camaleon_cms/plugin.rb +0 -2
- data/app/models/camaleon_cms/post.rb +0 -1
- data/app/models/camaleon_cms/post_default.rb +8 -0
- data/app/models/camaleon_cms/post_tag.rb +0 -2
- data/app/models/camaleon_cms/post_type.rb +0 -2
- data/app/models/camaleon_cms/site.rb +0 -1
- data/app/models/camaleon_cms/term_taxonomy.rb +8 -0
- data/app/models/camaleon_cms/theme.rb +0 -2
- data/app/models/camaleon_cms/user_role.rb +0 -2
- data/app/models/concerns/camaleon_cms/metas.rb +1 -4
- data/app/views/camaleon_cms/admin/settings/custom_fields/_render.html.erb +1 -1
- data/lib/camaleon_cms/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ceae04608496009ce8877507cc72de6af412c90ab5527f8281fa733493f1750
|
4
|
+
data.tar.gz: 807f98b7879e0879e00b6166d7c8f89c745bf1c3f4160e635bc0f552b892a548
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bdc3fc42d70c97e15a73ec2fac9e840e7f41f83e670151038844ca1ef4edf6a1f613a563dbcfb36307713ccc798db539e6d6f526f3363baaac78da6f6b0b84b
|
7
|
+
data.tar.gz: abadf689ddc1db797b9d76269edd2a1213d58f61d24e8a4a95e7c8765a77511985e5ebc41e9cb7ca37cc3846f5987a7acf428bee28e9aeb2dab53cc4d3fce3ca
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2015 Camaleon CMS
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -8,7 +8,8 @@ module Plugins
|
|
8
8
|
current_site.set_option('refresh_cache', false)
|
9
9
|
end
|
10
10
|
|
11
|
-
|
11
|
+
# avoid cache if current visitor is logged in or development
|
12
|
+
return if signin? || Rails.env.development? || Rails.env.test? || !request.get?
|
12
13
|
|
13
14
|
cache_key = front_cache_plugin_cache_key
|
14
15
|
@caches = current_site.get_meta('front_cache_elements')
|
@@ -1,7 +1,6 @@
|
|
1
1
|
module CamaleonCms
|
2
2
|
class Post < CamaleonCms::PostDefault
|
3
3
|
include CamaleonCms::CategoriesTagsForPosts
|
4
|
-
include CamaleonCms::CommonRelationships
|
5
4
|
|
6
5
|
alias_attribute :post_type_id, :taxonomy_id
|
7
6
|
default_scope -> { where(post_class: 'Post').order(post_order: :asc, created_at: :desc) }
|
@@ -3,6 +3,14 @@ module CamaleonCms
|
|
3
3
|
include CamaleonCms::Metas
|
4
4
|
include CamaleonCms::CustomFieldsRead
|
5
5
|
|
6
|
+
def self.inherited(subclass)
|
7
|
+
super
|
8
|
+
|
9
|
+
subclass.class_eval do
|
10
|
+
include CamaleonCms::CommonRelationships
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
6
14
|
self.table_name = "#{PluginRoutes.static_system_info['db_prefix']}posts"
|
7
15
|
|
8
16
|
# attr_accessible :user_id, :title, :slug, :content, :content_filtered, :status, :visibility, :visibility_value, :post_order, :post_type_key, :taxonomy_id, :published_at, :post_parent, :post_order, :is_feature
|
@@ -3,6 +3,14 @@ module CamaleonCms
|
|
3
3
|
include CamaleonCms::Metas
|
4
4
|
include CamaleonCms::CustomFieldsRead
|
5
5
|
|
6
|
+
def self.inherited(subclass)
|
7
|
+
super
|
8
|
+
|
9
|
+
subclass.class_eval do
|
10
|
+
include CamaleonCms::CommonRelationships
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
6
14
|
self.table_name = "#{PluginRoutes.static_system_info['db_prefix']}term_taxonomy"
|
7
15
|
# attr_accessible :taxonomy, :description, :parent_id, :count, :name, :slug, :term_group, :status, :term_order, :user_id
|
8
16
|
# attr_accessible :data_options
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module CamaleonCms
|
2
2
|
module Metas
|
3
3
|
extend ActiveSupport::Concern
|
4
|
+
|
4
5
|
included do
|
5
6
|
# options and metas auto save support
|
6
7
|
attr_accessor :data_options
|
@@ -8,10 +9,6 @@ module CamaleonCms
|
|
8
9
|
|
9
10
|
after_create :save_metas_options, unless: :save_metas_options_skip
|
10
11
|
before_update :fix_save_metas_options_no_changed
|
11
|
-
|
12
|
-
has_many :metas, lambda { |object|
|
13
|
-
where(object_class: object.class.to_s.gsub('Decorator', '').gsub('CamaleonCms::', ''))
|
14
|
-
}, class_name: 'CamaleonCms::Meta', foreign_key: :objectid, dependent: :delete_all
|
15
12
|
end
|
16
13
|
|
17
14
|
# Add meta with value or Update meta with key: key
|
data/lib/camaleon_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: camaleon_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen Peredo Diaz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|
@@ -388,6 +388,7 @@ executables: []
|
|
388
388
|
extensions: []
|
389
389
|
extra_rdoc_files: []
|
390
390
|
files:
|
391
|
+
- LICENSE
|
391
392
|
- README.md
|
392
393
|
- Rakefile
|
393
394
|
- app/apps/plugins/attack/admin_controller.rb
|
@@ -1102,7 +1103,7 @@ requirements:
|
|
1102
1103
|
- rails >= 6.0
|
1103
1104
|
- ruby >= 2.7
|
1104
1105
|
- imagemagick
|
1105
|
-
rubygems_version: 3.4.
|
1106
|
+
rubygems_version: 3.4.10
|
1106
1107
|
signing_key:
|
1107
1108
|
specification_version: 4
|
1108
1109
|
summary: Camaleon is a CMS for Ruby on Rails as an alternative to Wordpress.
|