sutty-liquid 0.13.0rc1 → 0.13.0
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
- checksums.yaml.gz.sig +0 -0
- data/lib/jekyll/filters/arrays.rb +12 -1
- data/lib/jekyll/filters/strings.rb +3 -2
- data.tar.gz.sig +0 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c4ca606e859164cf4c6bfd90139217322dfdac4258729e8a4f21948e79c0bf9
|
|
4
|
+
data.tar.gz: f5ea346d5d06eba24005b1d6711208d34f74602d5deb2a8e1e2cfa860d62b22f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2adb92454085537f5624c2886f9ddce9ca53307b9c53475dce01bb27898ab501e82274d73d6dccedf97c7830b0a1e40f8b43e0b4c40a3fc3ac9ee8c2f612e7a
|
|
7
|
+
data.tar.gz: b278ae3a2c23052b02e0b6592f0c653df57dec043e70fb77f3217410c3e9fc1219b4c420fdd798042a8d69e3e4b7ef7429aa60341e460b5db43ab76f88436eaa
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -10,13 +10,24 @@ module Jekyll
|
|
|
10
10
|
# {{ site.posts | sample: 3 }}
|
|
11
11
|
# @param input [Array]
|
|
12
12
|
# @param amount [Integer]
|
|
13
|
-
# @return [
|
|
13
|
+
# @return [Array]
|
|
14
14
|
def sample(input, amount = 1)
|
|
15
15
|
input = [] unless array? input
|
|
16
16
|
|
|
17
17
|
input.sample(amount)
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
+
# Returns list of random items from an Array.
|
|
21
|
+
#
|
|
22
|
+
# @example
|
|
23
|
+
# {{ site.posts | shuffle }}
|
|
24
|
+
# @param input [Array]
|
|
25
|
+
# @return [Array]
|
|
26
|
+
def shuffle(input)
|
|
27
|
+
input = [] unless array? input
|
|
28
|
+
input.shuffle
|
|
29
|
+
end
|
|
30
|
+
|
|
20
31
|
# Flattens nested arrays
|
|
21
32
|
#
|
|
22
33
|
# @example
|
|
@@ -66,7 +66,8 @@ module Jekyll
|
|
|
66
66
|
CGI.unescapeHTML input.to_s
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
-
# Escapes a string by percent encoding all reserved characters
|
|
69
|
+
# Escapes a string by percent encoding all reserved characters,
|
|
70
|
+
# including `#`
|
|
70
71
|
#
|
|
71
72
|
# @param :input [Any]
|
|
72
73
|
# @return [String]
|
|
@@ -74,7 +75,7 @@ module Jekyll
|
|
|
74
75
|
require 'addressable'
|
|
75
76
|
|
|
76
77
|
@@component_escape ||= {}
|
|
77
|
-
@@component_escape[input.to_s] ||= Addressable::URI.parse(input.to_s).normalize.to_s
|
|
78
|
+
@@component_escape[input.to_s] ||= Addressable::URI.parse(input.to_s).normalize.to_s.sub("#", "%23")
|
|
78
79
|
end
|
|
79
80
|
|
|
80
81
|
# Sanitizes HTML. By default follows Sutty CMS allowlist.
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sutty-liquid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.13.
|
|
4
|
+
version: 0.13.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- f
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
cpurTQHNJfL/ah+9dYbgDXdG5HAAjRMAsWSvERw95YdN9XzQZCdUk5wUs+A6cNtO
|
|
36
36
|
AZZUMTVYNx8JqUeemxlXBRjsD/s=
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2025-
|
|
38
|
+
date: 2025-11-06 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: fast_blank
|
|
@@ -217,9 +217,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
217
217
|
version: 2.7.0
|
|
218
218
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
requirements:
|
|
220
|
-
- - "
|
|
220
|
+
- - ">="
|
|
221
221
|
- !ruby/object:Gem::Version
|
|
222
|
-
version:
|
|
222
|
+
version: '0'
|
|
223
223
|
requirements: []
|
|
224
224
|
rubygems_version: 3.3.27
|
|
225
225
|
signing_key:
|
metadata.gz.sig
CHANGED
|
Binary file
|