diff --git a/.rubocop.yml b/.rubocop.yml index ca24832..0c20198 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,5 @@ +require: rubocop-performance + AllCops: AllowSymlinksInCacheRootDirectory: true DisplayCopNames: true diff --git a/app/lib/cucumber_feed/feed_renderer.rb b/app/lib/cucumber_feed/feed_renderer.rb index b95104f..56415ff 100644 --- a/app/lib/cucumber_feed/feed_renderer.rb +++ b/app/lib/cucumber_feed/feed_renderer.rb @@ -135,7 +135,7 @@ def parse_url(href) unless url.absolute? local_url = url url = Ginseng::URI.parse(self.url) - if href.to_s =~ %r{^/} + if %r{^/}.match?(href.to_s) url.path = local_url.path else url.path = File.join(url.path, local_url.path) diff --git a/config/application.yaml b/config/application.yaml index 560f6f2..a76ef4b 100644 --- a/config/application.yaml +++ b/config/application.yaml @@ -1,5 +1,5 @@ package: - version: 1.3.15 + version: 1.3.16 url: https://github.com/pooza/cucumber-feed authors: - Tatsuya Koishi