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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8146d61e2bbdc0a8f4b412c3f24547c7bfdcfc5b2192f394e2cfec5397790a4
4
- data.tar.gz: 063f2a57bbfa8c45259c0231ef0b749de028c0c25fd072a0e4b8bf8e79eab298
3
+ metadata.gz: 826036049df482d444af15363115c28ce7579d4b7b27a36e49920d0f0a16c847
4
+ data.tar.gz: 5833fd35d35edd7a8a52e01d1dd2359711850ab18364ff2fdfc3d91572221125
5
5
  SHA512:
6
- metadata.gz: c1ee5f7cd5145b11572b1c934ff153d6cd34a9d4d54b75d2ed5838dc75192f059a51eb46cff9129b3aa3a5c248b1f50c1f4ef8883d60fdf8290b4e29b9daa2a3
7
- data.tar.gz: 97b5f481d4c23e69acc51dd02e7e4110fff2feef56cbabf9a799533f720be55e31b0f80716edfedff208fa59cd227c5bbedd7d3013c3454cc0002dd767f066e4
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 ||= %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
@@ -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.7
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-01-06 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fast_blank