card-mod-recaptcha 0.11.1 → 0.11.2
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 +4 -4
 - data/set/self/admin_info.rb +6 -11
 - data/set/self/recaptcha_settings.rb +7 -21
 - metadata +10 -5
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: f8f94318b9abd3ea145bde09f44015d65825cddc4ca5ee4ea1ba49bd728dca90
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 113dbb6d9f86f7b8df8c405822087c225b0678bda3dbdde1e50916aa365f9921
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 01a7541383d000e633216268565cc2cfb48c77f8caed2fd968aabb6bfcf588fb741ed6f1bb958433fcaf601f451348a0bccde323410eb14447f8cddf610b1f5a
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: a731b40026bef519717710ae46a1afd8b1177e98abe8c1728251591cc7edaff5ee4215ef931faecae46ee2f48aec36ad60e80fe21997c75c313c87fb54062b5a
         
     | 
    
        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 
     | 
    
         
            +
                    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 
     | 
    
         
            -
                     
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       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 
     | 
    
         
            -
                 
     | 
| 
       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: 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 
     | 
    
         
            -
              # 
     | 
| 
       21 
     | 
    
         
            -
              # 
     | 
| 
       22 
     | 
    
         
            -
              # 
     | 
| 
       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 
     | 
    
         
            -
              # 
     | 
| 
       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. 
     | 
| 
      
 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- 
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 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:  
     | 
| 
      
 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: []
         
     |