jekyll-theme-open-project-helpers 1.0.0.pre2 → 1.0.0.rc1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3c6a39014d2d85e4e520677930e520fae71ef07
|
4
|
+
data.tar.gz: 3658a8a99b801534a0484ccd8583854f8ae9fee3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71cc3fa9136b7aa7b0e5f05995cfa007c0ddccf424fffba26a25e7bc27f6d5aaaa4c18c86edba2363742edfc6ca45045944a4384c3956ac766a194e6e3f356d5
|
7
|
+
data.tar.gz: ddbd8686065e9c95498b403a89a05a4ad61597f7d66303adeb3de1eb1734c91e7383def2e2bbd4e792a243091ba1951835a1957e63c705d639d05c2b9ef28c91
|
@@ -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.
|
5
|
+
s.version = '1.0.0.rc1'
|
6
6
|
s.authors = ['Ribose Inc.']
|
7
7
|
s.email = ['open.source@ribose.com']
|
8
8
|
|
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|spec|features)/!) }
|
14
14
|
|
15
|
-
s.add_runtime_dependency 'jekyll', '~> 3.8
|
16
|
-
s.add_runtime_dependency 'git'
|
15
|
+
s.add_runtime_dependency 'jekyll', '~> 3.8'
|
16
|
+
s.add_runtime_dependency 'git', '~> 1.4'
|
17
17
|
s.add_development_dependency 'rake', '~> 12.0'
|
18
18
|
s.add_development_dependency 'rubocop', '~> 0.50'
|
19
19
|
|
@@ -59,11 +59,21 @@ class OpenProjectReader < JekyllData::Reader
|
|
59
59
|
fetch_and_read_projects
|
60
60
|
else
|
61
61
|
fetch_and_read_docs
|
62
|
+
fetch_hub_logo
|
62
63
|
end
|
63
64
|
end
|
64
65
|
|
65
66
|
private
|
66
67
|
|
68
|
+
def fetch_hub_logo
|
69
|
+
if @site.config.key? 'parent_hub' and @site.config['parent_hub'].key? 'git_repo_url'
|
70
|
+
git_sparse_checkout(
|
71
|
+
File.join(@site.source, 'parent-hub'),
|
72
|
+
@site.config['parent_hub']['git_repo_url'],
|
73
|
+
['assets/', 'title.html'])
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
67
77
|
def fetch_and_read_projects
|
68
78
|
project_indexes = @site.collections['projects'].docs.select do |doc|
|
69
79
|
pieces = doc.id.split('/')
|
@@ -75,7 +85,7 @@ class OpenProjectReader < JekyllData::Reader
|
|
75
85
|
did_check_out = git_sparse_checkout(
|
76
86
|
project_path,
|
77
87
|
project['site']['git_repo_url'],
|
78
|
-
['
|
88
|
+
['assets/', '_posts/', '_software/', '_specs/'])
|
79
89
|
|
80
90
|
if did_check_out
|
81
91
|
CollectionDocReader.new(site).read(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.
|
4
|
+
version: 1.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.8
|
19
|
+
version: '3.8'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.8
|
26
|
+
version: '3.8'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: git
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.4'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.4'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|