jekyll-avatar 0.1.1 → 0.2.1

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
  SHA1:
3
- metadata.gz: c625eae696c0c6441b3bb2479ffe36ec9e3b8176
4
- data.tar.gz: 936109a68aca7f568c8a0574adba533b1b9ed71c
3
+ metadata.gz: 2df65b0567ec7f5ace78586ba68a2212e370944d
4
+ data.tar.gz: a0ac164bc7bfc19d6c3ddc50f038944a7cf7f6f2
5
5
  SHA512:
6
- metadata.gz: 75ab6463eeb44f06927d398cbe5ddb159d8ac40975e2b17c4ea7773b943434db4b3f432ab8abe1a6eabeb8a7b6681af53dbffcc103bccbbf78b4da4b1732db09
7
- data.tar.gz: cb1978e814f972b17f30c6abb9197596b237929db067c7c97a21c9314ec4a49958440bbf3dd79f12dca73b56fe46a9df4463e7d3d9c5f2dfa079226c0f971836
6
+ metadata.gz: 60bd8737b13b66b6d80efeb8e572679a99f9f3e913ddad75f5d2c03cf368899141be33e45474d88c8e44d64ae6fc444d0b1e501c719a9c61129fac20eca7d00e
7
+ data.tar.gz: fe32c49f9a12b3fbaf4454dbb25a2cca4e5f59ffd4e9fdba58171b48f40cfd34c441c0e7b67ccb7227147234f98a11a19725748a95415a8e4447b00b174fb894
@@ -8,3 +8,6 @@ Style/Documentation:
8
8
  Lint/EndAlignment:
9
9
  AlignWith: variable
10
10
  AutoCorrect: true
11
+
12
+ Style/FileName:
13
+ Enabled: false
@@ -6,12 +6,14 @@ module Jekyll
6
6
  DEFAULT_SIZE = 40
7
7
  VERSION = 3
8
8
 
9
- def initialize(tag_name, text, tokens)
9
+ def initialize(_tag_name, text, _tokens)
10
10
  super
11
11
  @text = text
12
12
  end
13
13
 
14
- def render(_context)
14
+ def render(context)
15
+ @text = Liquid::Template.parse(@text).render(context)
16
+
15
17
  tag = '<img '
16
18
 
17
19
  # See http://primercss.io/avatars/#small-avatars
@@ -22,8 +24,7 @@ module Jekyll
22
24
  end
23
25
 
24
26
  tag << "src=\"#{url}\" alt=\"#{username}\" "
25
- tag << "width=\"#{size}\" height=\"#{size}\" "
26
- tag << '/>'
27
+ tag << "width=\"#{size}\" height=\"#{size}\" />"
27
28
  tag
28
29
  end
29
30
 
@@ -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.1.1'
4
+ VERSION = '0.2.1'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-avatar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -126,3 +126,4 @@ signing_key:
126
126
  specification_version: 4
127
127
  summary: A Jekyll plugin for rendering GitHub avatars
128
128
  test_files: []
129
+ has_rdoc: