jekyll-writeinpublic 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +11 -1
- data/lib/jekyll/writeinpublic/version.rb +1 -1
- data/lib/jekyll/writeinpublic.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6aa14352e32707cd08e933ae1c525d204a1ad29b
|
|
4
|
+
data.tar.gz: 5c0cefc6ccabd654b2c34f4e26534516356cfe0b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 [](https://travis-ci.org/everypolitician/jekyll-writeinpublic)
|
|
1
|
+
# Jekyll::Writeinpublic [](https://travis-ci.org/everypolitician/jekyll-writeinpublic) [](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.
|
data/lib/jekyll/writeinpublic.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
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
|