Class: GithubFlowReadiness::Checks::BundlerVersion
- Defined in:
- lib/core/github_flow_readiness/checks.rb
Constant Summary collapse
- THRESHOLD =
Gem::Version.new("2.0.0")
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from GithubFlowReadiness::Checks::Base
Instance Method Details
#call ⇒ Object
82 83 84 85 86 87 88 |
# File 'lib/core/github_flow_readiness/checks.rb', line 82 def call version = service.lockfile_bundler_version return warn_result("Could not determine the Bundler version from `Gemfile.lock`.") unless version return pass("Bundler #{version} is modern enough for rollout.") if version >= THRESHOLD fail_result("Bundler #{version} is legacy. Upgrade the repo toolchain before adding the GitHub flow.") end |