google-cloud-vision 0.20.1 → 0.20.2
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 +4 -4
- data/lib/google/cloud/vision/image.rb +2 -2
- data/lib/google/cloud/vision/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 759e9d66fc5ac97bb5ae8c503601c9be1c661a31
|
|
4
|
+
data.tar.gz: 970f2c09c96cbe48ae9c1105a73ce50d16fefe0c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 980170fbb90dd2f6bdcdbb1761418975688d4bfd05c5e618b3949f723d57c30e013cd82fcd811bfe638002c732c28acdf74fb21e850aa89c9a0aa1a6091b9c7e
|
|
7
|
+
data.tar.gz: 6b69299bdc20150cf0507f8f7a1ac9d0d7da05646fc249d453804e4a40f887b8da101830e5cc02417d329e3a50cac01e20607d181b6837f0230dca53e5895a5b
|
|
@@ -334,7 +334,7 @@ module Google
|
|
|
334
334
|
@io.rewind
|
|
335
335
|
"(#{@io.read(16)}...)"
|
|
336
336
|
else
|
|
337
|
-
"(#{url})"
|
|
337
|
+
"(#{@url})"
|
|
338
338
|
end
|
|
339
339
|
end
|
|
340
340
|
end
|
|
@@ -351,7 +351,7 @@ module Google
|
|
|
351
351
|
@io.rewind
|
|
352
352
|
Google::Apis::VisionV1::Image.new content: @io.read
|
|
353
353
|
elsif url?
|
|
354
|
-
Google::Apis::VisionV1::Image.new source: {
|
|
354
|
+
Google::Apis::VisionV1::Image.new source: { gcs_image_uri: @url }
|
|
355
355
|
else
|
|
356
356
|
fail ArgumentError, "Unable to use Image with Vision service."
|
|
357
357
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-vision
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.20.
|
|
4
|
+
version: 0.20.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Moore
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-09-
|
|
12
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: google-cloud-core
|