HornsAndHooves-publify_core 10.1.0 → 10.2.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: 109eaa0d80e831ff83cd6067dfa3920895e59ef465533d2e6ee2346275a1191d
4
- data.tar.gz: 2e2319019464945e2c6abe8d9434dc8505900fc13d163b3f58fed20e0063ddf2
3
+ metadata.gz: 9a09dce0d55773731cef11473dcf8be31314f3aa1098d3f8dd317c11af86c2b9
4
+ data.tar.gz: e6b94c596692f5e7c70e84ed1305b127ade475cbf202ff2eefa5342f8ecae9ab
5
5
  SHA512:
6
- metadata.gz: 8ba568f08175773bc85e078b69e099afd3286a4ca1a8ac29fde85e68b81f0529ebc1bdfb58cc8fe726c28e2cbbb10c276502145e7b5283095c6d46be7830e14d
7
- data.tar.gz: 7eeed9172a3c7e4c0ef49668068f7587d16e2131ecd97d0214fc1e78fcc9372e17ede1d10931540ff919b8c5550a9bc775b02c251c14d4913f4f94e5adcd9048
6
+ metadata.gz: 107f21bd932909c13c19fc87e6b6e73e7f9e62f54981981213c593d1b1eaf1aa0659deff10d36c051c20d6dc1e82bc711babee1d7b94cd822fc3359871dbde0a
7
+ data.tar.gz: ad597f44c029a425659d95257190c134d022e955b6e9d56a79968e18358425402f40726e4a6e48e1ddf346c0017664bd9deb9456e0bfc1af258dfe28810cc947
@@ -179,14 +179,15 @@ class Admin::ContentController < Admin::BaseController
179
179
  :allow_pings,
180
180
  :body,
181
181
  :body_and_extended,
182
- :resource_id,
183
182
  :draft,
183
+ :excerpt,
184
184
  :extended,
185
+ :image_alt,
186
+ :keywords,
185
187
  :permalink,
186
188
  :published_at,
187
- :title,
188
- :keywords,
189
- :excerpt)
189
+ :resource_id,
190
+ :title)
190
191
  end
191
192
 
192
193
  def default_text_filter
@@ -4,18 +4,18 @@ class AddMissingIndexes < ActiveRecord::Migration[4.2]
4
4
  set_role "blog_content"
5
5
 
6
6
  def change
7
- add_index :feedback, [:id, :type]
7
+ add_index :feedback, %i[id type]
8
8
  add_index :feedback, :user_id
9
- add_index :sidebars, [:id, :type]
9
+ add_index :sidebars, %i[id type]
10
10
  add_index :contents, :user_id
11
- add_index :contents, [:id, :type]
11
+ add_index :contents, %i[id type]
12
12
  add_index :articles_tags, :tag_id
13
13
  add_index :articles_tags, :article_id
14
14
  add_index :profiles_rights, :profile_id
15
15
  add_index :users, :profile_id
16
16
  add_index :users, :text_filter_id
17
17
  add_index :users, :resource_id
18
- add_index :triggers, [:pending_item_id, :pending_item_type]
18
+ add_index :triggers, %i[pending_item_id pending_item_type]
19
19
  add_index :redirections, :content_id
20
20
  add_index :redirections, :redirect_id
21
21
  add_index :resources, :article_id
@@ -19,13 +19,13 @@ class RemoveProfiles < ActiveRecord::Migration[4.2]
19
19
  end
20
20
 
21
21
  Profile.create!(label: "admin", nicename: "Publify administrator",
22
- modules: [:dashboard, :articles, :notes, :pages, :feedback,
23
- :media, :themes, :sidebar, :profile, :users,
24
- :settings, :seo])
22
+ modules: %i[dashboard articles notes pages feedback
23
+ media themes sidebar profile users
24
+ settings seo])
25
25
  Profile.create!(label: "publisher", nicename: "Blog publisher",
26
- modules: [:dashboard, :articles, :notes, :pages, :feedback,
27
- :media, :profile])
26
+ modules: %i[dashboard articles notes pages feedback
27
+ media profile])
28
28
  Profile.create!(label: "contributor", nicename: "Contributor",
29
- modules: [:dashboard, :profile])
29
+ modules: %i[dashboard profile])
30
30
  end
31
31
  end
@@ -0,0 +1,7 @@
1
+ class AddImageAltFieldToContentsTable < ActiveRecord::Migration[6.1]
2
+ set_role "blog_content"
3
+
4
+ def change
5
+ add_column :contents, :image_alt, :string
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PublifyCore
4
- VERSION = "10.1.0"
4
+ VERSION = "10.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HornsAndHooves-publify_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.1.0
4
+ version: 10.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-08-31 00:00:00.000000000 Z
14
+ date: 2023-11-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: aasm
@@ -1001,6 +1001,7 @@ files:
1001
1001
  - db/migrate/20190208152646_move_text_filter_to_name.rb
1002
1002
  - db/migrate/20190209155717_remove_text_filter_ids.rb
1003
1003
  - db/migrate/20190209160610_remove_text_filters.rb
1004
+ - db/migrate/20220815155148_add_image_alt_field_to_contents_table.rb
1004
1005
  - db/seeds.rb
1005
1006
  - lib/email_notify.rb
1006
1007
  - lib/format.rb