mamiya 0.0.1.alpha16 → 0.0.1.alpha17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mamiya/storages/s3_proxy.rb +4 -0
- data/lib/mamiya/version.rb +1 -1
- data/spec/storages/s3_proxy_spec.rb +17 -0
- 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: 6fa254b596631cde33d5d8faac01f61d64714384
|
4
|
+
data.tar.gz: bef9bacf0b8706d6ea1f963fd2f9417a9121b07d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9fd3931a0e2cc4203451ede0e03cc5aee3abb9c63ffdb1ae042c2514a81bc8dbe625e3542646e4bd55622f092308d6c9e296033fca7403cf343cd0375469859
|
7
|
+
data.tar.gz: 7ac1a6a440fc39b59fcfd29d7e643900a203e21de74261edffb1c5ea8a6fa090568a7c9d718938c594217a6fe23c6b010de5e0fe9ba12d44413e8da60ef01417
|
@@ -30,6 +30,10 @@ module Mamiya
|
|
30
30
|
end
|
31
31
|
|
32
32
|
return Mamiya::Package.new(package_path)
|
33
|
+
|
34
|
+
rescue NotFound, AlreadyFetched => e
|
35
|
+
raise e
|
36
|
+
|
33
37
|
rescue Exception => e
|
34
38
|
File.unlink package_path if package_path && File.exists?(package_path)
|
35
39
|
File.unlink meta_path if meta_path && File.exists?(meta_path)
|
data/lib/mamiya/version.rb
CHANGED
@@ -105,6 +105,15 @@ describe Mamiya::Storages::S3Proxy do
|
|
105
105
|
fetch
|
106
106
|
}.to raise_error(Mamiya::Storages::Abstract::AlreadyFetched)
|
107
107
|
end
|
108
|
+
|
109
|
+
it "doesn't remove anything" do
|
110
|
+
begin
|
111
|
+
fetch
|
112
|
+
rescue Mamiya::Storages::Abstract::AlreadyFetched; end
|
113
|
+
|
114
|
+
expect(File.exist?(metafile)).to be_true
|
115
|
+
end
|
116
|
+
|
108
117
|
end
|
109
118
|
|
110
119
|
context "when tarball already exists" do
|
@@ -117,6 +126,14 @@ describe Mamiya::Storages::S3Proxy do
|
|
117
126
|
fetch
|
118
127
|
}.to raise_error(Mamiya::Storages::Abstract::AlreadyFetched)
|
119
128
|
end
|
129
|
+
|
130
|
+
it "doesn't remove anything" do
|
131
|
+
begin
|
132
|
+
fetch
|
133
|
+
rescue Mamiya::Storages::Abstract::AlreadyFetched; end
|
134
|
+
|
135
|
+
expect(File.exist?(tarball)).to be_true
|
136
|
+
end
|
120
137
|
end
|
121
138
|
end
|
122
139
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mamiya
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.alpha17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shota Fukumori (sora_h)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|