maglove-widgets 1.1.5 → 1.1.6

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: 64b2ebe2db8dbf4664bc3e506278b2013d84436d
4
- data.tar.gz: b11a0491624192125f684821683e80e6dcd250e7
3
+ metadata.gz: 9c612cedad441da458beb655b9cfb7cb2723b6fc
4
+ data.tar.gz: a0141003d730b18118404deeb806f4381881ee70
5
5
  SHA512:
6
- metadata.gz: e77088bfb7227b1c27bb5acb4a2e5f136a25655fa43433615e6de7baf8923658d03b04435a406f83fd50c6b2a970feb2ab65b12fa82e1535a3f2920b08b0a402
7
- data.tar.gz: 84962b295a34d08c4ffdea531be34c0b8c72a7b4e213c14c4f53927f454ac6f03140748c55b2b6358a1004ae9478c6f688e789026c29068fca10b73f6be4d548
6
+ metadata.gz: 34661fe9a20bd21c8d885b1ea7b2375b355c98407504ed26126fc3fb633e84fc155afbaca9ddca9297a948ca078410f5207d8322c0f0b8c6b73009215d5ee1af
7
+ data.tar.gz: 4970a604a77ac208a1e7859b72f45b7be9423401f8c8387a5dcf6e9b958b9f08575c24155eaaaaae2eda1957fb6f01114c5b29156ee0567ba5ef7da12f868ae6
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maglove-widgets (1.1.5)
4
+ maglove-widgets (1.1.6)
5
5
  bundler (~> 1.14)
6
6
  hamloft (~> 0.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- haml (5.0.2)
11
+ haml (5.0.3)
12
12
  temple (>= 0.8.0)
13
13
  tilt
14
14
  hamloft (0.2.6)
@@ -27,4 +27,4 @@ DEPENDENCIES
27
27
  maglove-widgets!
28
28
 
29
29
  BUNDLED WITH
30
- 1.15.4
30
+ 1.15.1
@@ -0,0 +1,26 @@
1
+ module Maglove
2
+ module Widgets
3
+ class RawHtml < Base
4
+ def identifier
5
+ "raw_html"
6
+ end
7
+
8
+ def defaults
9
+ {
10
+ src: "",
11
+ css: ""
12
+ }
13
+ end
14
+
15
+ module Helpers
16
+ def raw_html_widget(options = {}, &block)
17
+ widget_block(Widgets::RawHtml.new(options)) do |widget|
18
+ haml_tag :div, class: "iframe-container", style: style_string(widget.options, :margin, :padding) do
19
+ haml_tag :iframe, src: widget.options[:src], style: widget.options[:css]
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "maglove-widgets"
6
- s.version = "1.1.5"
6
+ s.version = "1.1.6"
7
7
  s.licenses = ["BSD-3-Clause"]
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Tobias Strebitzer"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maglove-widgets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer
@@ -61,6 +61,7 @@ files:
61
61
  - lib/maglove/widgets/image.rb
62
62
  - lib/maglove/widgets/listitem.rb
63
63
  - lib/maglove/widgets/paragraph.rb
64
+ - lib/maglove/widgets/raw_html.rb
64
65
  - lib/maglove/widgets/scrollable_image.rb
65
66
  - lib/maglove/widgets/slider.rb
66
67
  - lib/maglove/widgets/video.rb
@@ -87,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
88
  version: '0'
88
89
  requirements: []
89
90
  rubyforge_project:
90
- rubygems_version: 2.5.2
91
+ rubygems_version: 2.6.10
91
92
  signing_key:
92
93
  specification_version: 4
93
94
  summary: MagLove Widgets Repository