lib/google/cloud/translate/api.rb in google-cloud-translate-0.22.2 vs lib/google/cloud/translate/api.rb in google-cloud-translate-0.23.0

- old
+ new

@@ -11,11 +11,11 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -require "google/cloud/core/environment" +require "google/cloud/env" require "google/cloud/translate/service" require "google/cloud/translate/translation" require "google/cloud/translate/detection" require "google/cloud/translate/language" @@ -83,10 +83,10 @@ # @private Default project. def self.default_project ENV["TRANSLATE_PROJECT"] || ENV["GOOGLE_CLOUD_PROJECT"] || ENV["GCLOUD_PROJECT"] || - Google::Cloud::Core::Environment.project_id + Google::Cloud.env.project_id end ## # Returns text translations from one language to another. #