uricp 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad39a6e06ce8e9371def28e21ec16e128fd41b89
4
- data.tar.gz: f9403707e1ffe3fa81efa9f18df76007d5c270c8
3
+ metadata.gz: 504ac718e28c260c29336ae9089d9a58d9948f7d
4
+ data.tar.gz: ac2c9bc45430805b2a0845e80392e2c75ec2f471
5
5
  SHA512:
6
- metadata.gz: 8955d60c70f1092bc8f8cc2fb768c3e80b0450024de3d34141a665efd0989afc6c47de1d8a82d261a1d30751f9ced86213b6bb59e86684e0d838444e6b463942
7
- data.tar.gz: c4314e1e064c2a4d2db7ebe78c5eaa0626824e4edb10fa623f926eefff9a914c56d1c2ea9646649a217589e039adfe2d8ef72a2f3392e55f750c062201ba4f05
6
+ metadata.gz: b1518d8d9ae106c51d1eceb9ad5d50f0d93e3b7fbf9df43a8cca797c42d2dbdb6f44c96a7a3a4636562fd42523ca880a3859ff2b70374d70aebcf205e238a5d9
7
+ data.tar.gz: 419cedbe0b8be9fcbef9ba4634906adb4ad6f346b6bcdbae06d627bea6efc4c21c6d71c646d2d0d1343081c3e0cfd34df3d273cedd4362db0aafbfb55112df93
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- uricp (0.0.12)
4
+ uricp (0.0.13)
5
5
  filesize (= 0.0.2)
6
6
  methadone (~> 1.8.0)
7
7
  open4 (~> 1.3.0)
@@ -15,7 +15,7 @@ GEM
15
15
  cucumber (>= 1.1.1)
16
16
  rspec-expectations (>= 2.7.0)
17
17
  builder (3.2.2)
18
- childprocess (0.5.6)
18
+ childprocess (0.5.7)
19
19
  ffi (~> 1.0, >= 1.0.11)
20
20
  cucumber (1.3.20)
21
21
  builder (>= 2.1.2)
@@ -151,3 +151,12 @@ Feature: Authenticated download of images from orbit
151
151
  And the file named "/tmp/uricp/srv-testa" should have a file format of "qcow2"
152
152
  And a file named "/tmp/uricp/cache/img-lz4cy" should exist
153
153
  And the file named "/tmp/uricp/cache/img-lz4cy" should have a file format of "lz4"
154
+
155
+ Scenario: lz4 download sparse convert to raw, cache, overwrite file
156
+ Given a correctly initialised cache at "/tmp/uricp"
157
+ And a 102400 byte file named "/tmp/uricp/srv-test9"
158
+ When I retrieve "img-lz4cy" with options "--force --target-format=raw --cache=/tmp/uricp" from container "test" into "file:///tmp/uricp/srv-test9"
159
+ Then a file named "/tmp/uricp/srv-test9" should exist
160
+ And the file named "/tmp/uricp/srv-test9" should have a file format of "raw"
161
+ And a file named "/tmp/uricp/cache/img-lz4cy" should exist
162
+ And the file named "/tmp/uricp/cache/img-lz4cy" should have a file format of "lz4"
@@ -20,7 +20,7 @@ module Uricp::Strategy
20
20
  end
21
21
 
22
22
  def command
23
- "lz4 -qd - #{to.path};"
23
+ "lz4 -qdf - #{to.path};"
24
24
  end
25
25
 
26
26
  def proposal
data/lib/uricp/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Uricp
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  DEFAULT_SEGMENT_SIZE = "5 GiB"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uricp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neil Wilson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-15 00:00:00.000000000 Z
11
+ date: 2015-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler