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: f58c86717fa999b18f1a2c8c23b56be0e336955a
4
- data.tar.gz: 4cb0f6d611b3e6c771142a9b72dbc2c9b4b9d932
3
+ metadata.gz: c3c6a39014d2d85e4e520677930e520fae71ef07
4
+ data.tar.gz: 3658a8a99b801534a0484ccd8583854f8ae9fee3
5
5
  SHA512:
6
- metadata.gz: 6ee5065a34d5a8eb8ac6bac65a29a93b3f903cd9d19daf57cf719a275a3bed47e67d50b510ad8e864561b6d6e6231699a13c627b6c6e962d56071d0d4d870005
7
- data.tar.gz: 9d1afec5254c10115ab3c9542c53431304eb5eba90d368234b3d300afb4fe2ec1a676b46acfe39627cb218034b107c096d6d433eb192870576249dd3a20ee6e2
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.pre2'
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.3'
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
- ['_includes/', '_posts/', '_software/', '_specs/'])
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.pre2
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-29 00:00:00.000000000 Z
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.3
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.3
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: '0'
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: '0'
40
+ version: '1.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement