s3repo 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/s3repo/repo.rb +3 -2
- data/lib/s3repo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9b01335b9df31f73108baaa72a8bd18813e2447
|
4
|
+
data.tar.gz: a46aa5aa4a7a358d954d4affa06d1462b79bb13c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f70c12e5c1a19bc5bcc7857ccabd4029c88cc8caf8d05290e563cd9085abd9e618abb28e080caea937e6797a103eca238b1f312ae963a32f275ca48993aadb0
|
7
|
+
data.tar.gz: c04c7a1979f794d1f3befcb0199a2fb4dfebd1e536b82bf3ff77e3b48e589a719f10ce334c0b0a31b5e706377b9d35f44b1cdcaf0ef1bfe82839beb7a6961821
|
data/lib/s3repo/repo.rb
CHANGED
@@ -19,8 +19,9 @@ module S3Repo
|
|
19
19
|
def add_packages(paths)
|
20
20
|
paths.each do |path|
|
21
21
|
key = File.basename(path)
|
22
|
-
|
23
|
-
client.upload!(key, path)
|
22
|
+
sig_key, sig_path = [key, path].map { |x| x + '.sig' }
|
23
|
+
client.upload!(key, path) unless include?(key)
|
24
|
+
client.upload!(sig_key, sig_path) if File.exist?(sig_path)
|
24
25
|
end
|
25
26
|
metadata.add_packages(paths)
|
26
27
|
end
|
data/lib/s3repo/version.rb
CHANGED