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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '008208ae35cd51e5e4ee1b8c40a0e535dde1e57d'
4
- data.tar.gz: 44216b996b1d52b5caba4da3fefa912f237c1395
3
+ metadata.gz: 52ab408c6a2b95ba07d24ce6f8db97e443ae3907
4
+ data.tar.gz: 609701bf73e69cb2b36eac10bcb7a8a3650bab60
5
5
  SHA512:
6
- metadata.gz: 27e508b204ae0f5a908c3cae43c0d30858ee1a227649c526809c9700026d2fb53c14ef6f86ba5c24e5313fdb05551f152ecdb1ac76957087fd0ad045590e1912
7
- data.tar.gz: fb9d29f110d9ec8f791eb1f793135541426fe68dd173f5ac10ac29dfb77d24067005f94e6d0a29e8954437ac1154204839b23789e5ae89d915012f427a68bde8
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.html?$!i
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? { |page| page.url == "/" } ||
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
@@ -1,3 +1,3 @@
1
1
  module JekyllReadmeIndex
2
- VERSION = "0.0.2".freeze
2
+ VERSION = "0.0.3".freeze
3
3
  end
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.2
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-09-14 00:00:00.000000000 Z
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.6.6
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.