jekyll-github-metadata 2.9.3 → 2.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-github-metadata.rb +2 -0
- data/lib/jekyll-github-metadata/client.rb +2 -0
- data/lib/jekyll-github-metadata/edit-link-tag.rb +2 -0
- data/lib/jekyll-github-metadata/metadata_drop.rb +2 -0
- data/lib/jekyll-github-metadata/pages.rb +2 -0
- data/lib/jekyll-github-metadata/repository.rb +2 -0
- data/lib/jekyll-github-metadata/repository_compat.rb +2 -0
- data/lib/jekyll-github-metadata/repository_finder.rb +2 -0
- data/lib/jekyll-github-metadata/sanitizer.rb +2 -0
- data/lib/jekyll-github-metadata/site_github_munger.rb +16 -5
- data/lib/jekyll-github-metadata/value.rb +2 -0
- data/lib/jekyll-github-metadata/version.rb +3 -1
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef3543499922abbc5abd53b23c0adb1fb8374286
|
4
|
+
data.tar.gz: bcfa24ec3833c456271b3fec85f2d221afb79dea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f44010f8c0794a577de8277656c9e0c990359e9b84aeedae95edba8acb01a9adc16a139a171fdf9abcea42b432cef21b03b74f5128c420b6ad65f3541ca95000
|
7
|
+
data.tar.gz: 83c76bdf1226e68ae7394acd3383afe0f1ad183771a0e464d74ad099d7813fe7f7ded80431af065da30232f5b153e22ed864ce6629142f98c0a705c7b44ba856
|
@@ -47,20 +47,31 @@ module Jekyll
|
|
47
47
|
site.config["baseurl"] = Value.new("baseurl", proc { |_c, r| r.baseurl })
|
48
48
|
end
|
49
49
|
|
50
|
+
def add_title_and_description_fallbacks!
|
51
|
+
if should_warn_about_site_name?
|
52
|
+
msg = "site.name is set in _config.yml, but many plugins and themes expect "
|
53
|
+
msg << "site.title to be used instead. To avoid potential inconsistency, "
|
54
|
+
msg << "Jekyll GitHub Metadata will not set site.title to the repository's name."
|
55
|
+
Jekyll::GitHubMetadata.log :warn, msg
|
56
|
+
else
|
57
|
+
site.config["title"] ||= Value.new("title", proc { |_c, r| r.name })
|
58
|
+
end
|
59
|
+
site.config["description"] ||= Value.new("description", proc { |_c, r| r.tagline })
|
60
|
+
end
|
61
|
+
|
50
62
|
# Set the baseurl only if it is `nil` or `/`
|
51
63
|
# Baseurls should never be "/". See http://bit.ly/2s1Srid
|
52
64
|
def should_set_baseurl?
|
53
65
|
site.config["baseurl"].nil? || site.config["baseurl"] == "/"
|
54
66
|
end
|
55
67
|
|
56
|
-
def add_title_and_description_fallbacks!
|
57
|
-
site.config["title"] ||= Value.new("title", proc { |_c, r| r.name })
|
58
|
-
site.config["description"] ||= Value.new("description", proc { |_c, r| r.tagline })
|
59
|
-
end
|
60
|
-
|
61
68
|
def should_add_url_fallbacks?
|
62
69
|
Jekyll.env == "production" || Pages.page_build?
|
63
70
|
end
|
71
|
+
|
72
|
+
def should_warn_about_site_name?
|
73
|
+
site.config["name"] && !site.config["title"]
|
74
|
+
end
|
64
75
|
end
|
65
76
|
end
|
66
77
|
end
|
metadata
CHANGED
@@ -1,49 +1,49 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-github-metadata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Parker Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: jekyll
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
- - "!="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 4.4.0
|
19
|
+
version: '3.1'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
30
|
-
- - "!="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 4.4.0
|
26
|
+
version: '3.1'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
28
|
+
name: octokit
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
33
|
+
version: '4.0'
|
34
|
+
- - "!="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 4.4.0
|
40
37
|
type: :runtime
|
41
38
|
prerelease: false
|
42
39
|
version_requirements: !ruby/object:Gem::Requirement
|
43
40
|
requirements:
|
44
41
|
- - "~>"
|
45
42
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
43
|
+
version: '4.0'
|
44
|
+
- - "!="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 4.4.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '1.5'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: netrc
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - ">="
|
@@ -73,7 +73,7 @@ dependencies:
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: rake
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - ">="
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '0.
|
109
|
+
version: '0.51'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '0.
|
116
|
+
version: '0.51'
|
117
117
|
description:
|
118
118
|
email:
|
119
119
|
- parkrmoore@gmail.com
|