jekyll-lunr-js-search-plusplus 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll_lunr_js_search/indexer.rb +3 -5
- data/lib/jekyll_lunr_js_search/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c56078135c93bf9dc5852c25f576013894c2b6ba
|
4
|
+
data.tar.gz: 4c9584eb6fd646b8c407f79d44fb5e8139fceba9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0567a65feb14a67a1f3aee5f0c68cb9158ba7deb161a4eb93327f4fa77f922603462649ec718ad7231d3fc35429761dedb721fe2822eb98599ee21fd232da21d
|
7
|
+
data.tar.gz: c8a5f056c64fa7182d7b77ca0ae63f7b5fedfa53696187534590b3d5a8b36419a963c2877bb03c5ce4c2cb047c85489c349d720d4bfd6fc096975db6bb4e7961
|
@@ -84,7 +84,9 @@ module Jekyll
|
|
84
84
|
# Create destination directory if it doesn't exist yet. Otherwise, we cannot write our file there.
|
85
85
|
Dir::mkdir(site.dest) unless File.directory?(site.dest)
|
86
86
|
|
87
|
-
File.
|
87
|
+
dest_path = File.join(File.expand_path("search", site.dest), @filename)
|
88
|
+
|
89
|
+
File.open(dest_path, "w") do |file|
|
88
90
|
file.write(JSON.pretty_generate(json))
|
89
91
|
end
|
90
92
|
|
@@ -94,10 +96,6 @@ module Jekyll
|
|
94
96
|
|
95
97
|
private
|
96
98
|
|
97
|
-
def search_json_location
|
98
|
-
File.join("search", @filename)
|
99
|
-
end
|
100
|
-
|
101
99
|
# load the stopwords file
|
102
100
|
def stopwords
|
103
101
|
@stopwords ||= IO.readlines(@stopwords_file).map { |l| l.strip }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-lunr-js-search-plusplus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|