jekyll-writeinpublic 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: 12e4ac7d2d9afda0414b55cc92ac1830a0d1c01e
4
- data.tar.gz: e69316c0544f1568df290e19e72436181ba0f219
3
+ metadata.gz: 6aa14352e32707cd08e933ae1c525d204a1ad29b
4
+ data.tar.gz: 5c0cefc6ccabd654b2c34f4e26534516356cfe0b
5
5
  SHA512:
6
- metadata.gz: bdecc529756575c85dff579da91c2b79bc2c0755595a033755f5468008b40df9a4787ab5985be0ef84e622427af8d0fa19a3340e3db6405c9ecb645397d9da87
7
- data.tar.gz: dbb0c6708904ee072b0c14c27703b7cb4ea6f2164e4751bf8252daf6c4ca95c9e3f45936ccc45880977f42a2866511a79e24656b251eaad50b1e0de031051ea7
6
+ metadata.gz: c0d54580b5072bfe713034054d88518739b1adf0179db4fdd283e18a1999a9684ebfd21240a1c141c29d87d21748afe5b0c10261f80bbad24ab426651593b97e
7
+ data.tar.gz: 54e1d294c090df067419edbe112e4a5587c6dea8c3c1217b5a22e43f387c5299a4941e847c2fd3b8064eedf469a9abd3d231fac62406d26376980310765a53cc
data/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ This project adheres to [Semantic Versioning](http://semver.org/).
5
+
6
+ ## [0.2.0] - 2015-12-21
7
+
8
+ ## Added
9
+
10
+ - There is now a [`disabled` config option](https://github.com/everypolitician/jekyll-writeinpublic#usage) which when set will prevent the plugin from rendering anything.
11
+
12
+ ## 0.1.0 - 2015-12-17
13
+
14
+ - Initial release
15
+
16
+ [0.2.0]: https://github.com/everypolitician/jekyll-writeinpublic/compare/v0.1.0...v0.2.0
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Jekyll::Writeinpublic [![Build Status](https://travis-ci.org/everypolitician/jekyll-writeinpublic.svg?branch=master)](https://travis-ci.org/everypolitician/jekyll-writeinpublic)
1
+ # Jekyll::Writeinpublic [![Build Status](https://travis-ci.org/everypolitician/jekyll-writeinpublic.svg?branch=master)](https://travis-ci.org/everypolitician/jekyll-writeinpublic) [![Gem Version](https://badge.fury.io/rb/jekyll-writeinpublic.svg)](https://badge.fury.io/rb/jekyll-writeinpublic)
2
2
 
3
3
  Link to WriteInPublic from Jekyll sites.
4
4
 
@@ -45,6 +45,16 @@ Which will result in something like this:
45
45
  <a href="http://kenya-politicians.writeinpublic.com/en/write/who/?person_id=person/123abc">Write to Bob on WriteInPublic!</a>
46
46
  ```
47
47
 
48
+ If your WriteInPublic site is still in testing mode you might want to disable this plugin temporarily so the link doesn't show up on the site. You can do this with the `disabled` option:
49
+
50
+ ```yaml
51
+ writeinpublic:
52
+ subdomain: kenya-politicians
53
+ disabled: true
54
+ ```
55
+
56
+ With this set the plugin won't render anything.
57
+
48
58
  ## Development
49
59
 
50
60
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Writeinpublic
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -14,6 +14,7 @@ module Jekyll
14
14
  site = context.registers[:site]
15
15
  writeinpublic = site.config['writeinpublic']
16
16
  return unless writeinpublic && writeinpublic.key?('subdomain')
17
+ return if writeinpublic['disabled']
17
18
  person_id = context[@markup]
18
19
  %(<a href="#{link(writeinpublic['subdomain'], person_id)}">#{super}</a>)
19
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-writeinpublic
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
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2015-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -89,6 +89,7 @@ extra_rdoc_files: []
89
89
  files:
90
90
  - ".gitignore"
91
91
  - ".travis.yml"
92
+ - CHANGELOG.md
92
93
  - Gemfile
93
94
  - LICENSE.txt
94
95
  - README.md