block-html 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/block-html/form.rb +9 -2
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -42,9 +42,9 @@ class BlockHTML
42
42
  end
43
43
 
44
44
  def password(name, attrs={})
45
- self << Element::Input.new(
45
+ self << Element::Password.new(
46
46
  @model,
47
- attrs.merge(:name => name, :type => :password, :value => nil)
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.3
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-03 00:00:00 +09:00
12
+ date: 2009-10-11 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15