pageflow 12.0.4 → 12.1.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.

Files changed (217) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +158 -374
  3. data/README.md +24 -3
  4. data/Rakefile +2 -2
  5. data/admins/pageflow/accounts.rb +30 -4
  6. data/admins/pageflow/entry.rb +59 -9
  7. data/admins/pageflow/membership.rb +57 -6
  8. data/admins/pageflow/user.rb +25 -4
  9. data/app/assets/images/pageflow/themes/default/preview.png +0 -0
  10. data/app/assets/images/pageflow/themes/default/preview_thumbnail.png +0 -0
  11. data/app/assets/javascripts/pageflow/admin/entries.js +5 -3
  12. data/app/assets/javascripts/pageflow/admin/users.js +33 -0
  13. data/app/assets/javascripts/pageflow/admin.js +4 -1
  14. data/app/assets/javascripts/pageflow/audio_context.js +28 -0
  15. data/app/assets/javascripts/pageflow/audio_player/get_media_element_method.js +5 -0
  16. data/app/assets/javascripts/pageflow/audio_player.js +2 -0
  17. data/app/assets/javascripts/pageflow/base.js +4 -22
  18. data/app/assets/javascripts/pageflow/dist/react.js +323 -242
  19. data/app/assets/javascripts/pageflow/editor/api/widget_type.js +23 -0
  20. data/app/assets/javascripts/pageflow/editor/api/widget_types.js +53 -0
  21. data/app/assets/javascripts/pageflow/editor/api.js +9 -1
  22. data/app/assets/javascripts/pageflow/editor/base.js +0 -1
  23. data/app/assets/javascripts/pageflow/editor/collections/pages_collection.js +1 -0
  24. data/app/assets/javascripts/pageflow/editor/collections/subset_collection.js +21 -1
  25. data/app/assets/javascripts/pageflow/editor/collections/themes_collection.js +13 -0
  26. data/app/assets/javascripts/pageflow/editor/collections/widgets_collection.js +23 -8
  27. data/app/assets/javascripts/pageflow/editor/controllers/sidebar_controller.js +7 -1
  28. data/app/assets/javascripts/pageflow/editor/initializers/setup_collections.js +10 -3
  29. data/app/assets/javascripts/pageflow/editor/initializers/setup_widget_types.js +5 -1
  30. data/app/assets/javascripts/pageflow/editor/initializers/stylesheet_reloading.js +8 -3
  31. data/app/assets/javascripts/pageflow/editor/models/edit_lock_container.js +1 -1
  32. data/app/assets/javascripts/pageflow/editor/models/entry.js +7 -4
  33. data/app/assets/javascripts/pageflow/editor/models/entry_configuration.js +1 -1
  34. data/app/assets/javascripts/pageflow/editor/models/file_stage.js +1 -0
  35. data/app/assets/javascripts/pageflow/editor/models/page.js +3 -1
  36. data/app/assets/javascripts/pageflow/editor/models/preview_entry_data.js +2 -2
  37. data/app/assets/javascripts/pageflow/editor/models/theme.js +25 -0
  38. data/app/assets/javascripts/pageflow/editor/models/theming.js +1 -19
  39. data/app/assets/javascripts/pageflow/editor/models/widget.js +22 -1
  40. data/app/assets/javascripts/pageflow/editor/models/widget_configuration.js +5 -0
  41. data/app/assets/javascripts/pageflow/editor/routers/sidebar_router.js +1 -0
  42. data/app/assets/javascripts/pageflow/editor/templates/change_theme_dialog.jst.ejs +23 -0
  43. data/app/assets/javascripts/pageflow/editor/templates/edit_widget.jst.ejs +1 -2
  44. data/app/assets/javascripts/pageflow/editor/templates/inputs/reference.jst.ejs +2 -2
  45. data/app/assets/javascripts/pageflow/editor/templates/static_thumbnail.jst.ejs +1 -0
  46. data/app/assets/javascripts/pageflow/editor/templates/theme_item.jst.ejs +5 -0
  47. data/app/assets/javascripts/pageflow/editor/templates/widget_item.jst.ejs +3 -0
  48. data/app/assets/javascripts/pageflow/editor/utils/stylesheet.js +23 -0
  49. data/app/assets/javascripts/pageflow/editor/views/change_theme_dialog_view.js +76 -0
  50. data/app/assets/javascripts/pageflow/editor/views/configuration_editors/groups/options.js +4 -2
  51. data/app/assets/javascripts/pageflow/editor/views/edit_meta_data_view.js +17 -4
  52. data/app/assets/javascripts/pageflow/editor/views/edit_widget_view.js +11 -21
  53. data/app/assets/javascripts/pageflow/editor/views/edit_widgets_view.js +1 -3
  54. data/app/assets/javascripts/pageflow/editor/views/file_meta_data_item_value_view.js +10 -1
  55. data/app/assets/javascripts/pageflow/editor/views/inputs/reference_input_view.js +36 -4
  56. data/app/assets/javascripts/pageflow/editor/views/inputs/theme_input_view.js +26 -0
  57. data/app/assets/javascripts/pageflow/editor/views/model_thumbnail_view.js +28 -14
  58. data/app/assets/javascripts/pageflow/editor/views/static_thumbnail_view.js +20 -0
  59. data/app/assets/javascripts/pageflow/editor/views/theme_item_view.js +41 -0
  60. data/app/assets/javascripts/pageflow/editor/views/widget_item_view.js +49 -0
  61. data/app/assets/javascripts/pageflow/history.js +7 -1
  62. data/app/assets/javascripts/pageflow/media_player/volume_fading/interval.js +65 -0
  63. data/app/assets/javascripts/pageflow/media_player/volume_fading/noop.js +5 -0
  64. data/app/assets/javascripts/pageflow/media_player/volume_fading/web_audio.js +109 -0
  65. data/app/assets/javascripts/pageflow/media_player/volume_fading.js +14 -65
  66. data/app/assets/javascripts/pageflow/slideshow/dom_order_scroll_navigator.js +5 -2
  67. data/app/assets/javascripts/pageflow/slideshow.js +19 -8
  68. data/app/assets/javascripts/pageflow/ui/views/configuration_editor_view.js +4 -0
  69. data/app/assets/javascripts/pageflow/ui/views/inputs/text_area_input_view.js +10 -5
  70. data/app/assets/javascripts/pageflow/ui/views/inputs/text_input_view.js +4 -48
  71. data/app/assets/javascripts/pageflow/ui/views/mixins/input_with_placeholder_text.js +58 -0
  72. data/app/assets/javascripts/pageflow/vendor.js +16 -0
  73. data/app/assets/javascripts/pageflow/video_player/get_media_element_method.js +6 -0
  74. data/app/assets/javascripts/pageflow/video_player.js +2 -0
  75. data/app/assets/stylesheets/pageflow/admin/entries.scss +1 -1
  76. data/app/assets/stylesheets/pageflow/admin/quotas.scss +1 -1
  77. data/app/assets/stylesheets/pageflow/admin.scss +2 -0
  78. data/app/assets/stylesheets/pageflow/base.scss +0 -1
  79. data/app/assets/stylesheets/pageflow/editor/base.scss +2 -0
  80. data/app/assets/stylesheets/pageflow/editor/change_theme.scss +114 -0
  81. data/app/assets/stylesheets/pageflow/editor/static_thumbnails.scss +4 -0
  82. data/app/assets/stylesheets/pageflow/editor/widgets.scss +26 -2
  83. data/app/assets/stylesheets/pageflow/page.scss +1 -14
  84. data/app/assets/stylesheets/pageflow/themes/default/indicators.scss +12 -0
  85. data/app/assets/stylesheets/pageflow/themes/default/loading_spinner.scss +11 -0
  86. data/app/assets/stylesheets/pageflow/themes/default/logo/alignment.scss +27 -0
  87. data/app/assets/stylesheets/pageflow/themes/default/logo/variant/background_image.scss +20 -2
  88. data/app/assets/stylesheets/pageflow/themes/default/logo/variant/watermark.scss +4 -1
  89. data/app/assets/stylesheets/pageflow/themes/default/page/line_lengths.scss +113 -0
  90. data/app/assets/stylesheets/pageflow/themes/default/page.scss +1 -0
  91. data/app/controllers/pageflow/editor/widgets_controller.rb +15 -1
  92. data/app/controllers/pageflow/entries_controller.rb +1 -1
  93. data/app/helpers/pageflow/admin/entries_helper.rb +0 -9
  94. data/app/helpers/pageflow/admin/memberships_helper.rb +43 -123
  95. data/app/helpers/pageflow/admin/users_helper.rb +15 -0
  96. data/app/helpers/pageflow/entries_helper.rb +3 -1
  97. data/app/helpers/pageflow/entry_json_seed_helper.rb +9 -3
  98. data/app/helpers/pageflow/public_i18n_helper.rb +2 -2
  99. data/app/helpers/pageflow/quota_helper.rb +2 -2
  100. data/app/helpers/pageflow/social_share_helper.rb +3 -2
  101. data/app/helpers/pageflow/themes_helper.rb +11 -3
  102. data/app/helpers/pageflow/widgets_helper.rb +10 -2
  103. data/app/jobs/pageflow/prune_auto_snapshots_job.rb +9 -0
  104. data/app/mailers/pageflow/user_mailer.rb +11 -1
  105. data/app/models/concerns/pageflow/feature_target.rb +1 -1
  106. data/app/models/concerns/pageflow/hosted_file.rb +9 -0
  107. data/app/models/concerns/pageflow/output_source.rb +2 -1
  108. data/app/models/concerns/pageflow/serialization_blacklist.rb +19 -0
  109. data/app/models/concerns/pageflow/serialized_configuration.rb +17 -0
  110. data/app/models/concerns/pageflow/theme_referencer.rb +23 -0
  111. data/app/models/pageflow/account.rb +6 -1
  112. data/app/models/pageflow/account_member_query.rb +6 -12
  113. data/app/models/pageflow/account_role_query.rb +68 -0
  114. data/app/models/pageflow/application_query.rb +13 -0
  115. data/app/models/pageflow/application_record.rb +5 -0
  116. data/app/models/pageflow/audio_file.rb +1 -1
  117. data/app/models/pageflow/auto_snapshot_pruning.rb +26 -0
  118. data/app/models/pageflow/chapter.rb +4 -8
  119. data/app/models/pageflow/draft_entry.rb +2 -1
  120. data/app/models/pageflow/edit_lock.rb +11 -5
  121. data/app/models/pageflow/encoding_confirmation.rb +2 -1
  122. data/app/models/pageflow/entry.rb +13 -2
  123. data/app/models/pageflow/entry_publication.rb +2 -0
  124. data/app/models/pageflow/entry_role_query.rb +24 -9
  125. data/app/models/pageflow/entry_title_or_account_name_query.rb +33 -0
  126. data/app/models/pageflow/file_usage.rb +3 -7
  127. data/app/models/pageflow/folder.rb +1 -1
  128. data/app/models/pageflow/home_button.rb +1 -1
  129. data/app/models/pageflow/image_file.rb +22 -4
  130. data/app/models/pageflow/invitation_form.rb +10 -4
  131. data/app/models/pageflow/managed_user_query.rb +44 -0
  132. data/app/models/pageflow/membership.rb +1 -1
  133. data/app/models/pageflow/overview_button.rb +3 -4
  134. data/app/models/pageflow/page.rb +3 -7
  135. data/app/models/pageflow/potential_memberships.rb +112 -0
  136. data/app/models/pageflow/published_entry.rb +2 -1
  137. data/app/models/pageflow/revision.rb +13 -4
  138. data/app/models/pageflow/storyline.rb +3 -4
  139. data/app/models/pageflow/text_track_file.rb +1 -1
  140. data/app/models/pageflow/theming.rb +15 -10
  141. data/app/models/pageflow/url_template.rb +8 -2
  142. data/app/models/pageflow/user_name_query.rb +30 -0
  143. data/app/models/pageflow/video_file.rb +5 -1
  144. data/app/models/pageflow/widget.rb +3 -1
  145. data/app/models/pageflow/zencoder_attachment.rb +16 -5
  146. data/app/policies/pageflow/account_policy.rb +31 -61
  147. data/app/policies/pageflow/application_policy.rb +6 -0
  148. data/app/policies/pageflow/entry_policy.rb +11 -3
  149. data/app/policies/pageflow/membership_policy.rb +1 -2
  150. data/app/policies/pageflow/user_policy.rb +20 -1
  151. data/app/views/admin/accounts/_form.html.erb +4 -4
  152. data/app/views/admin/accounts/_theming_defaults_inline_help.html.erb +5 -0
  153. data/app/views/admin/memberships/_form.html.erb +9 -14
  154. data/app/views/admin/memberships/_role_hint.html.arb +1 -1
  155. data/app/views/admin/users/invitation.html.erb +18 -9
  156. data/app/views/admin/users/me.html.erb +2 -2
  157. data/app/views/admin/users/quota_state.html.erb +1 -0
  158. data/app/views/components/pageflow/admin/add_membership_button.rb +81 -0
  159. data/app/views/components/pageflow/admin/members_tab.rb +6 -4
  160. data/app/views/components/pageflow/admin/revisions_tab.rb +16 -4
  161. data/app/views/components/pageflow/admin/user_accounts_tab.rb +8 -2
  162. data/app/views/components/pageflow/admin/user_entries_tab.rb +6 -2
  163. data/app/views/components/pageflow/admin/users_tab.rb +9 -5
  164. data/app/views/layouts/pageflow/application.html.erb +2 -1
  165. data/app/views/pageflow/admin/users/_quota_exhausted.html.erb +1 -0
  166. data/app/views/pageflow/admin/users/_quota_state.html.erb +7 -0
  167. data/app/views/pageflow/config/_editor_seeds.json.jbuilder +2 -0
  168. data/app/views/pageflow/editor/entries/_entry.json.jbuilder +1 -0
  169. data/app/views/pageflow/editor/entries/seed.json.erb +3 -1
  170. data/app/views/pageflow/editor/image_files/_image_file.json.jbuilder +1 -1
  171. data/app/views/pageflow/editor/themings/_theming.json.jbuilder +0 -7
  172. data/app/views/pageflow/editor/widgets/_widget.json.jbuilder +1 -1
  173. data/app/views/pageflow/entries/_entry.html.erb +5 -5
  174. data/app/views/pageflow/entries/edit.html.erb +1 -1
  175. data/app/views/pageflow/entries/show.html.erb +1 -1
  176. data/app/views/pageflow/entry_json_seed/_entry.json.jbuilder +1 -0
  177. data/app/views/pageflow/themes/_theme.json.jbuilder +13 -0
  178. data/config/initializers/admin_resource_tabs.rb +19 -6
  179. data/config/initializers/features.rb +1 -0
  180. data/config/locales/de.yml +26 -3
  181. data/config/locales/en.yml +26 -3
  182. data/db/migrate/20170201074328_add_configuration_to_widgets.rb +5 -0
  183. data/db/migrate/20170222124848_update_video_file_output_presences.rb +1 -1
  184. data/db/migrate/20170315130000_add_theme_name_to_revisions.rb +12 -0
  185. data/db/migrate/20170912165050_reset_copied_snapshot_type.rb +24 -0
  186. data/lib/generators/pageflow/routes/routes_generator.rb +11 -1
  187. data/lib/generators/pageflow/seeds/seeds_generator.rb +5 -0
  188. data/lib/generators/pageflow/seeds/templates/seeds.rb +5 -3
  189. data/lib/generators/pageflow/theme/templates/preview.png +0 -0
  190. data/lib/generators/pageflow/theme/templates/preview_thumbnail.png +0 -0
  191. data/lib/generators/pageflow/theme/theme_generator.rb +3 -0
  192. data/lib/pageflow/ability_mixin.rb +27 -6
  193. data/lib/pageflow/active_admin_can_can_fix.rb +34 -0
  194. data/lib/pageflow/configuration/permissions.rb +27 -0
  195. data/lib/pageflow/configuration.rb +28 -0
  196. data/lib/pageflow/engine.rb +25 -19
  197. data/lib/pageflow/images/palette.png +0 -0
  198. data/lib/pageflow/seeds.rb +1 -1
  199. data/lib/pageflow/theme.rb +8 -0
  200. data/lib/pageflow/version.rb +1 -1
  201. data/lib/pageflow/widget_type.rb +13 -0
  202. data/lib/pageflow/zencoder_video_output_definition.rb +16 -16
  203. data/lib/tasks/pageflow_tasks.rake +14 -0
  204. data/spec/factories/entries.rb +4 -0
  205. data/spec/factories/revisions.rb +10 -0
  206. data/spec/factories/users.rb +6 -0
  207. data/spec/factories/video_files.rb +4 -0
  208. data/vendor/assets/javascripts/audio5.min.js +3 -0
  209. metadata +78 -15
  210. data/app/assets/javascripts/pageflow/editor/models/mixins/widget_subject.js +0 -37
  211. data/app/assets/javascripts/pageflow/editor/utils/reload_stylesheet.js +0 -9
  212. data/app/assets/stylesheets/pageflow/text_variants.scss +0 -24
  213. data/app/views/admin/accounts/_widgets_inline_help.html.erb +0 -5
  214. data/app/views/admin/memberships/_entity_account_input.html.erb +0 -5
  215. data/app/views/admin/memberships/_entity_entry_input.html.erb +0 -5
  216. data/app/views/admin/users/_quota_exhausted.html.erb +0 -1
  217. data/app/views/components/pageflow/admin/add_membership_button_if_needed.rb +0 -62
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 92fcaf3b13e2338f71e2316e20bd95b7c69fe365
4
- data.tar.gz: f226df2178d2229efafa20f3c2896ad157967012
2
+ SHA256:
3
+ metadata.gz: 7d99f465f42439888aca879f81c0595e5ee0a41a8a68967c4322ba242fd0b889
4
+ data.tar.gz: 54ff6f8741c0d62eee7a703c5c29c897c0346e2bd491c5b6f260e8727035259a
5
5
  SHA512:
