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 +4 -4
- data/lib/jekyll/filters/social_network.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 005f13997c80e7efd7531e01b6b9930170a44257f66d84341eac89a4fcd45a80
|
4
|
+
data.tar.gz: fda89eabf3827a20dffb15d6810584518d34ce3220240d1aebe261b7b0d8e1da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 ||=
|
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.
|
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-
|
11
|
+
date: 2023-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fast_blank
|