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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 920552f4b202f9a35b63aea39b35e14d915940a1
4
- data.tar.gz: b4fdae3e05fc5561bd467c6f612fce839162233e
3
+ metadata.gz: 6fa254b596631cde33d5d8faac01f61d64714384
4
+ data.tar.gz: bef9bacf0b8706d6ea1f963fd2f9417a9121b07d
5
5
  SHA512:
6
- metadata.gz: 3a89852fb28f513be7f4c8847f330c0933bb3d454f20bb17c8e9fb28ae9b9a4469a9b0f137bf9d0f1d4ee1a67a1427a4705b37828385ae1594f177adf6b7f3aa
7
- data.tar.gz: f4e421916e389a2bf7449db1ef5dbd49090111803c768034cdf682c10306736ef9750edbdacd88dd1a6773daa80fd32f2d71904bc8e6a449938b7e9929708f88
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)
@@ -1,3 +1,3 @@
1
1
  module Mamiya
2
- VERSION = "0.0.1.alpha16"
2
+ VERSION = "0.0.1.alpha17"
3
3
  end
@@ -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.alpha16
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-04 00:00:00.000000000 Z
11
+ date: 2014-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor