smart_s3_sync 0.0.7 → 0.0.8

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: 33935c767e0745d617012d6dcde39fe056780a82
4
- data.tar.gz: 26884d38bee3c9de06580f851caccc2950d734d4
3
+ metadata.gz: 86bfa11c22af92d92363055250afc9eb91809cc1
4
+ data.tar.gz: 22488d588bca3ed1ed5de4e02b21a81fb00b22d7
5
5
  SHA512:
6
- metadata.gz: 757dcab598f25890989907c2bca3ed8070f1ebbe0b39fa0959a556552ba642dd43071c76a058667ee6f5ff033319ae74b8cd31480a46dd113321825bb0abf268
7
- data.tar.gz: 1c7aa3a25367da65842e054369008a3bc54de753803289fdcdb0dbe2ccba065ed95cc92a81e06285a16018d3639d753f086237822c9b9066e124d3158f7fbf75
6
+ metadata.gz: 70e12abfac82cdbef65f56916b08842a87eed717609847a197c7534bed11e985eecd207d7e179252a3b1142b92e8b5667df7930b81e8052f04751baed308418a
7
+ data.tar.gz: 4f43a22587aac67ce0c4fbcef5294c39535ee1e2ca6c384b658525bfa7e038ada8cf3073088da917ad8cf81ed7a9999a26de30617388475986466fe9f656c5bb
@@ -18,7 +18,7 @@ module SmartS3Sync
18
18
  end
19
19
 
20
20
  def copy!(fog_dir)
21
- @map.each do |(k, target)|
21
+ @map.sort_by{|(k, target)| -target.destinations.length + (target.source.nil? ? 0 : -100) }.each do |(k, target)|
22
22
  target.copy!(fog_dir)
23
23
  end
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module SmartS3Sync
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_s3_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Rhoden