abizvn-cms 0.2.2 → 0.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab18aee71e9c2967e31c9446aec74217cbd0810c7c5b912d7a6f576da417470f
4
- data.tar.gz: 5b719dd730bad7a04fd4720288cab211d520f6e677c3bbd49d1ded3c76a302fe
3
+ metadata.gz: 3a30b6106a38c2d7e8d65d943accab5d821087cbecc23649866fd61f5c259d09
4
+ data.tar.gz: 4d27bd2ee23cf5ee3ee91744f5b032383388abd32e8cc7756a6905d9b6df0e56
5
5
  SHA512:
6
- metadata.gz: 98a28a64f0494d9bf8a152231ab3936a02dc8fd891fddc86308733b6e8ecf576a556baca2374f1b541219b23c4721f439ea434a3e373fb88d93d8ded22369fbf
7
- data.tar.gz: f6bbcf1817d809dda4ce75e2470705d610ed02fb3abb138be99ba5b84fc3994327405118ef01c6c86d426598d079feca25631224f3dd87d8426ddef2bc74758a
6
+ metadata.gz: d2f950e955eaf04871de05b81bb4dcfd219f04bc553fbcb1f34cf38cc96c20d5d90d18fbef3a2f72bcc7800c4041b2a23af605708969d3ced50c18fdb93ee10d
7
+ data.tar.gz: 462164e5d367e4287bfff246c1a1fa47f310a51a72abcbcb121da47bc95a627cf0214669a90c686b304128421df58c0f56384ddf8e6166e1d9309f5d3dba0761
@@ -1,7 +1,7 @@
1
1
  module Abizvn
2
2
  module Cms
3
3
  class ArticleSerializer < ArticleLiteSerializer
4
- attributes :description, :created_at
4
+ attributes :description, :full_content
5
5
 
6
6
  attribute :category do |article|
7
7
  if article.category
@@ -1,6 +1,8 @@
1
1
  module Abizvn
2
2
  module Cms
3
3
  class CategoryArticlesSerializer < CategoryLiteSerializer
4
+ attributes :description
5
+
4
6
  attribute :articles do |entity, params|
5
7
  next unless params[:articles].present?
6
8
 
@@ -3,7 +3,7 @@ module Abizvn
3
3
  class CategoryLiteSerializer
4
4
  include JSONAPI::Serializer
5
5
 
6
- attributes :id, :code, :name, :updated_at
6
+ attributes :id, :code, :name, :title
7
7
  end
8
8
  end
9
9
  end
@@ -0,0 +1,6 @@
1
+ class AddNewFieldsToCategory < ActiveRecord::Migration[7.2]
2
+ def change
3
+ add_column :cms_categories, :title, :string
4
+ add_column :cms_categories, :description, :text
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ class AddFullContentToArticles < ActiveRecord::Migration[7.2]
2
+ def change
3
+ add_column :cms_articles, :full_content, :text
4
+ end
5
+ end
@@ -1,5 +1,5 @@
1
1
  module Abizvn
2
2
  module Cms
3
- VERSION = "0.2.2"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abizvn-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-27 00:00:00.000000000 Z
11
+ date: 2025-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -182,6 +182,8 @@ files:
182
182
  - db/migrate/20250301063841_add_slug_to_articles.rb
183
183
  - db/migrate/20250426050330_update_category_remove_general.rb
184
184
  - db/migrate/20250427041233_add_order_to_category.rb
185
+ - db/migrate/20250505075358_add_new_fields_to_category.rb
186
+ - db/migrate/20250505080447_add_full_content_to_articles.rb
185
187
  - lib/abizvn/cms.rb
186
188
  - lib/abizvn/cms/engine.rb
187
189
  - lib/abizvn/cms/version.rb