jekyll-theme-open-project-helpers 1.0.0.rc2 → 1.0.0.rc3

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: 1873601e6d0ef3100f2c4a416db330fddce5c174
4
- data.tar.gz: d4e7adb6f37c155c248dc26371835147edbe74fb
3
+ metadata.gz: 498d821d48e4e9aede7a1fe07626609d0659e8cf
4
+ data.tar.gz: cead8af8a560cf3b42e99512f447fc1d722f581d
5
5
  SHA512:
6
- metadata.gz: c6645ee8d2a05b7462f8eb125652f150f5fadb05f0a53f50137cb06f2f595a331c6913ec948dccbb34731428acd850748239cd9b635d0e5b8b04ae0d40f9a2fa
7
- data.tar.gz: c8ebaf9a3f978c43e54a1c2e6d4384e5ef4d086e019aee491929392eafea1f5b61a783bbb2bd3952437fe400ba20ec40df14e15080eb882746b1d580f988be32
6
+ metadata.gz: 710d9a5d4561baa114daf48a3b75bc4b8e176826da9bf71da7602ad359bfe8af46c72ea1252f96aced9545d26291a515d3e7ad8250a8146c80b9002059c8e6de
7
+ data.tar.gz: 650f554f122170c80ad5af1d1bba922f8b3302600203e6dd04f5bb7db8852216b398f3b089d06e5aab65326a3201a20fa2ec2b15e974e4b830b26cedba93a9e8
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'jekyll-theme-open-project-helpers'
5
- s.version = '1.0.0.rc2'
5
+ s.version = '1.0.0.rc3'
6
6
  s.authors = ['Ribose Inc.']
7
7
  s.email = ['open.source@ribose.com']
8
8
 
@@ -27,7 +27,7 @@ class CollectionDocReader < Jekyll::DataReader
27
27
  return unless File.directory?(dir) && !@entry_filter.symlink?(dir)
28
28
 
29
29
  entries = Dir.chdir(dir) do
30
- Dir["*.{md,markdown,html}"] + Dir["*"].select { |fn| File.directory?(fn) }
30
+ Dir["*.{md,markdown,html,svg,png}"] + Dir["*"].select { |fn| File.directory?(fn) }
31
31
  end
32
32
 
33
33
  entries.each do |entry|
@@ -35,10 +35,21 @@ class CollectionDocReader < Jekyll::DataReader
35
35
 
36
36
  if File.directory?(path)
37
37
  read_project_subdir(path, collection, nested=true)
38
+
38
39
  elsif nested or (File.basename(entry, '.*') != 'index')
39
- doc = Jekyll::Document.new(path, :site => @site, :collection => collection)
40
- doc.read
41
- collection.docs << doc
40
+ ext = File.extname(path)
41
+ if ['.md', '.markdown', '.html'].include? ext
42
+ doc = Jekyll::Document.new(path, :site => @site, :collection => collection)
43
+ doc.read
44
+ collection.docs << doc
45
+ else
46
+ collection.files << Jekyll::StaticFile.new(
47
+ @site,
48
+ @site.source,
49
+ Pathname.new(File.dirname(path)).relative_path_from(Pathname.new(@site.source)).to_s,
50
+ File.basename(path),
51
+ collection)
52
+ end
42
53
  end
43
54
  end
44
55
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-open-project-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc2
4
+ version: 1.0.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.