sutty-liquid 0.12.0 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/filters/strings.rb +11 -14
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3557ab912b1f0776505a57cd9e59409ca793808637b30d154de28e679567494a
|
4
|
+
data.tar.gz: 0eb8c1ffc604b2dbd5bfee83a44ee4afb0b3af7e33e333d11465f34814e207bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 942fe8161087035e4b548f55b44f0f378dcc28552e4eb57591a4f00f52cbf611956fea16916ad359b4f314bc43715606cb1dc136edc469b08a0c6071afac7aa5
|
7
|
+
data.tar.gz: a28ca51eb49ccf9f14c6e622c95ee6be9f54fa953843ed88f4bf09affbdd497f760632846617b8e6997ef85e4d5fd9b424c7da490b5d7c43845dcf458127d7df
|
@@ -102,26 +102,23 @@ module Jekyll
|
|
102
102
|
# @param default [Array<String>]
|
103
103
|
# @return [Array<String>]
|
104
104
|
def list_to_array(input, default)
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
case input
|
110
|
-
when Array then input
|
111
|
-
else input.to_s.split(',').map(&:strip)
|
112
|
-
end
|
113
|
-
|
114
|
-
if array.empty?
|
115
|
-
default
|
116
|
-
else
|
117
|
-
array
|
118
|
-
end
|
105
|
+
array =
|
106
|
+
case input
|
107
|
+
when Array then input
|
108
|
+
else input.to_s.split(',').map(&:strip)
|
119
109
|
end
|
110
|
+
|
111
|
+
if array.empty?
|
112
|
+
default
|
113
|
+
else
|
114
|
+
array
|
115
|
+
end
|
120
116
|
end
|
121
117
|
|
122
118
|
def sanitizer
|
123
119
|
@@sanitizer ||=
|
124
120
|
begin
|
121
|
+
require 'loofah'
|
125
122
|
require 'rails/html/sanitizer'
|
126
123
|
require 'rails/html/scrubbers'
|
127
124
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sutty-liquid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fast_blank
|
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
- !ruby/object:Gem::Version
|
195
195
|
version: '0'
|
196
196
|
requirements: []
|
197
|
-
rubygems_version: 3.3.
|
197
|
+
rubygems_version: 3.3.27
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: Liquid filters
|