recaptcha 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/recaptcha/configuration.rb +13 -0
- data/lib/recaptcha/rails.rb +0 -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: 9da675a22f78891b19e5056fd42b24faf4850dab
|
4
|
+
data.tar.gz: 4cc8e44cbb1936e45b4f23e33971b8cb2b39bef9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e9751d5416f751cf0c7f332e2c2b746c7226f0675c9991fd9947979bc5e55c905728976ca2fd127f8aa7c06bbf914f3d034d673d9a9563ed0b19e2830aa7d2d
|
7
|
+
data.tar.gz: 6ed67f430bf93340bcae9179da124532159ac3841cfed882aaddaa2537422c43512673cb744737120b1746c1f00a0ae70cbc9894687763c964854bdd7c027c3e
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
## 1.0.
|
1
|
+
## 1.0.2 - 2015-11-30
|
2
|
+
* nice deprecations for api_version
|
3
|
+
|
4
|
+
## 1.0.1 - 2015-11-30
|
5
|
+
* no longer defines `Rails` when `recaptcha/rails` is required
|
6
|
+
|
7
|
+
## 1.0.0 - 2015-11-30
|
2
8
|
* remove api v1 support
|
3
9
|
* remove ssl_api_server_url, nonssl_api_server_url, change api_server_url to always need ssl option
|
4
10
|
* removed activesupport dependency for .to_query
|
@@ -56,5 +56,18 @@ module Recaptcha
|
|
56
56
|
def verify_url
|
57
57
|
CONFIG.fetch('verify_url')
|
58
58
|
end
|
59
|
+
|
60
|
+
def api_version=(v)
|
61
|
+
if v == 'v2'
|
62
|
+
warn 'setting api_version is deprecated and will be removed shortly, only v2 is supported'
|
63
|
+
else
|
64
|
+
raise ArgumentError, "only v2 is supported, not #{v.inspect}"
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
def api_version
|
69
|
+
warn 'getting api_version is deprecated and will be removed shortly, only v2 is supported'
|
70
|
+
'v2'
|
71
|
+
end
|
59
72
|
end
|
60
73
|
end
|
data/lib/recaptcha/rails.rb
CHANGED
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: 1.0.
|
4
|
+
version: 1.0.2
|
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: 2015-
|
11
|
+
date: 2015-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|