Skip to content

Commit

Permalink
Specify the actual Ruby version we support
Browse files Browse the repository at this point in the history
We need to specify it both in the gemspec and in the standardrb config. Otherwise we use syntax features of Ruby 3.0 but we do not specify that our code actually would not load on the older Ruby version. And it is better to keep these two coordinated, so that standardrb alerts us if we use language features which our target Ruby version does not, in fact, support.
  • Loading branch information
julik committed Sep 3, 2024
1 parent cb04808 commit e8b4fc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby_version: 3.1
2 changes: 1 addition & 1 deletion gouda.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
spec.email = ["[email protected]", "[email protected]"]
spec.homepage = "https://github.com/cheddar-me/gouda"
spec.license = "MIT"
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
spec.require_paths = ["lib"]

spec.metadata["homepage_uri"] = spec.homepage
Expand Down

0 comments on commit e8b4fc2

Please sign in to comment.