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 +4 -4
- data/Gemfile.lock +3 -3
- data/lib/maglove/widgets/raw_html.rb +26 -0
- data/maglove-widgets.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c612cedad441da458beb655b9cfb7cb2723b6fc
|
4
|
+
data.tar.gz: a0141003d730b18118404deeb806f4381881ee70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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
|
data/maglove-widgets.gemspec
CHANGED
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.
|
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.
|
91
|
+
rubygems_version: 2.6.10
|
91
92
|
signing_key:
|
92
93
|
specification_version: 4
|
93
94
|
summary: MagLove Widgets Repository
|