Skip to content

Commit

Permalink
Relax Ruby requirement to allow 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson committed Jul 11, 2024
1 parent e336b16 commit b05d985
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "head"]
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "head"]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
NewCops: enable
TargetRubyVersion: 3.0
TargetRubyVersion: 2.7
Exclude:
- "tmp/**/*"
- "vendor/**/*"
Expand Down
2 changes: 1 addition & 1 deletion bundle_update_interactive.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
spec.summary = "Adds a update-interactive command to Bundler"
spec.homepage = "https://github.com/mattbrictson/bundle_update_interactive"
spec.license = "MIT"
spec.required_ruby_version = ">= 3.0" # TODO: relax this
spec.required_ruby_version = ">= 2.7"

spec.metadata = {
"bug_tracker_uri" => "https://github.com/mattbrictson/bundle_update_interactive/issues",
Expand Down
6 changes: 3 additions & 3 deletions lib/bundle_update_interactive/changelog_locator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
require "faraday"
require "json"

GITHUB_PATTERN = %r{^(?:https?://)?github\.com/([^/]+/[^/]+)(?:\.git)?/?}
GITHUB_PATTERN = %r{^(?:https?://)?github\.com/([^/]+/[^/]+)(?:\.git)?/?}.freeze
URI_KEYS = %w[source_code_uri homepage_uri bug_tracker_uri wiki_uri].freeze
FILE_PATTERN = /(?:changelog|changes|history|news|release)/
EXT_PATTERN = /(?:md|txt|rdoc)/
FILE_PATTERN = /(?:changelog|changes|history|news|release)/.freeze
EXT_PATTERN = /(?:md|txt|rdoc)/.freeze

module BundleUpdateInteractive
class ChangelogLocator
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
require "bundle_update_interactive"

require "minitest/autorun"
Dir[File.expand_path("support/**/*.rb", __dir__)].each { |rb| require(rb) }
Dir[File.expand_path("support/**/*.rb", __dir__)].sort.each { |rb| require(rb) }

0 comments on commit b05d985

Please sign in to comment.