uricp 0.0.1 → 0.0.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.
@@ -47,3 +47,9 @@ Feature: Upload VM images with authentication
47
47
  And a correctly initialised cache at "/tmp/uricp"
48
48
  When I store "img-teste" with segment size "10kiB" and options "--target-format 'qcow2' --cache /tmp/uricp" into container "test_upload" from "file:///tmp/uricp/srv-teste" with a userid
49
49
  Then a qcow2 entry should exist in container "test_upload" called "img-teste"
50
+
51
+ Scenario: Direct upload with userid of zero byte file.
52
+ Given an empty file named "/tmp/uricp/srv-zerob"
53
+ And a correctly initialised cache at "/tmp/uricp"
54
+ When I store "img-zerob" with segment size "10kiB" and options "--target-format 'qcow2' --cache /tmp/uricp" into container "test_upload" from "file:///tmp/uricp/srv-zerob" with a userid
55
+ Then a qcow2 entry should exist in container "test_upload" called "img-zerob"
@@ -44,7 +44,7 @@ module Uricp::Strategy
44
44
  end
45
45
 
46
46
  def encoding(io)
47
- magic = io.read(4)
47
+ magic = io.read(4).to_s
48
48
  case
49
49
  when lz4?(magic)
50
50
  :lz4
data/lib/uricp/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Uricp
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  DEFAULT_SEGMENT_SIZE = "5 GiB"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uricp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-15 00:00:00.000000000 Z
12
+ date: 2015-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler