jekyll-github-metadata 2.9.1 → 2.9.2

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: f30ae34c0ecef4f7a5ef2cb3669d9c1f9204ff17
4
- data.tar.gz: 7f81b7ca161a562b966012f6aae369ef2957e88c
3
+ metadata.gz: e47bbe02b9e87c1fdec0797a7dc59d33123c88fe
4
+ data.tar.gz: 35cf5334b592a1914ec74014127286b3d08e5574
5
5
  SHA512:
6
- metadata.gz: d898b20ea3034666929654dc6e1a437f29dbce86e5a18b14dc948024d60505c7a7b7c5dddaedd6bf91ae11b8c1f9fff2dc0e3a758e1f06998da6bd5c2c1d23f9
7
- data.tar.gz: e1a149c71cb64d2369e61490409518e291cdbabae217271b5c7f706144303b81f6457d3b76ca9e133455cd4d77cb68d82ac853581722b811bc9051cd417a59c5
6
+ metadata.gz: d224d5a1a0667ee15eedb5c4690d1c3f0f4115e801d56a20a0fe36508de246c5d2536644fd2dba58246ee67c48843d75ffe5e93a7c84be5974c10ed9b10958ee
7
+ data.tar.gz: f76d95a60d7d58a6a411c39c467a31140ee2be1d3fe45abee45598e9c68043e49be2d9c3c81a161285e8189532b19db475be3e60224cbfc73ef8f3d8f597d206
@@ -70,7 +70,7 @@ module Jekyll
70
70
 
71
71
  def repository
72
72
  @repository ||= GitHubMetadata::Repository.new(repository_finder.nwo).tap do |repo|
73
- Jekyll::GitHubMetadata.log :debug, "Generating for #{repo.nwo}"
73
+ log :debug, "Generating for #{repo.nwo}"
74
74
  end
75
75
  end
76
76
 
@@ -8,6 +8,16 @@ module Jekyll
8
8
 
9
9
  mutable true
10
10
 
11
+ # See https://github.com/jekyll/jekyll/pull/6338
12
+ alias_method :invoke_drop, :[]
13
+ def key?(key)
14
+ if self.class.mutable?
15
+ @mutations.key?(key)
16
+ else
17
+ !key.nil? && (respond_to?(key) || fallback_data.key?(key))
18
+ end
19
+ end
20
+
11
21
  def to_s
12
22
  require "json"
13
23
  JSON.pretty_generate to_h
@@ -30,7 +30,7 @@ module Jekyll
30
30
  when nil
31
31
  drop
32
32
  when Hash
33
- Jekyll::Utils.deep_merge_hashes(site.config["github"], drop)
33
+ Jekyll::Utils.deep_merge_hashes(drop, site.config["github"])
34
34
  else
35
35
  site.config["github"]
36
36
  end
@@ -66,5 +66,5 @@ module Jekyll
66
66
  end
67
67
 
68
68
  Jekyll::Hooks.register :site, :after_init do |site|
69
- Jekyll::GitHubMetadata::SiteGitHubMunger.new(site).munge! unless Jekyll.env == "test"
69
+ Jekyll::GitHubMetadata::SiteGitHubMunger.new(site).munge!
70
70
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module GitHubMetadata
3
- VERSION = "2.9.1".freeze
3
+ VERSION = "2.9.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-github-metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1
4
+ version: 2.9.2
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-08-28 00:00:00.000000000 Z
11
+ date: 2017-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit