Skip to content

Commit 0f93907

Browse files
committed
chore(deps): target Ruby 2.4
1 parent f13c1b7 commit 0f93907

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ inherit_gem:
66
rubocop-jekyll: .rubocop.yml
77

88
AllCops:
9-
TargetRubyVersion: 2.3
9+
TargetRubyVersion: 2.4
1010
Exclude:
1111
- vendor/**/*

jekyll-redirect-from.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
2222
spec.test_files = spec.files.grep(%r!^(test|spec|features)/!)
2323
spec.require_paths = ["lib"]
2424

25-
spec.required_ruby_version = ">= 2.3.0"
25+
spec.required_ruby_version = ">= 2.4.0"
2626

2727
spec.add_runtime_dependency "jekyll", ">= 3.3", "< 5.0"
2828

lib/jekyll-redirect-from/redirect_page.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def set_paths(from, to)
4949
"permalink" => from,
5050
"redirect" => {
5151
"from" => from,
52-
"to" => to =~ %r!^https?://! ? to : absolute_url(to),
52+
"to" => %r!^https?://!.match?(to) ? to : absolute_url(to),
5353
}
5454
)
5555
end

0 commit comments

Comments
 (0)