jekyll-tagging-related_posts 1.0.0 → 1.1.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: 3f1a2d6fcca4d535040a9caf82ba5d245364a3f380dc150ab99b73757be83a12
4
+ data.tar.gz: 3b2e5122dd2d4d20b2f915409fcb73b6d48547c42439c1fde6bd526ce65c2cde
5
5
  SHA512:
6
- metadata.gz: bd66c9cada05bcf53f0269474a5077d13cefdbd1e6dd6dea7d8ef7ac5e28344606062b224a32ccb26d8e3091c7e861610b8fc222e4d59e4a16fcbe82bdfba734
7
- data.tar.gz: bc444fe92792c8156b544dd8d180e64b096833bb545b51ab6e9b245d886ef437d1f1df859f3547400f11af4123174ab43383bbcaf314fa2d88e1d7f21ec730fd
6
+ metadata.gz: 8893363c8fd3dce4462c590fac4e84646e155305ade9b462e31777fad08be9acfef0964890af35d1138d2f476d631c6aa0ba92c0bb5daf575dd35d0d9a3502ea
7
+ data.tar.gz: 1e7eb2b98fffe96c6bbed3ff8e3b1a4d1e2db6ce5aa5db37f6e7f4306ff98501c17d460fd9add7113d444602c5c7df05af2cf2be3346c0b8220a44ab1415751b
@@ -2,17 +2,16 @@ language: ruby
2
2
  cache: bundler
3
3
  before_install: gem update bundler
4
4
  rvm:
5
- - 2.1
6
- - 2.2
7
- - 2.3.1
8
- - 2.4.1
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:
11
+ - gemfiles/jekyll_3.8.gemfile
12
+ - gemfiles/jekyll_3.7.gemfile
13
+ - gemfiles/jekyll_3.6.gemfile
10
14
  - 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
15
  after_success:
17
16
  - bundle exec codeclimate-test-reporter
18
17
  addons:
data/Appraisals CHANGED
@@ -1,23 +1,21 @@
1
- appraise "jekyll-3.5" do
2
- gem "jekyll", "3.5.0"
3
- end
1
+ # frozen_string_literal: true
4
2
 
5
- appraise "jekyll-3.4" do
6
- gem "jekyll", "3.4.4"
7
- end
3
+ # appraise "jekyll-4.0" do
4
+ # gem "jekyll", "4.0.0"
5
+ # end
8
6
 
9
- appraise "jekyll-3.3" do
10
- gem "jekyll", "3.3.1"
7
+ appraise "jekyll-3.8" do
8
+ gem "jekyll", "3.8.0"
11
9
  end
12
10
 
13
- appraise "jekyll-3.2" do
14
- gem "jekyll", "3.2.1"
11
+ appraise "jekyll-3.7" do
12
+ gem "jekyll", "3.7.0"
15
13
  end
16
14
 
17
- appraise "jekyll-3.1" do
18
- gem "jekyll", "3.1.2"
15
+ appraise "jekyll-3.6" do
16
+ gem "jekyll", "3.6.0"
19
17
  end
20
18
 
21
- appraise "jekyll-3" do
22
- gem "jekyll", "3.0.3"
19
+ appraise "jekyll-3.5" do
20
+ gem "jekyll", "3.5.0"
23
21
  end
