-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bundler: support ruby 2.7 and 3.0 in gemspecs
Support gemspecs with `required_ruby_version` requirements matching 2.7 and 3.0. Also updated the other major versions to the latest available version to match stricted requirements. I'm not sure why we actually do this re-write from a requirement `>= 2.7.2` to `2.7.2`. Removing this logic seems to still work for some updates that previously failed but fail with others so I don't yet feel confident in re-writing this. Tested that this fix works for projects that require ruby 2.7+ but don't rely on bundler 2 gems: `bin/dry-run.rb bundler "HerbCSO/carstens-butler" --dir="/." --commit=331380d8f3e1b7d594405cb973d09f202c3ccfb6 --cache=files` For projects that rely on gems that requireme bundler 2 the updater now raises a `dependency_file_not_resolvable` error: `bin/dry-run.rb bundler sider/runners --commit=c272ab680b5bf2f1a4f0f268e154941c77085bdf` This should be fixed by upgrading bundler.
- Loading branch information
Showing
3 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "example" | ||
spec.version = "0.9.3" | ||
spec.summary = "Automated dependency management" | ||
spec.description = "Core logic for updating a GitHub repos dependencies" | ||
|
||
spec.author = "Dependabot" | ||
spec.email = "[email protected]" | ||
spec.homepage = "https://github.com/hmarr/example" | ||
spec.license = "MIT" | ||
|
||
spec.require_path = "lib" | ||
spec.files = Dir["CHANGELOG.md", "LICENSE.txt", "README.md", | ||
"lib/**/*", "helpers/**/*"] | ||
|
||
spec.required_ruby_version = ">= 3.0.0" | ||
spec.required_rubygems_version = ">= 2.6.11" | ||
|
||
spec.add_dependency 'business', '~> 1.0' | ||
end |