jekyll-gh-contributors 1.0.4 → 1.0.8

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: 26bf2152573929074f862f4bf994a5e487ada5db5baf4e6927a274c1410f98fe
4
- data.tar.gz: a01a6fcb1654c430956776fbc21c5afd6ba3372594504af0d6c353a638e9d9fb
3
+ metadata.gz: f916df19cda5cf791551e9dc612d3cf5c80871ccf1f869f58de5c2b660e10641
4
+ data.tar.gz: eec19c1a1ebc03674bc20ceef3d7ad2661ba2810cd7b5efe63ff38dc59b2029a
5
5
  SHA512:
6
- metadata.gz: 30d138feb1828f160b944159a443059d0c7b9406ce9e711f35322a97a3d1d20d75bfe7c27ad33660ec59b5bd537387bf23bcf04c1c3bde72fbfc63cc3338291b
7
- data.tar.gz: 80e2be6deaad3882506679fc929ce74012e304e6fe2d2516a2b75a483e8fab9b49cfcc4e9fa41fa29e68522f3ba5c0cabe65ac78e56e1abb5d18ab12dd8dd698
6
+ metadata.gz: 17c54b5983bcfd0bbd8027389f751eeb2b23557975d5083b29ddf783ce423f59c478ce3191c9a49f062cce6bdd7325a8717bf5016202774be1162727eb795c6c
7
+ data.tar.gz: bed9aa0751b3aebc400d61fc252d5ed715e18d89d2aaedeb9ae6ca88f765aed4621d0de31b904f27a46274a268c140dbef5028f167b2dc6bcbdc68cc885ad479
@@ -9,17 +9,18 @@ module Jekyll
9
9
  class ContributorsTag < Liquid::Tag
10
10
  def initialize(tag_name, text, tokens)
11
11
  super
12
+ @content = text
12
13
  end
13
14
 
14
15
  def getContributors(repo_url)
15
- uri = URI.parse('{repo_url}/contributors')
16
+ uri = URI.parse("https://api.github.com/repos/#{repo_url}/contributors")
16
17
  response = Net::HTTP.get_response(uri)
17
18
 
18
19
  contributors = JSON.parse(response.body)
19
20
  contributors
20
21
  end
21
22
 
22
- def render(_context)
23
+ def render(context)
23
24
 
24
25
  repo_url = "#{context[@content.strip]}"
25
26
  contributors = getContributors(repo_url)
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module JekyllGHContributors
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-gh-contributors
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - joel ibaceta