negative_captcha 0.2.beta4 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,6 @@
1
1
  module ActionView
2
2
  module Helpers
3
3
  class FormBuilder
4
- def negative_captcha(captcha)
5
- [
6
- hidden_field_tag('timestamp', captcha.timestamp),
7
- hidden_field_tag('spinner', captcha.spinner),
8
- ].join
9
- end
10
-
11
4
  def negative_text_field(captcha, method, options = {})
12
5
  html = @template.negative_text_field_tag(
13
6
  captcha,
@@ -5,7 +5,7 @@ module ActionView
5
5
  [
6
6
  hidden_field_tag('timestamp', captcha.timestamp),
7
7
  hidden_field_tag('spinner', captcha.spinner),
8
- ].join
8
+ ].join.html_safe
9
9
  end
10
10
 
11
11
  def negative_text_field_tag(negative_captcha, field, options={})
@@ -16,7 +16,7 @@ module ActionView
16
16
  ) +
17
17
  content_tag('div', :style => 'position: absolute; left: -2000px;') do
18
18
  text_field_tag(field, '', :tabindex => '999', :autocomplete => 'off')
19
- end
19
+ end.html_safe
20
20
  end
21
21
 
22
22
  def negative_text_area_tag(negative_captcha, field, options={})
@@ -27,7 +27,7 @@ module ActionView
27
27
  ) +
28
28
  content_tag('div', :style => 'position: absolute; left: -2000px;') do
29
29
  text_area_tag(field, '', :tabindex => '999', :autocomplete => 'off')
30
- end
30
+ end.html_safe
31
31
  end
32
32
 
33
33
  def negative_hidden_field_tag(negative_captcha, field, options={})
@@ -38,7 +38,7 @@ module ActionView
38
38
  ) +
39
39
  "<div style='position: absolute; left: -2000px;'>" +
40
40
  hidden_field_tag(field, '', :tabindex => '999') +
41
- "</div>"
41
+ "</div>".html_safe
42
42
  end
43
43
 
44
44
  def negative_password_field_tag(negative_captcha, field, options={})
@@ -49,7 +49,7 @@ module ActionView
49
49
  ) +
50
50
  "<div style='position: absolute; left: -2000px;'>" +
51
51
  password_field_tag(field, '', :tabindex => '999') +
52
- "</div>"
52
+ "</div>".html_safe
53
53
  end
54
54
 
55
55
  def negative_label_tag(negative_captcha, field, name, options={})
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: negative_captcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.beta4
5
- prerelease: 4
4
+ version: '0.3'
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Erik Peterson
@@ -55,9 +55,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
55
  required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  none: false
57
57
  requirements:
58
- - - ! '>'
58
+ - - ! '>='
59
59
  - !ruby/object:Gem::Version
60
- version: 1.3.1
60
+ version: '0'
61
61
  requirements: []
62
62
  rubyforge_project:
63
63
  rubygems_version: 1.8.23