sutty-liquid 0.11.7 → 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: d8146d61e2bbdc0a8f4b412c3f24547c7bfdcfc5b2192f394e2cfec5397790a4
4
- data.tar.gz: 063f2a57bbfa8c45259c0231ef0b749de028c0c25fd072a0e4b8bf8e79eab298
3
+ metadata.gz: 005f13997c80e7efd7531e01b6b9930170a44257f66d84341eac89a4fcd45a80
4
+ data.tar.gz: fda89eabf3827a20dffb15d6810584518d34ce3220240d1aebe261b7b0d8e1da
5
5
  SHA512:
6
- metadata.gz: c1ee5f7cd5145b11572b1c934ff153d6cd34a9d4d54b75d2ed5838dc75192f059a51eb46cff9129b3aa3a5c248b1f50c1f4ef8883d60fdf8290b4e29b9daa2a3
7
- data.tar.gz: 97b5f481d4c23e69acc51dd02e7e4110fff2feef56cbabf9a799533f720be55e31b0f80716edfedff208fa59cd227c5bbedd7d3013c3454cc0002dd767f066e4
6
+ metadata.gz: 8914beb3a0d74b05eb457667a0494fab11536402dccdc43d0144ca1bf0cef237c7847a34260544bb841c2f058119bb1d946a6b49b1c36c0e1699ededd98af5e5
7
+ data.tar.gz: 5c14dcf202998dd5c5374d32831e856b815f6a126c06e9a6ebdfb493e79fade16ec1d8a5c9e945ddf28d8c057e96eb414896e37b2ff961bd66775cb7fa2ce6bc
@@ -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.7
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: 2023-01-06 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