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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9c65e6c863833efd152e0d35aaa37c037acb58f7
4
- data.tar.gz: 12717082338cc560bd89aa2fd86fb9635a3f0406
2
+ SHA256:
3
+ metadata.gz: 63b262e10f4f96fa77576e478f5ff90bc9120480ca2fc69530a4d95618935ca4
4
+ data.tar.gz: a633ba445d7db831df1a47ea38850fe7a1d3dd4bbe6e702716a1cd5802323419
5
5
  SHA512:
6
- metadata.gz: bd66c9cada05bcf53f0269474a5077d13cefdbd1e6dd6dea7d8ef7ac5e28344606062b224a32ccb26d8e3091c7e861610b8fc222e4d59e4a16fcbe82bdfba734
7
- data.tar.gz: bc444fe92792c8156b544dd8d180e64b096833bb545b51ab6e9b245d886ef437d1f1df859f3547400f11af4123174ab43383bbcaf314fa2d88e1d7f21ec730fd
6
+ metadata.gz: 1b48221da3348ac4ec3336579be020793922e69e796fdba7151edaddfbb92197a45f19345ecf95514e07d403789a2b1e41b577bbca2ff5a2df4f9f6f1fa8f433
7
+ data.tar.gz: ec82f23210ff6ddf176ca4c222497d7f0446b1f3c5fab3aff6eb4b066a51502007c0275ca949f5ee85c13d9f5b847532ce9599ba1249400aa46a29ddd8a8730a
data/Appraisals CHANGED
@@ -1,23 +1,9 @@
1
- appraise "jekyll-3.5" do
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
- appraise "jekyll-3.1" do
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
- appraise "jekyll-3" do
22
- gem "jekyll", "3.0.3"
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
@@ -1,3 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ gem "appraisal"
6
+ gem "bundler"
7
+ gem "minitest-reporters"
8
+ gem "minitest"
9
+ gem "pry"
10
+ gem "rake"
11
+ gem "simplecov"
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 toshi
3
+ Copyright (c) 2016-2022 Toshimaru
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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
- * Ruby 2.x
15
- * [Jekyll 3.x](https://github.com/jekyll/jekyll)
16
- * [pattex/jekyll-tagging](https://github.com/pattex/jekyll-tagging)
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
 
@@ -0,0 +1,14 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "bundler"
7
+ gem "minitest-reporters"
8
+ gem "minitest"
9
+ gem "pry"
10
+ gem "rake"
11
+ gem "simplecov"
12
+ gem "jekyll", "~> 3.9.0"
13
+
14
+ gemspec path: "../"
@@ -0,0 +1,14 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "bundler"
7
+ gem "minitest-reporters"
8
+ gem "minitest"
9
+ gem "pry"
10
+ gem "rake"
11
+ gem "simplecov"
12
+ gem "jekyll", "~> 4.0.0"
13
+
14
+ gemspec path: "../"
@@ -0,0 +1,14 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "bundler"
7
+ gem "minitest-reporters"
8
+ gem "minitest"
9
+ gem "pry"
10
+ gem "rake"
11
+ gem "simplecov"
12
+ gem "jekyll", "~> 4.1.0"
13
+
14
+ gemspec path: "../"
@@ -0,0 +1,14 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "bundler"
7
+ gem "minitest-reporters"
8
+ gem "minitest"
9
+ gem "pry"
10
+ gem "rake"
11
+ gem "simplecov"
12
+ gem "jekyll", "~> 4.2.0"
13
+
14
+ gemspec path: "../"
@@ -1,34 +1,33 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
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 = "jekyll-tagging-related_posts"
8
- spec.version = Jekyll::Tagging::RelatedPosts::VERSION
9
- spec.authors = ["toshimaru"]
10
- spec.email = ["me@toshimaru.net"]
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 = %q{Jekyll `related_posts` function based on tags (works on Jekyll3)}
13
- 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.}
14
- spec.homepage = "https://github.com/toshimaru/jekyll-tagging-related_posts"
15
- spec.license = "MIT"
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.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
- spec.bindir = "exe"
19
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
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.required_ruby_version = ">= 2.1"
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,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Jekyll
2
4
  module Tagging
3
5
  module RelatedPosts
4
- VERSION = '1.0.0'.freeze
6
+ VERSION = '1.2.0'
5
7
  end
6
8
  end
7
9
  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, freq| post }
55
+ end.collect { |post, _freq| post }
54
56
  end
55
57
 
56
58
  def docs
@@ -1,4 +1,6 @@
1
- # require `jekyll/document` first to overide `Jekyll::Document`
1
+ # frozen_string_literal: true
2
+
3
+ # requiring `jekyll/document` first to overide `Jekyll::Document`
2
4
  require "jekyll/document"
3
5
 
4
6
  require "jekyll/tagging/related_posts/version"
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.0.0
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: 2017-07-11 00:00:00.000000000 Z
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: '0'
48
- type: :development
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: '1.10'
69
- - !ruby/object:Gem::Dependency
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: '0'
125
- - !ruby/object:Gem::Dependency
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: '10.0'
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
- - bin/console
156
- - bin/setup
157
- - gemfiles/jekyll_3.1.gemfile
158
- - gemfiles/jekyll_3.2.gemfile
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
- post_install_message:
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: '2.1'
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
- rubyforge_project:
187
- rubygems_version: 2.6.11
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
@@ -1,12 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- /test/dest
11
-
12
- *.gemfile.lock
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
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "jekyll", "3.1.2"
6
-
7
- gemspec :path => "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "jekyll", "3.2.1"
6
-
7
- gemspec :path => "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "jekyll", "3.3.1"
6
-
7
- gemspec :path => "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "jekyll", "3.4.4"
6
-
7
- gemspec :path => "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "jekyll", "3.5.0"
6
-
7
- gemspec :path => "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "jekyll", "3.0.3"
6
-
7
- gemspec :path => "../"