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 +4 -4
- data/History.markdown +4 -0
- data/jekyll-sitemap.gemspec +1 -1
- data/lib/jekyll-sitemap.rb +1 -0
- data/spec/fixtures/_config.yml +7 -0
- data/spec/fixtures/_layouts/some_default.html +4 -0
- data/spec/jekyll-sitemap_spec.rb +4 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f026f8fe9011d1fd2618fb41b4a0001c703ee245
|
4
|
+
data.tar.gz: 04f2fc12e13e2c54c6b26a947c153cf61083380a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cea99d7d379e464d831acab88c61e3dc7ab1e86a2636a0eba54ea758ca1f3573d5cf676ce2d65778e16f026d593cf65466d020d61c881517e3038645503430e1
|
7
|
+
data.tar.gz: 36f3207dfada71c6fbcb2e835969420cc24c0c689a30a3588c950f7e40d3af6eb12adfc8c888b0cf34f9a3372aa8a64b436f00068f9f0446c9d5c5b6946207c0
|
data/History.markdown
CHANGED
data/jekyll-sitemap.gemspec
CHANGED
@@ -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.
|
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"
|
data/lib/jekyll-sitemap.rb
CHANGED
@@ -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
|
data/spec/jekyll-sitemap_spec.rb
CHANGED
@@ -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.
|
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-
|
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
|