data/README.md CHANGED
@@ -4,15 +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)
13
+
14
+ * Ruby 2.3+
15
+ * [Jekyll](https://github.com/jekyll/jekyll) 3.5+
16
16
  * [pattex/jekyll-tagging](https://github.com/pattex/jekyll-tagging)
17
17
 
18
18
  ## Installation
@@ -4,4 +4,4 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "jekyll", "3.5.0"
6
6
 
7
- gemspec :path => "../"
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "jekyll", "3.6.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "jekyll", "3.7.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "jekyll", "3.8.0"
6
+
7
+ gemspec path: "../"
@@ -1,4 +1,5 @@
1
- # coding: utf-8
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,16 @@ 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.1"
23
+ spec.required_ruby_version = ">= 2.3"
23
24
 
24
- spec.add_runtime_dependency "jekyll", "~> 3.0"
25
+ spec.add_runtime_dependency "jekyll", ">= 3.5", "< 5.0"
25
26
  spec.add_runtime_dependency "jekyll-tagging", "~> 1.0"
26
27
 
27
28
  spec.add_development_dependency "appraisal"
28
- spec.add_development_dependency "bundler", "~> 1.10"
29
+ spec.add_development_dependency "bundler"
29
30
  spec.add_development_dependency "byebug"
30
- spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0"
31
+ spec.add_development_dependency "codeclimate-test-reporter"
31
32
  spec.add_development_dependency "minitest-reporters"
32
33
  spec.add_development_dependency "minitest"
33
- spec.add_development_dependency "rake", "~> 10.0"
34
+ spec.add_development_dependency "rake"
34
35
  end
@@ -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"
@@ -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,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.1.0'
5
7
  end
6
8
  end
7
9
  end
metadata CHANGED
@@ -1,29 +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.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - toshimaru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-11 00:00:00.000000000 Z
11
+ date: 2019-08-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
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: '3.5'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '3.5'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '3.0'
32
+ version: '5.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: jekyll-tagging
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -56,16 +62,16 @@ dependencies:
56
62
  name: bundler
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
- - - "~>"
65
+ - - ">="
60
66
  - !ruby/object:Gem::Version
61
- version: '1.10'
67
+ version: '0'
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
- - - "~>"
72
+ - - ">="
67
73
  - !ruby/object:Gem::Version
68
- version: '1.10'
74
+ version: '0'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: byebug
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -84,16 +90,16 @@ dependencies:
84
90
  name: codeclimate-test-reporter
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
- - - "~>"
93
+ - - ">="
88
94
  - !ruby/object:Gem::Version
89
- version: '1.0'
95
+ version: '0'
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
- - - "~>"
100
+ - - ">="
95
101
  - !ruby/object:Gem::Version
96
- version: '1.0'
102
+ version: '0'
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: minitest-reporters
99
105
  requirement: !ruby/object:Gem::Requirement
@@ -126,16 +132,16 @@ dependencies:
126
132
  name: rake
127
133
  requirement: !ruby/object:Gem::Requirement
128
134
  requirements:
129
- - - "~>"
135
+ - - ">="
130
136
  - !ruby/object:Gem::Version
131
- version: '10.0'
137
+ version: '0'
132
138
  type: :development
133
139
  prerelease: false
134
140
  version_requirements: !ruby/object:Gem::Requirement
135
141
  requirements:
136
- - - "~>"
142
+ - - ">="
137
143
  - !ruby/object:Gem::Version
138
- version: '10.0'
144
+ version: '0'
139
145
  description: Jekyll `related_posts` function based on tags (works on Jekyll3). It
140
146
  replaces original Jekyll's `related_posts` function to use tags to calculate relationships.
141
147
  email:
@@ -159,6 +165,9 @@ files:
159
165
  - gemfiles/jekyll_3.3.gemfile
160
166
  - gemfiles/jekyll_3.4.gemfile
161
167
  - gemfiles/jekyll_3.5.gemfile
168
+ - gemfiles/jekyll_3.6.gemfile
169
+ - gemfiles/jekyll_3.7.gemfile
170
+ - gemfiles/jekyll_3.8.gemfile
162
171
  - gemfiles/jekyll_3.gemfile
163
172
  - jekyll-tagging-related_posts.gemspec
164
173
  - lib/jekyll-tagging-related_posts.rb
@@ -176,15 +185,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
185
  requirements:
177
186
  - - ">="
178
187
  - !ruby/object:Gem::Version
179
- version: '2.1'
188
+ version: '2.3'
180
189
  required_rubygems_version: !ruby/object:Gem::Requirement
181
190
  requirements:
182
191
  - - ">="
183
192
  - !ruby/object:Gem::Version
184
193
  version: '0'
185
194
  requirements: []
186
- rubyforge_project:
187
- rubygems_version: 2.6.11
195
+ rubygems_version: 3.0.3
188
196
  signing_key:
189
197
  specification_version: 4
190
198
  summary: Jekyll `related_posts` function based on tags (works on Jekyll3)