pageflow-embedded-video 0.3.1 → 1.0.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
  SHA1:
3
- metadata.gz: c4b850347ebb3f8e17dce730162a63c153563f6f
4
- data.tar.gz: 3a15a003ba2b25c0e64f54592fd64341f38146c4
3
+ metadata.gz: 2ac513b7feab52d0e36e97b076366c580b957d0a
4
+ data.tar.gz: 30c926704d7624f0ff290ab96f27068a97b9d1ec
5
5
  SHA512:
6
- metadata.gz: eb79cdf99f56102a9f7c5a187af4348fc99b76a9b8be6b9ad7ab8f7bff570de828461077becbda10b6d7327db9b457748951178d69cfcbb9d8cfb71a94e56f88
7
- data.tar.gz: 6ab162b2ba333263265d562161f77204891a4c5dad6304923a4b4d46d61af4f7ec209b55e2e93ec8e58b50bf7e9db115b78df19cbac95bb1b97683d24f1c4ccb
6
+ metadata.gz: 07560a301494f18d7abbb540a176c9f19c773b1b5cbbfa1f7949d0d68287d432ad51698487e7c5941fcbc4af81dc53f4ee8c83d72e8b9dec0a3e57871b7ffebe
7
+ data.tar.gz: 140ea15d8a11c9a6d6a1b15bfc9427a058d7eacb4b6d4ee17555a18af96e38b36a983e539ad771cd6a0bf714dd5a6309e272f0ae927edbd62e1445803e0d64ab
@@ -1,49 +1,18 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 0.3.1
3
+ ### Version 1.0.0
4
4
 
