bot-away 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.0.2 2010-04-02
2
+ * Bugfixes:
3
+ * Resolved: Would sometimes generate honeypot tabindex of 0 instead of -1, interfering with keyboard operations
4
+
1
5
  === 1.0.1 2010-04-02
2
6
  * 2 minor enhancements:
3
7
  * ActionController::Request.accepts_unfiltered_params creates an array of params that will not be checked
data/lib/bot-away.rb CHANGED
@@ -12,7 +12,7 @@ require 'bot-away/action_view/helpers/instance_tag'
12
12
  require 'bot-away/spinner'
13
13
 
14
14
  module BotAway
15
- VERSION = '1.0.1'
15
+ VERSION = '1.0.2'
16
16
  end
17
17
 
18
18
  # WHY do I have to do this???
@@ -21,7 +21,7 @@ class ActionView::Helpers::InstanceTag
21
21
  assuming(spinner && options) do
22
22
  options['value'] &&= ''
23
23
  options['autocomplete'] = 'off'
24
- options['tabindex'] = -rand(10)
24
+ options['tabindex'] = -rand(10) - 1
25
25
  end
26
26
  end
27
27
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Colin MacKenzie IV