card-mod-recaptcha 0.1 → 0.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/set/self/admin_info.rb +6 -11
- data/set/self/recaptcha_settings.rb +9 -22
- metadata +39 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecab662b8babe1c1a18b39fc848a35c9fb28c5ab54efba0b7f9a5d858f0edd60
|
4
|
+
data.tar.gz: 590c71592f7e5f77ea95a128f0775ed5ee03939627bff8e20745f0c4048d3d18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c991d7a3056817e5edc7e750f5cb910f9840712d00658493bba2673013dd1f5f738271575d6bfddefdd05ceb98a6cecd4998217dd20d9da1e102909ac1fc848c
|
7
|
+
data.tar.gz: 94f2489829497985a7bfec569daad7d1472006ae63dbae261441fc2c5f7b08ddc3261ee2dcbc5064715042ad2f334b77defd5addb7d981d311f053677e3816d1
|
data/set/self/admin_info.rb
CHANGED
@@ -6,27 +6,22 @@ end
|
|
6
6
|
|
7
7
|
format :html do
|
8
8
|
def recaptcha_config_issues_message
|
9
|
-
|
9
|
+
wrap_with :p do
|
10
10
|
if Card::Env.localhost?
|
11
11
|
# %(Your captcha is currently working with temporary settings.
|
12
12
|
# This is fine for a local installation, but you will need new
|
13
13
|
# recaptcha keys if you want to make this site public.)
|
14
|
-
|
15
|
-
recaptcha_link: add_recaptcha_keys_link)
|
14
|
+
t :recaptcha_captcha_temp, recaptcha_link: add_recaptcha_keys_link
|
16
15
|
else
|
17
16
|
# %(You are configured to use [[*captcha]], but for that to work
|
18
17
|
# you need new recaptcha keys.)
|
19
|
-
|
20
|
-
|
21
|
-
captcha_link: link_to_card(:captcha))
|
18
|
+
t :recaptcha_captcha_keys, recaptcha_link: add_recaptcha_keys_link,
|
19
|
+
captcha_link: link_to_card(:captcha)
|
22
20
|
end
|
23
|
-
|
24
|
-
<p>#{warning}</p>
|
25
|
-
HTML
|
21
|
+
end
|
26
22
|
end
|
27
23
|
|
28
24
|
def add_recaptcha_keys_link
|
29
|
-
link_text
|
30
|
-
Card[:recaptcha_settings]&.format&.edit_link link_text: link_text
|
25
|
+
Card[:recaptcha_settings]&.format&.edit_link link_text: t(:recaptcha_captcha_keys)
|
31
26
|
end
|
32
27
|
end
|
@@ -12,33 +12,20 @@ format :html do
|
|
12
12
|
# end
|
13
13
|
#
|
14
14
|
# <h5>#{instructions}</h5>
|
15
|
-
# #{
|
15
|
+
# #{howto_add_keys}
|
16
16
|
# #{howto_turn_captcha_off}
|
17
17
|
#
|
18
18
|
# def howto_add_new_recaptcha_keys
|
19
|
-
# instructions(
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
# recaptcha_link: link_to_resource("http://google.com/recaptcha")),
|
25
|
-
# I18n.t(:howto_add,
|
26
|
-
# scope: "mod.admin.set.self.admin_info",
|
27
|
-
# recaptcha_settings: link_to_card(:recaptcha_settings))
|
28
|
-
# ]
|
29
|
-
# )
|
19
|
+
# instructions t(:recaptcha_howto_add_keys),
|
20
|
+
# [t(:recaptcha_howto_register,
|
21
|
+
# recaptcha_link: link_to_resource("http://google.com/recaptcha")),
|
22
|
+
# t(:recaptcha_howto_add,
|
23
|
+
# recaptcha_settings: link_to_card(:recaptcha_settings))]
|
30
24
|
# end
|
31
25
|
#
|
32
26
|
# def howto_turn_captcha_off
|
33
|
-
# instructions(
|
34
|
-
#
|
35
|
-
#
|
36
|
-
# I18n.t(:howto_go,
|
37
|
-
# scope: "mod.admin.set.self.admin_info",
|
38
|
-
# captcha_card: link_to_card(:captcha)),
|
39
|
-
# I18n.t(:howto_update,
|
40
|
-
# scope: "mod.admin.set.self.admin_info")
|
41
|
-
# ]
|
42
|
-
# )
|
27
|
+
# instructions t(:recaptcha_howto_turn_off),
|
28
|
+
# [t(:recaptcha_howto_go, captcha_card: link_to_card(:captcha)),
|
29
|
+
# t(:recaptcha_howto_update)]
|
43
30
|
# end
|
44
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-recaptcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.11.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -10,8 +10,36 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
14
|
-
dependencies:
|
13
|
+
date: 2021-05-05 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: card
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - '='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.101.4
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - '='
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 1.101.4
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: recaptcha
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 4.13.1
|
36
|
+
type: :runtime
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 4.13.1
|
15
43
|
description: ''
|
16
44
|
email:
|
17
45
|
- info@decko.org
|
@@ -26,11 +54,15 @@ files:
|
|
26
54
|
- set/self/recaptcha_secret_key.rb
|
27
55
|
- set/self/recaptcha_settings.rb
|
28
56
|
- set/self/recaptcha_site_key.rb
|
29
|
-
homepage:
|
57
|
+
homepage: https://decko.org
|
30
58
|
licenses:
|
31
|
-
- GPL-2.0
|
32
59
|
- GPL-3.0
|
33
60
|
metadata:
|
61
|
+
source_code_uri: https://github.com/decko-commons/decko
|
62
|
+
homepage_uri: https://decko.org
|
63
|
+
bug_tracker_uri: https://github.com/decko-commons/decko/issues
|
64
|
+
wiki_uri: https://decko.org
|
65
|
+
documentation_url: http://docs.decko.org/
|
34
66
|
card-mod: recaptcha
|
35
67
|
post_install_message:
|
36
68
|
rdoc_options: []
|
@@ -40,14 +72,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
40
72
|
requirements:
|
41
73
|
- - ">="
|
42
74
|
- !ruby/object:Gem::Version
|
43
|
-
version: 2.
|
75
|
+
version: '2.5'
|
44
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
77
|
requirements:
|
46
78
|
- - ">="
|
47
79
|
- !ruby/object:Gem::Version
|
48
80
|
version: '0'
|
49
81
|
requirements: []
|
50
|
-
rubygems_version: 3.
|
82
|
+
rubygems_version: 3.1.4
|
51
83
|
signing_key:
|
52
84
|
specification_version: 4
|
53
85
|
summary: recaptcha support for decko
|