You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rubyist knows to use Google Data Store API. Rubyist wants to learn Google Vision API and the samples use different Google Cloud API Client initialization. Confusion begins.
Issue
Initialization is inconsistent between these two samples. The issue may exist in other samples within the Ruby space.
Issue exists in the following locations:
appengine/datastore/app.rb
appengine/pubsub/app.rb
appengine/pubsub/spec/pubsub_spec.rb
bigquery/shakespeare.rb
datastore/sample.rb
logging/spec/sample_spec.rb
logging/sample.rb
pubsub/sample.rb
Possible Solution
Use the same initialization in all Ruby samples.
The text was updated successfully, but these errors were encountered:
Story
Rubyist knows to use Google Data Store API. Rubyist wants to learn Google Vision API and the samples use different Google Cloud API Client initialization. Confusion begins.
Issue
Initialization is inconsistent between these two samples. The issue may exist in other samples within the Ruby space.
DataStore uses
require "gcloud"
gcloud = Gcloud.new
datastore = gcloud.datastore
Vision uses
require "google/cloud"
gcloud = Google::Cloud.new
vision = gcloud.vision
Issue exists in the following locations:
appengine/datastore/app.rb
appengine/pubsub/app.rb
appengine/pubsub/spec/pubsub_spec.rb
bigquery/shakespeare.rb
datastore/sample.rb
logging/spec/sample_spec.rb
logging/sample.rb
pubsub/sample.rb
Possible Solution
Use the same initialization in all Ruby samples.
The text was updated successfully, but these errors were encountered: