jekyll-tagging-related_posts 1.0.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Appraisals +6 -20
- data/Gemfile +8 -0
- data/LICENSE.txt +1 -1
- data/README.md +3 -5
- data/gemfiles/jekyll_3.9.gemfile +14 -0
- data/gemfiles/jekyll_4.0.gemfile +14 -0
- data/gemfiles/jekyll_4.1.gemfile +14 -0
- data/gemfiles/jekyll_4.2.gemfile +14 -0
- data/jekyll-tagging-related_posts.gemspec +26 -27
- 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 +22 -132
- data/.gitignore +0 -12
- data/.travis.yml +0 -20
- data/bin/console +0 -14
- data/bin/setup +0 -7
- data/gemfiles/jekyll_3.1.gemfile +0 -7
- data/gemfiles/jekyll_3.2.gemfile +0 -7
- data/gemfiles/jekyll_3.3.gemfile +0 -7
- data/gemfiles/jekyll_3.4.gemfile +0 -7
- data/gemfiles/jekyll_3.5.gemfile +0 -7
- data/gemfiles/jekyll_3.gemfile +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 63b262e10f4f96fa77576e478f5ff90bc9120480ca2fc69530a4d95618935ca4
|
4
|
+
data.tar.gz: a633ba445d7db831df1a47ea38850fe7a1d3dd4bbe6e702716a1cd5802323419
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b48221da3348ac4ec3336579be020793922e69e796fdba7151edaddfbb92197a45f19345ecf95514e07d403789a2b1e41b577bbca2ff5a2df4f9f6f1fa8f433
|
7
|
+
data.tar.gz: ec82f23210ff6ddf176ca4c222497d7f0446b1f3c5fab3aff6eb4b066a51502007c0275ca949f5ee85c13d9f5b847532ce9599ba1249400aa46a29ddd8a8730a
|
data/Appraisals
CHANGED
@@ -1,23 +1,9 @@
|
|
1
|
-
|
2
|
-
gem "jekyll", "3.5.0"
|
3
|
-
end
|
4
|
-
|
5
|
-
appraise "jekyll-3.4" do
|
6
|
-
gem "jekyll", "3.4.4"
|
7
|
-
end
|
8
|
-
|
9
|
-
appraise "jekyll-3.3" do
|
10
|
-
gem "jekyll", "3.3.1"
|
11
|
-
end
|
12
|
-
|
13
|
-
appraise "jekyll-3.2" do
|
14
|
-
gem "jekyll", "3.2.1"
|
15
|
-
end
|
1
|
+
# frozen_string_literal: true
|
16
2
|
|
17
|
-
|
18
|
-
gem "jekyll", "3.1.2"
|
19
|
-
end
|
3
|
+
SUPPORTED_JEKYLL_VERSIONS = %w[3.9 4.0 4.1 4.2].freeze
|
20
4
|
|
21
|
-
|
22
|
-
|
5
|
+
SUPPORTED_JEKYLL_VERSIONS.each do |version|
|
6
|
+
appraise "jekyll-#{version}" do
|
7
|
+
gem "jekyll", "~> #{version}.0"
|
8
|
+
end
|
23
9
|
end
|
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
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.6+
|
15
|
+
* [Jekyll](https://github.com/jekyll/jekyll) 3.9+
|
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,34 +1,33 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
require 'jekyll/tagging/related_posts/version'
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/jekyll/tagging/related_posts/version'
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.version
|
9
|
-
spec.authors
|
10
|
-
spec.email
|
6
|
+
spec.name = "jekyll-tagging-related_posts"
|
7
|
+
spec.version = Jekyll::Tagging::RelatedPosts::VERSION
|
8
|
+
spec.authors = ["toshimaru"]
|
9
|
+
spec.email = ["me@toshimaru.net"]
|
11
10
|
|
12
|
-
spec.summary
|
13
|
-
spec.description
|
14
|
-
spec.homepage
|
15
|
-
spec.license
|
11
|
+
spec.summary = %q{Jekyll `related_posts` function based on tags (works on Jekyll3)}
|
12
|
+
spec.description = %q{Jekyll `related_posts` function based on tags (works on Jekyll3). It replaces original Jekyll's `related_posts` function to use tags to calculate relationships.}
|
13
|
+
spec.homepage = "https://github.com/toshimaru/jekyll-tagging-related_posts"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = ">= 2.6.0"
|
16
16
|
|
17
|
-
spec.
|
18
|
-
spec.
|
19
|
-
spec.
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
19
|
+
spec.metadata["changelog_uri"] = "https://github.com/toshimaru/jekyll-tagging-related_posts/releases"
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
spec.files = Dir.chdir(__dir__) do
|
24
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
25
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
26
|
+
end
|
27
|
+
end
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
20
30
|
spec.require_paths = ["lib"]
|
21
31
|
|
22
|
-
spec.
|
23
|
-
|
24
|
-
spec.add_runtime_dependency "jekyll", "~> 3.0"
|
25
|
-
spec.add_runtime_dependency "jekyll-tagging", "~> 1.0"
|
26
|
-
|
27
|
-
spec.add_development_dependency "appraisal"
|
28
|
-
spec.add_development_dependency "bundler", "~> 1.10"
|
29
|
-
spec.add_development_dependency "byebug"
|
30
|
-
spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0"
|
31
|
-
spec.add_development_dependency "minitest-reporters"
|
32
|
-
spec.add_development_dependency "minitest"
|
33
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
+
spec.add_runtime_dependency "jekyll", ">= 3.9", "< 5.0"
|
34
33
|
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,141 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-tagging-related_posts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
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
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '3.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: jekyll-tagging
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: appraisal
|
43
15
|
requirement: !ruby/object:Gem::Requirement
|
44
16
|
requirements:
|
45
17
|
- - ">="
|
46
18
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
-
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: bundler
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '1.10'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
19
|
+
version: '3.9'
|
20
|
+
- - "<"
|
67
21
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
69
|
-
|
70
|
-
name: byebug
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: codeclimate-test-reporter
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '1.0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '1.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'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: minitest
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
22
|
+
version: '5.0'
|
23
|
+
type: :runtime
|
119
24
|
prerelease: false
|
120
25
|
version_requirements: !ruby/object:Gem::Requirement
|
121
26
|
requirements:
|
122
27
|
- - ">="
|
123
28
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
125
|
-
-
|
126
|
-
name: rake
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '10.0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
29
|
+
version: '3.9'
|
30
|
+
- - "<"
|
137
31
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
32
|
+
version: '5.0'
|
139
33
|
description: Jekyll `related_posts` function based on tags (works on Jekyll3). It
|
140
34
|
replaces original Jekyll's `related_posts` function to use tags to calculate relationships.
|
141
35
|
email:
|
@@ -144,22 +38,16 @@ executables: []
|
|
144
38
|
extensions: []
|
145
39
|
extra_rdoc_files: []
|
146
40
|
files:
|
147
|
-
- ".gitignore"
|
148
|
-
- ".travis.yml"
|
149
41
|
- Appraisals
|
150
42
|
- CHANGELOG.md
|
151
43
|
- Gemfile
|
152
44
|
- LICENSE.txt
|
153
45
|
- README.md
|
154
46
|
- Rakefile
|
155
|
-
-
|
156
|
-
-
|
157
|
-
- gemfiles/
|
158
|
-
- gemfiles/
|
159
|
-
- gemfiles/jekyll_3.3.gemfile
|
160
|
-
- gemfiles/jekyll_3.4.gemfile
|
161
|
-
- gemfiles/jekyll_3.5.gemfile
|
162
|
-
- gemfiles/jekyll_3.gemfile
|
47
|
+
- gemfiles/jekyll_3.9.gemfile
|
48
|
+
- gemfiles/jekyll_4.0.gemfile
|
49
|
+
- gemfiles/jekyll_4.1.gemfile
|
50
|
+
- gemfiles/jekyll_4.2.gemfile
|
163
51
|
- jekyll-tagging-related_posts.gemspec
|
164
52
|
- lib/jekyll-tagging-related_posts.rb
|
165
53
|
- lib/jekyll/tagging/related_posts.rb
|
@@ -167,8 +55,11 @@ files:
|
|
167
55
|
homepage: https://github.com/toshimaru/jekyll-tagging-related_posts
|
168
56
|
licenses:
|
169
57
|
- MIT
|
170
|
-
metadata:
|
171
|
-
|
58
|
+
metadata:
|
59
|
+
homepage_uri: https://github.com/toshimaru/jekyll-tagging-related_posts
|
60
|
+
source_code_uri: https://github.com/toshimaru/jekyll-tagging-related_posts
|
61
|
+
changelog_uri: https://github.com/toshimaru/jekyll-tagging-related_posts/releases
|
62
|
+
post_install_message:
|
172
63
|
rdoc_options: []
|
173
64
|
require_paths:
|
174
65
|
- lib
|
@@ -176,16 +67,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
67
|
requirements:
|
177
68
|
- - ">="
|
178
69
|
- !ruby/object:Gem::Version
|
179
|
-
version:
|
70
|
+
version: 2.6.0
|
180
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
72
|
requirements:
|
182
73
|
- - ">="
|
183
74
|
- !ruby/object:Gem::Version
|
184
75
|
version: '0'
|
185
76
|
requirements: []
|
186
|
-
|
187
|
-
|
188
|
-
signing_key:
|
77
|
+
rubygems_version: 3.3.7
|
78
|
+
signing_key:
|
189
79
|
specification_version: 4
|
190
80
|
summary: Jekyll `related_posts` function based on tags (works on Jekyll3)
|
191
81
|
test_files: []
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
before_install: gem update bundler
|
4
|
-
rvm:
|
5
|
-
- 2.1
|
6
|
-
- 2.2
|
7
|
-
- 2.3.1
|
8
|
-
- 2.4.1
|
9
|
-
gemfile:
|
10
|
-
- gemfiles/jekyll_3.5.gemfile
|
11
|
-
- gemfiles/jekyll_3.4.gemfile
|
12
|
-
- gemfiles/jekyll_3.3.gemfile
|
13
|
-
- gemfiles/jekyll_3.2.gemfile
|
14
|
-
- gemfiles/jekyll_3.1.gemfile
|
15
|
-
- gemfiles/jekyll_3.gemfile
|
16
|
-
after_success:
|
17
|
-
- bundle exec codeclimate-test-reporter
|
18
|
-
addons:
|
19
|
-
code_climate:
|
20
|
-
repo_token: 03d64532821ff06fd0cf9ae57dacc81b2322ac37ed14c5cfbb90ffea40e9c7fb
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "jekyll-tagging-related_posts"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|
data/bin/setup
DELETED
data/gemfiles/jekyll_3.1.gemfile
DELETED
data/gemfiles/jekyll_3.2.gemfile
DELETED
data/gemfiles/jekyll_3.3.gemfile
DELETED
data/gemfiles/jekyll_3.4.gemfile
DELETED
data/gemfiles/jekyll_3.5.gemfile
DELETED