shul 0.3.11 → 0.3.12

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: 3417ab887ab20fb577fe023378f1c6f06fb62dbc
4
- data.tar.gz: 176abf34525474e92f5742bca38be2fba583396b
3
+ metadata.gz: 986d36724410915c839699ac3eddfb05b28e8635
4
+ data.tar.gz: c7d8c19e1f6c8b8a40c76a6f10538451e2973339
5
5
  SHA512:
6
- metadata.gz: bdd7d6b03d0eb2585d6916be8ccd6075652fe906cc2aaedd187d7ae421ce2316d2f8d0497bb875791328fd95c2145f14270ed824927e6bade496d736bf5a433f
7
- data.tar.gz: 27859a28b338d11c49bdcfc4337c5e5d2a6b3567ab6e7f3bc520513bb04fcd06a201ecbb20eacf5064e38e975a757be0cb22fdbc9112e7f946b5c2cf4bb11225
6
+ metadata.gz: 9f7df1e42bea6902649a4357e3739da15f2cfb0c1c2e476b46c0b294172bec87a824e97e7708e12a93aacb58b8966eebaa75b1df71ffdd3ff61d35e2ab16c972
7
+ data.tar.gz: 1bfbbc2ab1b4097a4c84170b52821a58e970163db0dcbd4665d6ad6640cd5cc195f5d68c54b4d0cabd57c3bb9e445e083d0497cb3bd78fb9d2f67dd94e80ee7c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -40,6 +40,8 @@ Shul::Main.new Shoes, xml
40
40
 
41
41
  # modifications
42
42
  #
43
+ # 13-Jan-2017: The script tag is now executed only after the
44
+ # document elements have been loaded
43
45
  # 10-Jan-2017: Implemented methods value() and value=() for the label element
44
46
  # 06-Dec-2016: bug fix: Removes the file /tmp/__green_shoes_temporary_file__
45
47
  # to prevent a file lock on a thin client server setup
@@ -104,9 +106,9 @@ module Shul
104
106
  puts 'not yet implemented'
105
107
  end
106
108
 
107
- button 'test' do
108
- alert('fun')
109
- end
109
+ #button 'test' do
110
+ # alert('fun')
111
+ #end
110
112
 
111
113
 
112
114
  shul = Shul::App.new self, doc, refresh: bflag, \
@@ -192,12 +194,16 @@ module Shul
192
194
  @width, @height = 100, 100
193
195
 
194
196
  @doc = doc
195
-
196
- @doc.root.elements.each {|x| method(x.name.sub(':','_').to_sym).call(x) }
197
-
197
+
198
198
  def @doc.element_by_id(id)
199
199
  self.root.element("//*[@id='#{id}']")
200
+ end
201
+
202
+ @doc.root.elements.each do |x|
203
+ method(x.name.sub(':','_').to_sym).call(x) unless x.name == 'script'
200
204
  end
205
+
206
+ @doc.root.xpath('script').each {|x| script x }
201
207
 
202
208
  end
203
209
 
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.11
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- ��I��Z�|�/G淸Խ��M��r���`�z�� E�����ҟ_�(7�tm
2
- ��K�}�v���4,x mͩ�=�5bR�Z�k��w�r'�DZL��AG�P�[�5�N���� g�)X�4���?�Tv{���V ��2���p���@�����Z�T��j����;���J%��R���B��N��%�s�C?�}�V�V�����ʷS�l]/�Ϲ���8���
1
+ I��b�t�?d/.TN_�����@���x���Q�<T����2��sӁ������IO��g�O�)�$�b%=@�U嗚�gjP�����W��;��e6(�"~�_c�6|>}���&*ܡfqPYA��� �*ne��Pw@6k5�/0�dզ�Wkb-��bEe�� Y �q�5s�W��ɡ����C{K{(R�N��p��� �}U�ce�8*-�֘��@7�\䔀�=�Y��%���
2
+ A�+~�� V��og/s1f