Skip to content

Commit

Permalink
Merge branch 'release/2.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Dec 10, 2018
2 parents f32c8fc + 9cf573f commit 2097ec5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# v2.0.0
## 12/10/2018

1. [](#bugfix)
* Fixed to support GitHub 2.0.0 plugin

# v1.0.0
## 02/04/2017
## 02/04/2017

1. [](#new)
* ChangeLog started...
4 changes: 2 additions & 2 deletions blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Social Counters
version: 1.0.0
version: 2.0.0
description: Provides counts for social accounts such as GitHub and Twitter
icon: share-square
author:
Expand All @@ -13,7 +13,7 @@ docs: https://github.com/trilbymedia/grav-plugin-social-counters/blob/develop/RE
license: MIT

dependencies:
- { name: github, version: '>=1.0' }
- { name: github, version: '>=2.0' }

form:
validation: strict
Expand Down
4 changes: 1 addition & 3 deletions social-counters.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ public function onTwigSiteVariables()
// Github not found in cache, try again
if ($github === false) {

$client = new \Github\Client(
new \Github\HttpClient\CachedHttpClient(array('cache_dir' => CACHE_DIR . '/github'))
);
$client = new \Github\Client();

$repo = $client->api('repo');

Expand Down

0 comments on commit 2097ec5

Please sign in to comment.