File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515source "https://rubygems.org"
1616
17- gem "gcloud "
17+ gem "google-cloud-vision "
1818gem "rmagick"
1919
2020group :test do
Original file line number Diff line number Diff line change 44 addressable (2.4.0 )
55 ast (2.3.0 )
66 diff-lcs (1.2.5 )
7- digest-crc (0.4.1 )
87 faraday (0.9.2 )
98 multipart-post (>= 1.2 , < 3 )
10- gcloud (0.12.2 )
11- digest-crc (~> 0.4 )
12- google-api-client (~> 0.9.11 )
13- google-protobuf (= 3.0.0.alpha.5.0.5.1 )
14- grpc (= 1.0.0.pre1 )
15- mime-types (>= 2.4 , < 4.0 )
16- zonefile (~> 1.04 )
17- google-api-client (0.9.11 )
9+ google-api-client (0.9.13 )
1810 addressable (~> 2.3 )
1911 googleauth (~> 0.5 )
2012 httpclient (~> 2.7 )
2315 mime-types (>= 1.6 )
2416 representable (~> 2.3.0 )
2517 retriable (~> 2.0 )
26- thor (~> 0.19 )
27- google-protobuf (3.0.0.alpha.5.0.5.1 )
18+ google-cloud-core (0.20.1 )
19+ google-cloud-vision (0.20.0 )
20+ google-api-client (~> 0.9.11 )
21+ google-cloud-core (~> 0.20.0 )
2822 googleauth (0.5.1 )
2923 faraday (~> 0.9 )
3024 jwt (~> 1.4 )
3327 multi_json (~> 1.11 )
3428 os (~> 0.9 )
3529 signet (~> 0.7 )
36- grpc (1.0.0.pre1 )
37- google-protobuf (~> 3.0.0.alpha.5.0.3 )
38- googleauth (~> 0.5.1 )
39- httpclient (2.8.2.2 )
30+ httpclient (2.8.2.3 )
4031 hurley (0.2 )
4132 jwt (1.5.4 )
4233 little-plugger (1.1.4 )
4334 logging (2.1.0 )
4435 little-plugger (~> 1.1 )
4536 multi_json (~> 1.10 )
46- memoist (0.14 .0 )
37+ memoist (0.15 .0 )
4738 mime-types (3.1 )
4839 mime-types-data (~> 3.2015 )
4940 mime-types-data (3.2016.0521 )
8778 faraday (~> 0.9 )
8879 jwt (~> 1.5 )
8980 multi_json (~> 1.10 )
90- thor (0.19.1 )
9181 uber (0.0.15 )
9282 unicode-display_width (1.1.0 )
93- zonefile (1.04 )
9483
9584PLATFORMS
9685 ruby
9786
9887DEPENDENCIES
99- gcloud
88+ google-cloud-vision
10089 rack-test
10190 rake
10291 rmagick
Original file line number Diff line number Diff line change 1515def detect_labels path_to_image_file
1616# [START detect_labels]
1717 # [START importing_libraries]
18- require "gcloud "
18+ require "google/cloud "
1919 # [END importing_libraries]
2020
2121 # [START create_vision_client]
22- gcloud = Gcloud . new
22+ gcloud = Google :: Cloud . new
2323 vision = gcloud . vision
2424 # [END create_vision_client]
2525
@@ -41,11 +41,11 @@ def detect_labels path_to_image_file
4141def detect_landmark path_to_image_file
4242# [START detect_landmark]
4343 # [START importing_libraries]
44- require "gcloud "
44+ require "google/cloud "
4545 # [END importing_libraries]
4646
4747 # [START create_vision_client]
48- gcloud = Gcloud . new
48+ gcloud = Google :: Cloud . new
4949 vision = gcloud . vision
5050 # [END create_vision_client]
5151
@@ -64,11 +64,11 @@ def detect_landmark path_to_image_file
6464def detect_faces path_to_image_file , path_to_output_file
6565# [START detect_faces]
6666 # [START importing_libraries]
67- require "gcloud "
67+ require "google/cloud "
6868 # [END importing_libraries]
6969
7070 # [START create_vision_client]
71- gcloud = Gcloud . new
71+ gcloud = Google :: Cloud . new
7272 vision = gcloud . vision
7373 # [END create_vision_client]
7474
You can’t perform that action at this time.
0 commit comments