sutty-liquid 0.11.7 → 0.11.9
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
- data/lib/jekyll/filters/yaml_to_scss.rb +5 -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: 826036049df482d444af15363115c28ce7579d4b7b27a36e49920d0f0a16c847
|
4
|
+
data.tar.gz: 5833fd35d35edd7a8a52e01d1dd2359711850ab18364ff2fdfc3d91572221125
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a914998a6bb48bb42a68454243e4bddd2ee770fd83a6d74237355818eeb77c206fc01493aca6fb4e05b01577737674ccf0c753487aeeafdd9af29e8d6293c87
|
7
|
+
data.tar.gz: f1377c21ae1ba9cfdec71a99ba29e092e8b753cc0a7536b087cdf33adffaa0533dc03b7f5c52a38e5db355c27cab93fe8155533daec43c4fe20c9d19945713e9
|
@@ -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
|
@@ -33,6 +33,8 @@ module Jekyll
|
|
33
33
|
escape ? v.dump : v
|
34
34
|
end
|
35
35
|
|
36
|
+
next if values.empty?
|
37
|
+
|
36
38
|
"$#{key}: (#{values.join(',')},);"
|
37
39
|
when Hash
|
38
40
|
values =
|
@@ -43,7 +45,9 @@ module Jekyll
|
|
43
45
|
v = v.dump if escape
|
44
46
|
|
45
47
|
"\"#{key_to_scss k}\": #{v}"
|
46
|
-
end
|
48
|
+
end.compact
|
49
|
+
|
50
|
+
next if values.empty?
|
47
51
|
|
48
52
|
"$#{key}: (#{values.join(',')},);"
|
49
53
|
else
|
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.9
|
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-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fast_blank
|