camaleon_cms 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of camaleon_cms might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/models/camaleon_cms/category.rb +2 -0
- data/app/models/camaleon_cms/nav_menu.rb +2 -0
- data/app/models/camaleon_cms/nav_menu_item.rb +2 -0
- data/app/models/camaleon_cms/plugin.rb +2 -0
- data/app/models/camaleon_cms/post.rb +1 -0
- data/app/models/camaleon_cms/post_comment.rb +1 -1
- data/app/models/camaleon_cms/post_default.rb +0 -1
- data/app/models/camaleon_cms/post_tag.rb +2 -0
- data/app/models/camaleon_cms/post_type.rb +2 -0
- data/app/models/camaleon_cms/site.rb +1 -0
- data/app/models/camaleon_cms/term_taxonomy.rb +0 -1
- data/app/models/camaleon_cms/theme.rb +2 -0
- data/app/models/camaleon_cms/user_role.rb +2 -0
- data/app/models/concerns/camaleon_cms/common_relationships.rb +1 -1
- data/app/models/concerns/camaleon_cms/user_methods.rb +1 -1
- data/lib/camaleon_cms/version.rb +1 -1
- data/spec/dummy/log/development.log +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5462913ed0aa0a870f6e439cc538466edbfad347851a9c5c48b13549a43b35fd
|
4
|
+
data.tar.gz: 8744e717ffdc8eb6c41b9edf41bb31aee30818ab1d25bbfaeb53bc80be1457a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd3175e04ccbda3575cf1aa586993e536419acaf1ae48e4b06a57e354e32d440c2ed527f9c80571cad576a5f23b669f855c057d8582d385458f7632274403a91
|
7
|
+
data.tar.gz: 375a9d32c4094197e61af8224c12e5463913dfa1d1bf4f2b89be3a1bb18d2df369b5f3df7c8c23e49a4eab54289a297dcc7a4cc811b57a749289b67f243a6566
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module CamaleonCms
|
2
2
|
class Post < CamaleonCms::PostDefault
|
3
3
|
include CamaleonCms::CategoriesTagsForPosts
|
4
|
+
include CamaleonCms::CommonRelationships
|
4
5
|
|
5
6
|
alias_attribute :post_type_id, :taxonomy_id
|
6
7
|
default_scope -> { where(post_class: 'Post').order(post_order: :asc, created_at: :desc) }
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module CamaleonCms
|
2
2
|
class PostComment < CamaleonRecord
|
3
3
|
include CamaleonCms::Metas
|
4
|
-
include CommonRelationships
|
4
|
+
include CamaleonCms::CommonRelationships
|
5
5
|
|
6
6
|
self.table_name = "#{PluginRoutes.static_system_info['db_prefix']}comments"
|
7
7
|
# attr_accessible :user_id, :post_id, :content, :author, :author_email, :author_url, :author_IP, :approved, :agent, :agent, :typee, :comment_parent, :is_anonymous
|
@@ -2,7 +2,6 @@ module CamaleonCms
|
|
2
2
|
class TermTaxonomy < CamaleonRecord
|
3
3
|
include CamaleonCms::Metas
|
4
4
|
include CamaleonCms::CustomFieldsRead
|
5
|
-
include CommonRelationships
|
6
5
|
|
7
6
|
self.table_name = "#{PluginRoutes.static_system_info['db_prefix']}term_taxonomy"
|
8
7
|
# attr_accessible :taxonomy, :description, :parent_id, :count, :name, :slug, :term_group, :status, :term_order, :user_id
|
@@ -5,7 +5,7 @@ module CamaleonCms
|
|
5
5
|
extend ActiveSupport::Concern
|
6
6
|
|
7
7
|
included do
|
8
|
-
class_name =
|
8
|
+
class_name = name.demodulize
|
9
9
|
has_many :metas, -> { where(object_class: class_name) },
|
10
10
|
class_name: 'CamaleonCms::Meta', foreign_key: :objectid, dependent: :destroy
|
11
11
|
|
@@ -4,7 +4,7 @@ module CamaleonCms
|
|
4
4
|
included do
|
5
5
|
include CamaleonCms::Metas
|
6
6
|
include CamaleonCms::CustomFieldsRead
|
7
|
-
include CommonRelationships
|
7
|
+
include CamaleonCms::CommonRelationships
|
8
8
|
|
9
9
|
validates_uniqueness_of :username, scope: [:site_id], case_sensitive: false,
|
10
10
|
message: I18n.t('camaleon_cms.admin.users.message.requires_different_username', default: 'Requires different username')
|
data/lib/camaleon_cms/version.rb
CHANGED
@@ -1354,3 +1354,7 @@ DELETE FROM "users"[0m
|
|
1354
1354
|
[1m[36mCamaleonCms::Site Exists? (0.0ms)[0m [1m[34mSELECT 1 AS one FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? LIMIT ?[0m [["taxonomy", "site"], ["LIMIT", 1]]
|
1355
1355
|
[1m[36mCamaleonCms::Site Load (0.1ms)[0m [1m[34mSELECT "term_taxonomy".* FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? ORDER BY "term_taxonomy"."id" ASC LIMIT ?[0m [["taxonomy", "site"], ["LIMIT", 1]]
|
1356
1356
|
[1m[36mCamaleonCms::Site Load (0.1ms)[0m [1m[34mSELECT "term_taxonomy".* FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? ORDER BY "term_taxonomy"."term_group" DESC, "term_taxonomy"."id" ASC[0m [["taxonomy", "site"]]
|
1357
|
+
[1m[36mCamaleonCms::Site Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? LIMIT ?[0m [["taxonomy", "site"], ["LIMIT", 1]]
|
1358
|
+
[1m[36mCamaleonCms::Site Exists? (0.0ms)[0m [1m[34mSELECT 1 AS one FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? LIMIT ?[0m [["taxonomy", "site"], ["LIMIT", 1]]
|
1359
|
+
[1m[36mCamaleonCms::Site Load (0.0ms)[0m [1m[34mSELECT "term_taxonomy".* FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? ORDER BY "term_taxonomy"."id" ASC LIMIT ?[0m [["taxonomy", "site"], ["LIMIT", 1]]
|
1360
|
+
[1m[36mCamaleonCms::Site Load (0.0ms)[0m [1m[34mSELECT "term_taxonomy".* FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? ORDER BY "term_taxonomy"."term_group" DESC, "term_taxonomy"."id" ASC[0m [["taxonomy", "site"]]
|
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.1
|
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-03-
|
11
|
+
date: 2023-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|