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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2869241328d088bede763e5cff28f0632bc7ef9e
4
- data.tar.gz: bea93e19a34a6a4878a1187c9c8452e975cf43e1
3
+ metadata.gz: b6b87391ec506132e39583379421870e593ce30c
4
+ data.tar.gz: a8ee7b1fb5d22336eeb28dfac1895c3c9556106d
5
5
  SHA512:
6
- metadata.gz: 86bb3a759e2095f50c3a4e309ee5d50df42ed798fc8a565e91b8a53ced859d3c6b3c174650bc5bf6bae1f2bf81bd8eddae3ee9d4fd8cd0207380cc74350f4804
7
- data.tar.gz: 9642ed1f20615d7729c373a911777a1ab810d9a8a6287479836b120301a54afb1540d69333b9a1b08b135b4dfccbd6b1f84b64e62aa288ccb82fee7b27530fdc
6
+ metadata.gz: 2a1aa243f5e348d00d7d28d7b7f87c724a6aaa5e346401d8bbfc8da7a137b55b9460865785847e8599f8e6908f4b7e7762cc273d630351bc226205d11d3348d5
7
+ data.tar.gz: 5db8fb6579afcb3bc062c2ae80bcf8265a5c7e1a12ce62cd035e2b583abf457927ad784030d795c200605d962d868057474e81da57e6f4bcb0e6e1ef900ff3d4
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -40,7 +40,8 @@ Shul::Main.new Shoes, xml
40
40
 
41
41
  # modifications
42
42
  #
43
- # 10-May-2016: An hbox or vbox can now have a margin
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
- margin = e.attributes[:margin].to_i
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shul
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file