captcha3 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ captcha3_path = "#{Rails.root}/config/initializers/captcha3.rb"
2
+ unless File.exist?(captcha3_path)
3
+ f_captcha3 = File.new(captcha3_path, "w")
4
+ salt = SecureRandom.base64(32).tr("+/=","xyz")
5
+ f_captcha3.write("CAPTCHA_SALT = '#{salt}'")
6
+ f_captcha3.close
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Captcha3
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: captcha3
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 6
10
- version: 1.1.6
9
+ - 7
10
+ version: 1.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - victordong
@@ -48,6 +48,7 @@ files:
48
48
  - lib/captcha3.rb
49
49
  - lib/captcha3/captcha_helper.rb
50
50
  - lib/captcha3/captcha_util.rb
51
+ - lib/captcha3/generate_salt.rb
51
52
  - lib/captcha3/image_generator.rb
52
53
  - lib/captcha3/railtie.rb
53
54
  - lib/captcha3/tasks.rb