5
- 2017-04-18
5
+ 2017-08-11
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow-embedded-video/compare/v0.3.0...v0.3.1)
7
+ [Compare changes](https://github.com/codevise/pageflow-embedded-video/compare/0-3-stable...v1.0.0)
8
8
 
9
9
  - Do not declare bin stubs as executables in gemspec
10
10
  ([#17](https://github.com/codevise/pageflow-embedded-video/pull/17))
11
-
12
- ### Version 0.3.0
13
-
14
- 2016-09-09
15
-
16
- [Compare changes](https://github.com/codevise/pageflow-embedded-video/compare/v0.2.0...v0.3.0)
17
-
18
- - Allow youtube urls with timecode
19
- ([#14](https://github.com/codevise/pageflow-embedded-video/pull/14))
20
- - Align close button with slim player control
21
- ([#13](https://github.com/codevise/pageflow-embedded-video/pull/13))
22
-
23
- ### Version 0.2.0
24
-
25
- 2016-06-09
26
-
27
- [Compare changes](https://github.com/codevise/pageflow-embedded-video/compare/v0.1.0...v0.2.0)
28
-
29
- - Allow https urls for vimeo videos
30
- ([#10](https://github.com/codevise/pageflow-embedded-video/pull/10))
31
- - Use configurable page type pictograms
32
- ([#9](https://github.com/codevise/pageflow-embedded-video/pull/9))
33
- - Extract publicly visible i18n strings from locale
34
- ([#8](https://github.com/codevise/pageflow-embedded-video/pull/8))
35
- - Add public-i18n-gem to gemspec
36
- ([#7](https://github.com/codevise/pageflow-embedded-video/pull/7))
37
- - Use new css class to prevent hidden text indicator
38
- ([#6](https://github.com/codevise/pageflow-embedded-video/pull/6))
39
-
40
- ### Version 0.1.1
41
-
42
- - Bug fix: Improve mobile display.
43
- ([#5](https://github.com/codevise/pageflow/pull/5))
44
-
45
- ### Version 0.1.0
46
-
47
- 2015-02-03
48
-
49
- Initial release.
11
+ - Allow to use background video
12
+ ([#16](https://github.com/codevise/pageflow-embedded-video/pull/16))
13
+ - Rename .css.scss to just .scss
14
+ ([#15](https://github.com/codevise/pageflow-embedded-video/pull/15))
15
+
16
+ See
17
+ [0-3-stable branch](https://github.com/codevise/pageflow-embedded-video/blob/0-3-stable/CHANGELOG.md)
18
+ for previous changes.
data/README.md CHANGED
@@ -28,13 +28,13 @@ Include javascript/stylesheets:
28
28
  # app/assets/javascripts/pageflow/editor.js
29
29
  //= require pageflow/embedded_video/editor
30
30
 
31
- # app/assets/stylesheets/pageflow/application.css.scss;
31
+ # app/assets/stylesheets/pageflow/application.scss;
32
32
  @import "pageflow/embedded_video";
33
33
 
34
- # app/assets/stylesheets/pageflow/editor.css.scss;
34
+ # app/assets/stylesheets/pageflow/editor.scss;
35
35
  @import "pageflow/embedded_video/editor";
36
36
 
37
- # app/assets/stylesheets/pageflow/themes/default.css.scss
37
+ # app/assets/stylesheets/pageflow/themes/default.scss
38
38
  @import "pageflow/embedded_video/themes/default";
39
39
 
40
40
  ## Configuration
@@ -58,7 +58,6 @@ page in the [Pageflow repository](https://github.com/codevise/pageflow). If tha
58
58
  doesn't help, consider
59
59
  [filing an issue](https://github.com/codevise/pageflow-embedded-video/issues).
60
60
 
61
-
62
61
  ## Contributing Locales
63
62
 
64
63
  Edit the translations directly on the
@@ -15,7 +15,7 @@ pageflow.ConfigurationEditorView.register('embedded_video', {
15
15
  });
16
16
  this.input('video_caption', pageflow.TextInputView);
17
17
  this.input('full_width', pageflow.CheckBoxInputView);
18
- this.input('background_image_id', pageflow.FileInputView, {collection: pageflow.imageFiles});
18
+ this.group('background');
19
19
  this.input('thumbnail_image_id', pageflow.FileInputView, {
20
20
  collection: pageflow.imageFiles,
21
21
  imagePositioning: false
@@ -1,6 +1,6 @@
1
1
  /*global YT, URI, $f */
2
2
 
3
- pageflow.pageType.register('embedded_video', _.extend({
3
+ pageflow.react.registerPageTypeWithDefaultBackground('embedded_video', {
4
4
  prepareNextPageTimeout: 0,
5
5
 
6
6
  enhance: function(pageElement, configuration) {
@@ -70,10 +70,6 @@ pageflow.pageType.register('embedded_video', _.extend({
70
70
 
71
71
  prepare: function(pageElement, configuration) {},
72
72
 
73
- preload: function(pageElement, configuration) {
74
- return pageflow.preload.backgroundImage(pageElement.find('.background_image'));
75
- },
76
-
77
73
  activating: function(pageElement, configuration) {
78
74
  var that = this;
79
75
 
@@ -136,19 +132,9 @@ pageflow.pageType.register('embedded_video', _.extend({
136
132
  opacity: configuration.get('gradient_opacity') / 100
137
133
  });
138
134
 
139
- this.updateCommonPageCssClasses(pageElement, configuration);
140
135
  this.resize(pageElement, configuration.attributes);
141
136
  },
142
137
 
143
- embeddedEditorViews: function() {
144
- return {
145
- '.background_image': {
146
- view: pageflow.BackgroundImageEmbeddedView,
147
- options: {propertyName: 'background_image_id'}
148
- }
149
- };
150
- },
151
-
152
138
  _createPlayer: function(pageElement, configuration) {
153
139
  var that = this,
154
140
  url = configuration.display_embedded_video_url,
@@ -377,4 +363,4 @@ pageflow.pageType.register('embedded_video', _.extend({
377
363
  }
378
364
  return hash;
379
365
  }
380
- }, pageflow.commonPageCssClasses));
366
+ });
@@ -7,7 +7,7 @@
7
7
  </div>
8
8
 
9
9
  <div class="backgroundArea">
10
- <%= background_image_div(configuration, 'background_image') %>
10
+ <%= page_background_asset(configuration) %>
11
11
  <%= shadow_div :opacity => configuration['gradient_opacity'] %>
12
12
  </div>
13
13
 
@@ -10,8 +10,8 @@ de:
10
10
  help_entries:
11
11
  page_type:
12
12
  menu_item: Embedded Video
13
- text: ! "# Embedded Video\n\n*Bettet ein externes Video von YouTube oder Vimeo ein*\n \nFalls Du neben eigenem Filmmaterial auch externe Videos verwenden möchtest, kannst\nDu diese über eine Video-URL integrieren und zudem mit einer Bildunterschrift versehen.\nAus technischen Gründen wird das Bild in einem Rahmen in die Seite\neingebunden, der sich der Größe des Bildschirms und dem Textfluss automatisch anpasst, ihn aber nie komplett ausfüllt.\nDeshalb besteht bei diesem Seitentyp die Möglichkeit, ein zusätzliches Hintergrundbild\neinzufügen, beispielsweise um einen visuellen Rahmen zu schaffen.\n\nEs können Videos der beiden Plattformen YouTube und Vimeo verwendet werden.\n\nTypische Anwendungsbeispiele: Einbinden von Playlists, Trailern, Kurzfilmen"
14
- page_type_category_name: Video
13
+ text: "# Embedded Video\n\n*Bettet ein externes Video von YouTube oder Vimeo ein*\n \nFalls Du neben eigenem Filmmaterial auch externe Videos verwenden möchtest, kannst\nDu diese über eine Video-URL integrieren und zudem mit einer Bildunterschrift versehen.\nAus technischen Gründen wird das Bild in einem Rahmen in die Seite\neingebunden, der sich der Größe des Bildschirms und dem Textfluss automatisch anpasst, ihn aber nie komplett ausfüllt.\nDeshalb besteht bei diesem Seitentyp die Möglichkeit, ein zusätzliches Hintergrund-Bild/Video\neinzufügen, beispielsweise um einen visuellen Rahmen zu schaffen.\n\nEs können Videos der beiden Plattformen YouTube und Vimeo verwendet werden.\n\nTypische Anwendungsbeispiele: Einbinden von Playlists, Trailern, Kurzfilmen"
14
+ page_type_category_name: Media
15
15
  page_type_description: Bettet ein externes Video von YouTube oder Vimeo ein
16
16
  page_type_name: Embedded Video
17
17
  ui:
@@ -10,8 +10,8 @@ en:
10
10
  help_entries:
11
11
  page_type:
12
12
  menu_item: Embedded Video
13
- text: ! "# Embedded Video\n\n*Embeds an external video from Youtube or Vimeo*\n \nIf you want to use external videos beside your own material, you can embed the video-URL and give it a caption. For technical reasons the video is embedded in a frame, that is fitting only parts of the screen. You can therefore add a background-image, which creates a visual frame. You can use videos from Youtube and Vimeo.\n\nExamples of application: integration of playlists, trailer or short movies"
14
- page_type_category_name: Video
13
+ text: "# Embedded Video\n\n*Embeds an external video from Youtube or Vimeo*\n \nIf you want to use external videos beside your own material, you can embed the video-URL and give it a caption. For technical reasons the video is embedded in a frame, that is fitting only parts of the screen. You can therefore add a background-image/video, which creates a visual frame. You can use videos from Youtube and Vimeo.\n\nExamples of application: integration of playlists, trailer or short movies"
14
+ page_type_category_name: Media
15
15
  page_type_description: Embed YouTube or Vimeo videos
16
16
  page_type_name: Embedded Video
17
17
  ui:
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module EmbeddedVideo
3
- VERSION = '0.3.1'.freeze
3
+ VERSION = '1.0.0'.freeze
4
4
  end
5
5
  end
@@ -4,26 +4,26 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'pageflow/embedded_video/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "pageflow-embedded-video"
7
+ spec.name = 'pageflow-embedded-video'
8
8
  spec.version = Pageflow::EmbeddedVideo::VERSION
9
- spec.authors = ["Stefan Schöttelndreyer"]
10
- spec.email = ["sschoettelndreyer@codevise.de"]
11
- spec.summary = "Pagetype for embedded youtube/vimeo videos"
12
- spec.homepage = "https://github.com/codevise/pageflow-embedded-video"
13
- spec.license = "MIT"
9
+ spec.authors = ['Codevise Solutions Ltd']
10
+ spec.email = ['info@codevise.de']
11
+ spec.summary = 'Pagetype for embedded youtube/vimeo videos'
12
+ spec.homepage = 'https://github.com/codevise/pageflow-embedded-video'
13
+ spec.license = 'MIT'
14
14
 
15
15
  spec.files = `git ls-files`.split($/)
16
16
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
- spec.require_paths = ["lib"]
17
+ spec.require_paths = ['lib']
18
18
 
19
- spec.add_runtime_dependency 'pageflow', '~> 0.11'
20
- spec.add_runtime_dependency 'i18n-js'
19
+ spec.required_ruby_version = '~> 2.1'
20
+
21
+ spec.add_runtime_dependency 'pageflow', '~> 12.x'
21
22
  spec.add_runtime_dependency 'pageflow-public-i18n', '~> 1.0'
22
23
 
23
- spec.add_development_dependency "bundler"
24
- spec.add_development_dependency "rake"
25
- spec.add_development_dependency "webmock"
24
+ spec.add_development_dependency 'bundler', '~> 1.0'
25
+ spec.add_development_dependency 'rake', '~> 12.0'
26
26
 
27
27
  # Semantic versioning rake tasks
28
- spec.add_development_dependency 'semmy', '~> 0.3'
28
+ spec.add_development_dependency 'semmy', '~> 1.0'
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-embedded-video
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Stefan Schöttelndreyer
7
+ - Codevise Solutions Ltd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-18 00:00:00.000000000 Z
11
+ date: 2017-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
@@ -16,28 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.11'
19
+ version: 12.x
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: '0.11'
27
- - !ruby/object:Gem::Dependency
28
- name: i18n-js
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
26
+ version: 12.x
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: pageflow-public-i18n
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -56,61 +42,47 @@ dependencies:
56
42
  name: bundler
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
- - - ">="
45
+ - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: '0'
47
+ version: '1.0'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - ">="
52
+ - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: '0'
54
+ version: '1.0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rake
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: webmock
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
59
+ - - "~>"
88
60
  - !ruby/object:Gem::Version
89
- version: '0'
61
+ version: '12.0'
90
62
  type: :development
91
63
  prerelease: false
92
64
  version_requirements: !ruby/object:Gem::Requirement
93
65
  requirements:
94
- - - ">="
66
+ - - "~>"
95
67
  - !ruby/object:Gem::Version
96
- version: '0'
68
+ version: '12.0'
97
69
  - !ruby/object:Gem::Dependency
98
70
  name: semmy
99
71
  requirement: !ruby/object:Gem::Requirement
100
72
  requirements:
101
73
  - - "~>"
102
74
  - !ruby/object:Gem::Version
103
- version: '0.3'
75
+ version: '1.0'
104
76
  type: :development
105
77
  prerelease: false
106
78
  version_requirements: !ruby/object:Gem::Requirement
107
79
  requirements:
108
80
  - - "~>"
109
81
  - !ruby/object:Gem::Version
110
- version: '0.3'
82
+ version: '1.0'
111
83
  description:
112
84
  email:
113
- - sschoettelndreyer@codevise.de
85
+ - info@codevise.de
114
86
  executables: []
115
87
  extensions: []
116
88
  extra_rdoc_files: []
@@ -141,9 +113,9 @@ files:
141
113
  - app/assets/javascript/pageflow/embedded_video/editor/views/inputs/video_url_input_view.js
142
114
  - app/assets/javascript/pageflow/embedded_video/page_type.js
143
115
  - app/assets/javascript/pageflow/froogaloop.js
144
- - app/assets/stylesheets/pageflow/embedded_video.css.scss
145
- - app/assets/stylesheets/pageflow/embedded_video/custom.css.scss
146
- - app/assets/stylesheets/pageflow/embedded_video/editor.css.scss
116
+ - app/assets/stylesheets/pageflow/embedded_video.scss
117
+ - app/assets/stylesheets/pageflow/embedded_video/custom.scss
118
+ - app/assets/stylesheets/pageflow/embedded_video/editor.scss
147
119
  - app/assets/stylesheets/pageflow/embedded_video/themes/default.scss
148
120
  - app/views/pageflow/embedded_video/page.html.erb
149
121
  - app/views/pageflow/embedded_video/page_type.json.jbuilder
@@ -166,9 +138,9 @@ require_paths:
166
138
  - lib
167
139
  required_ruby_version: !ruby/object:Gem::Requirement
168
140
  requirements:
169
- - - ">="
141
+ - - "~>"
170
142
  - !ruby/object:Gem::Version
171
- version: '0'
143
+ version: '2.1'
172
144
  required_rubygems_version: !ruby/object:Gem::Requirement
173
145
  requirements:
174
146
  - - ">="