block-html 0.0.3 → 0.0.4
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.
- data/VERSION +1 -1
- data/lib/block-html/form.rb +9 -2
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.4
|
data/lib/block-html/form.rb
CHANGED
|
@@ -42,9 +42,9 @@ class BlockHTML
|
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
def password(name, attrs={})
|
|
45
|
-
self << Element::
|
|
45
|
+
self << Element::Password.new(
|
|
46
46
|
@model,
|
|
47
|
-
attrs.merge(:name => name, :type => :password
|
|
47
|
+
attrs.merge(:name => name, :type => :password)
|
|
48
48
|
)
|
|
49
49
|
end
|
|
50
50
|
|
|
@@ -95,6 +95,13 @@ class BlockHTML
|
|
|
95
95
|
end
|
|
96
96
|
end
|
|
97
97
|
|
|
98
|
+
class Password < Element
|
|
99
|
+
def initialize(model, attrs)
|
|
100
|
+
super(model, attrs)
|
|
101
|
+
tag(:input, @attrs.merge(:id => @id, :value => ''))
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
98
105
|
class Button < Element
|
|
99
106
|
def initialize(model, attrs)
|
|
100
107
|
super(model, attrs)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: block-html
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jun Kikuchi
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-10-
|
|
12
|
+
date: 2009-10-11 00:00:00 +09:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|