easy_captcha 0.6.2 → 0.6.3

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- easy_captcha (0.6.2)
4
+ easy_captcha (0.6.3)
5
5
  bundler (>= 1.1.0)
6
6
  rails (>= 3.0.0)
7
7
  rmagick (>= 2.13.1)
@@ -106,7 +106,7 @@ GEM
106
106
  polyglot
107
107
  polyglot (>= 0.3.1)
108
108
  tzinfo (0.3.35)
109
- yard (0.8.5.1)
109
+ yard (0.8.5.2)
110
110
 
111
111
  PLATFORMS
112
112
  ruby
@@ -19,7 +19,7 @@ module EasyCaptcha
19
19
 
20
20
  unless files.size < EasyCaptcha.cache_size
21
21
  file = File.open(files.at(Kernel.rand(files.size)))
22
- session[:captcha] = File.basename(file.path)
22
+ session[:captcha] = File.basename(file.path, '.*')
23
23
 
24
24
  if file.mtime < EasyCaptcha.cache_expire.ago
25
25
  File.unlink(file.path)
@@ -1,3 +1,3 @@
1
1
  module EasyCaptcha
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_captcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -159,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
159
  version: '0'
160
160
  segments:
161
161
  - 0
162
- hash: 4035474068465909152
162
+ hash: 3972133126308610203
163
163
  required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  none: false
165
165
  requirements: