mirror of
https://github.com/dkam/probot.git
synced 2025-12-28 09:14:53 +00:00
Compare commits
4 Commits
v0.2.0
...
36b6a29039
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
36b6a29039 | ||
|
|
89432b2dac | ||
|
|
ad48a4e335 | ||
|
|
fea1e2009a |
11
CHANGELOG.md
11
CHANGELOG.md
@@ -1,5 +1,16 @@
|
|||||||
## [Unreleased]
|
## [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
|
## [0.1.0] - 2023-09-09
|
||||||
|
|
||||||
- Initial release
|
- Initial release
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
require "uri"
|
require "uri"
|
||||||
require "net/http"
|
require "net/http"
|
||||||
|
require_relative "probot/version"
|
||||||
|
|
||||||
# https://moz.com/learn/seo/robotstxt
|
# 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
|
# 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 = URI(data.value)
|
||||||
sitemap_uri = sitemap_uri.host.nil? ? URI.join(*[site, sitemap_uri].compact) : sitemap_uri
|
sitemap_uri = sitemap_uri.host.nil? ? URI.join(*[site, sitemap_uri].compact) : sitemap_uri
|
||||||
@sitemaps << sitemap_uri.to_s
|
@sitemaps << sitemap_uri.to_s
|
||||||
|
@sitemaps.uniq!
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
class Probot
|
class Probot
|
||||||
VERSION = "0.2.0"
|
VERSION = "0.4.0"
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2,6 +2,5 @@
|
|||||||
|
|
||||||
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
|
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
|
||||||
require "probot"
|
require "probot"
|
||||||
require "probot/version" # for testing the version number - otherwise the gemspec does it.
|
|
||||||
|
|
||||||
require "minitest/autorun"
|
require "minitest/autorun"
|
||||||
|
|||||||
Reference in New Issue
Block a user