rucaptcha 2.1.1 → 2.1.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: 13003f5e3a54633d2f11a8b6a7182dd2d484372c
4
- data.tar.gz: 9689caec2a5e6184418b9bbe50904d0a6311c98e
3
+ metadata.gz: c6d9266ff43be0180d0257c7df8b00a54e27a7a5
4
+ data.tar.gz: db2cd153855a5ac7678b3022edc15f2220f7a765
5
5
  SHA512:
6
- metadata.gz: '082f38cd60fd7ba9add5bb4f7ea5f8ff5115bc8b930b126c42478f3e8e4f88255e32592271e5a6a4c46532ae839578c167c6b0f101ebb98f11b00f7e5cc2149d'
7
- data.tar.gz: 1a6bf3171d1d8a0139de64e09c487858e2a45d8974969b2f3183df227fd41a911e5a516aaa48953b97b247529e9147d9f480663c7be6559040f263d01387bc8a
6
+ metadata.gz: f94e248f0dfdf560bdaa4215e334e010bbd81f078e271dd05a4dac5076b8d30c0b3b303179679af8a277659463ca03cfa72f8aad2d68dfe97701841ef3a73fbc
7
+ data.tar.gz: 0f8fdc5036fc026a01770b975e2f7a70fa2301e3c389d1f78f51a20631cf3703293f0261515f27f561e87d00b0651668ff00c9c479e24137cb2a5b86a7ad63e7
@@ -1,3 +1,8 @@
1
+ 2.1.2
2
+ -----
3
+
4
+ - Do not change captcha when `HEAD /rucaptcha`.
5
+
1
6
  2.1.1
2
7
  -----
3
8
 
@@ -7,10 +12,14 @@
7
12
  -----
8
13
 
9
14
  - Mount Router by default, not need config now.
15
+
16
+ > IMPORTANT: Wen you upgrade this version, you need remove `mount RuCaptcha::Engine` line from your `config/routes.rb`
10
17
  - Default use [:file_store, 'tmp/cache/rucaptcha/session'] as RuCaptcha.config.cache_store, now it can work without any configurations.
11
18
 
12
19
  > NOTE: But you still need care about `config.cache_store` to setup on a right way.
13
20
 
21
+
22
+
14
23
  2.0.3
15
24
  -----
16
25
 
@@ -1,6 +1,7 @@
1
1
  module RuCaptcha
2
2
  class CaptchaController < ActionController::Base
3
3
  def index
4
+ return head :ok if request.head?
4
5
  headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate'
5
6
  headers['Pragma'] = 'no-cache'
6
7
  data = generate_rucaptcha
@@ -1,3 +1,3 @@
1
1
  module RuCaptcha
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rucaptcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee