sutty-liquid 0.11.6 → 0.11.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9bcc5adc518ebd74470acbf0b797a629482d627ae4e5b99f4aeb4115ea97059
4
- data.tar.gz: f5b9de8760bbb070bff3b6e2f43dfa26f5a2c350e843cb0fede9a6d6b948708e
3
+ metadata.gz: 005f13997c80e7efd7531e01b6b9930170a44257f66d84341eac89a4fcd45a80
4
+ data.tar.gz: fda89eabf3827a20dffb15d6810584518d34ce3220240d1aebe261b7b0d8e1da
5
5
  SHA512:
6
- metadata.gz: e88928c41e676ffef64066404b7db2fa90060dfb8bd0c8670c75fa85997b4bd4f2cb35f8a5b8427da5eeba131d11008fb8c44480b79ba5b567f2c448268ee953
7
- data.tar.gz: 5842a7edc7fcb414f41616cedde4627be828d24d9ecaf4175a45a0b818c17e9d41d896580e7c33305316459b7e559da05a8cf1df6bdc375ed242ce1ba44422a3
6
+ metadata.gz: 8914beb3a0d74b05eb457667a0494fab11536402dccdc43d0144ca1bf0cef237c7847a34260544bb841c2f058119bb1d946a6b49b1c36c0e1699ededd98af5e5
7
+ data.tar.gz: 5c14dcf202998dd5c5374d32831e856b815f6a126c06e9a6ebdfb493e79fade16ec1d8a5c9e945ddf28d8c057e96eb414896e37b2ff961bd66775cb7fa2ce6bc
@@ -22,11 +22,11 @@ module Jekyll
22
22
  # @example
23
23
  # {% assign things = site.posts | where: "layout", "thing" %}
24
24
  # {% assign being = site.posts | find: "layout", "being" %}
25
- # {% assign dread = things | concat: being %}
25
+ # {% assign dread = things | concat_or_append: being %}
26
26
  #
27
27
  # @param input [Array]
28
28
  # @param concatenable [Array,any]
29
- def join(input, concatenable)
29
+ def concat_or_append(input, concatenable)
30
30
  input = [] unless array? input
31
31
 
32
32
  if concatenable.is_a? Array
@@ -3,6 +3,7 @@
3
3
  module Jekyll
4
4
  module Filters
5
5
  module SocialNetwork
6
+ MASTODON = %r{\A/@\w+\z}.freeze
6
7
  SUBDOMAINS = /\A(www|chat)\./.freeze
7
8
  DOMAIN_MAP = {
8
9
  't.me' => 'telegram'
@@ -31,7 +32,7 @@ module Jekyll
31
32
  host = uri.host.sub SUBDOMAINS, ''
32
33
 
33
34
  name = DOMAIN_MAP[host]
34
- name ||= %r{/@\w+} =~ uri.query ? 'mastodon' : host.split('.', 2).first
35
+ name ||= MASTODON =~ uri.path ? 'mastodon' : host.split('.', 2).first
35
36
  rescue ArgumentError, URI::InvalidURIError => e
36
37
  Jekyll.logger.warn(e.message) if Jekyll.respond_to?(:logger)
37
38
  ensure
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.11.6
4
+ version: 0.11.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-28 00:00:00.000000000 Z
11
+ date: 2023-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fast_blank
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.1.6
183
+ rubygems_version: 3.3.26
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Liquid filters