boat 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/boat/client.rb +1 -1
- data/lib/boat/version.rb +1 -1
- metadata +3 -3
data/lib/boat/client.rb
CHANGED
@@ -38,7 +38,7 @@ class Boat::Client
|
|
38
38
|
size ||= io.respond_to?(:stat) ? io.stat.size : io.length
|
39
39
|
|
40
40
|
digest = OpenSSL::Digest.new('sha256')
|
41
|
-
hash ||= if io.respond_to?(:path)
|
41
|
+
hash ||= if io.respond_to?(:path) && io.path
|
42
42
|
digest.file(io.path).hexdigest
|
43
43
|
elsif !io.respond_to?(:read)
|
44
44
|
digest.hexdigest(io)
|
data/lib/boat/version.rb
CHANGED
metadata
CHANGED