smart_s3_sync 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a368a353c21091f1acd3cfd2db6292e5f3ccdd8c
4
- data.tar.gz: 1be713c432e980985fa5fd455fcfa71c1bce9d6a
3
+ metadata.gz: 1767db822124a61f5d93e9b1bd028ef604ba68f9
4
+ data.tar.gz: 198cfd1033178569ae744a95e2e39a73a7666927
5
5
  SHA512:
6
- metadata.gz: af6620d81c194070e162ce3a2d54241ca37d81a7676f58cc5d819c5fc22f6f8ef86f154476b2b969b66d8288ffe2986a7c617abfc1c9814eb2be3156c7126baf
7
- data.tar.gz: faa3a79b469b21523181d7aaa3e293e71068d41b515d62cb80458fca7a2f923e0e44cb0ebb3eec128d2e15cb5ea3b16f4b891ccb496192151776a82857c8c6ae
6
+ metadata.gz: 2eabf0d9dc4cb0c6a5df75427599a8656d351c568989588a8642f3904ce047f23418f73c855e0403fb50e7ab174c8ba597a21089889181cb0536a051145ec8ac
7
+ data.tar.gz: 4850ffdd09ac303a9018a6108e3a5d734a2a3114414ce771acfbd5a6f27d5e60d10a86b35419343609ba96db2fce3ff875aaa1c0903b51c6e150e15836eadea0
@@ -23,7 +23,7 @@ module SmartS3Sync
23
23
 
24
24
  puts "\n"
25
25
  puts "Status: Need to download #{table.to_download.length} files (#{table.to_download.map(&:size).inject(&:+)} bytes)"
26
- puts "Status: with an effective total of #{table.to_copy.length} files (#{table.to_copy.map{|x| x.size * x.destinations.length }.inject(&:+)} bytes)"
26
+ puts "Status: with an effective total of #{table.to_copy.inject(0){|coll, obj| coll + obj.destinations.length }} files (#{table.to_copy.map{|x| x.size * x.destinations.length }.inject(&:+)} bytes)"
27
27
 
28
28
  # And copy them to the right places
29
29
  table.copy!(bucket)
@@ -1,3 +1,3 @@
1
1
  module SmartS3Sync
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
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.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Rhoden