boat 0.2.1 → 0.2.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.
Files changed (3) hide show
  1. data/lib/boat/client.rb +1 -1
  2. data/lib/boat/version.rb +1 -1
  3. metadata +3 -3
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Boat
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roger Nesbitt