panmind-recaptcha 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/panmind/recaptcha.rb +4 -4
  2. metadata +3 -3
@@ -12,7 +12,7 @@ end
12
12
 
13
13
  module Panmind
14
14
  module Recaptcha
15
- Version = '1.0.1'
15
+ Version = '1.0.2'
16
16
 
17
17
  class << self
18
18
  attr_accessor :private_key, :public_key, :request_timeout
@@ -70,7 +70,7 @@ module Panmind
70
70
 
71
71
  req =
72
72
  Timeout.timeout(Recaptcha.request_timeout) do
73
- uri = URI.parse("http://api-verify.recaptcha.net/verify")
73
+ uri = URI.parse("http://www.google.com/recaptcha/api/verify")
74
74
  Net::HTTP.post_form(uri,
75
75
  :privatekey => Recaptcha.private_key,
76
76
  :remoteip => request.remote_ip,
@@ -112,11 +112,11 @@ module Panmind
112
112
 
113
113
  label_tag('recaptcha_response_field', label_text) + recaptcha_options +
114
114
  %[<script type="text/javascript"
115
- src="https://api-secure.recaptcha.net/challenge?k=#{Recaptcha.public_key}">
115
+ src="http://www.google.com/recaptcha/api/challenge?k=#{Recaptcha.public_key}">
116
116
  </script>
117
117
 
118
118
  <noscript>
119
- <iframe src="https://api-secure.recaptcha.net/noscript?k=#{Recaptcha.public_key}"
119
+ <iframe src="http://www.google.com/recaptcha/api/noscript?k=#{Recaptcha.public_key}"
120
120
  height="#{noscript_options[:width]}" width="#{noscript_options[:height]}" frameborder="0"></iframe><br>
121
121
  <input type="text" class="text" name="recaptcha_challenge_field" tabindex="#{options[:tabindex]}"/>
122
122
  <input type="hidden" name="recaptcha_response_field" value="manual_challenge" />
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panmind-recaptcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
18
- requirement: &2152506860 !ruby/object:Gem::Requirement
18
+ requirement: &2152545500 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,7 +23,7 @@ dependencies:
23
23
  version: '3.0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2152506860
26
+ version_requirements: *2152545500
27
27
  description: ReCaptcha implements view helpers to generate ReCaptcha code, with the
28
28
  noscript counterpart, required methods that interface with the HTTP API for captcha
29
29
  verification, a DSL to generate a before_filter and the code to implement AJAX captcha