pageflow-text-page 1.1.0 → 1.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: 8096e0ff17017dd6e7d493af58e2904245d78e2f8d10ff542f99fc7063062389
4
- data.tar.gz: 702a53dec8cbd4731b1d06079146221279a3c4c2e6699e89a5403d0337cb1e26
3
+ metadata.gz: 8b9fd19cfb1329ec3e4d80fbe07541dabf310d492b3eb6b6d65df6dda2b74c69
4
+ data.tar.gz: 61dfbba3e847b3c2aceb5a523c9a7441a02d08d842dd623be1557197a276639c
5
5
  SHA512:
6
- metadata.gz: 6e88cba83d513144b9c59ae07a0f8fd8cc329c35970f491e6e87324cfd78b9a837b876f1b17e32ca11aa20b0ce829a88595b4385e97c93a10d7f45f9ee47f4d8
7
- data.tar.gz: d8ba5eaf7953dead13a35349a0001369ff164aa86e7b4b15b42a1972e054e0f4b81bebcdeb0318b9399237feb88530b295890910e94fedd7a9c5dfbbfcceaf93
6
+ metadata.gz: 4e2bd1d8855901bc9bc9191eb949f19fc1ca612a975f2947da2f9a352d6a006353491a0db4ebf0835307772cd2cf722c5467e56a126bdcb594045be8660ebffc
7
+ data.tar.gz: 8b2021a196dcf6513a7e934caa44d57264a0d06975c83f3b5706a5acce54c90f7ae7fc9ce54eac832da1b0d3ca0e0235e8d5138da935be14af3290ddd1c6e5b5
data/.gitignore CHANGED
@@ -13,6 +13,7 @@ lib/bundler/man
13
13
  pkg
14
14
  rdoc
15
15
  spec/reports
16
+ spec/dummy
16
17
  test/tmp
17
18
  test/version_tmp
18
19
  tmp
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
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
data/CHANGELOG.md CHANGED
@@ -1,29 +1,16 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 1.1.0
3
+ ### Version 1.2.0
4
4
 
