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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31f346568194ea954c4b8df2484084190134af6c
4
- data.tar.gz: 258ecfbdd4cb80c9f11d423b4f946c94cb770c99
3
+ metadata.gz: 2c6710df017f96e264b7f914194e950839c6a0ad
4
+ data.tar.gz: 26648a4faeed741fa8212dcf28f88474da2cd822
5
5
  SHA512:
6
- metadata.gz: a83bc1cd5216e0fc3cf96788ab2d926239536ead0c144b9ce68e2cb4be013a6696f202944d813f2513cf168cfda860e4396ca16ff38c57beb31885bed4bdb0e3
7
- data.tar.gz: 0095c46ee9f365bc76a02696f9b505ac623a2383a670c0aed38fa7ee6e854d2e710a233e06c709c8d8a3d5e43353b5e74d445c82a617e4aa5b2fc53a9d54ae59
6
+ metadata.gz: 4831c5776304df750fdecdec42bbd7bc8a6e8eeaa43348eafe6d2067de1fd91638907aad1b237dea67e9175ef9915c211de931dcfd2d7970510e19dac11f29a2
7
+ data.tar.gz: 3d5ed2fc4d54261339f1c7d66b3d222b7a63303db2bb23f9f6ba720bb20a073e13e337dfec02ac51adfa5b02703d720838bd6ddb5f57aa34485abbd6c07414a5
@@ -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
 
@@ -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
- http_instance.verify_mode = OpenSSL::SSL::VERIFY_NONE
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
@@ -1,3 +1,3 @@
1
1
  module Recaptcha
2
- VERSION = "2.2.0"
2
+ VERSION = "2.3.0"
3
3
  end
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.2.0
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-24 00:00:00.000000000 Z
11
+ date: 2016-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json