shul 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/shul.rb +5 -5
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6b87391ec506132e39583379421870e593ce30c
|
4
|
+
data.tar.gz: a8ee7b1fb5d22336eeb28dfac1895c3c9556106d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a1aa243f5e348d00d7d28d7b7f87c724a6aaa5e346401d8bbfc8da7a137b55b9460865785847e8599f8e6908f4b7e7762cc273d630351bc226205d11d3348d5
|
7
|
+
data.tar.gz: 5db8fb6579afcb3bc062c2ae80bcf8265a5c7e1a12ce62cd035e2b583abf457927ad784030d795c200605d962d868057474e81da57e6f4bcb0e6e1ef900ff3d4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/shul.rb
CHANGED
@@ -40,7 +40,8 @@ Shul::Main.new Shoes, xml
|
|
40
40
|
|
41
41
|
# modifications
|
42
42
|
#
|
43
|
-
# 10-May-2016:
|
43
|
+
# 10-May-2016: The background color of a vbox can now be changed
|
44
|
+
# An hbox or vbox can now have a margin
|
44
45
|
# A label can now have a width. Helpful when using it within
|
45
46
|
# an hbox element
|
46
47
|
# 29-Mar-2016: Code improvement: Uses refinements for the the
|
@@ -48,9 +49,6 @@ Shul::Main.new Shoes, xml
|
|
48
49
|
# * tested using the green_shoes gem.
|
49
50
|
|
50
51
|
|
51
|
-
require 'rexle'
|
52
|
-
require 'rxfhelper'
|
53
|
-
|
54
52
|
|
55
53
|
module RexleObject
|
56
54
|
refine Rexle::Element do
|
@@ -378,8 +376,10 @@ module Shul
|
|
378
376
|
|
379
377
|
def vbox(e)
|
380
378
|
|
381
|
-
|
379
|
+
h = e.attributes
|
380
|
+
margin = h[:margin].to_i
|
382
381
|
stack = @shoes.stack margin: margin do
|
382
|
+
@shoes.background h[:bgcolor] if h[:bgcolor]
|
383
383
|
e.elements.each {|x| method(x.name.sub(':','_').to_sym).call(x) }
|
384
384
|
end
|
385
385
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|