Skip to content

Commit 57678c7

Browse files
author
Graham Paye
authored
chore: remove sample as it's no longer used and is failing due an external resource (googleapis#7839)
1 parent d63dd2a commit 57678c7

3 files changed

Lines changed: 1 addition & 24 deletions

File tree

google-cloud-vision/samples/acceptance/detect_labels_test.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,5 @@
2727
assert_output(/traffic sign/i) do
2828
detect_labels_gcs image_path: gs_url("otter_crossing.jpg")
2929
end
30-
31-
assert_output(/suit/i) do
32-
detect_labels_gcs_migration
33-
end
3430
end
3531
end

google-cloud-vision/samples/detect_labels.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -61,26 +61,6 @@ def detect_labels_gcs image_path:
6161
# [END vision_label_detection_gcs]
6262
end
6363

64-
def detect_labels_gcs_migration
65-
require "google/cloud/vision"
66-
# [START image_annotator_labels_gcs_migration]
67-
68-
image_annotator = Google::Cloud::Vision.image_annotator
69-
70-
response = image_annotator.label_detection(
71-
image: "gs://gapic-toolkit/President_Barack_Obama.jpg",
72-
max_results: 15 # optional, defaults to 10
73-
)
74-
75-
puts "Labels:"
76-
response.responses.each do |res|
77-
res.label_annotations.each do |label|
78-
puts label.description
79-
end
80-
end
81-
# [END image_annotator_labels_gcs_migration]
82-
end
83-
8464
if $PROGRAM_NAME == __FILE__
8565
image_path = ARGV.shift
8666

google-cloud-vision/samples/product_search/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ gem "google-cloud-vision"
1818

1919
group :test do
2020
gem "minitest", "~> 5.13"
21+
gem "minitest-focus", "~> 1.1"
2122
gem "rake"
2223
end

0 commit comments

Comments
 (0)