related-blog-posts 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4fe08d1c9305468bd3829a045d16f99e3add257e205fb5965ec0bb92bc3c1d68
4
- data.tar.gz: 4f43107363b7c07b134a559201a1c1424ac1bff9407bb34bdd42656c92a71d0b
3
+ metadata.gz: 75ccb8e24a378ca2730e4bb3df440dffb9aef3715c60bbbfcc3046bf540c0cff
4
+ data.tar.gz: a25d2c1cbdd4055673a4a16228c1817197ad9ff748a28f7461927e604635cf0e
5
5
  SHA512:
6
- metadata.gz: 223535ed747ee4f6ced21c9fbef93086e470cfe32ec0536e8a29b50c53c6b6e36f237bf86e85443f7cb4c5ff556d6f34d05b5a8ec3196bf89bd13227edbcca42
7
- data.tar.gz: e57d0913448f4b9fb4f1d30f0305cd0086d8ff22af3081acc9840b86adc9f8b77f703af52b30d6fbbf466e6ab61b0409f0dc294b8109d00bb4cafd89dbe14042
6
+ metadata.gz: bf2e91ab4639fc92232c747c64b687d3b0c700e9eee06b337a0cbb31bb501e83c7b88a3a88d167c02d25333fb22eddcc20e12b59c2b6d6223833e4e963155808
7
+ data.tar.gz: '0161629f61842894c882a18c1196795dbba5adb7cda9ce23d6cc08dc3deec427eb3bcbe8f8dd60d8ae1f97db6931672880c45891f8f461167c8e7a0a179a8719'
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.2.1
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,25 +0,0 @@
1
- # coding: utf-8
2
-
3
- require File.expand_path("../lib/jekyll-tfidf-related-posts.rb", __FILE__)
4
-
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "related-blog-posts"
8
- spec.version = "0.2.1"
9
- spec.authors = ["Manpreet singh"]
10
- spec.email = ["ms4110415@gmail.com"]
11
- spec.summary = %q{Jekyll plugin to show related posts based on the content, tags, and categories.}
12
- 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.}
13
- spec.homepage = "https://github.com/ManpreetChoudhary/related-blog-posts"
14
- spec.license = "MIT"
15
-
16
- spec.files = `git ls-files -z`.split("\x0")
17
- spec.require_paths = ["lib"]
18
-
19
- spec.add_dependency "jekyll", ">= 3.0"
20
- spec.add_dependency "stopwords-filter", "~> 0.4"
21
- spec.add_dependency "fast-stemmer", "~> 1.0"
22
- spec.add_dependency "pqueue", "~> 2.1"
23
- spec.add_dependency "nmatrix", "~> 0.2"
24
-
25
- end