lib/google/cloud/vision/v1p3beta1/image_annotator_client.rb in google-cloud-vision-0.33.0 vs lib/google/cloud/vision/v1p3beta1/image_annotator_client.rb in google-cloud-vision-0.33.1

- old
+ new

@@ -27,10 +27,11 @@ require "google/gax/operation" require "google/longrunning/operations_client" require "google/cloud/vision/v1p3beta1/image_annotator_pb" require "google/cloud/vision/v1p3beta1/credentials" +require "google/cloud/vision/version" module Google module Cloud module Vision module V1p3beta1 @@ -137,10 +138,10 @@ end if credentials.is_a?(Google::Auth::Credentials) updater_proc = credentials.updater_proc end - package_version = Gem.loaded_specs['google-cloud-vision'].version.version + package_version = Google::Cloud::Vision::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}"