recaptcha 2.2.0 → 2.3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +1 -0
- data/lib/recaptcha.rb +3 -1
- data/lib/recaptcha/configuration.rb +1 -1
- data/lib/recaptcha/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c6710df017f96e264b7f914194e950839c6a0ad
|
|
4
|
+
data.tar.gz: 26648a4faeed741fa8212dcf28f88474da2cd822
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4831c5776304df750fdecdec42bbd7bc8a6e8eeaa43348eafe6d2067de1fd91638907aad1b237dea67e9175ef9915c211de931dcfd2d7970510e19dac11f29a2
|
|
7
|
+
data.tar.gz: 3d5ed2fc4d54261339f1c7d66b3d222b7a63303db2bb23f9f6ba720bb20a073e13e337dfec02ac51adfa5b02703d720838bd6ddb5f57aa34485abbd6c07414a5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 2.3.0 - 2016-05-25
|
|
2
|
+
* enable ssl verification by default ... disable via `disable_ssl_verification = true`
|
|
3
|
+
|
|
4
|
+
## 2.2.0 - 2016-05-23
|
|
5
|
+
* Add global hostname validator config
|
|
6
|
+
* Clean up after with_configuration exception
|
|
7
|
+
|
|
8
|
+
## 2.1.0 - 2016-05-19
|
|
9
|
+
* do not query google if repactcha was not submitted
|
|
10
|
+
|
|
1
11
|
## 2.0.0 - 2016-05-17
|
|
2
12
|
* remove stoken support, must use custom domain verification or domain whitelist
|
|
3
13
|
|
data/README.md
CHANGED
|
@@ -133,6 +133,7 @@ Recaptcha.configure do |config|
|
|
|
133
133
|
config.private_key = '6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx'
|
|
134
134
|
# Uncomment the following line if you are using a proxy server:
|
|
135
135
|
# config.proxy = 'http://myproxy.com.au:8080'
|
|
136
|
+
# config.disable_ssl_verification # if you do not want to verify ssl connection
|
|
136
137
|
end
|
|
137
138
|
```
|
|
138
139
|
|
data/lib/recaptcha.rb
CHANGED
|
@@ -58,7 +58,9 @@ module Recaptcha
|
|
|
58
58
|
http_instance.read_timeout = http_instance.open_timeout = options[:timeout] || DEFAULT_TIMEOUT
|
|
59
59
|
if uri.port == 443
|
|
60
60
|
http_instance.use_ssl = true
|
|
61
|
-
|
|
61
|
+
if Recaptcha.configuration.disable_ssl_verification
|
|
62
|
+
http_instance.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
|
63
|
+
end
|
|
62
64
|
end
|
|
63
65
|
request = Net::HTTP::Get.new(uri.request_uri)
|
|
64
66
|
http_instance.request(request).body
|
|
@@ -28,7 +28,7 @@ module Recaptcha
|
|
|
28
28
|
# end
|
|
29
29
|
#
|
|
30
30
|
class Configuration
|
|
31
|
-
attr_accessor :skip_verify_env, :private_key, :public_key, :proxy, :handle_timeouts_gracefully, :use_ssl_by_default, :hostname
|
|
31
|
+
attr_accessor :skip_verify_env, :private_key, :public_key, :proxy, :handle_timeouts_gracefully, :use_ssl_by_default, :hostname, :disable_ssl_verification
|
|
32
32
|
|
|
33
33
|
def initialize #:nodoc:
|
|
34
34
|
@skip_verify_env = SKIP_VERIFY_ENV
|
data/lib/recaptcha/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: recaptcha
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jason L Perry
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-05-
|
|
11
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|