google-cloud-language-v1 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa9b3392a6c79b5a1467f83355581382dbf1de2b85235425f7323687cb0f6c54
4
- data.tar.gz: 9499739748001e7af7d649ed3b377c4c98740725efddccca867e8055c6751f88
3
+ metadata.gz: 936aac178886abc68770d67019be866f942b4a1f16b624f5fd4880587be937b3
4
+ data.tar.gz: a2144fe05eb2ca589d005bf0638ca8215b68b4eb18d84bf9d42669b2bb2521df
5
5
  SHA512:
6
- metadata.gz: 369c5a657a3e4e4b312fb8c8bc85568e1a1332353bca99a3b01279f4f772db34b968df36f5b839a45a449de0eb267b81299f5490ada8cca4b38f2ba0fbe5d822
7
- data.tar.gz: d03a8dc9f2b7e479f1265a171ec59f5d308a0558c8cf65495b516358d3ce5950862150abbfe23967e0f42a0918811178f805822871cf9fa874643b8c75c3377e
6
+ metadata.gz: bb3e00d78bfbac81bf41d933d2177c2520d7d385544132b19495598d90e4a66ddbf0a25cc3960aaf56688e87efb9c496e5deda5055d16c00bf32905290dde919
7
+ data.tar.gz: 27c90d223a07b928aef8869c7340b4ca2214aec521e087edf68f3e592276d8ddc10d15a039037ac2c6e3421949ffd0d23f0f8873b0f18bf7a5f634b09653c46e
data/AUTHENTICATION.md CHANGED
@@ -27,7 +27,7 @@ export LANGUAGE_CREDENTIALS=path/to/keyfile.json
27
27
  ```ruby
28
28
  require "google/cloud/language/v1"
29
29
 
30
- client = Google::Cloud::Language::V1::LanguageService::Client.new
30
+ client = ::Google::Cloud::Language::V1::LanguageService::Client.new
31
31
  ```
32
32
 
33
33
  ## Credential Lookup
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
64
64
 
65
65
  The environment variables that google-cloud-language-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- {Google::Cloud::Language::V1::LanguageService::Credentials}):
67
+ {::Google::Cloud::Language::V1::LanguageService::Credentials}):
68
68
 
69
69
  1. `LANGUAGE_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  2. `LANGUAGE_KEYFILE` - Path to JSON file, or JSON contents
@@ -77,7 +77,7 @@ require "google/cloud/language/v1"
77
77
 
78
78
  ENV["LANGUAGE_CREDENTIALS"] = "path/to/keyfile.json"
79
79
 
80
- client = Google::Cloud::Language::V1::LanguageService::Client.new
80
+ client = ::Google::Cloud::Language::V1::LanguageService::Client.new
81
81
  ```
82
82
 
83
83
  ### Configuration
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
88
88
  ```ruby
89
89
  require "google/cloud/language/v1"
90
90
 
91
- client = Google::Cloud::Language::V1::LanguageService::Client.new do |config|
91
+ client = ::Google::Cloud::Language::V1::LanguageService::Client.new do |config|
92
92
  config.credentials = "path/to/keyfile.json"
93
93
  end
94
94
  ```
@@ -98,11 +98,11 @@ Or configured globally for all clients:
98
98
  ```ruby
99
99
  require "google/cloud/language/v1"
100
100
 
101
- Google::Cloud::Language::V1::LanguageService::Client.configure do |config|
101
+ ::Google::Cloud::Language::V1::LanguageService::Client.configure do |config|
102
102
  config.credentials = "path/to/keyfile.json"
103
103
  end
104
104
 
105
- client = Google::Cloud::Language::V1::LanguageService::Client.new
105
+ client = ::Google::Cloud::Language::V1::LanguageService::Client.new
106
106
  ```
107
107
 
108
108
  ### Cloud SDK
data/README.md CHANGED
@@ -25,7 +25,7 @@ In order to use this library, you first need to go through the following steps:
25
25
  ```ruby
26
26
  require "google/cloud/language/v1"
27
27
 
28
- client = Google::Cloud::Language::V1::LanguageService::Client.new
28
+ client = ::Google::Cloud::Language::V1::LanguageService::Client.new
29
29
  request = my_create_request
30
30
  response = client.analyze_sentiment request
31
31
  ```