shul 0.2.2 → 0.2.3
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/shul.rb +17 -6
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad2ab40c2dbf9520ea1f1ec7f1337a257d23912f
|
|
4
|
+
data.tar.gz: ccfed679e7345d48e3c0f7494524db5038e57bcc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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[
|
|
56
|
-
command = h[
|
|
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
|
-
|
|
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
metadata.gz.sig
CHANGED
|
Binary file
|