jekyll-avatar 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07f6bbf150caf11f730c204ade5d6b2258a2bb1d
4
- data.tar.gz: c73d73c20983b02c94fa37833ee00b44d18d1429
3
+ metadata.gz: fd6722f0db882080e3c2d38e5e95f848384848f0
4
+ data.tar.gz: a762d7ae9a0f53b14fbb36f886e69e17829173e5
5
5
  SHA512:
6
- metadata.gz: 59d0f9536f6a531497f22910ffcd770c87fa970f4770595bb89eb34b4b514c7677853c94c6324fe82affd15953f5f03e9b8c0b7a64f26735bc7814480fd4e37a
7
- data.tar.gz: 2cf1615323742bedf9e60222444316eed33eb823727cc362351a5741d9dbaf9617c1a04686060c3ca71e364bcbe9615d68529b72e6ad3855a9bce7c63af38cee
6
+ metadata.gz: b84a46915b0c5a3cd42ad447b1de5a240eb0ad545958273f80b6da373ed4a35d3d703e64cc835a2104df34d00861d99970515dc11c46cedd3b5d2e292b039584
7
+ data.tar.gz: f8fad54f4877b61c05ea774ae52c3cec71eaab7b9c390b985cf3d602d6488a80eb69aaa7f7300c66f13401bd008f0497b93c865b6eb84bf330bba1044ffa5f3f
@@ -28,8 +28,8 @@ module Jekyll
28
28
  private
29
29
 
30
30
  def username
31
- matches = @text.match(/\s+user=(\w+)\s+/)
32
- if matches
31
+ matches = @text.match(/\buser=(\w+)\b/)
32
+ if matches && @context.has_key?(matches[1])
33
33
  @context[matches[1]]
34
34
  else
35
35
  @text.split(' ').first.sub('@', '')
@@ -1,6 +1,6 @@
1
1
  module Liquid; class Tag; end; end
2
2
  module Jekyll
3
3
  class Avatar < Liquid::Tag
4
- VERSION = '0.2.2'.freeze
4
+ VERSION = '0.2.3'.freeze
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-avatar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter