Skip to content

Commit 1114eca

Browse files
committed
fix: Add logger dependency to gemspec
The functions_framework gem requires the logger gem in `lib/functions_framework/cli.rb`. Under Ruby 3.4, this emits a warning: > logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0. > You can add logger to your Gemfile or gemspec to silence this warning. This commit adds the logger gem as a dependency to the gemspec which should silence the warning message. See-also: https://rubygems.org/gems/logger
1 parent 3ad9d44 commit 1114eca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

functions_framework.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ version = ::FunctionsFramework::VERSION
4646

4747
spec.required_ruby_version = ">= 3.1.0"
4848
spec.add_dependency "cloud_events", ">= 0.7.0", "< 2.a"
49+
spec.add_dependency "logger", "~> 1.7"
4950
spec.add_dependency "puma", ">= 4.3.0", "< 7.a"
5051
spec.add_dependency "rack", ">= 2.1", "< 4.a"
5152

0 commit comments

Comments
 (0)