turnstile-captcha 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/turnstile/version.rb +1 -1
- data/lib/turnstile/view_helpers.rb +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f403d0270ccb1c42e38525450c74948c7393b1244931b957ba66c647d186888
|
4
|
+
data.tar.gz: 2b8910a7fe0e00b7194e913115a001647c7bdc66c35b8a23a4810ef3540bbe26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2e9bd600158141d79a674fff364e96ad57a86bd9ad448cf6ea9ad7a2a7e70dbf419ab6c935c45cee544eff4071e4f02453344ddcb2d580d6b1c1d59fcd2afd5
|
7
|
+
data.tar.gz: 564a5cbe5ad4cd16efab56f7e5e07e4f9d77dbc70ab76bce16c9f4dd44433c7b6025f25038fa631fb40bf66b5b648c570c8d3acf811b4ab8905c6f37463a58e0
|
data/lib/turnstile/version.rb
CHANGED
@@ -2,14 +2,16 @@
|
|
2
2
|
|
3
3
|
module Turnstile::ViewHelpers
|
4
4
|
def captcha_tags(options = {})
|
5
|
+
javascript_tag_options = options.delete(:javascript_tag) || {}
|
6
|
+
|
5
7
|
[
|
6
|
-
captcha_javascript_tag,
|
8
|
+
captcha_javascript_tag(javascript_tag_options),
|
7
9
|
captcha_placeholder_tag(options)
|
8
10
|
].join.html_safe
|
9
11
|
end
|
10
12
|
|
11
|
-
def captcha_javascript_tag
|
12
|
-
javascript_include_tag Turnstile.configuration.script_url, async: true, defer: true
|
13
|
+
def captcha_javascript_tag(options = {})
|
14
|
+
javascript_include_tag Turnstile.configuration.script_url, **options.reverse_merge(async: true, defer: true)
|
13
15
|
end
|
14
16
|
|
15
17
|
def captcha_placeholder_tag(options = {})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turnstile-captcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattias Pfeiffer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webmock
|