pageflow 12.0.0.rc4 → 12.0.0.rc5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e9d7ee3858177965bae6a99ab766a47d99e378d
4
- data.tar.gz: e0e1d1c4ac6b3c8078096ede75861ead51491a63
3
+ metadata.gz: 0405dda6ec7f2ff60538c83ec2481e2f31ded8d8
4
+ data.tar.gz: 322007b4d7aefc9f0aa91535cd79a3c91ca63d06
5
5
  SHA512:
6
- metadata.gz: 658f05b900adab883cf1dfa36a08733ca8d851b0f28d7bf10f3c7da14adea54586c988fbf08c02060f063a73e5b8311a3683959dd3d8403e97e5916b2a047cd7
7
- data.tar.gz: 7ffb315ba5b767a1c1a0234d465eac90a80f1ce85d773470f1dfdc4ba960b590c6e35ecbaad850fa63bd4dfc4eac0a164eb0bfb0a3636c9f2e240c3ac046872a
6
+ metadata.gz: 925faba790f71ad915f8ff03af556d311446eab4318d4406588a094a0666dea5b3eb788ba16beaa060118425a1371001936728b12794f1b4cb704ff15ce70872
7
+ data.tar.gz: 44229fd9810564366a848189748a6ad7f49ba1ff3aab1a4943e159e998e8cd6534ef9f481ebde7e0be82b017f23b868a880652f32b19d35e138cdde83db70f3d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Version 12.0.0.rc5
4
+
5
+ 2017-05-31
6
+
7
+ [Compare changes](https://github.com/codevise/pageflow/compare/v12.0.0.rc4...v12.0.0.rc5)
8
+
9
+ #### Breaking Changes
10
+
11
+ - The built-in widget types must now be registered in the host
12
+ application.
13
+ ([#774](https://github.com/codevise/pageflow/pull/774),
14
+ [#776](https://github.com/codevise/pageflow/pull/776))
15
+
16
+ To keep existing functionality from previous Pageflow versions, add
17
+ this line to the Pageflow initializer in your host application:
18
+
19
+ config.plugin(Pageflow.built_in_widget_types_plugin)
20
+
21
+ - The built-in widget types must now be registered in the host
22
+ application.
23
+
24
+ To keep existing functionality from previous Pageflow versions, add
25
+ these lines to `config/initializers/pageflow.rb` in your host
26
+ application:
27
+
28
+ # Register the built-in widget types.
29
+ # You can remove these or add different versions with the same name.
30
+ config.widget_types.register(Pageflow::BuiltInWidgetType.navigation, default: true)
31
+ config.widget_types.register(Pageflow::BuiltInWidgetType.mobile_navigation, default: true)
32
+ config.widget_types.register(Pageflow::BuiltInWidgetType.classic_player_controls, default: true)
33
+ config.widget_types.register(Pageflow::BuiltInWidgetType.slim_player_controls)
34
+
35
+ ##### Bug Fixes
36
+
37
+ - Upgrade to Sinon 2
38
+ ([#777](https://github.com/codevise/pageflow/pull/777))
39
+ - Bug fix: Mark %pageflow_widget_margin_right optional
40
+ ([#773](https://github.com/codevise/pageflow/pull/773))
41
+
3
42
  ### Version 12.0.0.rc4
4
43
 
5
44
  2017-05-23
@@ -11,5 +11,5 @@
11
11
  }
12
12
 
13
13
  .player_controls-menu_bar-stand_alone {
14
- @extend %pageflow_widget_margin_right;
14
+ @extend %pageflow_widget_margin_right !optional;
15
15
  }
@@ -5,6 +5,7 @@ Pageflow.configure do |config|
5
5
 
6
6
  # Plugins provide page types and widget types.
7
7
  config.plugin(Pageflow.built_in_page_types_plugin)
8
+ config.plugin(Pageflow.built_in_widget_types_plugin)
8
9
  # config.plugin(Pageflow::Rainbow.plugin)
9
10
 
10
11
  # Add custom themes by invoking the pageflow:theme generator and
data/lib/pageflow.rb CHANGED
@@ -37,4 +37,8 @@ module Pageflow
37
37
  def self.built_in_page_types_plugin
38
38
  BuiltInPageTypesPlugin.new
39
39
  end
40
+
41
+ def self.built_in_widget_types_plugin
42
+ BuiltInWidgetTypesPlugin.new
43
+ end
40
44
  end
@@ -0,0 +1,10 @@
1
+ module Pageflow
2
+ class BuiltInWidgetTypesPlugin < Plugin
3
+ def configure(config)
4
+ config.widget_types.register(Pageflow::BuiltInWidgetType.navigation, default: true)
5
+ config.widget_types.register(Pageflow::BuiltInWidgetType.mobile_navigation, default: true)
6
+ config.widget_types.register(Pageflow::BuiltInWidgetType.slim_player_controls)
7
+ config.widget_types.register(Pageflow::BuiltInWidgetType.classic_player_controls, default: true)
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module Pageflow
2
- VERSION = '12.0.0.rc4'.freeze
2
+ VERSION = '12.0.0.rc5'.freeze
3
3
  end
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: 12.0.0.rc4
4
+ version: 12.0.0.rc5
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: 2017-05-23 00:00:00.000000000 Z
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -1790,7 +1790,6 @@ files:
1790
1790
  - config/initializers/page_type_helpers.rb
1791
1791
  - config/initializers/paperclip.rb
1792
1792
  - config/initializers/view_components.rb
1793
- - config/initializers/widget_types.rb
1794
1793
  - config/initializers/zencoder.rb
1795
1794
  - config/locales/de.yml
1796
1795
  - config/locales/en.yml
@@ -1898,6 +1897,7 @@ files:
1898
1897
  - lib/pageflow/built_in_file_type.rb
1899
1898
  - lib/pageflow/built_in_page_types_plugin.rb
1900
1899
  - lib/pageflow/built_in_widget_type.rb
1900
+ - lib/pageflow/built_in_widget_types_plugin.rb
1901
1901
  - lib/pageflow/configuration.rb
1902
1902
  - lib/pageflow/engine.rb
1903
1903
  - lib/pageflow/feature.rb
@@ -1,7 +0,0 @@
1
- Pageflow.configure do |config|
2
- config.widget_types.register(Pageflow::BuiltInWidgetType.navigation, default: true)
3
- config.widget_types.register(Pageflow::BuiltInWidgetType.mobile_navigation, default: true)
4
-
5
- config.widget_types.register(Pageflow::BuiltInWidgetType.classic_player_controls, default: true)
6
- config.widget_types.register(Pageflow::BuiltInWidgetType.slim_player_controls)
7
- end