jekyll-everypolitician 0.1.0 → 0.2.0

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: bb57f995cb254a01e07673747e32181c663cb1fa
4
- data.tar.gz: 4807674fa0d28caa96b179768f852d6bb8edbf3d
3
+ metadata.gz: df7c92e1d38d1a4ba4e7675ec40f6b225966b5e1
4
+ data.tar.gz: d5ecc1fb4943a25e7d2694ec8145e6a60e0fa420
5
5
  SHA512:
6
- metadata.gz: 126f1fcb68cd2c74b67054cf375b25d40598634f8969c26e6cef89cc099e2290e2173f79fd47dcf9a95edfc630d0240956adce2593de255516910c4e67cc38de
7
- data.tar.gz: b0fa4f2125d761605f894c4b53c3b1e18fbe8d4e4acab11f35564c96fc213ee1c117743f2ae95e1cc112262e7a6cf1bf0038b60cf5d7f8e7af9c2261ba91ec45
6
+ metadata.gz: c61a1c1bac048520a7a1aa29e57b00b19df6d5ad273663bdf72f2f32e1d49c0bffbc1b66e93948e82baea53c8f58741ba4cd168b2d041df068972fbf63388cfb
7
+ data.tar.gz: 1cd95835ec1f3c1f68ed429036e158b9af00e2594e02d2d0f1d7ff31e448e37defbc8d76adb545b057c8e607afa633f8befae368b80bba9bf131e297bb4b959c
data/CHANGELOG.md CHANGED
@@ -5,3 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
  ## 0.1.0 - 2015-12-02
6
6
 
7
7
  - Initial release
8
+
9
+ ## [0.2.0] - 2015-12-02
10
+
11
+ ### Changed
12
+
13
+ - You can now set `everypolitician_url` in `_config.yml` to an everypolitician popolo url
14
+
15
+ [0.2.0]: https://github.com/everypolitician/jekyll-everypolitician/compare/v0.1.0...v0.2.0
@@ -11,8 +11,7 @@ module Jekyll
11
11
  module Everypolitician
12
12
  class Generator < Jekyll::Generator
13
13
  def generate(site)
14
- popolo_url = File.read('DATASOURCE').chomp
15
- popolo = JSON.parse(open(popolo_url).read)
14
+ popolo = JSON.parse(open(site.config['everypolitician_url']).read)
16
15
  memberships = popolo['memberships']
17
16
  popolo.keys.each do |collection_name|
18
17
  next unless popolo[collection_name].is_a?(Array)
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Everypolitician
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-everypolitician
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Mytton