google-cloud-language 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3179df2698099a6fefe29f1e6c2ae254e805ade3d35250477db11cc618d3ef8b
4
- data.tar.gz: 8c2835ee7330329842faaabb5c4c53becbe23aeb3956f73110369c7ef0ab1558
3
+ metadata.gz: 4a7c34fa31098f87b49056d796aace11cfa70fe2f72cca695a1b1d493216995c
4
+ data.tar.gz: a20b4d51e8dc04394aa4d517411cd29c28058649863655f6870544c7cae17bd9
5
5
  SHA512:
6
- metadata.gz: 309464b3c01d30a8e8c38f81e8d9243bac9000cc752f2f3d6073645ddaf2dcbaff34ed87e1685c3f513915e409c4b3bc46fc8ea4d9f2c31069b99511fbc106e0
7
- data.tar.gz: c7b00d7726dcf785c6ae09f77b90d9b0a410fae7a4bf2218922f070071e7f9fd13480d39ea0f97406f3396b727f1f4af2ea4d93308d1dbe35f959e99264c2680
6
+ metadata.gz: f3cf5a7433329c8b2e9fb16265abca83b2325961d5ba23564e9fffeac3418830f81681a2464a07b2ca614c3e770b7dc49e93056ef352e3feee5ec4ee637f7ab0
7
+ data.tar.gz: a218b93aef1f86b3d6dc1bfbcee93297f772f4c371fc59a5332baf868ba31da142f1b6fe60795bc665987cacd3d0e14618755eb26b4a30038dd7eb5c32c71a7e
data/README.md CHANGED
@@ -35,6 +35,14 @@ In order to use this library, you first need to go through the following steps:
35
35
  1. [Enable the API.](https://console.cloud.google.com/apis/library/language.googleapis.com)
36
36
  1. {file:AUTHENTICATION.md Set up authentication.}
37
37
 
38
+ ```ruby
39
+ require "google/cloud/language"
40
+
41
+ client = Google::Cloud::Language.language_service
42
+ request = ::Google::Cloud::Language::V2::AnalyzeSentimentRequest.new # (request fields as keyword arguments...)
43
+ response = client.analyze_sentiment request
44
+ ```
45
+
38
46
  ## Debug Logging
39
47
 
40
48
  This library comes with opt-in Debug Logging that can help you troubleshoot
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Language
19
- VERSION = "2.0.1".freeze
19
+ VERSION = "2.0.3".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-language
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubygems_version: 3.6.8
86
+ rubygems_version: 3.6.9
87
87
  specification_version: 4
88
88
  summary: API Client library for the Cloud Natural Language API
89
89
  test_files: []