related-blog-posts 0.1.9 → 0.2.2

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
  SHA256:
3
- metadata.gz: ab52eb74f1ca23c27a5064f01ffdc0cc508103383e6eb631cb7c8f9de3a2e441
4
- data.tar.gz: 78df1a7c6046f722bd1db1b59faade5e1b5f02dd18de814d6ebc2dba5ca46e0b
3
+ metadata.gz: 75ccb8e24a378ca2730e4bb3df440dffb9aef3715c60bbbfcc3046bf540c0cff
4
+ data.tar.gz: a25d2c1cbdd4055673a4a16228c1817197ad9ff748a28f7461927e604635cf0e
5
5
  SHA512:
6
- metadata.gz: d4d9da61d74fe5bc93e016ddc38601a90a750c8e192eb881db4dd86b47f35dac06cb67e57ae9895da462633f3d1faf7d0ea94556636cbbe15d6ac1794b075878
7
- data.tar.gz: b1a56119f322ff290a523a78e7bd52d73d9e93a9509a7c1531032a92bb4023f5103bd0469da89fbdecd6dba0ea836be89b0bdc7b63882947f584f178bc01b90f
6
+ metadata.gz: bf2e91ab4639fc92232c747c64b687d3b0c700e9eee06b337a0cbb31bb501e83c7b88a3a88d167c02d25333fb22eddcc20e12b59c2b6d6223833e4e963155808
7
+ data.tar.gz: '0161629f61842894c882a18c1196795dbba5adb7cda9ce23d6cc08dc3deec427eb3bcbe8f8dd60d8ae1f97db6931672880c45891f8f461167c8e7a0a179a8719'
@@ -164,4 +164,4 @@ Jekyll::Hooks.register :site, :pre_render do |site|
164
164
 
165
165
  Jekyll.logger.info("Replaceing Related Posts...")
166
166
  tfidf.build(site)
167
- end
167
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: related-blog-posts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manpreet singh
@@ -90,12 +90,7 @@ executables: []
90
90
  extensions: []
91
91
  extra_rdoc_files: []
92
92
  files:
93
- - ".gitignore"
94
- - Gemfile
95
- - LICENSE.txt
96
- - README.md
97
93
  - lib/jekyll-tfidf-related-posts.rb
98
- - related-blog-posts.gemspec
99
94
  homepage: https://github.com/ManpreetChoudhary/related-blog-posts
100
95
  licenses:
101
96
  - MIT
data/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- Gemfile.lock
2
- *.gem
data/Gemfile DELETED
@@ -1,8 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
3
-
4
- gem "jekyll"
5
-
6
- group :jekyll_plugins do
7
- gem "related-blog-posts"
8
- end
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2019 Sangsoo Nam
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md DELETED
@@ -1,39 +0,0 @@
1
- # jekyll-tfidf-related-posts
2
-
3
- [![Gem Version](https://badge.fury.io/rb/jekyll-tfidf-related-posts.svg)](https://rubygems.org/gems/jekyll-tfidf-related-posts)
4
- [![DUB](https://img.shields.io/dub/l/vibe-d.svg)](LICENSE.txt)
5
-
6
- [Jekyll](http://jekyllrb.com) plugin to show related posts based on the content, tags, and categories. The similarity is calculated using TF-IDF(term frequency-inverted document frequency). Since tags and categories are use-defined values, those are considered with higher weights than a content while calculating.
7
-
8
- ### How to install
9
-
10
- 1. Install the gem `jekyll-tfidf-related-posts`.
11
- ```
12
- $ gem install jekyll-tfidf-related-posts
13
- ```
14
- 2. Add `jekyll-tfidf-related-posts` plugin in `_config.xml`.
15
- ```yaml
16
- plugins:
17
- - jekyll-tfidf-related-posts
18
- ```
19
- 3. Run `jekyll build` or `jekyll serve`
20
-
21
-
22
- ### How to use
23
- This plugin calculates related posts and replaces `site.related_posts` containing recent 10 posts by default. So, you can render related posts by iterating `site.related_posts`.
24
-
25
- ```java
26
- {% for post in site.related_posts %}
27
- {% include related-post.html %}
28
- {% endfor %}
29
- ```
30
-
31
- > GitHub Pages supports only [these plugins](https://pages.github.com/versions/). For GitHub Pages, you need to generate your site locally and then push static files to GitHub Pages site.
32
-
33
- ### Configuration
34
-
35
- By default, there are 4 related posts. You can configure it in the `_config.yml`
36
-
37
- ```
38
- related_posts_count: 8
39
- ```
@@ -1,24 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "related-blog-posts"
7
- spec.version = "0.1.9"
8
- spec.authors = ["Manpreet singh"]
9
- spec.email = ["ms4110415@gmail.com"]
10
- spec.summary = %q{Jekyll plugin to show related posts based on the content, tags, and categories.}
11
- spec.description = %q{Jekyll plugin to show related posts based on the content, tags, and categories. The similarity is calculated using TF-IDF(term frequency-inverted document frequency). Since tags and categories are use-defined values, those are considered with higher weights than a content while calculating.}
12
- spec.homepage = "https://github.com/ManpreetChoudhary/related-blog-posts"
13
- spec.license = "MIT"
14
-
15
- spec.files = `git ls-files -z`.split("\x0")
16
- spec.require_paths = ["lib"]
17
-
18
- spec.add_dependency "jekyll", ">= 3.0"
19
- spec.add_dependency "stopwords-filter", "~> 0.4"
20
- spec.add_dependency "fast-stemmer", "~> 1.0"
21
- spec.add_dependency "pqueue", "~> 2.1"
22
- spec.add_dependency "nmatrix", "~> 0.2"
23
-
24
- end