lib/google/cloud/bigtable/v2/bigtable_client.rb in google-cloud-bigtable-0.3.1 vs lib/google/cloud/bigtable/v2/bigtable_client.rb in google-cloud-bigtable-0.4.0

- old
+ new

@@ -25,10 +25,11 @@ require "google/gax" require "google/bigtable/v2/bigtable_pb" require "google/cloud/bigtable/v2/credentials" +require "google/cloud/bigtable/version" module Google module Cloud module Bigtable module V2 @@ -142,10 +143,10 @@ end if credentials.is_a?(Google::Auth::Credentials) updater_proc = credentials.updater_proc end - package_version = Gem.loaded_specs['google-cloud-bigtable'].version.version + package_version = Google::Cloud::Bigtable::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}"