jekyll-readme-index 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-readme-index/generator.rb +2 -3
- data/lib/jekyll-readme-index/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52ab408c6a2b95ba07d24ce6f8db97e443ae3907
|
4
|
+
data.tar.gz: 609701bf73e69cb2b36eac10bcb7a8a3650bab60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0192d5f8eb7325c47db63be708ffa3f6184e27c0499c6c934f9bfe0667e62020e5b98f7292212197b4c083b2ef19bca44e9ca1b744d568b556455c1afbf1c16c'
|
7
|
+
data.tar.gz: 8346873c610d72b82b1c2bcb8db5776452dfa6b22e4978d2f0cca03d3d64e9abb5d045852cc4659bc4d65513e521acc96c35568b18dc3e15af26911411285a46
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module JekyllReadmeIndex
|
2
2
|
class Generator < Jekyll::Generator
|
3
3
|
README_REGEX = %r!^/readme(\.[^.]+)?$!i
|
4
|
-
INDEX_REGEX = %r!^/index
|
4
|
+
INDEX_REGEX = %r!^/($|index\.html?$)!i
|
5
5
|
|
6
6
|
attr_accessor :site
|
7
7
|
|
@@ -26,8 +26,7 @@ module JekyllReadmeIndex
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def index?
|
29
|
-
site.pages.any? { |
|
30
|
-
site.static_files.any? { |file| file.url =~ INDEX_REGEX }
|
29
|
+
(site.pages + site.static_files).any? { |file| file.url =~ INDEX_REGEX }
|
31
30
|
end
|
32
31
|
|
33
32
|
def page
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-readme-index
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Balter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.5.2
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: A Jekyll plugin to render a project's README as the site's index.
|