lib/google/cloud/container/v1beta1/cluster_manager_client.rb in google-cloud-container-0.4.1 vs lib/google/cloud/container/v1beta1/cluster_manager_client.rb in google-cloud-container-0.4.2
- old
+ new
@@ -25,10 +25,11 @@
require "google/gax"
require "google/container/v1beta1/cluster_service_pb"
require "google/cloud/container/v1beta1/credentials"
+require "google/cloud/container/version"
module Google
module Cloud
module Container
module V1beta1
@@ -127,10 +128,10 @@
end
if credentials.is_a?(Google::Auth::Credentials)
updater_proc = credentials.updater_proc
end
- package_version = Gem.loaded_specs['google-cloud-container'].version.version
+ package_version = Google::Cloud::Container::VERSION
google_api_client = "gl-ruby/#{RUBY_VERSION}"
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
google_api_client << " gapic/#{package_version} gax/#{Google::Gax::VERSION}"
google_api_client << " grpc/#{GRPC::VERSION}"