shul 0.3.4 → 0.3.5

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: 462fdd2dd278cf301cb27c76fe19c88bd1238df8
4
- data.tar.gz: dd79a7c6854268d6f37af912ff040ae0c638a3dc
3
+ metadata.gz: 2869241328d088bede763e5cff28f0632bc7ef9e
4
+ data.tar.gz: bea93e19a34a6a4878a1187c9c8452e975cf43e1
5
5
  SHA512:
6
- metadata.gz: 00e269ab08064d7bef2ee2667584caf4a2f96534657bdbb80aa2a9a8f9b9d76cdaf8e0ac6e1aeee3f0db683d92ed7ec9e82e7a1225340c715b2eb0df69122ff1
7
- data.tar.gz: d8500c953fe717e94cc368123815e44cb09d7a5f9fa4b6dec7cf1949763f45cc28585f01223105ce8ab2157c2ba0791b8f06b35fb1f5c42dd90b1879f66694ea
6
+ metadata.gz: 86bb3a759e2095f50c3a4e309ee5d50df42ed798fc8a565e91b8a53ced859d3c6b3c174650bc5bf6bae1f2bf81bd8eddae3ee9d4fd8cd0207380cc74350f4804
7
+ data.tar.gz: 9642ed1f20615d7729c373a911777a1ab810d9a8a6287479836b120301a54afb1540d69333b9a1b08b135b4dfccbd6b1f84b64e62aa288ccb82fee7b27530fdc
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- ,�&iT�W��Z�J��z<7Z��7y0s�.����YC��xB_.a#ꁁ��R,���,n�0
2
- �7���� Ҷ�乿��Ju2����7h��}1,�� ���� S�6�a�}�T���c����:����� ���ki�H׶&g��aB�
1
+ [T_R���cZ�:�M7;osp:�|r�l�_�Dm��6x�G�܅1)�]^8N�]I�y���~[`��������J�ᵍ���:P(��� �-C[�j������u`u@-�G��yhY���WJ��� MQK;��$wV�[�v�� R�2/����<0�����W`ͮ{H�̼��fa�7˝���L����D���'W*���z�u<�&�S�I����}Fw���j���5y��i3C�;�f������Js�$"%��
data/lib/shul.rb CHANGED
@@ -40,12 +40,14 @@ Shul::Main.new Shoes, xml
40
40
 
41
41
  # modifications
42
42
  #
43
- # 10-May-2016: A label can now have a width. Helpful when using it within
43
+ # 10-May-2016: An hbox or vbox can now have a margin
44
+ # A label can now have a width. Helpful when using it within
44
45
  # an hbox element
45
46
  # 29-Mar-2016: Code improvement: Uses refinements for the the
46
47
  # Rexle::Element enhancement rather than a monkey patch
47
48
  # * tested using the green_shoes gem.
48
49
 
50
+
49
51
  require 'rexle'
50
52
  require 'rxfhelper'
51
53
 
@@ -252,7 +254,9 @@ module Shul
252
254
 
253
255
  def hbox(e)
254
256
 
255
- flow = @shoes.flow do
257
+ margin = e.attributes[:margin].to_i
258
+
259
+ flow = @shoes.flow margin: margin do
256
260
  e.elements.each {|x| method(x.name.sub(':','_').to_sym).call(x) }
257
261
  end
258
262
  e.obj = flow
@@ -374,7 +378,8 @@ module Shul
374
378
 
375
379
  def vbox(e)
376
380
 
377
- stack = @shoes.stack do
381
+ margin = e.attributes[:margin].to_i
382
+ stack = @shoes.stack margin: margin do
378
383
  e.elements.each {|x| method(x.name.sub(':','_').to_sym).call(x) }
379
384
  end
380
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.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file