jekyll-lunr-js-search-plusplus 0.2.4 → 0.2.5
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 +2 -2
- data/lib/jekyll_lunr_js_search/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1144797647123f65248da17d9b18620a5b407026
|
4
|
+
data.tar.gz: 5c165f7634d17f988f50466913ed32b257724ecf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ff97e65c19d39f75ea3485433a896ea7cd7b19555c8584541773498808bf3abc43479b2e1fca656481c046284b28a6e4336bca5a81c5e6cda71f36478a49ea4
|
7
|
+
data.tar.gz: aaf274377d66491d314c365043b071a99ea33c5509ac0fa1fc9387e0babe085148cb0071f5e9c180ec2e7c9cd6a5b8e280dbb5805fbc49296f4f94043db21d9e
|
@@ -40,8 +40,8 @@ module Jekyll
|
|
40
40
|
search_json_location_source = File.expand_path("search/search.json", site.source)
|
41
41
|
search_json_location_dest = File.expand_path("search.json", site.dest)
|
42
42
|
|
43
|
-
if @dev_mode && File.exist?(
|
44
|
-
search_json = JSON.parse(File.open(
|
43
|
+
if @dev_mode && File.exist?(search_json_location_source)
|
44
|
+
search_json = JSON.parse(File.open(search_json_location_source).read)
|
45
45
|
if search_json["generation_time"] && Date.strptime(search_json["generation_time"], @generation_strftime).day == Time.now.day
|
46
46
|
puts "\nNot running indexer in dev mode since search.json exists within the last day...\n"
|
47
47
|
return
|