jekyll-sitemap 0.6.2 → 0.6.3

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: f9880a5009a3aaeac34db6db65a1bef1495003cd
4
- data.tar.gz: e7fe8c7f186641a6e266573d1e2133d92cf7fce1
3
+ metadata.gz: b8404cca92ec1c9c3be35db7d6c28c5ec99267a3
4
+ data.tar.gz: 9f1afcf5fe3b94a29c89cda2d4a387d57c7aaa5f
5
5
  SHA512:
6
- metadata.gz: 77929b27a0c4aedd89c7cd09230c0e0239fb38604f725879b3556efe3ff08cb8df95c6b4b93ee6d3ec32018c9e3bd6a232efa900e915a2b7f07f782ba283aa32
7
- data.tar.gz: 15a9aba383b96a0151e09ecc1e692a5838401620f5be5b9f15db6fb5d8e2c842d60b30a66ce43a24bf4360b4be9ab4122cbdd742693479ac931e71b9b337b70a
6
+ metadata.gz: 9480487c055cc658c9765b01b0d4c51448943128ce4be9e10a60103d505d600d69b2b062df34ff2b1c43144f958781130b6cfcacba1056b631ba758cc28eb2a5
7
+ data.tar.gz: f526d084eafa64b35b79c1c56677a6e7d2fa5b5532f3e848af9cdcb4b2eeddde9875c961b764f1c809a4aea31a3f35dabec2bd6d0b13ca696b991f7bac6ac5c4
data/History.markdown CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.6.3 / 2014-11-11
2
+
3
+ ## Bug Fixes
4
+
5
+ * Be backwards-compatible when `Site#in_source_dir` and `Site#in_dest_dir` don't exist (#57)
6
+
1
7
  ## 0.6.2 / 2014-11-08
2
8
 
3
9
  ### Bug Fixes
@@ -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.6.2"
6
+ spec.version = "0.6.3"
7
7
  spec.authors = ["GitHub, Inc."]
8
8
  spec.email = "support@github.com"
9
9
  spec.homepage = "https://github.com/jekyll/jekyll-sitemap"
@@ -34,7 +34,11 @@ module Jekyll
34
34
 
35
35
  # Destination for sitemap.xml file within the site source directory
36
36
  def destination_path
37
- @site.in_dest_dir("sitemap.xml")
37
+ if @site.respond_to?(:in_dest_dir)
38
+ @site.in_dest_dir("sitemap.xml")
39
+ else
40
+ Jekyll.sanitized_path(@site.dest, "sitemap.xml")
41
+ end
38
42
  end
39
43
 
40
44
  # copy sitemap template from source to destination
@@ -53,7 +57,11 @@ module Jekyll
53
57
 
54
58
  # Checks if a sitemap already exists in the site source
55
59
  def sitemap_exists?
56
- File.exists? @site.in_source_dir("sitemap.xml")
60
+ if @site.respond_to?(:in_source_dir)
61
+ File.exists? @site.in_source_dir("sitemap.xml")
62
+ else
63
+ File.exists? Jekyll.sanitized_path(@site.source, "sitemap.xml")
64
+ end
57
65
  end
58
66
  end
59
67
  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.6.2
4
+ version: 0.6.3
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-11-08 00:00:00.000000000 Z
11
+ date: 2014-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll