From 2bccaa6aff9f42542c2ae4f0a0a189a79ae9a0af Mon Sep 17 00:00:00 2001 From: Ben Wheatley Date: Mon, 18 May 2020 00:16:24 +0100 Subject: [PATCH] Pin google-protobuf to v3.11.x, to fix CI CI message from `bundle install`: ``` google-protobuf-3.12.0-x86_64-linux requires ruby version >= 2.5, which is incompatible with the current version, ruby 2.4.6p354 ``` https://github.com/protocolbuffers/protobuf/pull/7453 --- fluent-plugin-gcloud-pubsub-custom.gemspec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fluent-plugin-gcloud-pubsub-custom.gemspec b/fluent-plugin-gcloud-pubsub-custom.gemspec index 8054374..9f23052 100644 --- a/fluent-plugin-gcloud-pubsub-custom.gemspec +++ b/fluent-plugin-gcloud-pubsub-custom.gemspec @@ -17,7 +17,11 @@ Gem::Specification.new do |gem| gem.require_paths = ["lib"] gem.add_runtime_dependency "fluentd", [">= 0.14.15", "< 2"] + gem.add_runtime_dependency "google-cloud-pubsub", "~> 0.30.0" + # google-protobuf does not support Ruby 2.4 since v3.12.0, which we test against in CI. + # https://github.com/protocolbuffers/protobuf/pull/7453 + gem.add_runtime_dependency "google-protobuf", "~> 3.11.4" gem.add_development_dependency "bundler" gem.add_development_dependency "rake"