recaptcha 1.1.0 → 1.1.1

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: c96e9d3a3bb1ea1205727171f30d5e22d58a4944
4
- data.tar.gz: 4865967869abd7cee6820e595df0b98381312bac
3
+ metadata.gz: 29c3f75ba10692addbbd19f1bd12cae4c454a3f6
4
+ data.tar.gz: 969b301fed7facba2b81ce74b3b81256e632716a
5
5
  SHA512:
6
- metadata.gz: ffd25df78395739900ce98fe0def266f2743ae770670701d8de1e0b263f8c4a770bdf37ca6eab640c5f8b77dcbb46ec340c03642591d4544bcb15231f5c73cb1
7
- data.tar.gz: 87a7fb30aeae1e025422b547b50cfe0097ebace5274d05235f284bd91785fb25178e48485168825ad71506dd589ae21e565c6a5a0c4e55e8920481752956b703
6
+ metadata.gz: 549b6852c1e18e2425b9e76a7967012a9666f7f884f8f47ce67da39a654ebf066940b81ff2a85d590f71c60516d6dce452e8a627d500c73c025103be79243428
7
+ data.tar.gz: 672ba630cebbf60f9f62eb914a5085a8fa1295e1922dfdbdfddd87365de1441f3c99eb8f485995658df2997860215b12b4fe56eea5426d44b77f3803ffbc4e3f
@@ -1,3 +1,6 @@
1
+ ## 1.1.0 - 2016-01-27
2
+ * support RACK_ENV
3
+
1
4
  ## 1.0.2 - 2015-11-30
2
5
  * nice deprecations for api_version
3
6
 
data/README.md CHANGED
@@ -19,7 +19,7 @@ which throws an error on failiure.
19
19
  gem "recaptcha", require: "recaptcha/rails"
20
20
  ```
21
21
 
22
- Keep keys out of the code base with environment variables.<br/>
22
+ Keep keys out of the code base with environment variables.<br/>
23
23
  Set in production and locally use [dotenv](https://github.com/bkeepers/dotenv), make sure to add it above recaptcha.
24
24
 
25
25
  Otherwise see [Alternative API key setup](#alternative-api-key-setup).
@@ -29,7 +29,7 @@ export RECAPTCHA_PUBLIC_KEY = '6Lc6BAAAAAAAAChqRbQZcn_yyyyyyyyyyyyyyyyy'
29
29
  export RECAPTCHA_PRIVATE_KEY = '6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx'
30
30
  ```
31
31
 
32
- Add `recaptcha_tags` to the forms you want to protect.
32
+ Add `recaptcha_tags` to the forms you want to protect.
33
33
 
34
34
  ```Erb
35
35
  <%= form_for @foo do |f| %>
@@ -72,7 +72,7 @@ Some of the options available:
72
72
  | :ajax | Render the dynamic AJAX captcha per the API. (default `false`)|
73
73
  | :public_key | Override public API key |
74
74
  | :error | Override the error code returned from the reCAPTCHA API (default `nil`)|
75
- | :stoken | Include in reCAPTCHA API v2 the security token (default `true`)|
75
+ | :stoken | Include security token to enable the use of any domain without registration with reCAPTCHA, `stoken expired` will be raised when the system clock is out of sync (default `true`)|
76
76
  | :size | Specify a size (default `nil`)|
77
77
 
78
78
  You can also override the html attributes for the sizes of the generated `textarea` and `iframe`
@@ -161,3 +161,4 @@ verify_recaptcha private_key: '6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx'
161
161
  ## Misc
162
162
  - Check out the [wiki](https://github.com/ambethia/recaptcha/wiki) and leave whatever you found valuable there.
163
163
  - [Add multiple widgets to the same page](https://github.com/ambethia/recaptcha/wiki/Add-multiple-widgets-to-the-same-page)
164
+ - [Use Recaptcha with Devise](https://github.com/plataformatec/devise/wiki/How-To:-Use-Recaptcha-with-Devise)
@@ -35,7 +35,7 @@ module Recaptcha
35
35
  attribute,
36
36
  options[:message],
37
37
  "recaptcha.errors.verification_failed",
38
- "Word verification response is incorrect, please try again."
38
+ "reCAPTCHA verification failed, please try again."
39
39
  )
40
40
  false
41
41
  end
@@ -46,7 +46,7 @@ module Recaptcha
46
46
  attribute,
47
47
  options[:message],
48
48
  "recaptcha.errors.recaptcha_unreachable",
49
- "Oops, we failed to validate your word verification response. Please try again."
49
+ "Oops, we failed to validate your reCAPTCHA response. Please try again."
50
50
  )
51
51
  false
52
52
  else
@@ -1,3 +1,3 @@
1
1
  module Recaptcha
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
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.1.0
4
+ version: 1.1.1
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-01-27 00:00:00.000000000 Z
11
+ date: 2016-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json