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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aba1d4b02ab9b56d100884e9dc5bcbdf8ff41f16649ad4d201294b373c8b8420
4
- data.tar.gz: e326fd8cd1c03b4dbbcec1f0d3bde885fc6104382a416c8508d3fffcad85ddf0
3
+ metadata.gz: 5462913ed0aa0a870f6e439cc538466edbfad347851a9c5c48b13549a43b35fd
4
+ data.tar.gz: 8744e717ffdc8eb6c41b9edf41bb31aee30818ab1d25bbfaeb53bc80be1457a7
5
5
  SHA512:
6
- metadata.gz: ebeb6842563f554d7ef86c016810671943fc1580c06b38d21a6030d2fbe8cb48c409e0065f37254cdffb646e5817d47e481420df457920c1f62b771acb363a26
7
- data.tar.gz: 4077d54b9b4a6d0ab314be9f26933eecada138a195473cfbe32705ef167275db91e5d794e554e1839577bfd848ae1fc2d2696adf37e392e85b4b0b4280408958
6
+ metadata.gz: dd3175e04ccbda3575cf1aa586993e536419acaf1ae48e4b06a57e354e32d440c2ed527f9c80571cad576a5f23b669f855c057d8582d385458f7632274403a91
7
+ data.tar.gz: 375a9d32c4094197e61af8224c12e5463913dfa1d1bf4f2b89be3a1bb18d2df369b5f3df7c8c23e49a4eab54289a297dcc7a4cc811b57a749289b67f243a6566
@@ -1,5 +1,7 @@
1
1
  module CamaleonCms
2
2
  class Category < CamaleonCms::TermTaxonomy
3
+ include CamaleonCms::CommonRelationships
4
+
3
5
  alias_attribute :site_id, :term_group
4
6
  alias_attribute :post_type_id, :status
5
7
 
@@ -1,5 +1,7 @@
1
1
  module CamaleonCms
2
2
  class NavMenu < CamaleonCms::TermTaxonomy
3
+ include CamaleonCms::CommonRelationships
4
+
3
5
  default_scope { where(taxonomy: :nav_menu).order(id: :asc) }
4
6
  alias_attribute :site_id, :parent_id
5
7
 
@@ -1,5 +1,7 @@
1
1
  module CamaleonCms
2
2
  class NavMenuItem < CamaleonCms::TermTaxonomy
3
+ include CamaleonCms::CommonRelationships
4
+
3
5
  alias_attribute :site_id, :term_group
4
6
  alias_attribute :label, :name
5
7
  alias_attribute :url, :description
@@ -1,5 +1,7 @@
1
1
  module CamaleonCms
2
2
  class Plugin < CamaleonCms::TermTaxonomy
3
+ include CamaleonCms::CommonRelationships
4
+
3
5
  # attrs:
4
6
  # term_group => status active (1, nil)
5
7
  # slug => plugin key
@@ -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 PostDefault < 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']}posts"
8
7
 
@@ -1,5 +1,7 @@
1
1
  module CamaleonCms
2
2
  class PostTag < CamaleonCms::TermTaxonomy
3
+ include CamaleonCms::CommonRelationships
4
+
3
5
  default_scope { where(taxonomy: :post_tag) }
4
6
 
5
7
  has_many :posts, foreign_key: :objectid, through: :term_relationships, source: :object
@@ -1,5 +1,7 @@
1
1
  module CamaleonCms
2
2
  class PostType < CamaleonCms::TermTaxonomy
3
+ include CamaleonCms::CommonRelationships
4
+
3
5
  alias_attribute :site_id, :parent_id
4
6
  default_scope { where(taxonomy: :post_type) }
5
7
 
@@ -1,5 +1,6 @@
1
1
  module CamaleonCms
2
2
  class Site < CamaleonCms::TermTaxonomy
3
+ include CamaleonCms::CommonRelationships
3
4
  include CamaleonCms::SiteDefaultSettings
4
5
 
5
6
  # attrs: [name, description, slug]
@@ -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
@@ -1,5 +1,7 @@
1
1
  module CamaleonCms
2
2
  class Theme < CamaleonCms::TermTaxonomy
3
+ include CamaleonCms::CommonRelationships
4
+
3
5
  # attrs:
4
6
  # slug => plugin key
5
7
  belongs_to :site, class_name: 'CamaleonCms::Site', foreign_key: :parent_id, required: false
@@ -1,5 +1,7 @@
1
1
  module CamaleonCms
2
2
  class UserRole < CamaleonCms::TermTaxonomy
3
+ include CamaleonCms::CommonRelationships
4
+
3
5
  after_destroy :set_users_as_cilent
4
6
 
5
7
  default_scope { where(taxonomy: :user_roles) }
@@ -5,7 +5,7 @@ module CamaleonCms
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  included do
8
- class_name = self.class.name.demodulize
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')
@@ -1,3 +1,3 @@
1
1
  module CamaleonCms
2
- VERSION = '2.7.0'.freeze
2
+ VERSION = '2.7.1'.freeze
3
3
  end
@@ -1354,3 +1354,7 @@ DELETE FROM "users"
1354
1354
  CamaleonCms::Site Exists? (0.0ms) SELECT 1 AS one FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? LIMIT ? [["taxonomy", "site"], ["LIMIT", 1]]
1355
1355
  CamaleonCms::Site Load (0.1ms) SELECT "term_taxonomy".* FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? ORDER BY "term_taxonomy"."id" ASC LIMIT ? [["taxonomy", "site"], ["LIMIT", 1]]
1356
1356
  CamaleonCms::Site Load (0.1ms) SELECT "term_taxonomy".* FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? ORDER BY "term_taxonomy"."term_group" DESC, "term_taxonomy"."id" ASC [["taxonomy", "site"]]
1357
+ CamaleonCms::Site Exists? (0.2ms) SELECT 1 AS one FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? LIMIT ? [["taxonomy", "site"], ["LIMIT", 1]]
1358
+ CamaleonCms::Site Exists? (0.0ms) SELECT 1 AS one FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? LIMIT ? [["taxonomy", "site"], ["LIMIT", 1]]
1359
+ CamaleonCms::Site Load (0.0ms) SELECT "term_taxonomy".* FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? ORDER BY "term_taxonomy"."id" ASC LIMIT ? [["taxonomy", "site"], ["LIMIT", 1]]
1360
+ CamaleonCms::Site Load (0.0ms) SELECT "term_taxonomy".* FROM "term_taxonomy" WHERE "term_taxonomy"."taxonomy" = ? ORDER BY "term_taxonomy"."term_group" DESC, "term_taxonomy"."id" ASC [["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.0
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-22 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt