card-mod-recaptcha 0.11.1 → 0.11.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
  SHA256:
3
- metadata.gz: 604e78a3af0d05a4644acece19a7815f32f0e54f69b2c4d2ff494cd704925c6c
4
- data.tar.gz: c0be11d31319b5d2e4ef6e3b5ae8d001e32c9ca09b857528d067f7eb3df200b8
3
+ metadata.gz: f8f94318b9abd3ea145bde09f44015d65825cddc4ca5ee4ea1ba49bd728dca90
4
+ data.tar.gz: 113dbb6d9f86f7b8df8c405822087c225b0678bda3dbdde1e50916aa365f9921
5
5
  SHA512:
6
- metadata.gz: 4b24e931bd1b756da764a575c7f9a2eb39d35623be4372245da6326d9e21b30de1a2840752c51ecd362347937920d708be2407c71ab84811410a991aba583ac9
7
- data.tar.gz: 24285c59887bdb2cef238fddd0918d55595b8e4cde1cf3cbd2f9ed408b0593ef8699fa6a7b54d6ebb297089b592687b6d7c13cc586b19536cef625b142b6d946
6
+ metadata.gz: 01a7541383d000e633216268565cc2cfb48c77f8caed2fd968aabb6bfcf588fb741ed6f1bb958433fcaf601f451348a0bccde323410eb14447f8cddf610b1f5a
7
+ data.tar.gz: a731b40026bef519717710ae46a1afd8b1177e98abe8c1728251591cc7edaff5ee4215ef931faecae46ee2f48aec36ad60e80fe21997c75c313c87fb54062b5a
@@ -6,27 +6,22 @@ end
6
6
 
7
7
  format :html do
8
8
  def recaptcha_config_issues_message
9
- warning =
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
- I18n.t(:captcha_temp, scope: "mod.admin.set.self.admin_info",
15
- recaptcha_link: add_recaptcha_keys_link)
14
+ tr :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
- I18n.t(:captcha_keys, scope: "mod.admin.set.self.admin_info",
20
- recaptcha_link: add_recaptcha_keys_link,
21
- captcha_link: link_to_card(:captcha))
18
+ tr :captcha_keys, recaptcha_link: add_recaptcha_keys_link,
19
+ captcha_link: link_to_card(:captcha)
22
20
  end
23
- <<-HTML
24
- <p>#{warning}</p>
25
- HTML
21
+ end
26
22
  end
27
23
 
28
24
  def add_recaptcha_keys_link
29
- link_text = I18n.t :recaptcha_keys, scope: "mod.admin.set.self.admin_info"
30
- Card[:recaptcha_settings]&.format&.edit_link link_text: link_text
25
+ Card[:recaptcha_settings]&.format&.edit_link link_text: tr(:recaptcha_keys)
31
26
  end
32
27
  end
@@ -16,29 +16,15 @@ format :html do
16
16
  # #{howto_turn_captcha_off}
17
17
  #
18
18
  # def howto_add_new_recaptcha_keys
19
- # instructions(
20
- # I18n.t(:howto_add_keys, scope: "mod.admin.set.self.admin_info"),
21
- # [
22
- # I18n.t(:howto_register,
23
- # scope: "mod.admin.set.self.admin_info",
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 tr(:howto_add_keys),
20
+ # [tr(:howto_register,
21
+ # recaptcha_link: link_to_resource("http://google.com/recaptcha")),
22
+ # tr(:howto_add, recaptcha_settings: link_to_card(:recaptcha_settings))]
30
23
  # end
31
24
  #
32
25
  # def howto_turn_captcha_off
33
- # instructions(
34
- # I18n.t(:howto_turn_off, scope: "mod.admin.set.self.admin_info"),
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
- # )
26
+ # instructions tr(:howto_turn_off),
27
+ # [tr(:howto_go, captcha_card: link_to_card(:captcha)),
28
+ # tr(:howto_update)]
43
29
  # end
44
30
  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: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-03-02 00:00:00.000000000 Z
13
+ date: 2021-03-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.101.1
21
+ version: 1.101.2
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.101.1
28
+ version: 1.101.2
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: recaptcha
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -54,10 +54,15 @@ files:
54
54
  - set/self/recaptcha_secret_key.rb
55
55
  - set/self/recaptcha_settings.rb
56
56
  - set/self/recaptcha_site_key.rb
57
- homepage: http://decko.org
57
+ homepage: https://decko.org
58
58
  licenses:
59
59
  - GPL-3.0
60
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/
61
66
  card-mod: recaptcha
62
67
  post_install_message:
63
68
  rdoc_options: []