shul 0.2.2 → 0.2.3

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: a6fb552bd9c7e5de8c300e7df3b4952a6d3c07d3
4
- data.tar.gz: a20e93dec9be488a567640b7bd7dbcc78f45a54a
3
+ metadata.gz: ad2ab40c2dbf9520ea1f1ec7f1337a257d23912f
4
+ data.tar.gz: ccfed679e7345d48e3c0f7494524db5038e57bcc
5
5
  SHA512:
6
- metadata.gz: 004411ee7a293cfdabd2fa76a0b9366e60bbe66785f68bfec315002ba3eb7f0516d59ce271f0f0b48d35a75a8d333d47819793b98bc73a24eb943b090abe8b46
7
- data.tar.gz: adeb5c0b2156b351b80a3218229b9360e06a3df1d68633a193d451183695e525bddefa1ff5df208d15fedfe6bcb2c05df92192b6bceb5953e826e48bc40237f1
6
+ metadata.gz: fc454fe0a94a565ae497af831cc4f90217112f3e586bce62b8d965b5e8811b15201406e8253896cfa96686b97a3bda18a82482bbcb33de71bf9ffa5470059f48
7
+ data.tar.gz: a2e3000fd0b93ba5fc898388105c8bc1aca19e5a55a22dcdc8ff46d1b804db9bf55cfb34c8dc7c79b80e5915ea65bcfc2a0c47811da8d32abc543d2a6cd0586f
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/shul.rb CHANGED
@@ -51,15 +51,21 @@ class Shul
51
51
 
52
52
  def button(e)
53
53
 
54
+ buttonx e
55
+
56
+ end
57
+
58
+ def buttonx(e, label = :label, oncommand = :oncommand)
59
+
54
60
  h = e.attributes
55
- label = h[:label]
56
- command = h[:oncommand]
61
+ label = h[label]
62
+ command = h[oncommand]
57
63
 
58
64
  @shoes.button label do
59
65
  eval command if command
60
66
  end
61
67
 
62
- end
68
+ end
63
69
 
64
70
  def description(e)
65
71
  @shoes.para e.attributes[:value]
@@ -91,7 +97,6 @@ class Shul
91
97
  alias flow hbox
92
98
 
93
99
  def html_a(e)
94
-
95
100
 
96
101
  command = e.attributes[:oncommand]
97
102
 
@@ -104,7 +109,13 @@ class Shul
104
109
  end
105
110
 
106
111
  def html_input(e)
107
- editbox e
112
+
113
+ case e.attributes[:type]
114
+ when 'text'
115
+ editbox e
116
+ when 'button'
117
+ buttonx e, :value, :onclick
118
+ end
108
119
  end
109
120
 
110
121
  def html_p(e)
@@ -146,4 +157,4 @@ class Shul
146
157
 
147
158
  alias stack vbox
148
159
 
149
- end
160
+ end
data.tar.gz.sig CHANGED
Binary file
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.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file