pageflow-text-page 1.6.0 → 1.8.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: 62541c66c7a4e7cf14968341cdb71305e72edfdc3c482d8c3624f22e0a1e656d
4
- data.tar.gz: b352873cacf1aaf22c559adbf439f754204ed9f5bef50b916a434de7ebc9f89c
3
+ metadata.gz: 295b045fa5aab7a8baed0d8e0548de7de0cecd2bffb0f5845044fc3ed9e1db77
4
+ data.tar.gz: eca1242f71ee79c760848165d531ff62d373454cfbeec2f5527442abbd694868
5
5
  SHA512:
6
- metadata.gz: 25aa572040dd199bd7b527d6d21ead5acb8a336ca4c3ee6355447f244ecf78b9ebf0631374ecc6bc56a311f3d3c67877eb5f52160d534d58955403c29e5aafa7
7
- data.tar.gz: 590d46fa27064db4371829e8b7f3bc65c69933ed1a0fb23710358ab08dde0a097c0f6e2189cff25e47ea4ee7b8d24749e8b7b4cb4f1b0e357bddec2ef584799e
6
+ metadata.gz: bfc0c08699766af7322e94ee4ee4dd54136e4e792c04b76d19e61c5be6eaf6d86569f7d92f28a994caebc416c814b5b207d4d283d7b23055dd988b1fee8d0f91
7
+ data.tar.gz: 8c5a8d28a72a9474f07ee90c6f809d2edbc08d6f6417169facdb4c880a2d8694ef1470cc1fdb5b0c0393d84dd48605b982bc65113b688d35b7a6b51746412735
@@ -0,0 +1,6 @@
1
+ name: tests
2
+ on: [push, pull_request, workflow_dispatch]
3
+
4
+ jobs:
5
+ call-workflow:
6
+ uses: codevise/pageflow/.github/workflows/reusable-workflow-rspec.yml@master
data/CHANGELOG.md CHANGED
@@ -1,18 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 1.6.0
3
+ ### Version 1.8.0
4
4
 
