rucaptcha 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f866a9984159daf5bfa88cc57e9a9f17f0ba4621
4
- data.tar.gz: a085e7fbd93873d73144b0c812f9f59e73b1cc4f
3
+ metadata.gz: 74604d96209cdccdcc9fca4648eaeaf561c4100e
4
+ data.tar.gz: f52d2f4d6fe7b5f4ab4a140f44fb36090b586761
5
5
  SHA512:
6
- metadata.gz: 64a044dc52179ba06b50e17dfcd926d36cf7da4c82c2bc553cab20098067e9bbb8d6065784985c3128afb3cddd139377c78972ee22445189c3bc56cf55088313
7
- data.tar.gz: dd64400366f3ca5e458f2426b344d1f657790bd9dfff9de4efbdb4c80a0531e94c8095f7c7dd6dea55dc73bf43b18e2333461ea3794ffaf19b821c7a71fb4f9f
6
+ metadata.gz: bcc2418065d75c27e7153da1334b5ec995f279da0354843e7e286af852b0055b42ce5a1968479790c6179aeafefb4d60d057a72695e27427626a4553b7e6aa3c
7
+ data.tar.gz: 943f8421a64440053e8eeef94bf519f0b741ddcfa49413d7589c9a01ce13877c2748b85a674b101bfa6cefa2754f62e18811cbffbae70f15b58bce6f8c53e297
@@ -1,3 +1,8 @@
1
+ 1.1.1
2
+ -----
3
+
4
+ - Remove inspect log on verify_rucaptcha
5
+
1
6
  1.1.0
2
7
  -----
3
8
 
@@ -20,7 +20,11 @@ module RuCaptcha
20
20
  @config.cache_limit = 100
21
21
  @config.expires_in = 2.minutes
22
22
  @config.style = :colorful
23
- @config.cache_store = Rails.application.config.cache_store
23
+ if Rails.application
24
+ @config.cache_store = Rails.application.config.cache_store
25
+ else
26
+ @config.cache_store = :null_store
27
+ end
24
28
  @config
25
29
  end
26
30
 
@@ -31,7 +31,6 @@ module RuCaptcha
31
31
  end
32
32
 
33
33
  # Make sure not expire
34
- puts "-------------- #{store_info.inspect}"
35
34
  if (Time.now.to_i - store_info[:time]) > RuCaptcha.config.expires_in
36
35
  return add_rucaptcha_validation_error
37
36
  end
@@ -1,3 +1,3 @@
1
1
  module RuCaptcha
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rucaptcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee