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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf06958c0c5fa13c0ddec2414c0c826ceb1a70a8
4
- data.tar.gz: 51db6743a485068e69c124947ad7edfac692682d
3
+ metadata.gz: a9b01335b9df31f73108baaa72a8bd18813e2447
4
+ data.tar.gz: a46aa5aa4a7a358d954d4affa06d1462b79bb13c
5
5
  SHA512:
6
- metadata.gz: 0217326806dcd00cbddcc7ce079c3ee0ed452affb74028d724617298e073559d3a60732722415b512f8fc7a1d8a835d188b5067e5bfbcaf48f779024b5913f58
7
- data.tar.gz: ce1e47a3eb0fb0136de22468b32a024fa7080cd88a17465535a2b3de07a46de2ac4b2a94ca1d51e42f61235648c49b2a8d6f7f7f9bf5bd0beea251f55860b6d2
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
- next if include? key
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
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # Define version
3
3
  module S3Repo
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.7'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3repo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker