maglove-widgets 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/maglove/widgets.rb +2 -0
- data/lib/maglove/widgets/page.rb +20 -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: 032dbb782dcf42872f8cf2b50d53c00d5e8af0ec
|
4
|
+
data.tar.gz: 601354f117763df6c7c194ce305d20c255c00f1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68e739f816139ec8cdcf7736feb85a4532a5eef146f842347d14b0ef96694f2e09c93e8c3c4a57a37aa983f26dd4734ddefc7c9360206acd3fa89741288a65d6
|
7
|
+
data.tar.gz: da045cf4c94e4261a09730e91c5ece4cc56e72a74287ed519fdcdc811b6d99876e9b91a6c827502211f1ca74fd02355d2e02a9a387855991ac0d9dfd1c8c7331
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
maglove-widgets (2.0.
|
4
|
+
maglove-widgets (2.0.5)
|
5
5
|
hamloft (~> 2.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -11,7 +11,7 @@ GEM
|
|
11
11
|
haml (5.0.2)
|
12
12
|
temple (>= 0.8.0)
|
13
13
|
tilt
|
14
|
-
hamloft (2.0.
|
14
|
+
hamloft (2.0.4)
|
15
15
|
haml (~> 5.0)
|
16
16
|
nokogiri (~> 1.8)
|
17
17
|
mini_portile2 (2.2.0)
|
data/lib/maglove/widgets.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require "maglove/widgets/base"
|
2
|
+
require "maglove/widgets/page"
|
2
3
|
require "maglove/widgets/button"
|
3
4
|
require "maglove/widgets/columns"
|
4
5
|
require "maglove/widgets/container"
|
@@ -13,6 +14,7 @@ require "maglove/widgets/youtube"
|
|
13
14
|
|
14
15
|
module Maglove
|
15
16
|
module Widgets
|
17
|
+
Hamloft.register_widget(:page, Page)
|
16
18
|
Hamloft.register_widget(:button, Button)
|
17
19
|
Hamloft.register_widget(:columns, Columns)
|
18
20
|
Hamloft.register_widget(:container, Container)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Maglove
|
2
|
+
module Widgets
|
3
|
+
class Page < Base
|
4
|
+
def identifier
|
5
|
+
"page"
|
6
|
+
end
|
7
|
+
|
8
|
+
def defaults
|
9
|
+
{
|
10
|
+
text_color: "#000000",
|
11
|
+
background_color: "#FFFFFF"
|
12
|
+
}
|
13
|
+
end
|
14
|
+
|
15
|
+
def template(&block)
|
16
|
+
yield if block
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/maglove-widgets.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maglove-widgets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Strebitzer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hamloft
|
@@ -44,6 +44,7 @@ files:
|
|
44
44
|
- lib/maglove/widgets/heading.rb
|
45
45
|
- lib/maglove/widgets/horizontal_rule.rb
|
46
46
|
- lib/maglove/widgets/image.rb
|
47
|
+
- lib/maglove/widgets/page.rb
|
47
48
|
- lib/maglove/widgets/paragraph.rb
|
48
49
|
- lib/maglove/widgets/scrollable_image.rb
|
49
50
|
- lib/maglove/widgets/slider.rb
|