jekyll-tfidf-related-posts 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: d3cfeeebb0a49a4e45daf9005cf81a424ff876d0
4
- data.tar.gz: 174cc25e49c5da1c2dc4a711f7946c16d749af47
3
+ metadata.gz: e22585332c67bf3824430969526e5c7324e0f3b8
4
+ data.tar.gz: ef15a90f780eac2d4acc0408e976a14b57dd2d19
5
5
  SHA512:
6
- metadata.gz: 4ed73df8285c8705371d9bae38997b00884632d4627bed20183ef7d26a971ccf851441ee2367aa7828f43b72c807ff42eda2d2d3f22036698b0576c7fbfde5f1
7
- data.tar.gz: 3d7113697a27a30e3ce662fab0b65385f66386d431ca718b4f757546ad2207bb5cd3d8fa03f32ba1a40b961ba142c486c929460ecedb7ba66c5111703fb3ed2c
6
+ metadata.gz: b9750819c804abf8ba2801eaea0b3fc1ccc16267a10a178c89441406e505f07a8de54fdcdbd7a29d958818c85724f8ee23d9444d6387938e3236f81cde5bf2af
7
+ data.tar.gz: 4585d8e50534f96a33a5d54c02ff07c6bdeaaa60918ace5c13e2ef27bbe86204965844fae67d663ee947c6d8700bc883fe5fc5771c2918cdddfe1abc7e76af1e
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "jekyll-tfidf-related-posts"
7
- spec.version = "0.1.2"
7
+ spec.version = "0.1.3"
8
8
  spec.authors = ["Sangsoo Nam"]
9
9
  spec.email = ["sangsoo.ted@gmail.com"]
10
10
  spec.summary = %q{Jekyll plugin to show related posts based on the content, tags, and categories.}
@@ -34,7 +34,7 @@ module Jekyll
34
34
  related = build_related_docs_with_score(site.config['related_posts_count'] || 4)
35
35
 
36
36
  @docs.each do |doc|
37
- doc[:post].data['related_posts'] = related[doc].map { |x| x[:post] }
37
+ doc[:post].instance_variable_set(:@related_posts,related[doc].map { |x| x[:post] })
38
38
  end
39
39
  end
40
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-tfidf-related-posts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sangsoo Nam