Compare commits

...

4 Commits

Author SHA1 Message Date
Dan Milne
36b6a29039 Update change log 2024-10-31 08:16:11 +11:00
Dan Milne
89432b2dac Fix up the version constant 2024-10-31 08:06:09 +11:00
Dan Milne
ad48a4e335 Bump version 2023-09-18 11:05:45 +10:00
Dan Milne
fea1e2009a Sitemaps should be unique 2023-09-18 11:05:21 +10:00
4 changed files with 14 additions and 2 deletions

View File

@@ -1,5 +1,16 @@
## [Unreleased]
## [0.4.0] - 2024-10-31
- Ensure VERISON is available
## [0.3.0] - 2023-09-18
- Only return unique sitemaps.
## [0.2.0] - 2023-09-10
- Correctly handle multiple sitemaps + tests.
## [0.1.0] - 2023-09-09
- Initial release

View File

@@ -2,6 +2,7 @@
require "uri"
require "net/http"
require_relative "probot/version"
# https://moz.com/learn/seo/robotstxt
# https://stackoverflow.com/questions/45293419/order-of-directives-in-robots-txt-do-they-overwrite-each-other-or-complement-ea
@@ -108,6 +109,7 @@ class Probot
sitemap_uri = URI(data.value)
sitemap_uri = sitemap_uri.host.nil? ? URI.join(*[site, sitemap_uri].compact) : sitemap_uri
@sitemaps << sitemap_uri.to_s
@sitemaps.uniq!
next
end

View File

@@ -1,3 +1,3 @@
class Probot
VERSION = "0.2.0"
VERSION = "0.4.0"
end

View File

@@ -2,6 +2,5 @@
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "probot"
require "probot/version" # for testing the version number - otherwise the gemspec does it.
require "minitest/autorun"