shul 0.2.5 → 0.2.6

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: 1154feebb282171b2e41eb47e25a27ff3d047ba4
4
- data.tar.gz: 9c475b1642f077ba44ad06a1420d3d4e695a6113
3
+ metadata.gz: 7dce5b508edf2122525d766e52b0bd9304e5e5d8
4
+ data.tar.gz: 92990ef34ddd4231100c5a615cee370a03ffb8e5
5
5
  SHA512:
6
- metadata.gz: 78f36a1d05a2eebb6e65756c61905983fb587fff56a59369ede2954fec25a38816dd3e6b5ed8a3c59b5bf067abe86d6c92f91d62904648a86d2eab573f1ac463
7
- data.tar.gz: 1d53b496a7c69b1f232066ecf7eeae729f9f41846fd24f027eb863388b7b9f40a5d9c53d6a6e33e010b0b210b69ff251945cd292794919c82fa2c923c971b95a
6
+ metadata.gz: 6b72c58fc30d23510871a6b85df5056afdef9300af9d7b82e5baf685bf16078e797d9959f28117bb074f5c71895e076e4400a8852a1c2568dcae3706483479d7
7
+ data.tar.gz: dc893dc40c1be0fdd8c8117ff4f1f2b38189285c4861da93af6932d8420979e17874408a55619df41b8e7f096a8323ac42b7931813b3860fc548dc4d1da7990d
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/shul.rb CHANGED
@@ -121,6 +121,12 @@ class Shul
121
121
  )
122
122
 
123
123
  end
124
+
125
+ def html_em(e)
126
+ @shoes.para(@shoes.em(e.text))
127
+ end
128
+
129
+ alias html_i html_em
124
130
 
125
131
  def html_input(e)
126
132
 
@@ -134,6 +140,7 @@ class Shul
134
140
 
135
141
  def html_p(e)
136
142
  @shoes.para e.text
143
+ e.elements.each {|x| method(x.name.sub(':','_').to_sym).call(x) }
137
144
  end
138
145
 
139
146
  def html_span(e)
@@ -164,6 +171,26 @@ class Shul
164
171
  @shoes.progress
165
172
  end
166
173
 
174
+ def radiogroup(e)
175
+
176
+
177
+ e.xpath('radio').each do |x|
178
+
179
+ def x.value() self.attributes[:value] end
180
+ def x.value=(v) self.attributes[:value] = v end
181
+
182
+ x.value = x.attributes[:value]
183
+ h = x.attributes
184
+
185
+ r = @shoes.radio
186
+
187
+ r.checked = h[:checked] == 'true'
188
+ @shoes.inscription h[:label]
189
+
190
+ end
191
+
192
+ end
193
+
167
194
  def script(e)
168
195
  eval e.text.unescape
169
196
  end
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.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
@@ -1 +1 @@
1
- TR�4x*�ɜ?|.�`��٩E�v;���P�ZL���b�TҔ�J�� mLR���:�%8G����N~�P 7!>��P"�:�|�*�vy/� ҅-� 3dl{���vL���IŇ�߶�}olJYF<o�-� 2�"]��&���D��I�}�S#�s���UbHYqC�}��=���%Y&�8������^�Tqy�y&�%�H�ٴ�|<���tg��*B��XOH�[㛞��_�
1
+ <l�#��HYj-{2 L$J�{ii�� Ǜ�Ք��ykuCD��Q��ᢽ��ҭ\�Gu]qkKHf�s������.���9xp��B�����~���ۂ|���a9(��潧,�ę irB����2�^�Ed�Ƒ�����8�!qQ�$�>��UL9� ��+����xج��؃���@݉d��9�D%���gd0��>�D����錵����I�����-�9.�ު���3F�*