udongo 6.4.0 → 6.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b5b3b1a404230641c9fca147994774185e156ad
4
- data.tar.gz: af7318f3a5bf2061fcf1a815600d8ba127513571
3
+ metadata.gz: 7af3025b7000b2796022a990432ad72423452f12
4
+ data.tar.gz: fddc5df340c155adbb57a7c825ebc47317388059
5
5
  SHA512:
6
- metadata.gz: 2eabef60a87981eae7cb4e62635d350b1977aaf47a3840dd960042b144f00235990eef0f74bc905980c08baf20e7a52d36b7d5074457aff571df2ce85debc25c
7
- data.tar.gz: efb9507168f2d96cb4b1e547f489b66be1f2768d12edccf79afbe087e66a1d2c8984a06f74343e369891ba798e46c12cd5fca15d4d4397e67889da489c3c5cdf
6
+ metadata.gz: 30ad50179b1fa591933b7e0af3cac9950875ee9b14849db4dc96b896948a8ff005eab5a05f39317b36ac3ad2bc633f08e1fb75b84b3329cdf86c302c5d393570
7
+ data.tar.gz: dd2b398e65166f6a1824ef1232f86a4fc43e3260d6f17c57d9741e22a243f2478accbea549b9a3eda2967d6e44a00ba490dfb44ff04e717f61b5d9e908ce151d
@@ -26,4 +26,16 @@ class ContentRowDecorator < ApplicationDecorator
26
26
 
27
27
  list
28
28
  end
29
+
30
+ def styles
31
+ list = {}
32
+ list['background-color'.to_sym] = background_color if background_color.present?
33
+
34
+ %w(margin_top margin_bottom padding_top padding_bottom).each do |s|
35
+ str = s.split('_')
36
+ list["#{str.first}-#{str.last}".to_sym] = "#{send(s)}rem" if send(s).present?
37
+ end
38
+
39
+ list
40
+ end
29
41
  end
data/changelog.md CHANGED
@@ -1,3 +1,8 @@
1
+ 6.4.1 - 2017-06-16
2
+ --
3
+ * Make it easier to fetch all the content row styles as a hash.
4
+
5
+
1
6
  6.4.0 - 2017-06-16
2
7
  --
3
8
  * Add the AssetCollection model with a module. This allows you to put certai
@@ -1,3 +1,3 @@
1
1
  module Udongo
2
- VERSION = '6.4.0'
2
+ VERSION = '6.4.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: udongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.0
4
+ version: 6.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davy Hellemans