jekyll-sitemap 0.5.0 → 0.5.1

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: 08aeee9c78b3fe0667703cae93abcd7209f782df
4
- data.tar.gz: 4d3ac34c308fb62c6f4ea9349a5e4515522cb574
3
+ metadata.gz: f026f8fe9011d1fd2618fb41b4a0001c703ee245
4
+ data.tar.gz: 04f2fc12e13e2c54c6b26a947c153cf61083380a
5
5
  SHA512:
6
- metadata.gz: 7f7dd3c72ce37330affc7ddb67f9ea1309198e5841cb54e9f77e11c1f65ae5af1ce091cb95f30483b9244509491320e248f69fb10b709913583d23a630c525ba
7
- data.tar.gz: f6d802042235cb1d8610967944c16262365eff95197b4ad9cb41b893441122cb6eecbcdf0e5f7cd4534c5f107d36446fea9aad98d0fb45d7b22c9b06992dc2a1
6
+ metadata.gz: cea99d7d379e464d831acab88c61e3dc7ab1e86a2636a0eba54ea758ca1f3573d5cf676ce2d65778e16f026d593cf65466d020d61c881517e3038645503430e1
7
+ data.tar.gz: 36f3207dfada71c6fbcb2e835969420cc24c0c689a30a3588c950f7e40d3af6eb12adfc8c888b0cf34f9a3372aa8a64b436f00068f9f0446c9d5c5b6946207c0
data/History.markdown CHANGED
@@ -1,5 +1,9 @@
1
1
  ## HEAD
2
2
 
3
+ ### Bug Fixes
4
+
5
+ * Explicitly set sitemap layout to `nil` to avoid warning (#32)
6
+
3
7
  ## 0.5.0 / 2014-06-02
4
8
 
5
9
  ### Minor Enhancements
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "jekyll-sitemap"
5
5
  spec.summary = "Automatically generate a sitemap.xml for your Jekyll site."
6
- spec.version = "0.5.0"
6
+ spec.version = "0.5.1"
7
7
  spec.authors = ["GitHub, Inc."]
8
8
  spec.email = "support@github.com"
9
9
  spec.homepage = "https://github.com/jekyll/jekyll-sitemap"
@@ -40,6 +40,7 @@ module Jekyll
40
40
  def sitemap_content
41
41
  site_map = Page.new(@site, File.dirname(__FILE__), "", "sitemap.xml")
42
42
  site_map.content = File.read(source_path)
43
+ site_map.data["layout"] = nil
43
44
  site_map.render(Hash.new, @site.site_payload)
44
45
  site_map.output
45
46
  end
@@ -0,0 +1,7 @@
1
+ defaults:
2
+ -
3
+ scope:
4
+ path: ""
5
+ type: page
6
+ values:
7
+ layout: some_default
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+ THIS IS MY LAYOUT
4
+ {{ content }}
@@ -14,6 +14,10 @@ describe(Jekyll::JekyllSitemap) do
14
14
  site.process
15
15
  end
16
16
 
17
+ it "has no layout" do
18
+ expect(contents).not_to match(/\ATHIS IS MY LAYOUT/)
19
+ end
20
+
17
21
  it "creates a sitemap.xml file" do
18
22
  expect(File.exist?(dest_dir("sitemap.xml"))).to be_truthy
19
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-sitemap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-02 00:00:00.000000000 Z
11
+ date: 2014-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -87,6 +87,8 @@ files:
87
87
  - script/cibuild
88
88
  - script/console
89
89
  - script/release
90
+ - spec/fixtures/_config.yml
91
+ - spec/fixtures/_layouts/some_default.html
90
92
  - spec/fixtures/_posts/2013-12-12-dec-the-second.md
91
93
  - spec/fixtures/_posts/2014-03-02-march-the-second.md
92
94
  - spec/fixtures/_posts/2014-03-04-march-the-fourth.md
@@ -124,6 +126,8 @@ signing_key:
124
126
  specification_version: 4
125
127
  summary: Automatically generate a sitemap.xml for your Jekyll site.
126
128
  test_files:
129
+ - spec/fixtures/_config.yml
130
+ - spec/fixtures/_layouts/some_default.html
127
131
  - spec/fixtures/_posts/2013-12-12-dec-the-second.md
128
132
  - spec/fixtures/_posts/2014-03-02-march-the-second.md
129
133
  - spec/fixtures/_posts/2014-03-04-march-the-fourth.md