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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll/filters/strings.rb +11 -14
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 393e15680fe4f32d7b7c2315cda9c0738350cd7abaf9c4f2a80781a62f31bcf5
4
- data.tar.gz: e2af5aae8a6bce1cdcb93d10dfee498d9b24b810bd7ca5d6a3de460cae56b128
3
+ metadata.gz: 3557ab912b1f0776505a57cd9e59409ca793808637b30d154de28e679567494a
4
+ data.tar.gz: 0eb8c1ffc604b2dbd5bfee83a44ee4afb0b3af7e33e333d11465f34814e207bb
5
5
  SHA512:
6
- metadata.gz: 3742fa4e27e0f502a409bf2a86759607b4f778b484d30f70ccfcb379ac601ae14c129f6096352bd1b614246410dc2281efe34dda0f53b8c4476724f3ffd900e7
7
- data.tar.gz: a8bbc1dcafd6e89276002218436a0bb23f13dadb0774aec5ddc4fa505a9be8cc25cc0a96b6dc711b830ad6e3461a500be9cfc367ec256dbd303da73f30e07078
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
- @@list_to_array ||= {}
106
- @@list_to_array[input] ||=
107
- begin
108
- array =
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.0
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-07-18 00:00:00.000000000 Z
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.26
197
+ rubygems_version: 3.3.27
198
198
  signing_key:
199
199
  specification_version: 4
200
200
  summary: Liquid filters