pageflow 14.3.0 → 14.4.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pageflow might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -18
- data/app/helpers/pageflow/meta_tags_helper.rb +3 -3
- data/app/models/pageflow/membership.rb +3 -4
- data/app/models/pageflow/revision.rb +12 -0
- data/config/locales/de.yml +4 -0
- data/config/locales/en.yml +4 -0
- data/lib/pageflow/version.rb +1 -1
- 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: 83633ca0a4d539fe72289335da8fadc780b40861611367e6b457a8ea5021541a
|
4
|
+
data.tar.gz: 836e8c19598fe2f86ef5797baab839d27d884216b5de86f39a46606b1d427ff8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05ef59f396f6726ec8022d9fcc2605600204c0e0554cf5b6c1514f7968303e09db7f2deab55e2a58da6902e254ef373e961adf888c531f3069409ad9bc56585a
|
7
|
+
data.tar.gz: bae10300d19ce28fe2ca218d091ee71ae9267a3c0d9f756596bb88d36a3532e75173dd1139484b0b9cc177ac3a7435dec7dc2504dda3c4895705e62aac266ddb
|
data/CHANGELOG.md
CHANGED
@@ -1,26 +1,16 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
### Version 14.
|
3
|
+
### Version 14.4.0
|
4
4
|
|
5
|
-
2019-
|
5
|
+
2019-08-13
|
6
6
|
|
7
|
-
[Compare changes](https://github.com/codevise/pageflow/compare/14-
|
7
|
+
[Compare changes](https://github.com/codevise/pageflow/compare/14-3-stable...v14.4.0)
|
8
8
|
|
9
|
-
-
|
10
|
-
([#
|
11
|
-
-
|
12
|
-
([#
|
13
|
-
- Structured data improvements
|
14
|
-
([#1189](https://github.com/codevise/pageflow/pull/1189))
|
15
|
-
- Remove margin right of links in page text
|
16
|
-
([#1188](https://github.com/codevise/pageflow/pull/1188))
|
17
|
-
- Add theme option for alternative content link icon
|
18
|
-
([#1184](https://github.com/codevise/pageflow/pull/1184))
|
19
|
-
- Support CDN that redirects to HTTPS
|
20
|
-
([#1190](https://github.com/codevise/pageflow/pull/1190))
|
21
|
-
- Bug fix: Prevent hiding links in credits menu
|
22
|
-
([#1182](https://github.com/codevise/pageflow/pull/1182))
|
9
|
+
- Fix entry membership create error
|
10
|
+
([#1200](https://github.com/codevise/pageflow/pull/1200))
|
11
|
+
- Move meta data defaults to attribute reader
|
12
|
+
([#1198](https://github.com/codevise/pageflow/pull/1198))
|
23
13
|
|
24
14
|
See
|
25
|
-
[14-
|
15
|
+
[14-3-stable branch](https://github.com/codevise/pageflow/blob/14-3-stable/CHANGELOG.md)
|
26
16
|
for previous changes.
|
@@ -7,9 +7,9 @@ module Pageflow
|
|
7
7
|
|
8
8
|
def meta_tags_data_for_entry(entry)
|
9
9
|
{
|
10
|
-
keywords: entry.keywords.presence
|
11
|
-
author: entry.author.presence
|
12
|
-
publisher: entry.publisher.presence
|
10
|
+
keywords: entry.keywords.presence,
|
11
|
+
author: entry.author.presence,
|
12
|
+
publisher: entry.publisher.presence
|
13
13
|
}
|
14
14
|
end
|
15
15
|
end
|
@@ -11,7 +11,7 @@ module Pageflow
|
|
11
11
|
foreign_key: 'entity_id',
|
12
12
|
optional: true
|
13
13
|
|
14
|
-
validates :
|
14
|
+
validates :entity, :role, presence: true
|
15
15
|
validates :user_id, uniqueness: {scope: [:entity_type, :entity_id]}
|
16
16
|
validate :account_membership_exists, if: :on_entry?
|
17
17
|
validates :role,
|
@@ -38,9 +38,8 @@ module Pageflow
|
|
38
38
|
private
|
39
39
|
|
40
40
|
def account_membership_exists
|
41
|
-
|
42
|
-
|
43
|
-
end
|
41
|
+
errors[:base] << 'Entry Membership misses presupposed Membership on account of entry' if
|
42
|
+
user.present? && !user.accounts.include?(entity.account)
|
44
43
|
end
|
45
44
|
|
46
45
|
def on_entry?
|
@@ -97,6 +97,18 @@ module Pageflow
|
|
97
97
|
self[:share_providers] || entry.theming.default_share_providers
|
98
98
|
end
|
99
99
|
|
100
|
+
def author
|
101
|
+
read_attribute(:author) || Pageflow.config.default_author_meta_tag
|
102
|
+
end
|
103
|
+
|
104
|
+
def publisher
|
105
|
+
read_attribute(:publisher) || Pageflow.config.default_publisher_meta_tag
|
106
|
+
end
|
107
|
+
|
108
|
+
def keywords
|
109
|
+
read_attribute(:keywords) || Pageflow.config.default_keywords_meta_tag
|
110
|
+
end
|
111
|
+
|
100
112
|
def active_share_providers
|
101
113
|
share_providers.select { |_k, v| v }.keys
|
102
114
|
end
|
data/config/locales/de.yml
CHANGED
data/config/locales/en.yml
CHANGED
data/lib/pageflow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pageflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.
|
4
|
+
version: 14.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Codevise Solutions Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|