blogs_captcha 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blogs_captcha/version.rb +1 -1
- metadata +1 -7
- data/app/controllers/blogs_captcha/captcha_controller.rb +0 -12
- data/config/locales/rucaptcha.en.yml +0 -3
- data/config/locales/rucaptcha.pt-BR.yml +0 -3
- data/config/locales/rucaptcha.zh-CN.yml +0 -3
- data/config/locales/rucaptcha.zh-TW.yml +0 -3
- data/config/routes.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f0b4dd4a0072f9d9315a6a9983ddd22d7e5b0375c86516fb419cdebe2a09cec
|
4
|
+
data.tar.gz: a995c2e8153116a9c8c0ac5ed1e3b208effe54abbccbc3375108a301607a805b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1199dbb834cabcfad6b417a12eb46afbec7ae4ff91cc331c89f7c141f11f6ed8c3ce2655653b5a66a29efcdb582700232f379939e0fa51f70bc54cb18870149f
|
7
|
+
data.tar.gz: 17487da4a21a88573a0443f91862fe5c20dcfa8b68d89f643f796e6e78a5682d76044da936fea59223e9fde580c329ff46f6dbdd2bce197304d2bc9f1494b9cd
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blogs_captcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ChinaHDJ
|
@@ -45,12 +45,6 @@ extensions:
|
|
45
45
|
- ext/blogs_captcha/extconf.rb
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- app/controllers/blogs_captcha/captcha_controller.rb
|
49
|
-
- config/locales/rucaptcha.en.yml
|
50
|
-
- config/locales/rucaptcha.pt-BR.yml
|
51
|
-
- config/locales/rucaptcha.zh-CN.yml
|
52
|
-
- config/locales/rucaptcha.zh-TW.yml
|
53
|
-
- config/routes.rb
|
54
48
|
- ext/blogs_captcha/blogs_captcha.c
|
55
49
|
- ext/blogs_captcha/colors.h
|
56
50
|
- ext/blogs_captcha/extconf.rb
|
@@ -1,12 +0,0 @@
|
|
1
|
-
module BlogsCaptcha
|
2
|
-
class CaptchaController < ActionController::Base
|
3
|
-
def index
|
4
|
-
return head :ok if request.head?
|
5
|
-
headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate'
|
6
|
-
headers['Pragma'] = 'no-cache'
|
7
|
-
data = generate_captcha
|
8
|
-
opts = { disposition: 'inline', type: 'image/gif' }
|
9
|
-
send_data data, opts
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
data/config/routes.rb
DELETED