wxianfeng_simple_captcha 0.4.0 → 0.5.0

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.
Files changed (3) hide show
  1. data/README.md +1 -1
  2. data/lib/simple_captcha/image.rb +1 -1
  3. metadata +2 -2
data/README.md CHANGED
@@ -22,7 +22,7 @@ captcha for Rails
22
22
 
23
23
  Rails >=4.0
24
24
 
25
- gem 'wxianfeng_simple_captcha', '0.4.0', require: 'simple_captcha'
25
+ gem 'wxianfeng_simple_captcha', '0.5.0', require: 'simple_captcha'
26
26
 
27
27
  ## Setup
28
28
 
@@ -67,7 +67,7 @@ module SimpleCaptcha #:nodoc
67
67
  params << "-pointsize 22"
68
68
  params << "-implode 0.2"
69
69
 
70
- dst = RUBY_VERSION < '1.9' ? Tempfile.new('simple_captcha.png') : Tempfile.new(['simple_captcha', '.png'])
70
+ dst = RUBY_VERSION < '1.9' ? Tempfile.new('simple_captcha.png') : Tempfile.new(['simple_captcha', '.png'],"/tmp")
71
71
  dst.binmode
72
72
 
73
73
  params << "label:#{text} '#{File.expand_path(dst.path)}'"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wxianfeng_simple_captcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-07 00:00:00.000000000 Z
12
+ date: 2013-10-14 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! ' wxianfeng_simple_captcha is captcha for rails,modified from simple_captcha
15
15
  .'