sutty-liquid 0.8.1 → 0.9.0

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 +14 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9eecb00f3cfa8234ca077bddd1201be34e5490f8ebd915fd7b8988b0bc0e8347
4
- data.tar.gz: 133733b0369fa579d0fcfd1b64ab89a8ab46b2ebbb70e1341f916c02cb66cbf7
3
+ metadata.gz: 4dca3383930eb8a0d60849434c5d1b7275dfc43c12e0f5daff9e1c2459ef0a37
4
+ data.tar.gz: 76380fdd27d27319f40444c8040d4618f1fc3c8cbc1039c882de30f179193c86
5
5
  SHA512:
6
- metadata.gz: 4e5c7ba1221f73a4ae42b59d4ad0f3d021a630617649d8412deab39ec06d3929286c85758a53ebc8edc44daa8d1b04def206b126ec848c9524b51907836bcd92
7
- data.tar.gz: b371f3d5db4c81ac5b208fbd2491c15a25fc86315faa4ef6525e9dfcb522244350a0d649fbd0522cdf42ae424624d40b85edcb85a57b307ecda69a013d96bfe9
6
+ metadata.gz: b3bb223e6c80aedf8719aa5ca77ea7c4645acb4082e720cc64af7d34ab2a5011df6e88610def6b973d39931623dd903006c4f2258a03b6ca8ee33e0c51306748
7
+ data.tar.gz: 0a0cbf68a807f2c1b6f63eac66d6b07c07cb9b3b17a5b4c569a337a986829f6582e6445076a113dd2fb99cd2ee97bebfd3ef1b1c59c8864ff6507c034568e5a3
@@ -61,6 +61,20 @@ module Jekyll
61
61
  .gsub(star_delimiter, '*')
62
62
  .gsub(escaped_delimiter, '\*')
63
63
  end
64
+
65
+ def unescape(input)
66
+ CGI.unescapeHTML input.to_s
67
+ end
68
+
69
+ # Escapes a string by percent encoding all reserved characters
70
+ #
71
+ # @param :input [Any]
72
+ # @return [String]
73
+ def component_escape(input)
74
+ require 'addressable'
75
+
76
+ Addressable::URI.encode_component input.to_s, Addressable::URI::CharacterClasses::UNRESERVED
77
+ end
64
78
  end
65
79
  end
66
80
  end
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.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-08 00:00:00.000000000 Z
11
+ date: 2022-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  requirements: []
140
- rubygems_version: 3.3.5
140
+ rubygems_version: 3.3.8
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Liquid filters