scrivito_section_widgets 0.0.9 → 0.0.12

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
  SHA1:
3
- metadata.gz: 1d7c87216b53b8700ee81954d50bf22b1e7410a0
4
- data.tar.gz: ad173e749868bc22025973e2a645ce9afebeecf9
3
+ metadata.gz: 897a3d7e23e6ddf00266a6317aabd0b6df3fdb5c
4
+ data.tar.gz: 8cbc49a13f94dd4448d4b68ba3c92268bc977e05
5
5
  SHA512:
6
- metadata.gz: 39931615b53c2ce488a232527a24dd0e25546018945ee854d803d4f47a08fb4dda993793c21e4a239d16e9e28e8d210569128eadd97388e238ce93d3eb21c63a
7
- data.tar.gz: 046efe4b9028e46d69b8c435efb8f64ffa9a04965ba462cfc9ce79fe065bb08c4559c68debbffde176bbcdcdc195f118c061a3b098c340a1a2fc73b2a6b7784b
6
+ metadata.gz: f985c0d19627f0b446ba7d99a5e26c95600c1bd2f62224b0a00c5f3a0aaa8b295eb0c98aac502c89ae27ddec444278b4e6d6ecb48edab2dcd0544906ae09f5ef
7
+ data.tar.gz: dd4a26b9ebfcc5d6ee37f386907c4d543f5c1125a0d7b2912f726516beb546cba0df676e080405c306b4c796f022dd3804b03444a1f9633d9e8eadd984c5f21e
@@ -1,4 +1,6 @@
1
1
  class SectionContentWidget < Widget
2
+ attribute :section_content, :widgetlist
3
+ attribute :background_color, :string
2
4
 
3
5
  def selectable_color_classes(class_name, attribute)
4
6
  if Obj.respond_to?('selectable_color_classes')
@@ -1,2 +1,5 @@
1
1
  class SectionParallaxWidget < Widget
2
+ attribute :section_content, :widgetlist
3
+ attribute :background_image, :reference
4
+ attribute :height, :string
2
5
  end
@@ -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
@@ -1,2 +1,3 @@
1
- class Video
1
+ class Video < Scrivito::BasicObj
2
+ attribute :blob, :binary
2
3
  end
@@ -1,3 +1,3 @@
1
1
  module ScrivitoSectionWidgets
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -38,7 +38,7 @@ class CreateSectionWidgets < ::Scrivito::Migration
38
38
  ]
39
39
  )
40
40
 
41
- unless Scrivito::ObjClass.all.to_a.select {|a| a.name == "Video"}.empty?
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.9
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-10 00:00:00.000000000 Z
11
+ date: 2015-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler