jekyll-github-chart 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: 4a840c77c3fef9bcd0750a1548b45f97a9846099ec0515e0fb1d67c9115f9377
4
- data.tar.gz: 452d5bc74e7b1857007804f1bf48db21ebfceb07292f3a4529da3f2a397cb633
3
+ metadata.gz: e5e4dfea7b6c1b8c421227bf9dc22d26f3abf4868bc84f1d2077e16b71f7148a
4
+ data.tar.gz: e8b7ae9616b5b343e08e8737f38462ec27729b33e61f8340ad17fdcdb8b6227a
5
5
  SHA512:
6
- metadata.gz: 2788316e37f107dbcbb5ede8eceb9cf265bc06f294d0219f55dd599c61efba92522a8b0bf0072d2a7e681c5c43599a4e9d41e5a8f64b3968094230d73c544916
7
- data.tar.gz: 8f0943bf01dd3a4bc0c97ec897c3e282997cffca51f20ddb00dc9eeb3bdbd617b794326c80070a6c00d875fad7194cfdc177ab3e116e6b6f547f79a1711ecb2b
6
+ metadata.gz: 5a095a70bb57e2474c1d50566b82f6b30e238deed6f7cbb309866f469b2c542a05e16ea3b39b6d0da83112e9019685681b0f8f3bc177cf53d99ce8f897e4e366
7
+ data.tar.gz: f5aec9605ca2d911ced890d4f2313577a31a8dbef2b9a19ccdbc075691831c452a764cc08cfd212c4b0741f5b0f06c7948ec86e91974089f84191477434c7393
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Jekyll Github Chart
2
2
 
3
3
  [![Gem Version](https://img.shields.io/gem/v/jekyll-github-chart.svg)](https://rubygems.org/gems/jekyll-github-chart)
4
+ [![Gem Downloads](https://img.shields.io/gem/dt/jekyll-github-chart.svg)](https://rubygems.org/gems/jekyll-github-chart)
4
5
  [![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
5
6
 
6
7
  This Jekyll plugin provides a tag that takes a Github user and returns either an image or a raw SVG of the contribution graph.
@@ -45,7 +46,7 @@ You can call the tag with a the defaults like this.
45
46
  This will generate an HTML `img` tag with an SVG encoded as a data URI. For example:
46
47
 
47
48
  ```
48
- <img src='data:image/svg+xml;charset=utf-8,...' class='github-contributions' alt='username\'s Github contributions' />
49
+ <img src='data:image/svg+xml;charset=utf-8,...' class='github-contributions' alt='username Github contributions' />
49
50
  ```
50
51
 
51
52
  There are 3 color schemes available: `default`, `old`, and `halloween`.
@@ -60,6 +61,11 @@ Finally, if you don't want an `img` tag, you can pass a format argument to have
60
61
  {% github_chart username halloween raw %}
61
62
  ```
62
63
 
64
+ ## Example
65
+ Here's an example using the default parameters.
66
+
67
+ ![Jekyll Github Chart example](https://user-images.githubusercontent.com/1270156/89127558-911b1e80-d4ee-11ea-8c74-fcf8bc3c491a.png)
68
+
63
69
  ## Special thanks
64
70
  Thanks to [@akerl](https://github.com/akerl) for creating the [githubchart](https://github.com/akerl/githubchart) gem which is the foundation of this plugin.
65
71
 
@@ -22,7 +22,7 @@ module Jekyll
22
22
  encoding = 'charset=utf-8'
23
23
  data = CGI::escape(raw_svg).gsub('+', '%20')
24
24
 
25
- "<img src='data:#{content_type};#{encoding},#{data}' class='github-contributions' alt='#{@user}\'s Github contributions' />"
25
+ "<img src='data:#{content_type};#{encoding},#{data}' class='github-contributions' alt='#{@user} Github contributions' />"
26
26
  end
27
27
 
28
28
  Liquid::Template.register_tag('github_chart', self)
@@ -1,3 +1,3 @@
1
1
  module JekyllGithubChart
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-github-chart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kinduff