jekyll-sitemap 0.8.1 → 0.9.0

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: bbd83b460e4d33dd73021c31e3f8fa37d22aca7a
4
- data.tar.gz: a49f5dcd79358e134a530dadb29ccee683f66960
3
+ metadata.gz: 97d257da0dc97c587c0e9c08b979835bb933f12f
4
+ data.tar.gz: 0a9f1d08dd96afd69e372f2230e812e81f34c1a9
5
5
  SHA512:
6
- metadata.gz: b859857ceda6fde59bd558cbb15f4f29e6340caa3a2ff1ee47f60fe4678dfafffa988bfedec4b2cde4a99e0f23972111174cd24902478b3add82117dadf50c1c
7
- data.tar.gz: 8456e32b951ce0735cfeee995b215bab90c81e2fbed109d8dbd40dff54cedd5a2c88883557ad30a9891b8a51c952b181a73fceeccb4256c92bf9b287c1ceab3a
6
+ metadata.gz: 6d3a4d6e03e2536ef04b33794def33fee2eb870f7025855f2f2f74a3561788a97396d37a612a9d53622d7bb02a4d9f97c1fac2b4d908e74c64b83fba5df3f477
7
+ data.tar.gz: 529d0c282a5d0f5f1edb9c0f66ef356735b2e3e926b9e01266683944c2ca23358a92b93f734b60acd03d55eb4af5982598424e3228e41053dcd6a2909e4d03fc
data/.travis.yml CHANGED
@@ -1,9 +1,23 @@
1
1
  language: ruby
2
- rvm:
3
- - 2.1
4
- - 2.0.0
5
- - 1.9.3
6
2
  before_script: bundle update
7
3
  script: "script/cibuild"
8
4
  sudo: false
9
5
  cache: bundler
6
+
7
+ matrix:
8
+ include:
9
+ - # GitHub Pages
10
+ rvm: 2.1.1
11
+ env: GH_PAGES=true
12
+ - # Ruby 1.9
13
+ rvm: 1.9
14
+ env: JEKYLL_VERSION=2.0
15
+
16
+ rvm:
17
+ - 2.2
18
+ - 2.1
19
+ - 2.0
20
+ env:
21
+ - ""
22
+ - JEKYLL_VERSION=3.0.0.beta8
23
+ - JEKYLL_VERSION=2.0
data/Gemfile CHANGED
@@ -1,3 +1,8 @@
1
1
  source "https://rubygems.org"
2
-
3
2
  gemspec
3
+
4
+ if ENV["GH_PAGES"]
5
+ gem "github-pages"
6
+ elsif ENV["JEKYLL_VERSION"]
7
+ gem "jekyll", "~> #{ENV["JEKYLL_VERSION"]}"
8
+ end
data/History.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.9.0 / 2015-09-21
2
+
3
+ * Test against Jekyll 2, 3, and the GitHub Pages version. (#83)
4
+
1
5
  ## 0.8.1 / 2015-03-11
2
6
 
3
7
  * Do not assume all pages have changed (#35)
@@ -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.8.1"
6
+ spec.version = "0.9.0"
7
7
  spec.authors = ["GitHub, Inc."]
8
8
  spec.email = "support@github.com"
9
9
  spec.homepage = "https://github.com/jekyll/jekyll-sitemap"
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
15
  spec.require_paths = ["lib"]
16
16
 
17
- spec.add_development_dependency "jekyll", "~> 2.0"
17
+ spec.add_development_dependency "jekyll", ">= 2.0"
18
18
  spec.add_development_dependency "jekyll-last-modified-at", "0.3.4"
19
19
  spec.add_development_dependency "rspec", "~> 3.0"
20
20
  spec.add_development_dependency "rake"
data/lib/sitemap.xml CHANGED
@@ -19,7 +19,7 @@
19
19
  {% endif %}
20
20
  </url>
21
21
  {% endunless %}{% endfor %}
22
- {% for collection in site.collections %}{% unless collection.last.output == false %}
22
+ {% for collection in site.collections %}{% unless collection.last.output == false or collection.output == false %}
23
23
  {% for doc in collection.last.docs %}{% unless doc.sitemap == false %}
24
24
  <url>
25
25
  <loc>{{ doc.url | replace:'/index.html','/' | prepend: site_url }}</loc>
@@ -28,6 +28,14 @@
28
28
  {% endif %}
29
29
  </url>
30
30
  {% endunless %}{% endfor %}
31
+ {% for doc in collection.docs %}{% unless doc.sitemap == false %}
32
+ <url>
33
+ <loc>{{ doc.url | replace:'/index.html','/' | prepend: site_url }}</loc>
34
+ {% if doc.last_modified_at %}
35
+ <lastmod>{{ doc.last_modified_at | date_to_xmlschema }}</lastmod>
36
+ {% endif %}
37
+ </url>
38
+ {% endunless %}{% endfor %}
31
39
  {% endunless %}{% endfor %}
32
40
  {% for file in site.html_files %}
33
41
  <url>
data/script/cibuild CHANGED
@@ -1,4 +1,5 @@
1
1
  #! /bin/bash
2
+ set -e
2
3
 
3
4
  bundle exec rspec
4
5
  bundle exec rspec spec/test_jekyll-last-modified-at.rb
data/script/release CHANGED
@@ -3,40 +3,5 @@
3
3
 
4
4
  set -e
5
5
 
6
- # Make sure we're in the project root.
7
-
8
- cd $(dirname "$0")/..
9
-
10
- # Make sure the darn thing works
11
-
12
- bundle update
13
-
14
- # Build a new gem archive.
15
-
16
- rm -rf jekyll-sitemap-*.gem
17
- gem build -q jekyll-sitemap.gemspec
18
-
19
- # Make sure we're on the master branch.
20
-
21
- (git branch | grep -q '* master') || {
22
- echo "Only release from the master branch."
23
- exit 1
24
- }
25
-
26
- # Figure out what version we're releasing.
27
-
28
- tag=v`ls jekyll-sitemap-*.gem | sed 's/^jekyll-sitemap-\(.*\)\.gem$/\1/'`
29
-
30
- # Make sure we haven't released this version before.
31
-
32
- git fetch -t origin
33
-
34
- (git tag -l | grep -q "$tag") && {
35
- echo "Whoops, there's already a '${tag}' tag."
36
- exit 1
37
- }
38
-
39
- # Tag it and bag it.
40
-
41
- gem push jekyll-sitemap-*.gem && git tag "$tag" &&
42
- git push origin master && git push origin "$tag"
6
+ script/cibuild
7
+ bundle exec rake release
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-sitemap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-11 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  requirements: []
145
145
  rubyforge_project:
146
- rubygems_version: 2.2.2
146
+ rubygems_version: 2.2.3
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Automatically generate a sitemap.xml for your Jekyll site.