5
- 2019-11-21
5
+ 2024-01-15
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow-text-page/compare/1-5-stable...v1.6.0)
7
+ [Compare changes](https://github.com/codevise/pageflow-text-page/compare/1-7-stable...v1.8.0)
8
8
 
9
- - Restrict theme-induced text max-width to left text layout
10
- ([#31](https://github.com/codevise/pageflow-text-page/pull/31))
11
- - Change file lookup to perma_id
12
- ([#30](https://github.com/codevise/pageflow-text-page/pull/30))
13
- - Fix Travis CI
14
- ([#29](https://github.com/codevise/pageflow-text-page/pull/29))
9
+ - Support Pageflow 17
10
+ ([#35](https://github.com/codevise/pageflow-text-page/pull/35),
11
+ [#34](https://github.com/codevise/pageflow-text-page/pull/34))
15
12
 
16
13
  See
17
- [1-5-stable branch](https://github.com/codevise/pageflow-text-page/blob/1-5-stable/CHANGELOG.md)
14
+ [1-7-stable branch](https://github.com/codevise/pageflow-text-page/blob/1-7-stable/CHANGELOG.md)
18
15
  for previous changes.
data/Gemfile CHANGED
@@ -2,3 +2,10 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in chart.gemspec
4
4
  gemspec
5
+
6
+ if ENV['PAGEFLOW_DEPENDENCIES'] == 'experimental'
7
+ git 'https://github.com/codevise/pageflow', branch: 'edge', glob: '**/*.gemspec' do
8
+ gem 'pageflow'
9
+ gem 'pageflow-support'
10
+ end
11
+ end
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Pageflow Text Page
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/pageflow-text-page.svg)](http://badge.fury.io/rb/pageflow-text-page)
4
- [![Build Status](https://travis-ci.org/codevise/pageflow-text-page.svg?branch=master)](https://travis-ci.org/codevise/pageflow-text-page)
4
+ [![Build Status](https://github.com/codevise/pageflow-text-page/workflows/tests/badge.svg)](https://github.com/codevise/pageflow-text-page/actions)
5
5
 
6
6
  Page type to display large texts on a page.
7
7
 
@@ -4,6 +4,12 @@ $text-page-content-text-base-font-size: 0.8em !default;
4
4
  /// Used to undo scaling of text title and content text on phone
5
5
  $text-page-content-text-phone-base-font-size: 1em !default;
6
6
 
7
+ $text-page-content-text-color: #000 !default;
8
+ $text-page-content-text-inverted-color: #fff !default;
9
+
10
+ $text-page-text-title-color: null !default;
11
+ $text-page-text-title-inverted-color: null !default;
12
+
7
13
  /// Typography of the header displayed above the content text
8
14
  /// paragraph.
9
15
  $text-page-text-title-typography: () !default;
@@ -40,6 +46,7 @@ $text-page-anchor-inverted-color: $page-anchor-color !default;
40
46
  .page_text {
41
47
  font-size: $text-page-content-text-base-font-size;
42
48
  max-width: 500px;
49
+ color: $text-page-content-text-color;
43
50
 
44
51
  @include phone {
45
52
  font-size: $text-page-content-text-phone-base-font-size;
@@ -51,6 +58,8 @@ $text-page-anchor-inverted-color: $page-anchor-color !default;
51
58
  }
52
59
 
53
60
  .page_sub_header {
61
+ color: $text-page-text-title-color;
62
+
54
63
  @include typography(
55
64
  $text-page-text-title-typography,
56
65
  (
@@ -77,8 +86,16 @@ $text-page-anchor-inverted-color: $page-anchor-color !default;
77
86
  color: $text-page-inline-image-caption-inverted-text-color;
78
87
  }
79
88
 
80
- .page_text a {
81
- color: $text-page-anchor-inverted-color;
89
+ .page_text {
90
+ color: $text-page-content-text-inverted-color;
91
+
92
+ a {
93
+ color: $text-page-anchor-inverted-color;
94
+ }
95
+
96
+ .page_sub_header {
97
+ color: $text-page-text-title-inverted-color;
98
+ }
82
99
  }
83
100
  }
84
101
  }
@@ -67,7 +67,6 @@ $inverted-background-color: black;
67
67
 
68
68
  .contentInnerWrapper {
69
69
  position: relative;
70
- color: black;
71
70
 
72
71
  .content_background_layer {
73
72
  height: 100%;
@@ -380,8 +379,6 @@ $inverted-background-color: black;
380
379
  &.invert_text .scroller {
381
380
  > div {
382
381
  .contentInnerWrapper {
383
- color: white;
384
-
385
382
  .content_background_layer {
386
383
  background-color: black;
387
384
  }
@@ -5,7 +5,22 @@ module Pageflow
5
5
  class Engine < Rails::Engine
6
6
  isolate_namespace Pageflow::TextPage
7
7
 
8
- config.autoload_paths << File.join(config.root, 'lib')
8
+ if Rails.respond_to?(:autoloaders)
9
+ lib = root.join('lib')
10
+
11
+ config.autoload_paths << lib
12
+ config.eager_load_paths << lib
13
+
14
+ initializer 'pageflow_text_page.autoloading' do
15
+ Rails.autoloaders.main.ignore(
16
+ lib.join('pageflow-text-page.rb'),
17
+ lib.join('pageflow/text_page/version.rb')
18
+ )
19
+ end
20
+ else
21
+ config.autoload_paths << File.join(config.root, 'lib')
22
+ end
23
+
9
24
  config.i18n.load_path += Dir[config.root.join('config', 'locales', '**', '*.yml').to_s]
10
25
  end
11
26
  end
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module TextPage
3
- VERSION = '1.6.0'.freeze
3
+ VERSION = '1.8.0'.freeze
4
4
  end
5
5
  end
@@ -1,4 +1,5 @@
1
1
  require 'pageflow/text_page/engine'
2
+ require 'pageflow/text_page/version'
2
3
 
3
4
  module Pageflow
4
5
  module TextPage
@@ -16,15 +16,15 @@ Gem::Specification.new do |spec|
16
16
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
17
  spec.require_paths = ['lib']
18
18
 
19
- spec.required_ruby_version = '~> 2.1'
19
+ spec.required_ruby_version = '>= 2.1'
20
20
 
21
- spec.add_runtime_dependency 'pageflow', ['>= 15', '< 16']
21
+ spec.add_runtime_dependency 'pageflow', ['>= 15', '< 18']
22
22
  spec.add_runtime_dependency 'pageflow-public-i18n', '~> 1.0'
23
23
 
24
24
  spec.add_development_dependency 'bundler', ['>= 1.0', '< 3']
25
- spec.add_development_dependency 'pageflow-support', ['>= 15', '< 16']
25
+ spec.add_development_dependency 'pageflow-support', ['>= 15', '< 18']
26
26
  spec.add_development_dependency 'rake', '~> 12.0'
27
- spec.add_development_dependency 'rspec-rails', '~> 3.0'
27
+ spec.add_development_dependency 'rspec-rails', '~> 6.0'
28
28
 
29
29
  # Semantic versioning rake tasks
30
30
  spec.add_development_dependency 'semmy', '~> 1.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-text-page
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.8.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-21 00:00:00.000000000 Z
11
+ date: 2024-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '15'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '16'
22
+ version: '18'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '15'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '16'
32
+ version: '18'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: pageflow-public-i18n
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +73,7 @@ dependencies:
73
73
  version: '15'
74
74
  - - "<"
75
75
  - !ruby/object:Gem::Version
76
- version: '16'
76
+ version: '18'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
@@ -83,7 +83,7 @@ dependencies:
83
83
  version: '15'
84
84
  - - "<"
85
85
  - !ruby/object:Gem::Version
86
- version: '16'
86
+ version: '18'
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: rake
89
89
  requirement: !ruby/object:Gem::Requirement
@@ -104,14 +104,14 @@ dependencies:
104
104
  requirements:
105
105
  - - "~>"
106
106
  - !ruby/object:Gem::Version
107
- version: '3.0'
107
+ version: '6.0'
108
108
  type: :development
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - "~>"
113
113
  - !ruby/object:Gem::Version
114
- version: '3.0'
114
+ version: '6.0'
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: semmy
117
117
  requirement: !ruby/object:Gem::Requirement
@@ -133,10 +133,10 @@ executables: []
133
133
  extensions: []
134
134
  extra_rdoc_files: []
135
135
  files:
136
+ - ".github/workflows/tests.yml"
136
137
  - ".gitignore"
137
138
  - ".jshintignore"
138
139
  - ".jshintrc"
139
- - ".travis.yml"
140
140
  - CHANGELOG.md
141
141
  - Gemfile
142
142
  - README.md
@@ -176,7 +176,7 @@ require_paths:
176
176
  - lib
177
177
  required_ruby_version: !ruby/object:Gem::Requirement
178
178
  requirements:
179
- - - "~>"
179
+ - - ">="
180
180
  - !ruby/object:Gem::Version
181
181
  version: '2.1'
182
182
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -185,8 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  - !ruby/object:Gem::Version
186
186
  version: '0'
187
187
  requirements: []
188
- rubyforge_project:
189
- rubygems_version: 2.7.10
188
+ rubygems_version: 3.4.10
190
189
  signing_key:
191
190
  specification_version: 4
192
191
  summary: Pageflow Page Type text pages
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- language: ruby
2
- rvm: 2.5
3
-
4
- # User container based travis infrastructure which allows caching
5
- # features for open source projects.
6
- sudo: false
7
- cache: bundler
8
-
9
- script:
10
- - bin/rspec
11
-
12
- services:
13
- - mysql