Skip to content

Commit

Permalink
Release google-cloud-translate 2.0.0 (#4286)
Browse files Browse the repository at this point in the history
#### ⚠ BREAKING CHANGES

* Add Translate V3 client
  * Update google-cloud-translate to contain a generated v3 client
    as well as the legacy hand-written v2 client.
  * The following methods now return an instance of
    Google::Cloud::Translate::V3::TranslationServiceClient:
    * Google::Cloud#translate
    * Google::Cloud.translate
    * Google::Cloud::Translate.new
  * To use the legacy v2 client specify the version when creating:
    * v2_client = Google::Cloud::Translate.new version: :v2

#### Features

* Add Translate V3 client
  * The v3 client includes several new features and updates:
  * Glossaries - Create a custom dictionary to correctly and
    consistently translate terms that are customer-specific.
  * Batch requests - Make an asynchronous request to translate
    large amounts of text.
  * AutoML models - Cloud Translation adds support for translating
    text with custom models that you create using AutoML Translation.
  * Labels - The Cloud Translation API supports adding user-defined
    labels (key-value pairs) to requests.
* Now requires Ruby 2.4 or later.

#### Documentation

* Update the list of GCP environments for automatic authentication
  • Loading branch information
yoshi-automation authored and blowmage committed Oct 28, 2019
1 parent e8dd181 commit 4b7cf5d
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 2 deletions.
33 changes: 33 additions & 0 deletions google-cloud-translate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Release History

### 2.0.0 / 2019-10-28

#### ⚠ BREAKING CHANGES

* Add Translate V3 client
* Update google-cloud-translate to contain a generated v3 client
as well as the legacy hand-written v2 client.
* The following methods now return an instance of
Google::Cloud::Translate::V3::TranslationServiceClient:
* Google::Cloud#translate
* Google::Cloud.translate
* Google::Cloud::Translate.new
* To use the legacy v2 client specify the version when creating:
* v2_client = Google::Cloud::Translate.new version: :v2

#### Features

* Add Translate V3 client
* The v3 client includes several new features and updates:
* Glossaries - Create a custom dictionary to correctly and
consistently translate terms that are customer-specific.
* Batch requests - Make an asynchronous request to translate
large amounts of text.
* AutoML models - Cloud Translation adds support for translating
text with custom models that you create using AutoML Translation.
* Labels - The Cloud Translation API supports adding user-defined
labels (key-value pairs) to requests.
* Now requires Ruby 2.4 or later.

#### Documentation

* Update the list of GCP environments for automatic authentication

### 1.4.0 / 2019-10-01

#### Features
Expand Down
10 changes: 10 additions & 0 deletions google-cloud-translate/google-cloud-translate.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ Gem::Specification.new do |gem|

gem.required_ruby_version = ">= 2.4"

gem.post_install_message = <<~POSTINSTALL
The 2.0 release introduces breaking changes by defaulting to a
new generated v3 API client. This gem continues to contain the
legacy hand-written v2 client for backward compatibility aside
from the default client constructor.
For more details please visit the 2.0.0 CHANGELOG:
https://googleapis.dev/ruby/google-cloud-translate/v2.0.0/file.CHANGELOG.html#2_0_0___2019-10-28
POSTINSTALL

gem.add_dependency "faraday", "~> 0.13"
gem.add_dependency "google-cloud-core", "~> 1.2"
gem.add_dependency "google-gax", "~> 1.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
module Google
module Cloud
module Translate
VERSION = "1.4.0".freeze
VERSION = "2.0.0".freeze
end
end
end
2 changes: 1 addition & 1 deletion google-cloud/google-cloud.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Gem::Specification.new do |gem|
gem.add_dependency "google-cloud-tasks", "~> 1.0"
gem.add_dependency "google-cloud-text_to_speech", "~> 0.1"
gem.add_dependency "google-cloud-trace", "~> 0.31"
gem.add_dependency "google-cloud-translate", "~> 1.2"
gem.add_dependency "google-cloud-translate", "~> 2.0"
gem.add_dependency "google-cloud-video_intelligence", "~> 1.0"
gem.add_dependency "google-cloud-vision", "~> 0.28"

Expand Down

0 comments on commit 4b7cf5d

Please sign in to comment.