6
- metadata.gz: b861ea324064c596c0a2321e7763c562d0f8bd120cd9adc8d59dea538c3263526ebbe5d99fca21ee50a1a15f5b188c03276872b17636a877beee41d542c2d9d5
7
- data.tar.gz: a48f37719a21e5f7e8b483f21ba70fb6e7e6908495a766d3a79c28703343c6dc30d77cef1485def75f6fcd2767373200abe5f11586ebbdce04b75079500802c4
6
+ metadata.gz: 0d565a626a663a773e9be58d56b4b5ef98f1b59bfb6303243cfb1f0a4b432959fbda25f6a2050b38f932633702268f85c488c65c16948975e10d266ba81ea0a9
7
+ data.tar.gz: fafb8200846112eeea5632ab51bcd304293846ae6ee9dacdc6dd588ebc5d99ab9bdb844170dad8554bcfddf8c75362b79ba02829402578f7908a171b4897b684
data/CHANGELOG.md CHANGED
@@ -1,404 +1,188 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 12.0.4
3
+ ### Version 12.1.0
4
4
 
5
- 2017-10-09
5
+ 2017-11-07
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow/compare/v12.0.3...v12.0.4)
7
+ [Compare changes](https://github.com/codevise/pageflow/compare/12-0-stable...v12.1.0)
8
8
 
9
- - Bug fix: Add crossorigin attribute to video tag rendered by helper
10
- ([#879](https://github.com/codevise/pageflow/pull/879))
9
+ ##### Manual Update Steps
11
10
 
12
- ### Version 12.0.3
11
+ - Include HLS in output presences of legacy files
12
+ ([#872](https://github.com/codevise/pageflow/pull/872),
13
+ [#867](https://github.com/codevise/pageflow/pull/867))
13
14
 
14
- 2017-09-14
15
+ The database migration for Pageflow 12.0 which updates output
16
+ presences of existing video files is missing the HLS variant. This
17
+ causes HLS urls of existing video files to be rendered as
18
+ `undefined`.
15
19
 
16
- [Compare changes](https://github.com/codevise/pageflow/compare/v12.0.2...v12.0.3)
20
+ To apply the fix, install migrations and migrate your database. This
21
+ fix has previously been released as part of version 12.0.2.
17
22
 
18
- - Bug fix: Handle async tech loading in VideoJS 6
19
- ([#875](https://github.com/codevise/pageflow/pull/875))
23
+ - Add Resque::Server to the generated routes
24
+ ([#871](https://github.com/codevise/pageflow/pull/871))
20
25
 
21
- ### Version 12.0.2
26
+ Mounting the Resque web server makes it easier to inspect background
27
+ workers and restart jobs that have failed. See the issue description
28
+ of [#856](https://github.com/codevise/pageflow/issues/856) on how to
29
+ add this to existing apps.
22
30
 
23
- 2017-09-13
31
+ ##### Notable Changes
24
32
 
25
- [Compare changes](https://github.com/codevise/pageflow/compare/v12.0.1...v12.0.2)
26
-
27
- #### Manual Update Step
28
-
29
- The database migration for Pageflow 12.0 which updates output
30
- presences of existing video files is missing the HLS variant. This
31
- causes HLS urls of existing video files to be rendered as `undefined`.
32
- ([#870](https://github.com/codevise/pageflow/pull/870))
33
-
34
- To apply the fix, install migrations and migrate your database.
35
-
36
- #### Bug Fixes
37
-
38
- - Update videojs and videojs-dash to improve Dash playback
39
- ([#843](https://github.com/codevise/pageflow/pull/843))
40
- - Bug fix: Prevent calling `localeCompare` of null.
41
- ([#865](https://github.com/codevise/pageflow/pull/865))
42
- - Bug fix: Prevent background videos from stopping on fullscreen toggle
43
- ([#864](https://github.com/codevise/pageflow/pull/864))
44
- - Bug fix: Activate text track after it has been added
45
- ([#859](https://github.com/codevise/pageflow/pull/859))
46
- - Bug fix: Fix file type detection for vtt uploads on safari
47
- ([#851](https://github.com/codevise/pageflow/pull/851))
48
-
49
- ### Version 12.0.1
50
-
51
- 2017-08-25
52
-
53
- [Compare changes](https://github.com/codevise/pageflow/compare/v12.0.0...v12.0.1)
54
-
55
- #### Security Patch
56
-
57
- Prevent escalation of privileges
58
- ([#845](https://github.com/codevise/pageflow/pull/845))
59
-
60
- There are two bugs in Pageflow 12.0.0 that allow signed in users
61
- to escalate their privileges.
62
-
63
- * With a manually crafted request, any signed in user can set the
64
- admin flag on their own user account.
65
-
66
- * With a manually crafted request, a user with account manager role in
67
- at least one account, can add users to arbitrary accounts. This can
68
- be used to gain account manager privileges in any account.
69
-
70
- Affected versions: 12.0.0 (including all release candidates)
71
- Unaffected version: 0.11.x and older
72
- Versions fixes: 12.0.1
73
-
74
- ### Version 12.0.0
75
-
76
- 2017-08-10
77
-
78
- [Compare changes](https://github.com/codevise/pageflow/compare/0-11-stable...v12.0.0)
79
-
80
- See
81
- [changes grouped by release candidates](https://github.com/codevise/pageflow/blob/v12.0.0.rc7/CHANGELOG.md).
82
-
83
- #### Breaking Changes
84
-
85
- - The `pageflow-react` gem has been merged into the core `pageflow`
86
- gem. Remove the `pageflow-react` entry from your `Gemfile` if one
87
- exists and make sure you update all gems that depend on
88
- `pageflow-react` to versions that only depend on `pageflow` instead.
89
- ([#721](https://github.com/codevise/pageflow/pull/721),
90
- [#744](https://github.com/codevise/pageflow/pull/744))
91
-
92
- In the Pageflow initializer, delete all lines that register page
93
- types from `Pageflow::BuiltInPageType`, i.e. lines of the form:
94
-
95
- config.page_types.register(Pageflow::BuiltInPageType.background_image)
96
-
97
- Insert the following single line instead:
98
-
99
- config.plugin(Pageflow.built_in_page_types_plugin)
100
-
101
- Finally, in `app/assets/javascript/components.js` replace
102
-
103
- //= require pageflow/react/components
104
-
105
- with
106
-
107
- //= require pageflow/components
108
-
109
- - The background audio page type has been replaced by the atmo
110
- feature. There is a migration turning all background audio pages
111
- into background image pages with a atmo audio. The atmo settings are
112
- no longer guarded by a feature flag. If you used
113
- `Pageflow::Features#enabled_by_default` to enable the feature for
114
- all accounts, you need to remove that call from your
115
- initializer.
116
- ([#748](https://github.com/codevise/pageflow/pull/748))
117
-
118
- - All page types that used to support only background images can now
119
- display a background video as well. The background video page type
120
- accordingly has been removed. There is a migration to turn
121
- background video pages into pages with video background type.
122
- ([#748](https://github.com/codevise/pageflow/pull/748))
123
-
124
- - The built-in widget types must now be registered in the host
125
- application.
126
- ([#774](https://github.com/codevise/pageflow/pull/774),
127
- [#776](https://github.com/codevise/pageflow/pull/776))
128
-
129
- To keep existing functionality from previous Pageflow versions, add
130
- this line to the Pageflow initializer in your host application:
131
-
132
- config.plugin(Pageflow.built_in_widget_types_plugin)
133
-
134
- - Remove legacy theme files. All themes have to be based on the
135
- default theme.
136
- ([#768](https://github.com/codevise/pageflow/pull/768))
137
-
138
- - Playing DASH videos requires certain CORS headers in the CDN/Amazon
139
- S3 responses. See the
140
- [bucket configuration section](./doc/setting_up_external_services.md#bucket-configuration)
141
- in the "Setting up External Services" guide for details.
142
- ([#829](https://github.com/codevise/pageflow/pull/829))
143
-
144
- - Switch from `Expires` to `Cache-Control` header for media uploads.
145
- ([#753](https://github.com/codevise/pageflow/pull/753))
146
-
147
- It’s recommended you update the files currently stored on S3:
148
-
149
- $ s3cmd --recursive modify --add-header="Cache-Control: public, max-age=31536000" s3://yourbucket/
150
- $ s3cmd --recursive modify --remove-header=Expires s3://yourbucket/
151
-
152
- Tread carefully when you do this! As noted in
153
- [this StackExchange answer](http://stackoverflow.com/questions/22501465/how-to-add-cache-control-in-aws-s3),
154
- we have experienced that some public read permissions were lost
155
- after running this script. Test first using just a single object. In
156
- the AWS Management Console, you might want to grant public read
157
- access on the entire bucket again to be safe.
158
-
159
- - If the application uses the `nginx-upload-module`, its configuration
160
- needs to be adjusted.
161
- ([#814](https://github.com/codevise/pageflow/pull/814))
162
-
163
- Update the location matcher, to prevent routes of the form
164
- `../files/image_files/retry` from being matched:
165
-
166
- location ~ ^/editor/entries/[0-9]+/files/[^/]+/?$ {
33
+ - The theme configured on account level now only acts as a default for
34
+ new entries. After enabling the `selectable_themes` feature, a theme
35
+ selection dialog is available inside the editor from the "Title and
36
+ Options > Appearance" tab. The dialog allows configuring the theme
37
+ on a per revision basis.
38
+ ([#781](https://github.com/codevise/pageflow/pull/781),
39
+ [#897](https://github.com/codevise/pageflow/pull/897))
167
40
 
168
41
  ##### Public Site
169
42
 
170
- - Embed entries as iframes
171
- ([#665](https://github.com/codevise/pageflow/pull/665))
172
- - Use slim controls as android phone player
173
- ([#745](https://github.com/codevise/pageflow/pull/745))
174
- - Ensure public translations fall back to default locale
175
- ([#757](https://github.com/codevise/pageflow/pull/757))
176
- - Buf fix: Preload page background images
177
- ([#825](https://github.com/codevise/pageflow/pull/825))
178
-
179
- Media stack:
180
-
181
- - FullHD/4k video variants
182
- ([#653](https://github.com/codevise/pageflow/pull/653),
183
- [#741](https://github.com/codevise/pageflow/pull/741),
184
- [#752](https://github.com/codevise/pageflow/pull/752))
185
- - Update Video.js and add Dash support
186
- ([#678](https://github.com/codevise/pageflow/pull/678),
187
- [#677](https://github.com/codevise/pageflow/pull/677),
188
- [#746](https://github.com/codevise/pageflow/pull/746))
189
- - Allow displaying text tracks on videos and audio pages
190
- ([#721](https://github.com/codevise/pageflow/pull/721),
191
- [#747](https://github.com/codevise/pageflow/pull/747),
192
- [#743](https://github.com/codevise/pageflow/pull/743),
193
- [#827](https://github.com/codevise/pageflow/pull/827),
194
- [#749](https://github.com/codevise/pageflow/pull/749))
195
- - Add feature detection for mobile video features
196
- ([#742](https://github.com/codevise/pageflow/pull/742))
197
- - Add ultra variant to image file and video file posters
198
- ([#706](https://github.com/codevise/pageflow/pull/706))
199
- - Bug fix: Fix video loop on safari 10 on el capitan.
200
- ([#663](https://github.com/codevise/pageflow/pull/663))
201
- - Bug fix: Prevent prebuffer/volume fading from failing on dispose
202
- ([#719](https://github.com/codevise/pageflow/pull/719))
203
- - Do not filter sources for audio tags
204
- ([#709](https://github.com/codevise/pageflow/pull/709))
205
- - Bug fix: Continue prebuffer on media tag init
206
- ([#740](https://github.com/codevise/pageflow/pull/740))
207
-
208
- Theme:
209
-
210
- - Add theme option to hide glow behind loading spinner logo
211
- ([#675](https://github.com/codevise/pageflow/pull/675))
212
- - Add logo theme option to fade in with header
213
- ([#666](https://github.com/codevise/pageflow/pull/666))
214
- - Logo theme options
215
- ([#733](https://github.com/codevise/pageflow/pull/733))
216
- - Update to more complete variant of source sans pro font
217
- ([#676](https://github.com/codevise/pageflow/pull/676))
218
- - Allow setting hide text related css classes on wrapper
219
- ([#651](https://github.com/codevise/pageflow/pull/651))
220
- - Use svg icon for slim loading spinner
221
- ([#718](https://github.com/codevise/pageflow/pull/718))
222
- - Allow overriding typography of slim control bar text
223
- ([#726](https://github.com/codevise/pageflow/pull/726))
224
- - Style text track cues
225
- ([#713](https://github.com/codevise/pageflow/pull/713))
226
- - Theme for player controls menu bar
227
- ([#717](https://github.com/codevise/pageflow/pull/717))
228
- - Hide audio page content when text tracks are displayed
229
- ([#698](https://github.com/codevise/pageflow/pull/698))
230
- - Add css class to page background with controls
231
- ([#722](https://github.com/codevise/pageflow/pull/722))
232
- - Bug fix: Fix css class collision in widget scroll indicators
233
- ([#667](https://github.com/codevise/pageflow/pull/667))
234
- - Bug fix: Allow overriding widget theme options
235
- ([#723](https://github.com/codevise/pageflow/pull/723))
236
- - Bug fix: Mark %pageflow_widget_margin_right optional
237
- ([#773](https://github.com/codevise/pageflow/pull/773))
238
-
239
- JavaScript API:
240
-
241
- - Allow to programatically re-enable atmo on mobile devices
242
- ([#670](https://github.com/codevise/pageflow/pull/670))
243
- - Trigger event when widgets are updated
244
- ([#712](https://github.com/codevise/pageflow/pull/712))
245
- - Trigger event when slideshow is resized
246
- ([#707](https://github.com/codevise/pageflow/pull/707))
247
- - Only fire hidetext events on state changes
248
- ([#701](https://github.com/codevise/pageflow/pull/701))
249
- - Trigger event when seed data is available
250
- ([#687](https://github.com/codevise/pageflow/pull/687))
251
- - Ensure page is unprepared if it was not activated
252
- ([#650](https://github.com/codevise/pageflow/pull/650))
253
-
254
- Seed data:
255
-
256
- - Reorganize file seed data
257
- ([#686](https://github.com/codevise/pageflow/pull/686))
258
- - Add video file url to templates and json
259
- ([#714](https://github.com/codevise/pageflow/pull/714))
260
- - Add is_ready flag to file json representation
261
- ([#704](https://github.com/codevise/pageflow/pull/704))
262
- - Include entry slug in common seed
263
- ([#702](https://github.com/codevise/pageflow/pull/702))
264
- - Render storylines as array in seed data
265
- ([#680](https://github.com/codevise/pageflow/pull/680))
266
- - Bug fix: Set position for seeded chapters
267
- ([#643](https://github.com/codevise/pageflow/pull/643))
268
-
269
- Widgets:
270
-
271
- - Player controls improvements
272
- ([#699](https://github.com/codevise/pageflow/pull/699),
273
- [#720](https://github.com/codevise/pageflow/pull/720),
274
- [#739](https://github.com/codevise/pageflow/pull/739),
275
- [#751](https://github.com/codevise/pageflow/pull/751))
276
- - Prevent videojs controls from being displayed
277
- ([#697](https://github.com/codevise/pageflow/pull/697))
278
- - Remove jQuery widgets formerly used by player controls
279
- ([#756](https://github.com/codevise/pageflow/pull/756))
280
- - Bug fix: Prevent line wrap in scroll indicator
281
- ([#729](https://github.com/codevise/pageflow/pull/729))
282
- - Bug fix: Fix sharing menu in mobile navigation
283
- ([#661](https://github.com/codevise/pageflow/pull/661))
284
- - Bug fix: Fix page widget index for analytics adapters
285
- ([#652](https://github.com/codevise/pageflow/pull/652))
286
- - Bug fix: Extend Facebook in-app browser fix to iOS platform
287
- ([#637](https://github.com/codevise/pageflow/pull/637))
288
- - Bug fix: Use entry locale in CloseButton translations
289
- ([#760](https://github.com/codevise/pageflow/pull/760))
43
+ - Use page from url hash es landing page
44
+ ([#832](https://github.com/codevise/pageflow/pull/832))
45
+ - Do not record history when changing pages via scrolling
46
+ ([#831](https://github.com/codevise/pageflow/pull/831))
47
+ - Improve text tracks and info box display logic
48
+ ([#826](https://github.com/codevise/pageflow/pull/826))
49
+ - Bug fix: Fix order of public i18n fallback
50
+ ([#883](https://github.com/codevise/pageflow/pull/883))
51
+ - Bug fix: Prevent display of NaN duration in video controls
52
+ ([#878](https://github.com/codevise/pageflow/pull/878))
53
+ - Bug fix: Prevent 404 when share image has been deleted
54
+ ([#816](https://github.com/codevise/pageflow/pull/816))
290
55
 
291
56
  ##### Admin
292
57
 
293
- - Role based account memberships
294
- ([#634](https://github.com/codevise/pageflow/pull/634),
295
- [#641](https://github.com/codevise/pageflow/pull/641),
296
- [#640](https://github.com/codevise/pageflow/pull/640),
297
- [#769](https://github.com/codevise/pageflow/pull/769),
298
- [#766](https://github.com/codevise/pageflow/pull/766))
58
+ - Use searchable select boxes in admin forms
59
+ ([#888](https://github.com/codevise/pageflow/pull/888))
60
+ - Remove sensitive data from active admin downloads
61
+ ([#899](https://github.com/codevise/pageflow/pull/899))
62
+ - Add config option to prevent multi account users
63
+ ([#848](https://github.com/codevise/pageflow/pull/848),
64
+ [#868](https://github.com/codevise/pageflow/pull/868))
65
+ - Add config options to restrict account manager permissions
66
+ ([#849](https://github.com/codevise/pageflow/pull/849))
67
+ - Fix N+1 query in account admin users tab
68
+ ([#877](https://github.com/codevise/pageflow/pull/877))
69
+ - Bug fix: Hide restore link and snapshot button for entry previewers
70
+ ([#853](https://github.com/codevise/pageflow/pull/853))
71
+ - Bug fix: Use copy of current_user in profile form
72
+ ([#850](https://github.com/codevise/pageflow/pull/850))
73
+ - Bug fix: Ensure new entry button is hidden for editors
74
+ ([#847](https://github.com/codevise/pageflow/pull/847))
75
+ - Bug fix: Show folder edit button only for publishers and above
76
+ ([#838](https://github.com/codevise/pageflow/pull/838))
77
+ - Bug fix: Allow :create entry only for publishers on accounts, not on entries
78
+ ([#836](https://github.com/codevise/pageflow/pull/836))
299
79
 
300
80
  ##### Editor
301
81
 
302
- - File configuration
303
- ([#654](https://github.com/codevise/pageflow/pull/654),
304
- [#703](https://github.com/codevise/pageflow/pull/703),
305
- [#673](https://github.com/codevise/pageflow/pull/673))
306
- - Add alt text attribute to files
307
- ([#685](https://github.com/codevise/pageflow/pull/685))
308
- - Manage text track files as nested files
309
- ([#660](https://github.com/codevise/pageflow/pull/660),
310
- [#684](https://github.com/codevise/pageflow/pull/684),
311
- [#683](https://github.com/codevise/pageflow/pull/683),
312
- [#682](https://github.com/codevise/pageflow/pull/682),
313
- [#688](https://github.com/codevise/pageflow/pull/688),
314
- [#716](https://github.com/codevise/pageflow/pull/716))
315
- - File filters
316
- ([#659](https://github.com/codevise/pageflow/pull/659))
317
- - Let file selection handler abort navigation
318
- ([#736](https://github.com/codevise/pageflow/pull/736))
319
- - Add background inputs group
320
- ([#711](https://github.com/codevise/pageflow/pull/711))
321
- - Improve editor page lifecycle during delete
322
- ([#710](https://github.com/codevise/pageflow/pull/710))
323
- - Make editor play nicely with Redux
324
- ([#700](https://github.com/codevise/pageflow/pull/700))
325
- - Improve html translation support in i18nUtils
326
- ([#671](https://github.com/codevise/pageflow/pull/671))
327
- - Add interpolation support for i18nUtils.findTranslation
328
- ([#648](https://github.com/codevise/pageflow/pull/648))
329
- - Bug fix: Use correct Backbone sync parameter to trigger retry
330
- ([#696](https://github.com/codevise/pageflow/pull/696))
331
- - Bug fix: Do not overwrite file rights when polling
332
- ([#715](https://github.com/codevise/pageflow/pull/715))
333
- - Bug fix: Improve special character handling in formDataUtils
334
- ([#690](https://github.com/codevise/pageflow/pull/690))
335
-
336
- Backbone Views:
337
-
338
- - Improve DropDownButton
339
- ([#681](https://github.com/codevise/pageflow/pull/681))
340
- - Ensure select input view displays default
341
- ([#725](https://github.com/codevise/pageflow/pull/725))
342
- - Add disabled option to referenceinputview
343
- ([#734](https://github.com/codevise/pageflow/pull/734))
344
- - Bug fix: Fix ensureValueDefined option of SelectInputView
345
- ([#755](https://github.com/codevise/pageflow/pull/755))
346
-
347
- Help:
348
-
349
- - Allow external links in editor help
350
- ([#649](https://github.com/codevise/pageflow/pull/649))
351
- - Add inline help for background inputs
352
- ([#728](https://github.com/codevise/pageflow/pull/728))
353
- - Add help entry for text tracks
354
- ([#727](https://github.com/codevise/pageflow/pull/727))
355
- - Improve inline help for rights and alt text field
356
- ([#724](https://github.com/codevise/pageflow/pull/724))
82
+ - Widget configuration
83
+ ([#694](https://github.com/codevise/pageflow/pull/694),
84
+ [#809](https://github.com/codevise/pageflow/pull/809))
85
+ - Bug fix: Ensure page order in editor preview stays up to date
86
+ ([#898](https://github.com/codevise/pageflow/pull/898))
87
+ - Bug fix: Switch off file meta data edit links when uploading
88
+ ([#857](https://github.com/codevise/pageflow/pull/857))
89
+ - Bug fix: Improve polling for HostedFile state
90
+ ([#822](https://github.com/codevise/pageflow/pull/822))
91
+ - Bug fix: Handle undefined page title.
92
+ ([#763](https://github.com/codevise/pageflow/pull/763))
93
+
94
+ ##### Media Stack
95
+
96
+ - Use relative urls inside dash and hls playlists
97
+ ([#842](https://github.com/codevise/pageflow/pull/842))
98
+ - Use web audio api for volume fading if available
99
+ ([#800](https://github.com/codevise/pageflow/pull/800),
100
+ [#863](https://github.com/codevise/pageflow/pull/863))
101
+
102
+ ##### File Processing
103
+
104
+ - Add panorama_mask image file style
105
+ ([#830](https://github.com/codevise/pageflow/pull/830))
106
+ - Bug fix: Make url template generation more robust
107
+ ([#876](https://github.com/codevise/pageflow/pull/876))
357
108
 
358
109
  ##### Rails Engine
359
110
 
360
- - Introduce conditional thumbnail candidates
361
- ([#705](https://github.com/codevise/pageflow/pull/705))
362
- - Add option to skip smil output
363
- ([#645](https://github.com/codevise/pageflow/pull/645))
364
- - Improve hls options fallback
365
- ([#708](https://github.com/codevise/pageflow/pull/708))
366
- - Export `measure` from `react-measure`
367
- ([#823](https://github.com/codevise/pageflow/pull/823))
368
- - Link to plugins wiki page from readme
369
- ([#674](https://github.com/codevise/pageflow/pull/674))
370
- - Allow using `state_machine_job` gem 1.x
371
- ([#819](https://github.com/codevise/pageflow/pull/819))
372
- - Improve `pageflow-support` gem
373
- ([#818](https://github.com/codevise/pageflow/pull/818))
111
+ - Themes can now be guarded by feature flags
112
+ ([#765](https://github.com/codevise/pageflow/pull/765))
113
+ - Extend EncodingConfirmation by public account attribute
114
+ ([#817](https://github.com/codevise/pageflow/pull/817))
115
+ - Extend query interface
116
+ ([#815](https://github.com/codevise/pageflow/pull/815))
117
+ - Accept options for accounts admin menu via config
118
+ ([#811](https://github.com/codevise/pageflow/pull/811))
119
+ - Add placeholder options to textareainputview
120
+ ([#807](https://github.com/codevise/pageflow/pull/807))
121
+ - Call hook on entry publication
122
+ ([#806](https://github.com/codevise/pageflow/pull/806))
123
+ - Add rake task and resque job to delete old auto snapshots
124
+ ([#861](https://github.com/codevise/pageflow/pull/861),
125
+ [#882](https://github.com/codevise/pageflow/pull/882))
126
+ - Generate a secure password in the seeds
127
+ ([#775](https://github.com/codevise/pageflow/pull/775))
128
+
129
+ ##### Theme Options
130
+
131
+ - Allow specifying opacity of image variant logo
132
+ ([#799](https://github.com/codevise/pageflow/pull/799))
133
+ - Allow setting size of custom loading spinner background
134
+ ([#798](https://github.com/codevise/pageflow/pull/798))
135
+ - Add theme option to right align logo in desktop layout
136
+ ([#797](https://github.com/codevise/pageflow/pull/797))
137
+ - Add theme option to hide scroll indicator
138
+ ([#790](https://github.com/codevise/pageflow/pull/790))
139
+ - Make content text max width configurable
140
+ ([#780](https://github.com/codevise/pageflow/pull/780),
141
+ [#804](https://github.com/codevise/pageflow/pull/804))
142
+
143
+ ##### Documentation
144
+
145
+ - Import nginx-upload-module guide from wiki
146
+ ([#814](https://github.com/codevise/pageflow/pull/814),
147
+ [#821](https://github.com/codevise/pageflow/pull/821))
148
+ - Add documentation for versioning policy
149
+ ([#866](https://github.com/codevise/pageflow/pull/866))
150
+ - Fix small typos
151
+ ([#787](https://github.com/codevise/pageflow/pull/787))
374
152
 
375
153
  ##### Internals
376
154
 
377
- - Use doclets.io for javascript api reference
378
- ([#644](https://github.com/codevise/pageflow/pull/644))
379
- - Git ignore coverage directory
380
- ([#647](https://github.com/codevise/pageflow/pull/647))
381
- - Use only one jshint config for hound
382
- ([#658](https://github.com/codevise/pageflow/pull/658))
383
- - Do not warn about missing frozen string comment
384
- ([#646](https://github.com/codevise/pageflow/pull/646))
385
- - Update travis ruby version to 2.1.7
386
- ([#695](https://github.com/codevise/pageflow/pull/695))
387
- - Remove cargo-culted @body_class
388
- ([#616](https://github.com/codevise/pageflow/pull/616))
389
- - Remove unneeded loop
390
- ([#578](https://github.com/codevise/pageflow/pull/578))
391
- - Use create instead of build_stubbed in EditLock tests
392
- ([#689](https://github.com/codevise/pageflow/pull/689))
393
- - Update semmy
394
- ([#820](https://github.com/codevise/pageflow/pull/820))
395
- - Upgrade to Sinon 2
396
- ([#777](https://github.com/codevise/pageflow/pull/777))
397
- - Use correct matcher to expect destroyed record
398
- ([#750](https://github.com/codevise/pageflow/pull/750))
399
- - Bug fix: Handle symbolized keys in mailer options
400
- ([#693](https://github.com/codevise/pageflow/pull/693))
155
+ - Precompile assets in Travis run
156
+ ([#873](https://github.com/codevise/pageflow/pull/873))
157
+ - Test workflow improvements
158
+ ([#803](https://github.com/codevise/pageflow/pull/803))
159
+ - Generate admins with account membership in specs
160
+ ([#840](https://github.com/codevise/pageflow/pull/840))
161
+ - Use rails 4.2.9 in tests
162
+ ([#837](https://github.com/codevise/pageflow/pull/837))
163
+ - Clean up memberships admin code
164
+ ([#835](https://github.com/codevise/pageflow/pull/835))
165
+ - Basic tests for UsersTab add user button
166
+ ([#805](https://github.com/codevise/pageflow/pull/805))
167
+ - Use codevise/teaspoon for logging backtraces on console
168
+ ([#786](https://github.com/codevise/pageflow/pull/786))
169
+ - Split vendored code from our own
170
+ ([#885](https://github.com/codevise/pageflow/pull/885))
171
+ - Introduce ApplicationRecord
172
+ ([#889](https://github.com/codevise/pageflow/pull/889))
173
+ - Move configuration into a concern
174
+ ([#794](https://github.com/codevise/pageflow/pull/794))
175
+ - Read the attribute instead of super
176
+ ([#810](https://github.com/codevise/pageflow/pull/810))
177
+ - Destroy widgets when parent subject is destroyed
178
+ ([#834](https://github.com/codevise/pageflow/pull/834))
179
+ - Fix dummy app generation on Travis for Rubygems 2.7
180
+ ([#893](https://github.com/codevise/pageflow/pull/893))
181
+ - Update contents of gemspec
182
+ ([#891](https://github.com/codevise/pageflow/pull/891))
183
+ - Bug fix: Work around breaking change in resque_mailer 2.4.3
184
+ ([#894](https://github.com/codevise/pageflow/pull/894))
401
185
 
402
186
  See
403
- [0-11-stable](https://github.com/codevise/pageflow/blob/0-11-stable/CHANGELOG.md)
187
+ [12-0-stable](https://github.com/codevise/pageflow/blob/12-0-stable/CHANGELOG.md)
404
188
  branch for previous changes.
data/README.md CHANGED
@@ -50,7 +50,7 @@ Pageflow assumes the following choice of libraries:
50
50
 
51
51
  Pageflow runs in environments with:
52
52
 
53
- * Ruby >= 2.1
53
+ * Ruby >= 2.1 (see `.travis.yml` for supported versions)
54
54
  * Node >= 6.9.5
55
55
  * Rails 4.2
56
56
  * Redis server (for Resque)
@@ -82,10 +82,15 @@ the database:
82
82
 
83
83
  ### Gem Dependencies
84
84
 
85
- Add this line to your application's Gemfile:
85
+ Add these lines to your application's Gemfile, replacing `X.Y.Z` with
86
+ the current Pageflow version number. It is recommended to depend on a
87
+ specific minor version using the pessimistic version constraint
88
+ operator. See Pageflow's
89
+ [versioning policy](https://github.com/codevise/pageflow/blob/master/doc/versioning_policy.md)
90
+ for details.
86
91
 
87
92
  # Gemfile
88
- gem 'pageflow'
93
+ gem 'pageflow', '~> X.Y.Z'
89
94
 
90
95
  # Required for Rails 4.2 compatibility
91
96
  gem 'state_machine', git: 'https://github.com/codevise/state_machine.git'
@@ -151,11 +156,27 @@ Consider using the [foreman gem](https://github.com/ddollar/foreman) to start al
151
156
  these processes (including the Rails server) with a single command in your
152
157
  development environment.
153
158
 
159
+ The built-in Resque web server is mounted at `/background_jobs`. Use it to
160
+ inspect the state of background jobs, and restart failed jobs. This functionality
161
+ is only available for admins.
162
+
154
163
  ## Troubleshooting
155
164
 
156
165
  If you run into problems during the installation of Pageflow, please refer to the [Troubleshooting](https://github.com/codevise/pageflow/wiki/Troubleshooting) wiki
157
166
  page. If that doesn't help, consider [filing an issue](https://github.com/codevise/pageflow/issues?state=open).
158
167
 
168
+ ## Security Policy
169
+
170
+ For major security issues, at least the current release series and the
171
+ last major series will receive patches and new versions.
172
+
173
+ Security related announcements will be posted to the
174
+ [`ruby-security-ann`](https://groups.google.com/forum/#!forum/ruby-security-ann)
175
+ mailing list.
176
+
177
+ If you have found a security related bug, please contact
178
+ `info(at)codevise.de` instead of creating a publicly visible issue.
179
+
159
180
  ## Special Thanks
160
181
 
161
182
  We would like to express our special thanks to the following services
data/Rakefile CHANGED
@@ -20,8 +20,8 @@ Semmy::Tasks.install do |config|
20
20
  config.source_files_with_docs_tags = '{app,lib,node_package/src}/**/*.{js,jsx,rb,scss}'
21
21
  end
22
22
 
23
- require File.expand_path('spec/support/pageflow/rails_version', File.dirname(__FILE__))
24
- APP_RAKEFILE = File.expand_path("../spec/dummy/rails-#{Pageflow::RailsVersion.detect}/Rakefile", __FILE__)
23
+ require File.expand_path('spec/support/pageflow/dummy/app', File.dirname(__FILE__))
24
+ APP_RAKEFILE = File.expand_path("../#{Pageflow::Dummy::App.new.directory}/Rakefile", __FILE__)
25
25
 
26
26
  load 'rails/tasks/engine.rake' if File.exists?(APP_RAKEFILE)
27
27
  load File.expand_path('lib/tasks/pageflow_tasks.rake', File.dirname(__FILE__))