jekyll-tagging-related_posts 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: e2d867dcf20c6da79bf081959fa90e988c489f9f
4
- data.tar.gz: 0edfcd46f1fb75596cf88235ecf906de89e8c328
3
+ metadata.gz: 1723eeed593e54f6202eca9d50d84034ea2489f1
4
+ data.tar.gz: c5438cd783c65626cc7c4b80efd23ba3ffd620f0
5
5
  SHA512:
6
- metadata.gz: fe7a19d6f053b1c5087e4809abc8dd91f345e230115609c8fe29959bfbfbf8b10afb2621c4c9037417f611b291197853d53db1a8e9bf3402ee7ce7d4f036ae6b
7
- data.tar.gz: e1a741b1722d3a908f52475e05e7faa13efd9277550e741466fb750cdfd79e7d4ef92c605ca11bfcbb85a2ee286077b16e952eb8d3770e37eccb22f17180347e
6
+ metadata.gz: 088cb2097cec4dd59f2d4e6d7c75cab5c648106a0f96e009c2f7565443895d1b510b32df9a2c25e8f3bfcb35622e476afc0948c93a71b4442fbeec2d413fd187
7
+ data.tar.gz: cde637ffa4c950d92a5f327cefba9e0c572128855d8a6a45220e15d18162a57b641689c3402313431d4898b00aed6295ddabce41b6af3dafc329c0c8025cde87
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /test/dest
data/.travis.yml CHANGED
@@ -1,4 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.2
3
+ - 2.0
4
+ - 2.1
5
+ - 2.2
4
6
  before_install: gem install bundler -v 1.10.6
data/Gemfile CHANGED
@@ -2,3 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in jekyll-tagging-related_posts.gemspec
4
4
  gemspec
5
+
6
+ group :test do
7
+ gem "codeclimate-test-reporter"
8
+ end
data/README.md CHANGED
@@ -1,11 +1,17 @@
1
-
2
1
  # jekyll-tagging-related_posts
3
2
 
3
+ [![Build Status](https://travis-ci.org/toshimaru/jekyll-tagging-related_posts.svg?branch=master)](https://travis-ci.org/toshimaru/jekyll-tagging-related_posts)
4
+ [![Gem Version](https://badge.fury.io/rb/jekyll-tagging-related_posts.svg)](https://badge.fury.io/rb/jekyll-tagging-related_posts)
5
+ [![Test Coverage](https://codeclimate.com/github/toshimaru/jekyll-tagging-related_posts/badges/coverage.svg)](https://codeclimate.com/github/toshimaru/jekyll-tagging-related_posts/coverage)
6
+ [![Code Climate](https://codeclimate.com/github/toshimaru/jekyll-tagging-related_posts/badges/gpa.svg)](https://codeclimate.com/github/toshimaru/jekyll-tagging-related_posts)
7
+ [![Dependency Status](https://gemnasium.com/toshimaru/jekyll-tagging-related_posts.svg)](https://gemnasium.com/toshimaru/jekyll-tagging-related_posts)
8
+
4
9
  Jekyll `related_posts` function based on tags (works for only Jekyll3). It replaces original Jekyll's `related_posts` function to use tags to calculate relationships.
5
10
 
6
- The calculation algorithm is based on [LawrenceWoodman/related\_posts-jekyll\_plugin](https://github.com/LawrenceWoodman/related_posts-jekyll_plugin).
11
+ The calculation algorithm is based on [LawrenceWoodman/related\_posts-jekyll\_plugin](https://github.com/LawrenceWoodman/related_posts-jekyll_plugin).
7
12
 
8
13
  ## Requirements
14
+ * Ruby 2.x
9
15
  * [Jekyll 3.x](https://github.com/jekyll/jekyll)
10
16
  * [pattex/jekyll-tagging](https://github.com/pattex/jekyll-tagging)
11
17
 
@@ -35,9 +41,9 @@ gems:
35
41
  - jekyll-tagging-related_posts
36
42
  ```
37
43
 
38
- Then, add related_posts in your post layout.
44
+ Then, add `site.related_posts` in your post layout.
39
45
 
40
- ```liquid
46
+ ```liquied
41
47
  {% if site.related_posts.size >= 1 %}
42
48
  <div>
43
49
  <h3>Related Posts</h3>
@@ -56,7 +62,7 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
56
62
 
57
63
  ## Contributing
58
64
 
59
- Bug reports and pull requests are welcome on GitHub at https://github.com/toshimaru/jekyll-tagging-related_posts. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
65
+ Bug reports and pull requests are welcome on GitHub at https://github.com/toshimaru/jekyll-tagging-related_posts/issues. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
60
66
 
61
67
  ## License
62
68
 
@@ -25,4 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
  spec.add_development_dependency "byebug"
27
27
  spec.add_development_dependency "minitest"
28
+ spec.add_development_dependency "minitest-reporters"
28
29
  end
@@ -1,8 +1,9 @@
1
- require "jekyll/document"
2
-
3
1
  require "jekyll/tagging/related_posts/version"
4
2
  require "jekyll/tagging/related_posts"
5
3
 
4
+ # require `Jekyll::Document` first to overide
5
+ require "jekyll/document"
6
+
6
7
  module Jekyll
7
8
  class Document
8
9
  include ::Jekyll::Tagging::RelatedPosts
@@ -1,5 +1,3 @@
1
- require "jekyll/tagging/related_posts/version"
2
-
3
1
  module Jekyll
4
2
  module Tagging
5
3
  module RelatedPosts
@@ -1,7 +1,7 @@
1
1
  module Jekyll
2
2
  module Tagging
3
3
  module RelatedPosts
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-tagging-related_posts
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
  - toshimaru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-25 00:00:00.000000000 Z
11
+ date: 2016-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: minitest-reporters
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  description: Replaces Jekyll's related_posts function to use tags to calculate relationships
98
112
  email:
99
113
  - me@toshimaru.net