jekyll-tagging-related_posts 0.2.2 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +2 -0
- data/.travis.yml +15 -10
- data/Appraisals +14 -8
- data/README.md +3 -5
- data/gemfiles/jekyll_3.4.gemfile +7 -0
- data/gemfiles/jekyll_3.5.gemfile +7 -0
- data/gemfiles/jekyll_3.6.gemfile +7 -0
- data/gemfiles/jekyll_3.7.gemfile +7 -0
- data/gemfiles/jekyll_3.8.gemfile +7 -0
- data/jekyll-tagging-related_posts.gemspec +7 -7
- data/lib/jekyll/tagging/related_posts/version.rb +3 -1
- data/lib/jekyll/tagging/related_posts.rb +3 -1
- data/lib/jekyll-tagging-related_posts.rb +3 -1
- metadata +33 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 06d4a6839ca90be16df69996f59651fd52b9d67ff69049e28df4ec07a72d6e53
|
4
|
+
data.tar.gz: 991da361d11487d5e4de70f7be18ef3c01055c7dd80f37ac901c1ee94aabafab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e25effec966526a30ec1da85cfad920d6c86a3ba1b560b03acaa84c20037502a58d4c0c3c307ea2eeea66b45a46166481fe300a38461154076774894ace07c0
|
7
|
+
data.tar.gz: 1451f60da677418025ecc81a14b95482cb1130f8cd53f9f6cad6aa5e54a5e16f030abf77ea9a4bd70b8af112612b069c0b18324192da600590fbc59d8adf9903
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,14 +1,19 @@
|
|
1
1
|
language: ruby
|
2
2
|
cache: bundler
|
3
|
+
before_install: gem update bundler
|
3
4
|
rvm:
|
4
|
-
- 2.
|
5
|
-
- 2.
|
6
|
-
- 2.
|
7
|
-
- 2.3
|
8
|
-
|
5
|
+
- 2.3.8
|
6
|
+
- 2.4.6
|
7
|
+
- 2.5.5
|
8
|
+
- 2.6.3
|
9
|
+
# Put this in your .travis.yml
|
9
10
|
gemfile:
|
10
|
-
- gemfiles/jekyll_3.
|
11
|
-
- gemfiles/jekyll_3.
|
12
|
-
- gemfiles/jekyll_3.
|
13
|
-
- gemfiles/jekyll_3.gemfile
|
14
|
-
|
11
|
+
- gemfiles/jekyll_3.8.gemfile
|
12
|
+
- gemfiles/jekyll_3.7.gemfile
|
13
|
+
- gemfiles/jekyll_3.6.gemfile
|
14
|
+
- gemfiles/jekyll_3.5.gemfile
|
15
|
+
after_success:
|
16
|
+
- bundle exec codeclimate-test-reporter
|
17
|
+
addons:
|
18
|
+
code_climate:
|
19
|
+
repo_token: 03d64532821ff06fd0cf9ae57dacc81b2322ac37ed14c5cfbb90ffea40e9c7fb
|
data/Appraisals
CHANGED
@@ -1,15 +1,21 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# appraise "jekyll-4.0" do
|
4
|
+
# gem "jekyll", "4.0.0"
|
5
|
+
# end
|
6
|
+
|
7
|
+
appraise "jekyll-3.8" do
|
8
|
+
gem "jekyll", "3.8.0"
|
3
9
|
end
|
4
10
|
|
5
|
-
appraise "jekyll-3.
|
6
|
-
gem "jekyll", "3.
|
11
|
+
appraise "jekyll-3.7" do
|
12
|
+
gem "jekyll", "3.7.0"
|
7
13
|
end
|
8
14
|
|
9
|
-
appraise "jekyll-3.
|
10
|
-
gem "jekyll", "3.
|
15
|
+
appraise "jekyll-3.6" do
|
16
|
+
gem "jekyll", "3.6.0"
|
11
17
|
end
|
12
18
|
|
13
|
-
appraise "jekyll-3" do
|
14
|
-
gem "jekyll", "3.0
|
19
|
+
appraise "jekyll-3.5" do
|
20
|
+
gem "jekyll", "3.5.0"
|
15
21
|
end
|
data/README.md
CHANGED
@@ -4,16 +4,15 @@
|
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/jekyll-tagging-related_posts.svg)](https://badge.fury.io/rb/jekyll-tagging-related_posts)
|
5
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
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
7
|
|
9
8
|
Jekyll `related_posts` function based on tags (works on Jekyll3). It replaces original Jekyll's `related_posts` function to use tags to calculate relationships.
|
10
9
|
|
11
10
|
The calculation algorithm is based on [related\_posts-jekyll\_plugin](https://github.com/LawrenceWoodman/related_posts-jekyll_plugin) by [@LawrenceWoodman](https://github.com/LawrenceWoodman).
|
12
11
|
|
13
12
|
## Requirements
|
14
|
-
|
15
|
-
*
|
16
|
-
* [
|
13
|
+
|
14
|
+
* Ruby 2.3+
|
15
|
+
* [Jekyll](https://github.com/jekyll/jekyll) 3.5+
|
17
16
|
|
18
17
|
## Installation
|
19
18
|
|
@@ -37,7 +36,6 @@ Edit `_config.yml` to use the plug-in:
|
|
37
36
|
|
38
37
|
```yml
|
39
38
|
gems:
|
40
|
-
- jekyll/tagging
|
41
39
|
- jekyll-tagging-related_posts
|
42
40
|
```
|
43
41
|
|
@@ -1,4 +1,5 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
2
3
|
lib = File.expand_path('../lib', __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'jekyll/tagging/related_posts/version'
|
@@ -19,16 +20,15 @@ Gem::Specification.new do |spec|
|
|
19
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
21
|
spec.require_paths = ["lib"]
|
21
22
|
|
22
|
-
spec.required_ruby_version = ">= 2.
|
23
|
+
spec.required_ruby_version = ">= 2.3"
|
23
24
|
|
24
|
-
spec.add_runtime_dependency "jekyll", "
|
25
|
-
spec.add_runtime_dependency "jekyll-tagging", "~> 1.0.0"
|
25
|
+
spec.add_runtime_dependency "jekyll", ">= 3.5", "< 5.0"
|
26
26
|
|
27
27
|
spec.add_development_dependency "appraisal"
|
28
|
-
spec.add_development_dependency "bundler"
|
28
|
+
spec.add_development_dependency "bundler"
|
29
29
|
spec.add_development_dependency "byebug"
|
30
|
-
spec.add_development_dependency "codeclimate-test-reporter"
|
30
|
+
spec.add_development_dependency "codeclimate-test-reporter"
|
31
31
|
spec.add_development_dependency "minitest-reporters"
|
32
32
|
spec.add_development_dependency "minitest"
|
33
|
-
spec.add_development_dependency "rake"
|
33
|
+
spec.add_development_dependency "rake"
|
34
34
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Jekyll
|
2
4
|
module Tagging
|
3
5
|
module RelatedPosts
|
@@ -50,7 +52,7 @@ module Jekyll
|
|
50
52
|
else
|
51
53
|
b[0].date <=> a[0].date
|
52
54
|
end
|
53
|
-
end.collect { |post,
|
55
|
+
end.collect { |post, _freq| post }
|
54
56
|
end
|
55
57
|
|
56
58
|
def docs
|
metadata
CHANGED
@@ -1,43 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-tagging-related_posts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- toshimaru
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '3.0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
17
|
+
- - ">="
|
25
18
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
27
|
-
-
|
28
|
-
name: jekyll-tagging
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
19
|
+
version: '3.5'
|
20
|
+
- - "<"
|
32
21
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
22
|
+
version: '5.0'
|
34
23
|
type: :runtime
|
35
24
|
prerelease: false
|
36
25
|
version_requirements: !ruby/object:Gem::Requirement
|
37
26
|
requirements:
|
38
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.5'
|
30
|
+
- - "<"
|
39
31
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
32
|
+
version: '5.0'
|
41
33
|
- !ruby/object:Gem::Dependency
|
42
34
|
name: appraisal
|
43
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,16 +48,16 @@ dependencies:
|
|
56
48
|
name: bundler
|
57
49
|
requirement: !ruby/object:Gem::Requirement
|
58
50
|
requirements:
|
59
|
-
- - "
|
51
|
+
- - ">="
|
60
52
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
53
|
+
version: '0'
|
62
54
|
type: :development
|
63
55
|
prerelease: false
|
64
56
|
version_requirements: !ruby/object:Gem::Requirement
|
65
57
|
requirements:
|
66
|
-
- - "
|
58
|
+
- - ">="
|
67
59
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
60
|
+
version: '0'
|
69
61
|
- !ruby/object:Gem::Dependency
|
70
62
|
name: byebug
|
71
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,16 +76,16 @@ dependencies:
|
|
84
76
|
name: codeclimate-test-reporter
|
85
77
|
requirement: !ruby/object:Gem::Requirement
|
86
78
|
requirements:
|
87
|
-
- - "
|
79
|
+
- - ">="
|
88
80
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
81
|
+
version: '0'
|
90
82
|
type: :development
|
91
83
|
prerelease: false
|
92
84
|
version_requirements: !ruby/object:Gem::Requirement
|
93
85
|
requirements:
|
94
|
-
- - "
|
86
|
+
- - ">="
|
95
87
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
88
|
+
version: '0'
|
97
89
|
- !ruby/object:Gem::Dependency
|
98
90
|
name: minitest-reporters
|
99
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,16 +118,16 @@ dependencies:
|
|
126
118
|
name: rake
|
127
119
|
requirement: !ruby/object:Gem::Requirement
|
128
120
|
requirements:
|
129
|
-
- - "
|
121
|
+
- - ">="
|
130
122
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
123
|
+
version: '0'
|
132
124
|
type: :development
|
133
125
|
prerelease: false
|
134
126
|
version_requirements: !ruby/object:Gem::Requirement
|
135
127
|
requirements:
|
136
|
-
- - "
|
128
|
+
- - ">="
|
137
129
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
130
|
+
version: '0'
|
139
131
|
description: Jekyll `related_posts` function based on tags (works on Jekyll3). It
|
140
132
|
replaces original Jekyll's `related_posts` function to use tags to calculate relationships.
|
141
133
|
email:
|
@@ -157,6 +149,11 @@ files:
|
|
157
149
|
- gemfiles/jekyll_3.1.gemfile
|
158
150
|
- gemfiles/jekyll_3.2.gemfile
|
159
151
|
- gemfiles/jekyll_3.3.gemfile
|
152
|
+
- gemfiles/jekyll_3.4.gemfile
|
153
|
+
- gemfiles/jekyll_3.5.gemfile
|
154
|
+
- gemfiles/jekyll_3.6.gemfile
|
155
|
+
- gemfiles/jekyll_3.7.gemfile
|
156
|
+
- gemfiles/jekyll_3.8.gemfile
|
160
157
|
- gemfiles/jekyll_3.gemfile
|
161
158
|
- jekyll-tagging-related_posts.gemspec
|
162
159
|
- lib/jekyll-tagging-related_posts.rb
|
@@ -166,7 +163,7 @@ homepage: https://github.com/toshimaru/jekyll-tagging-related_posts
|
|
166
163
|
licenses:
|
167
164
|
- MIT
|
168
165
|
metadata: {}
|
169
|
-
post_install_message:
|
166
|
+
post_install_message:
|
170
167
|
rdoc_options: []
|
171
168
|
require_paths:
|
172
169
|
- lib
|
@@ -174,16 +171,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
174
171
|
requirements:
|
175
172
|
- - ">="
|
176
173
|
- !ruby/object:Gem::Version
|
177
|
-
version: '2.
|
174
|
+
version: '2.3'
|
178
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
176
|
requirements:
|
180
177
|
- - ">="
|
181
178
|
- !ruby/object:Gem::Version
|
182
179
|
version: '0'
|
183
180
|
requirements: []
|
184
|
-
|
185
|
-
|
186
|
-
signing_key:
|
181
|
+
rubygems_version: 3.3.7
|
182
|
+
signing_key:
|
187
183
|
specification_version: 4
|
188
184
|
summary: Jekyll `related_posts` function based on tags (works on Jekyll3)
|
189
185
|
test_files: []
|