pageflow-support 15.6.1 → 15.7.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf85bb1665b297092bee0005fb1be0477d528ad2907f4ce45cd64c4d7b6650e4
|
4
|
+
data.tar.gz: 4eb0818832bcc84fedcca13098e6a0efe4d2a6a256855bbcb5a4992f3418d858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 609ae3b9ff9661b05c0375303cebf00752abdc5940a7c870885d362955dadb1678c7f8d080dda9a463f1bcf2acbb2694ec99cf4b37b685a7a5886224235f33a3
|
7
|
+
data.tar.gz: cb6a760c16a5719487eacfc169268d6307fa92873b5fa09ab80fbcf46501c63e3866078156e9e27b86cb9277eead6ebeb4f087aa17810e43ba203661c3c17ecc
|
data/pageflow/lint/file_type.rb
CHANGED
@@ -57,7 +57,8 @@ module Pageflow
|
|
57
57
|
|
58
58
|
it 'provides css_background_image_urls that returns hash if present' do
|
59
59
|
if file_type.css_background_image_urls
|
60
|
-
|
60
|
+
entry = create(:entry)
|
61
|
+
result = file_type.css_background_image_urls_for(file, entry: entry)
|
61
62
|
|
62
63
|
expect(result).to be_a(Hash)
|
63
64
|
end
|
@@ -19,6 +19,7 @@ module Pageflow
|
|
19
19
|
helper.extend(BackgroundImageHelper)
|
20
20
|
helper.extend(EntryJsonSeedHelper)
|
21
21
|
helper.extend(PageflowPaged::PageBackgroundAssetHelper)
|
22
|
+
helper.extend(PageflowPaged::ThirdPartyEmbedConsentHelper)
|
22
23
|
helper.extend(PagesHelper)
|
23
24
|
helper.extend(VideoFilesHelper)
|
24
25
|
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Pageflow
|
2
|
+
module TestEntryType
|
3
|
+
def self.register(config, options = {})
|
4
|
+
entry_type = new(options)
|
5
|
+
config.entry_types.register(entry_type)
|
6
|
+
|
7
|
+
config.for_entry_type(entry_type) do |entry_type_config|
|
8
|
+
# Revisions and entry templates use a theme named "default" by
|
9
|
+
# default. We need to register such a theme to prevent
|
10
|
+
# validation errors.
|
11
|
+
entry_type_config.themes.register(:default)
|
12
|
+
end
|
13
|
+
|
14
|
+
entry_type
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.new(options = {})
|
18
|
+
EntryType.new(name: 'test',
|
19
|
+
editor_fragment_renderer: nil,
|
20
|
+
frontend_app: -> {},
|
21
|
+
configuration: TestEntryTypeConfiguration,
|
22
|
+
**options)
|
23
|
+
end
|
24
|
+
|
25
|
+
class TestEntryTypeConfiguration
|
26
|
+
include EntryTypeConfiguration
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module UsedFileTestHelper
|
2
2
|
# creates a file with usage in entry
|
3
3
|
# and sets the magic @entry-variable (always present in views) for file lookup
|
4
|
-
def create_used_file(model, entry: nil, **attributes)
|
5
|
-
file = create(model, attributes)
|
4
|
+
def create_used_file(model, *traits, entry: nil, **attributes)
|
5
|
+
file = create(model, *traits, attributes)
|
6
6
|
@entry = entry || Pageflow::PublishedEntry.new(create(:entry, :published))
|
7
7
|
usage = file.usages.create(revision: @entry.revision)
|
8
8
|
Pageflow::UsedFile.new(file, usage)
|
9
9
|
end
|
10
|
-
end
|
10
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pageflow-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.
|
4
|
+
version: 15.7.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:
|
11
|
+
date: 2022-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pageflow
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 15.
|
19
|
+
version: 15.7.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 15.
|
26
|
+
version: 15.7.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mysql2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -229,7 +229,9 @@ files:
|
|
229
229
|
- pageflow/support/config/capybara.rb
|
230
230
|
- pageflow/support/config/paperclip.rb
|
231
231
|
- pageflow/support/config/webmock.rb
|
232
|
+
- pageflow/test_entry_type.rb
|
232
233
|
- pageflow/test_page_type.rb
|
234
|
+
- pageflow/test_uploadable_file.rb
|
233
235
|
- pageflow/test_widget_type.rb
|
234
236
|
- pageflow/used_file_test_helper.rb
|
235
237
|
homepage: https://pageflow.io
|