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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5dc7652853ab41d54619008cf3b26b415bd6da9c
4
- data.tar.gz: 0f7c0c83f0a73d8395a9ac5b3e39af23ba9bedf9
3
+ metadata.gz: 032dbb782dcf42872f8cf2b50d53c00d5e8af0ec
4
+ data.tar.gz: 601354f117763df6c7c194ce305d20c255c00f1b
5
5
  SHA512:
6
- metadata.gz: 36a96c291501ff25f03864cf6dab14a9f7af047330de33de2c5918e646a1e555ecca4ea5daf3bbda0ce74497addfcc07e1431e02fa31bad0654fb9e4bd2096f7
7
- data.tar.gz: b0cdb230efec492dd9292ec5084e8879b0706695b00f6cf05338d630d6185d47ebfbdb74ac224445ff0c3bdf6b711c1c4f7ef45eac929a88d9b6dede5478e2ce
6
+ metadata.gz: 68e739f816139ec8cdcf7736feb85a4532a5eef146f842347d14b0ef96694f2e09c93e8c3c4a57a37aa983f26dd4734ddefc7c9360206acd3fa89741288a65d6
7
+ data.tar.gz: da045cf4c94e4261a09730e91c5ece4cc56e72a74287ed519fdcdc811b6d99876e9b91a6c827502211f1ca74fd02355d2e02a9a387855991ac0d9dfd1c8c7331
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maglove-widgets (2.0.4)
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.2)
14
+ hamloft (2.0.4)
15
15
  haml (~> 5.0)
16
16
  nokogiri (~> 1.8)
17
17
  mini_portile2 (2.2.0)
@@ -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
@@ -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 = "2.0.4"
6
+ s.version = "2.0.5"
7
7
  s.licenses = ["BSD-3-Clause"]
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Tobias Strebitzer"]
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
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-08-28 00:00:00.000000000 Z
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