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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b99d7b45252d2e17515aafdfba506545331c7095
4
- data.tar.gz: 08800635fabf62f3cc28f71abe15ec691702ee7b
3
+ metadata.gz: 9da675a22f78891b19e5056fd42b24faf4850dab
4
+ data.tar.gz: 4cc8e44cbb1936e45b4f23e33971b8cb2b39bef9
5
5
  SHA512:
6
- metadata.gz: 221010e1640f03080062fba349a89bc0727379d1b9354952a630083434437e23c443ab317f21260c3279159209296bae20767e78d23657e5924315bb4d4f17f5
7
- data.tar.gz: b2c99f635d5afcbcc59087b2045ef73f56e4a6305e9be04a3e2bed2ad451a014f6051653501c0a11e2675d82758ae8667090953f9bf5778b97c2e9c04e0f25ce
6
+ metadata.gz: 1e9751d5416f751cf0c7f332e2c2b746c7226f0675c9991fd9947979bc5e55c905728976ca2fd127f8aa7c06bbf914f3d034d673d9a9563ed0b19e2830aa7d2d
7
+ data.tar.gz: 6ed67f430bf93340bcae9179da124532159ac3841cfed882aaddaa2537422c43512673cb744737120b1746c1f00a0ae70cbc9894687763c964854bdd7c027c3e
@@ -1,4 +1,10 @@
1
- ## 1.0.0 - 2015-11-30
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
@@ -1,4 +1,3 @@
1
- require 'net/http'
2
1
  require 'recaptcha'
3
2
 
4
3
  module Recaptcha
@@ -1,3 +1,3 @@
1
1
  module Recaptcha
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
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: 1.0.1
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-30 00:00:00.000000000 Z
11
+ date: 2015-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json