maglove-widgets 2.0.0 → 2.0.1

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: 2542b44bbf19c26ed7dcabe16a07c5f24c628178
4
- data.tar.gz: 4688b2ad33b157f0bc1ad5087b79b36ea28bf2f6
3
+ metadata.gz: de6fd2d21d9651626fa0d43e081fec0eb6959ff6
4
+ data.tar.gz: 6347ffc9f5c6d79d5d8eab0f2086c51c09e2c88f
5
5
  SHA512:
6
- metadata.gz: 0b54cf13eb3d8ae71dc8b4198d1bf8c0568189565d9bbfefa43fd74b738d240da3acc646403e9e9430f5dec9f1559b0e713a31f401ea97b1fc72b26044b3dcb1
7
- data.tar.gz: c892ae7b1c20a78dd42e1bb5d4c1b8e9d84cbfe2153b3ba5f39c67ccc49f54c7f9631044424675531dcbd226d1e894669793261e57f1e69e380e57e4c9e5f968
6
+ metadata.gz: 84cf6521f64fcca833345a0f2c5df2069c4fd33e422501c8103215035c62193d3e48b2884e44bd62c3bafaa09f5af5459ac9e5267cfdd5dc9b0cd4e54268b463
7
+ data.tar.gz: b5d860a465d5007c8a072fe12cbdcf1a0830dbb2570771077e4a9da8b945f441c6f25d022b15362b9103b4926e2e5841bae8205a5d538ea0dbf6afd3a2723d1c
data/Gemfile.lock CHANGED
@@ -1,23 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maglove-widgets (2.0.0)
5
- bundler (~> 1.10)
6
- haml (~> 4.0)
7
- hamloft (~> 0.2.4)
4
+ maglove-widgets (2.0.1)
5
+ hamloft (~> 0.2.6)
8
6
 
9
7
  GEM
10
8
  remote: https://rubygems.org/
11
9
  specs:
12
- haml (4.0.7)
10
+ haml (5.0.2)
11
+ temple (>= 0.8.0)
13
12
  tilt
14
- hamloft (0.2.4)
15
- haml (~> 4.0)
16
- nokogiri (~> 1.6)
17
- mini_portile2 (2.1.0)
18
- nokogiri (1.7.0.1)
19
- mini_portile2 (~> 2.1.0)
20
- tilt (2.0.7)
13
+ hamloft (0.2.6)
14
+ haml (~> 5.0)
15
+ nokogiri (~> 1.8)
16
+ mini_portile2 (2.2.0)
17
+ nokogiri (1.8.0)
18
+ mini_portile2 (~> 2.2.0)
19
+ temple (0.8.0)
20
+ tilt (2.0.8)
21
21
 
22
22
  PLATFORMS
23
23
  ruby
@@ -26,4 +26,4 @@ DEPENDENCIES
26
26
  maglove-widgets!
27
27
 
28
28
  BUNDLED WITH
29
- 1.14.6
29
+ 1.15.1
@@ -20,9 +20,13 @@ module Maglove
20
20
  classes = ["_typeloft_widget", "#{identifier.dasherize}-widget"]
21
21
  classes.push("mobile-#{@options[:mobile]}") if @options[:mobile]
22
22
  attributes = {
23
- :class => classes.join(" "),
24
23
  :"data-widget-identifier" => identifier
25
24
  }
25
+ if @options[:effect]
26
+ classes.push("effect")
27
+ classes.push("effect-#{@options[:effect]}")
28
+ end
29
+ attributes[:class] = classes.join(" ")
26
30
  widget_style_keys = [:padding, :padding_top, :padding_bottom, :padding_left, :padding_right, :background_color, :background_image, :background_size, :background_position]
27
31
  widget_options = @options.except(*widget_style_keys)
28
32
  styles = @options.slice(*widget_style_keys)
@@ -26,8 +26,7 @@ module Maglove
26
26
 
27
27
  def row_options
28
28
  {
29
- class: "row row-#{@options[:style]}",
30
- style: style_string(@options, :margin_bottom)
29
+ class: "row row-#{@options[:style]}"
31
30
  }
32
31
  end
33
32
 
@@ -39,7 +38,6 @@ module Maglove
39
38
  {
40
39
  columns: "2",
41
40
  style: "default",
42
- margin_bottom: "",
43
41
  collapse_options: "sm"
44
42
  }
45
43
  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.0"
6
+ s.version = "2.0.1"
7
7
  s.licenses = ["BSD-3-Clause"]
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Tobias Strebitzer"]
@@ -11,9 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.homepage = "https://bitbucket.org/MagLoft/maglove-widgets"
12
12
  s.summary = "MagLove Widgets Repository"
13
13
  s.description = "This gem contains shared widgets for MagLove."
14
- s.add_runtime_dependency "bundler", "~> 1.10"
15
- s.add_runtime_dependency 'haml', "~> 4.0"
16
- s.add_runtime_dependency 'hamloft', "~> 0.2.4"
14
+ s.add_runtime_dependency 'hamloft', "~> 0.2.6"
17
15
  s.files = `git ls-files`.split("\n")
18
16
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
19
17
  s.require_path = 'lib'
metadata CHANGED
@@ -1,57 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maglove-widgets
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
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-04-24 00:00:00.000000000 Z
11
+ date: 2017-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.10'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.10'
27
- - !ruby/object:Gem::Dependency
28
- name: haml
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '4.0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '4.0'
41
13
  - !ruby/object:Gem::Dependency
42
14
  name: hamloft
43
15
  requirement: !ruby/object:Gem::Requirement
44
16
  requirements:
45
17
  - - "~>"
46
18
  - !ruby/object:Gem::Version
47
- version: 0.2.4
19
+ version: 0.2.6
48
20
  type: :runtime
49
21
  prerelease: false
50
22
  version_requirements: !ruby/object:Gem::Requirement
51
23
  requirements:
52
24
  - - "~>"
53
25
  - !ruby/object:Gem::Version
54
- version: 0.2.4
26
+ version: 0.2.6
55
27
  description: This gem contains shared widgets for MagLove.
56
28
  email:
57
29
  - tobias.strebitzer@magloft.com