easy_captcha 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -21,7 +21,7 @@ You can write this in "config/initializers/easy_captcha.rb", if you want to cust
21
21
  # Cache
22
22
  # config.cache = true
23
23
  # Cache temp dir from Rails.root
24
- # config.temp_dir = Rails.root + 'tmp' + 'captchas'
24
+ # config.cache_temp_dir = Rails.root + 'tmp' + 'captchas'
25
25
  # Cache size
26
26
  # config.cache_size = 500
27
27
  # Cache expire
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
data/easy_captcha.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{easy_captcha}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Marco Scholl"]
@@ -15,6 +15,7 @@ module EasyCaptcha
15
15
  files = Dir.glob(EasyCaptcha.cache_temp_dir + "*")
16
16
  unless files.size < EasyCaptcha.cache_size
17
17
  file = File.open(files.at(Kernel.rand(files.size)))
18
+ session[:captcha] = File.basename(file.path)
18
19
 
19
20
  if file.mtime < EasyCaptcha.cache_expire.ago
20
21
  File.unlink(file.path)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Marco Scholl