scrivito_section_widgets 0.0.9 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/section_content_widget.rb +2 -0
- data/app/models/section_parallax_widget.rb +3 -0
- data/app/models/section_video_widget.rb +6 -0
- data/app/models/video.rb +2 -1
- data/lib/scrivito_section_widgets/version.rb +1 -1
- data/scrivito/migrate/0_create_section_widgets.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 897a3d7e23e6ddf00266a6317aabd0b6df3fdb5c
|
4
|
+
data.tar.gz: 8cbc49a13f94dd4448d4b68ba3c92268bc977e05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f985c0d19627f0b446ba7d99a5e26c95600c1bd2f62224b0a00c5f3a0aaa8b295eb0c98aac502c89ae27ddec444278b4e6d6ecb48edab2dcd0544906ae09f5ef
|
7
|
+
data.tar.gz: dd4a26b9ebfcc5d6ee37f386907c4d543f5c1125a0d7b2912f726516beb546cba0df676e080405c306b4c796f022dd3804b03444a1f9633d9e8eadd984c5f21e
|
@@ -1,2 +1,8 @@
|
|
1
1
|
class SectionVideoWidget < Widget
|
2
|
+
attribute :section_content, :widgetlist
|
3
|
+
attribute :background_image, :reference
|
4
|
+
attribute :background_video_mp4, :reference
|
5
|
+
attribute :background_video_webm, :reference
|
6
|
+
attribute :background_video_ogg, :reference
|
7
|
+
attribute :height, :string
|
2
8
|
end
|
data/app/models/video.rb
CHANGED
@@ -38,7 +38,7 @@ class CreateSectionWidgets < ::Scrivito::Migration
|
|
38
38
|
]
|
39
39
|
)
|
40
40
|
|
41
|
-
|
41
|
+
if Scrivito::ObjClass.all.to_a.select {|a| a.name == "Video"}.empty?
|
42
42
|
Scrivito::ObjClass.create(
|
43
43
|
name: 'Video',
|
44
44
|
type: 'generic',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_section_widgets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|