5
- 2018-12-10
5
+ 2019-04-08
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow-text-page/compare/1-0-stable...v1.1.0)
7
+ [Compare changes](https://github.com/codevise/pageflow-text-page/compare/1-1-stable...v1.2.0)
8
8
 
9
- - Add support for Pageflow 13
10
- ([#16](https://github.com/codevise/pageflow-text-page/pull/16))
11
- - Make background color of content area configurable
12
- ([#14](https://github.com/codevise/pageflow-text-page/pull/14),
13
- [#20](https://github.com/codevise/pageflow-text-page/pull/20))
14
- - Prevent empty but padded caption bar for inline images
15
- ([#19](https://github.com/codevise/pageflow-text-page/pull/19))
16
- - Fix transition effect on chrome 66
17
- ([#18](https://github.com/codevise/pageflow-text-page/pull/18))
18
- - Caption theme options
19
- ([#17](https://github.com/codevise/pageflow-text-page/pull/17))
20
- - Add theme options for content text size
21
- ([#15](https://github.com/codevise/pageflow-text-page/pull/15))
22
- - Prevent overlapping fonts on text-page headers with orientation center
23
- ([#13](https://github.com/codevise/pageflow-text-page/pull/13))
24
- - Remove duplicate .scroller selector
25
- ([#12](https://github.com/codevise/pageflow-text-page/pull/12))
9
+ - Adapt page dom for pageflow 14
10
+ ([#22](https://github.com/codevise/pageflow-text-page/pull/22))
11
+ - Setup page type lint specs
12
+ ([#21](https://github.com/codevise/pageflow-text-page/pull/21))
26
13
 
27
14
  See
28
- [1-0-stable branch](https://github.com/codevise/pageflow-text-page/blob/1-0-stable/CHANGELOG.md)
15
+ [1-1-stable branch](https://github.com/codevise/pageflow-text-page/blob/1-1-stable/CHANGELOG.md)
29
16
  for previous changes.
data/README.md CHANGED
@@ -1,6 +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
5
 
5
6
  Page type to display large texts on a page.
6
7
 
@@ -1,4 +1,4 @@
1
- pageflow.react.registerPageTypeWithDefaultBackground('text_page', {
1
+ pageflow.react.registerPageTypeWithDefaultBackground('text_page', _.extend({
2
2
 
3
3
  prepareNextPageTimeout: 0,
4
4
 
@@ -6,14 +6,14 @@ pageflow.react.registerPageTypeWithDefaultBackground('text_page', {
6
6
  this.content = pageElement.find('.scroller');
7
7
  this.scrollingDiv = pageElement.find('.scroller > div');
8
8
  this.pageSpacerElement = pageElement.find('.page_spacer');
9
- this.contentArea = pageElement.find('.contentText');
9
+ this.contentArea = pageElement.find('.page_text');
10
10
  this.backgroundAsset = pageElement.find('.page_background_asset');
11
11
  this.inlineImage = pageElement.find('.inline_image');
12
- this.inlineImageInitialOffset = pageElement.find('.contentText h3').position().top + pageElement.find('.contentText h3').outerHeight();
12
+ this.inlineImageInitialOffset = pageElement.find('.page_sub_header').position().top + pageElement.find('.page_sub_header').outerHeight();
13
13
  this.fullScreenLayer = pageElement.find('.image_fullscreen_view');
14
14
 
15
15
  if(configuration.text_position == "left" || configuration.text_position == "right") {
16
- this.titleArea = pageElement.find('.backgroundArea .fixed_header_area');
16
+ this.titleArea = pageElement.find('.page_background .fixed_header_area');
17
17
  }
18
18
  else {
19
19
  this.titleArea = pageElement.find('.contentInnerWrapper .page_header');
@@ -64,7 +64,7 @@ pageflow.react.registerPageTypeWithDefaultBackground('text_page', {
64
64
  dimHeightTitle = this.pageSpacerElement.height() - earlyDimOffset,
65
65
  spacerPageRatio = dimHeight / pageElement.height();
66
66
 
67
- pageElement.find('.backgroundArea .fixed_header_area').css('opacity', (0.6 * dimHeightTitle + y)/(dimHeightTitle * 0.6)); // Abblenden des Titels, immer*/
67
+ pageElement.find('.page_background .fixed_header_area').css('opacity', (0.6 * dimHeightTitle + y)/(dimHeightTitle * 0.6)); // Abblenden des Titels, immer*/
68
68
 
69
69
  if(configuration.topasset_dim) {
70
70
  this.backgroundAsset.css('opacity', 1 - (-y / dimHeight)); // Abblenden */
@@ -140,7 +140,7 @@ pageflow.react.registerPageTypeWithDefaultBackground('text_page', {
140
140
  var y = this.content.scroller('positionY');
141
141
 
142
142
  this.resizePageSpacer(pageElement, configuration);
143
- this.inlineImageInitialOffset = pageElement.find('.contentText h3').position().top;
143
+ this.inlineImageInitialOffset = pageElement.find('.page_sub_header').position().top;
144
144
  this.inlineImage.css('top', this.inlineImageInitialOffset + 'px');
145
145
  this.inlineImageInitialTop = this.inlineImage.offset().top - this.scrollingDiv.offset().top;
146
146
  this.applyInlineImageEffects(pageElement, configuration);
@@ -154,7 +154,7 @@ pageflow.react.registerPageTypeWithDefaultBackground('text_page', {
154
154
  var y = this.content.scroller('positionY');
155
155
 
156
156
  this.resizePageSpacer(pageElement, configuration);
157
- this.inlineImageInitialOffset = pageElement.find('.contentText h3').position().top + pageElement.find('.contentText h3').outerHeight();
157
+ this.inlineImageInitialOffset = pageElement.find('.page_sub_header').position().top + pageElement.find('.page_sub_header').outerHeight();
158
158
  this.inlineImage.css('top', this.inlineImageInitialOffset + 'px');
159
159
  this.inlineImageInitialTop = this.inlineImage.offset().top - this.scrollingDiv.offset().top;
160
160
 
@@ -176,11 +176,8 @@ pageflow.react.registerPageTypeWithDefaultBackground('text_page', {
176
176
  var y = this.content.scroller('positionY');
177
177
 
178
178
  pageElement.attr('data-template', 'text_page');
179
- pageElement.find('h2 .tagline').text(configuration.get('tagline') || '');
180
- pageElement.find('h2 .title').text(configuration.get('title') || '');
181
- pageElement.find('h2 .subtitle').text(configuration.get('subtitle') || '');
182
- pageElement.find('.contentText .text_title').text(configuration.get('text_title') || '');
183
- pageElement.find('.contentText p').html(configuration.get('text') || '');
179
+ this.updateDefaultPageContent(pageElement, configuration);
180
+ pageElement.find('.page_text .text_title').text(configuration.get('text_title') || '');
184
181
 
185
182
  pageElement.find('.content_and_background').toggleClass('no_background_asset',
186
183
  configuration.get('background_type') == 'video' ?
@@ -190,7 +187,7 @@ pageflow.react.registerPageTypeWithDefaultBackground('text_page', {
190
187
  pageElement.find('.content_and_background').toggleClass('sticky_inline_image', !!configuration.get('sticky_inline_image'));
191
188
 
192
189
  if(configuration.get('text_position') == "left" || configuration.get('text_position') == "right") {
193
- this.titleArea = pageElement.find('.backgroundArea .fixed_header_area');
190
+ this.titleArea = pageElement.find('.page_background .fixed_header_area');
194
191
  }
195
192
  else {
196
193
  this.titleArea = pageElement.find('.contentInnerWrapper .page_header');
@@ -237,7 +234,7 @@ pageflow.react.registerPageTypeWithDefaultBackground('text_page', {
237
234
 
238
235
  this.resizePageSpacer(pageElement, configuration.attributes);
239
236
 
240
- this.inlineImageInitialOffset = pageElement.find('.contentText h3').position().top + pageElement.find('.contentText h3').outerHeight();
237
+ this.inlineImageInitialOffset = pageElement.find('.page_sub_header').position().top + pageElement.find('.page_sub_header').outerHeight();
241
238
  this.inlineImage.css('top', this.inlineImageInitialOffset + 'px');
242
239
  this.inlineImageInitialTop = this.inlineImage.offset().top - this.scrollingDiv.offset().top;
243
240
  this.applyInlineImageEffects(pageElement, configuration.attributes);
@@ -263,4 +260,4 @@ pageflow.react.registerPageTypeWithDefaultBackground('text_page', {
263
260
  }
264
261
  };
265
262
  }
266
- });
263
+ }, pageflow.defaultPageContent));
@@ -21,14 +21,14 @@ $text-page-inline-image-caption-padding: 7px 10px !default;
21
21
  @include pageflow-page-type-pictograms("text_page");
22
22
 
23
23
  .page .text_page {
24
- .contentText {
24
+ .page_text {
25
25
  font-size: $text-page-content-text-base-font-size;
26
26
 
27
27
  @include phone {
28
28
  font-size: $text-page-content-text-phone-base-font-size;
29
29
  }
30
30
 
31
- h3 {
31
+ .page_sub_header {
32
32
  @include typography(
33
33
  $text-page-text-title-typography,
34
34
  (
@@ -33,8 +33,11 @@ $inverted-background-color: black;
33
33
  }
34
34
 
35
35
  .page .text_page, .js .page .text_page, .js .page:first-child .text_page, .page:first-child .text_page {
36
+ h3 {
37
+ font-size: 1em;
38
+ }
36
39
 
37
- .backgroundArea {
40
+ .page_background {
38
41
 
39
42
  .fixed_header_area {
40
43
  position: absolute;
@@ -47,7 +50,7 @@ $inverted-background-color: black;
47
50
 
48
51
  .page_header {
49
52
 
50
- h2 {
53
+ h3 {
51
54
  margin: 0;
52
55
  }
53
56
  }
@@ -85,7 +88,7 @@ $inverted-background-color: black;
85
88
  color: white;
86
89
  display: none;
87
90
 
88
- h2 {
91
+ h3 {
89
92
  text-align: center;
90
93
  padding: 2em 0;
91
94
  margin: 0;
@@ -119,7 +122,7 @@ $inverted-background-color: black;
119
122
  }
120
123
  }
121
124
 
122
- .contentText > * {
125
+ .page_text > * {
123
126
  margin: 0 auto;
124
127
 
125
128
  @include phone {
@@ -127,7 +130,7 @@ $inverted-background-color: black;
127
130
  }
128
131
  }
129
132
 
130
- .contentText {
133
+ .page_text {
131
134
  max-width: 500px;
132
135
  margin: auto;
133
136
  min-height: 300px;
@@ -142,7 +145,7 @@ $inverted-background-color: black;
142
145
  padding-right: 0;
143
146
  }
144
147
 
145
- h3 {
148
+ .page_sub_header {
146
149
  width: 100%;
147
150
  }
148
151
 
@@ -241,7 +244,7 @@ $inverted-background-color: black;
241
244
  }
242
245
 
243
246
  &.inline_text_position_left {
244
- > div .contentInnerWrapper .contentText {
247
+ > div .contentInnerWrapper .page_text {
245
248
  margin-left: 8%;
246
249
  padding-right: 0;
247
250
 
@@ -259,7 +262,7 @@ $inverted-background-color: black;
259
262
  }
260
263
 
261
264
  &.inline_text_position_right {
262
- > div .contentInnerWrapper .contentText {
265
+ > div .contentInnerWrapper .page_text {
263
266
  margin-right: 12%;
264
267
  padding-right: 0;
265
268
 
@@ -280,9 +283,9 @@ $inverted-background-color: black;
280
283
  }
281
284
 
282
285
  .text_position_right.page .text_page {
283
- h2 .title,
284
- h2 .subtitle,
285
- h2 .tagline {
286
+ h3 .title,
287
+ h3 .subtitle,
288
+ h3 .tagline {
286
289
  max-width: 500px;
287
290
  }
288
291
  }
@@ -318,7 +321,7 @@ $inverted-background-color: black;
318
321
  }
319
322
 
320
323
  .page .text_page, .js .page .text_page, .js .page:first-child .text_page, .page:first-child .text_page {
321
- &.content_and_background.sticky_inline_image .inline_text_position_center.scroller .contentWrapper {
324
+ &.content_and_background.sticky_inline_image .inline_text_position_center.scroller .content_wrapper {
322
325
  .inline_image {
323
326
  position: absolute;
324
327
  display: inline-block;
@@ -340,12 +343,12 @@ $inverted-background-color: black;
340
343
  }
341
344
  }
342
345
 
343
- .contentText {
346
+ .page_text {
344
347
  @media screen and (min-width: 1101px) {
345
348
  max-width: 1000px;
346
349
  width: 84%;
347
350
 
348
- h3, p {
351
+ .page_sub_header, p {
349
352
  margin: 0;
350
353
  max-width: 500px;
351
354
  }
@@ -365,7 +368,7 @@ $inverted-background-color: black;
365
368
  .page_header {
366
369
  border-bottom: 1px solid rgb(216, 216, 216);
367
370
 
368
- h2 {
371
+ h3 {
369
372
  color: black;
370
373
  }
371
374
  }
@@ -379,7 +382,7 @@ $inverted-background-color: black;
379
382
  .page .text_page, .js .page .text_page {
380
383
  .scroller {
381
384
  > div {
382
- .contentText {
385
+ .page_text {
383
386
  a {
384
387
  color: black;
385
388
  }
@@ -396,7 +399,7 @@ $inverted-background-color: black;
396
399
  }
397
400
  }
398
401
 
399
- .contentText {
402
+ .page_text {
400
403
  a {
401
404
  color: white;
402
405
  }
@@ -427,12 +430,12 @@ $inverted-background-color: black;
427
430
  left: 50% !important;
428
431
  margin-left: -400px;
429
432
  }
430
- .contentInnerWrapper .contentText .inline_image {
433
+ .contentInnerWrapper .page_text .inline_image {
431
434
  margin-right: 0 !important;
432
435
  }
433
436
 
434
437
  &.text_position_right {
435
- .contentInnerWrapper .contentText .inline_image {
438
+ .contentInnerWrapper .page_text .inline_image {
436
439
  margin-left: 0 !important;
437
440
  }
438
441
  }
@@ -446,16 +449,16 @@ $inverted-background-color: black;
446
449
 
447
450
  .slideshow section.fade[data-template="text_page"] {
448
451
 
449
- .blackLayer {
452
+ .black_layer {
450
453
  display: none;
451
454
  }
452
- .backgroundArea {
455
+ .page_background {
453
456
  background-color: black;
454
457
  -webkit-backface-visibility: hidden;
455
458
  opacity: 1;
456
459
  }
457
460
 
458
- &.invert .backgroundArea {
461
+ &.invert .page_background {
459
462
  background-color: white;
460
463
  }
461
464
 
@@ -484,20 +487,20 @@ $inverted-background-color: black;
484
487
  opacity: 1;
485
488
  }
486
489
 
487
- &.active.animate-in-forwards .backgroundArea, &.active.animate-in-backwards .backgroundArea {
490
+ &.active.animate-in-forwards .page_background, &.active.animate-in-backwards .page_background {
488
491
  opacity: 1;
489
492
  }
490
493
 
491
- &.animate-in-forwards .backgroundArea {
494
+ &.animate-in-forwards .page_background {
492
495
  opacity: 0;
493
496
  }
494
- &.animate-out-forwards .backgroundArea {
497
+ &.animate-out-forwards .page_background {
495
498
  opacity: 1;
496
499
  }
497
- &.animate-in-backwards .backgroundArea {
500
+ &.animate-in-backwards .page_background {
498
501
  opacity: 0;
499
502
  }
500
- &.animate-out-backwards .backgroundArea {
503
+ &.animate-out-backwards .page_background {
501
504
  opacity: 1;
502
505
  }
503
506
 
@@ -548,13 +551,13 @@ $inverted-background-color: black;
548
551
  }
549
552
 
550
553
  .slideshow {
551
- .text_page p, h3 span, .inline_image_text, .fixed_header_area .page_header_wrapper {
554
+ .text_page p, .page_sub_header span, .inline_image_text, .fixed_header_area .page_header_wrapper {
552
555
  @include transition(0.5s ease);
553
556
  }
554
557
  .hidden_by_overlay .text_page {
555
558
  .content {
556
559
  opacity: 1;
557
- p, h3 span, .inline_image_text {
560
+ p, .page_sub_header span, .inline_image_text {
558
561
  opacity: 0;
559
562
  }
560
563
  }
@@ -585,7 +588,7 @@ section.hide_title {
585
588
  opacity: 0;
586
589
  }
587
590
 
588
- .text_page .content .contentWrapper {
591
+ .text_page .content .content_wrapper {
589
592
  @include transform(none);
590
593
  }
591
594
  }
@@ -1,39 +1,39 @@
1
- <div class="blackLayer"></div>
1
+ <div class="black_layer"></div>
2
2
  <div class="content_and_background text_page <% if configuration['sticky_inline_image'].present? %>sticky_inline_image<% end %> <%= background_asset_present_css_class(configuration) %> <% if configuration['invert_text'].present? %>invert_text<% end %>">
3
- <div class="backgroundArea">
4
- <%= page_background_asset(configuration) %>
3
+ <div class="page_background">
4
+ <%= page_background_asset(page) %>
5
5
  <%= shadow_div :opacity => configuration['gradient_opacity'] %>
6
6
  <div class="fixed_header_area">
7
7
  <div class="page_header_wrapper">
8
8
  <div class="page_header">
9
- <h2>
10
- <span class="tagline"><%= configuration['tagline'] %></span>
11
- <span class="title"><%= configuration['title'] %></span>
12
- <span class="subtitle"><%= configuration['subtitle'] %></span>
13
- </h2>
9
+ <h3>
10
+ <span class="page_header-tagline"><%= configuration['tagline'] %></span>
11
+ <span class="page_header-title"><%= configuration['title'] %></span>
12
+ <span class="page_header-subtitle"><%= configuration['subtitle'] %></span>
13
+ </h3>
14
14
  </div>
15
15
  </div>
16
16
  </div>
17
17
  </div>
18
18
  <div class="content scroller inline_text_position_<%= configuration['inline_text_position'].present? ? configuration['inline_text_position'] : 'left' %>">
19
19
  <div>
20
- <div class="contentWrapper">
20
+ <div class="content_wrapper">
21
21
  <div class="page_spacer"></div>
22
22
  <div class="contentInnerWrapper">
23
23
  <div class="content_background_layer" style="<%= configuration['text_page_background_color'].present? ? "background-color: #{configuration['text_page_background_color']}" : '' %>"></div>
24
24
  <div class="page_header">
25
25
  <div class="header_background_layer" style="opacity: <%= configuration['gradient_opacity'].to_i / 100.0 %>"></div>
26
- <h2>
27
- <span class="tagline"><%= configuration['tagline'] %></span>
28
- <span class="title"><%= configuration['title'] %></span>
29
- <span class="subtitle"><%= configuration['subtitle'] %></span>
30
- </h2>
26
+ <h3>
27
+ <span class="page_header-tagline"><%= configuration['tagline'] %></span>
28
+ <span class="page_header-title"><%= configuration['title'] %></span>
29
+ <span class="page_header-subtitle"><%= configuration['subtitle'] %></span>
30
+ </h3>
31
31
  <%= background_image_tag(configuration['background_image_id'], {"class" => "print_image"}) %>
32
32
  </div>
33
- <div class="contentText">
34
- <h3>
33
+ <div class="page_text">
34
+ <h4 class="page_sub_header">
35
35
  <span class="text_title"><%= configuration['text_title'] %></span>
36
- </h3>
36
+ </h4>
37
37
  <%= link_to(configuration['prevent_fullscreen'].blank? ? fullscreen_image_url(configuration['text_image_id']) : '#',
38
38
  target: ("_blank" if configuration['prevent_fullscreen'].blank?),
39
39
  class: 'inline_image' \
data/bin/rspec ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rspec' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rspec-core", "rspec")
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module TextPage
3
- VERSION = '1.1.0'.freeze
3
+ VERSION = '1.2.0'.freeze
4
4
  end
5
5
  end
@@ -18,11 +18,13 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.required_ruby_version = '~> 2.1'
20
20
 
21
- spec.add_runtime_dependency 'pageflow', ['>= 12.2.x', '< 14']
21
+ spec.add_runtime_dependency 'pageflow', '~> 14.x'
22
22
  spec.add_runtime_dependency 'pageflow-public-i18n', '~> 1.0'
23
23
 
24
- spec.add_development_dependency 'bundler', '~> 1.0'
24
+ spec.add_development_dependency 'bundler', ['>= 1.0', '< 3']
25
+ spec.add_development_dependency 'pageflow-support', '~> 14.x'
25
26
  spec.add_development_dependency 'rake', '~> 12.0'
27
+ spec.add_development_dependency 'rspec-rails', '~> 3.0'
26
28
 
27
29
  # Semantic versioning rake tasks
28
30
  spec.add_development_dependency 'semmy', '~> 1.0'
@@ -0,0 +1,4 @@
1
+ require 'spec_helper'
2
+ require 'pageflow/lint'
3
+
4
+ Pageflow::Lint.page_type(Pageflow::TextPage.page_type)
@@ -0,0 +1,14 @@
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+ ENV['PAGEFLOW_PLUGIN_ENGINE'] = 'pageflow_text_page'
3
+
4
+ require 'pageflow/support'
5
+ Pageflow::Dummy.setup
6
+
7
+ require 'rspec/rails'
8
+
9
+ engine_root = File.join(File.dirname(__FILE__), '..')
10
+ Dir[File.join(engine_root, 'spec/support/**/*.rb')].each { |file| require(file) }
11
+
12
+ RSpec.configure do |config|
13
+ config.use_transactional_fixtures = true
14
+ end
metadata CHANGED
@@ -1,35 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-text-page
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.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: 2018-12-10 00:00:00.000000000 Z
11
+ date: 2019-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 12.2.x
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: '14'
19
+ version: 14.x
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 12.2.x
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: '14'
26
+ version: 14.x
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: pageflow-public-i18n
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -48,16 +42,36 @@ dependencies:
48
42
  name: bundler
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
- - - "~>"
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '1.0'
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '3'
54
51
  type: :development
55
52
  prerelease: false
56
53
  version_requirements: !ruby/object:Gem::Requirement
57
54
  requirements:
58
- - - "~>"
55
+ - - ">="
59
56
  - !ruby/object:Gem::Version
60
57
  version: '1.0'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '3'
61
+ - !ruby/object:Gem::Dependency
62
+ name: pageflow-support
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 14.x
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 14.x
61
75
  - !ruby/object:Gem::Dependency
62
76
  name: rake
63
77
  requirement: !ruby/object:Gem::Requirement
@@ -72,6 +86,20 @@ dependencies:
72
86
  - - "~>"
73
87
  - !ruby/object:Gem::Version
74
88
  version: '12.0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: rspec-rails
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '3.0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '3.0'
75
103
  - !ruby/object:Gem::Dependency
76
104
  name: semmy
77
105
  requirement: !ruby/object:Gem::Requirement
@@ -96,6 +124,7 @@ files:
96
124
  - ".gitignore"
97
125
  - ".jshintignore"
98
126
  - ".jshintrc"
127
+ - ".travis.yml"
99
128
  - CHANGELOG.md
100
129
  - Gemfile
101
130
  - README.md
@@ -115,6 +144,7 @@ files:
115
144
  - app/assets/stylesheets/pageflow/text_page/themes/default.scss
116
145
  - app/helper/pageflow/text_page/image_helper.rb
117
146
  - app/views/pageflow/text_page/page.html.erb
147
+ - bin/rspec
118
148
  - config/locales/de.yml
119
149
  - config/locales/en.yml
120
150
  - lib/pageflow-text-page.rb
@@ -122,6 +152,8 @@ files:
122
152
  - lib/pageflow/text_page/page_type.rb
123
153
  - lib/pageflow/text_page/version.rb
124
154
  - pageflow-text-page.gemspec
155
+ - spec/integration/page_type_spec.rb
156
+ - spec/spec_helper.rb
125
157
  homepage: https://github.com/codevise/pageflow-text-page
126
158
  licenses:
127
159
  - MIT
@@ -146,4 +178,6 @@ rubygems_version: 2.7.5
146
178
  signing_key:
147
179
  specification_version: 4
148
180
  summary: Pageflow Page Type text pages
149
- test_files: []
181
+ test_files:
182
+ - spec/integration/page_type_spec.rb
183
+ - spec/spec_helper.rb