s3_meta_sync 0.3.4 → 0.3.5

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: 86108185353e54e6adf0bc50b1c5661b30056ab3
4
- data.tar.gz: d0f3ecc3597c3d4095106e12cbc690f2486ed716
3
+ metadata.gz: 60aca82b9ba727eaefe91c59221143744139ecb9
4
+ data.tar.gz: a6bd0cb6b41f16667aec2b4dac91ca958c26dd80
5
5
  SHA512:
6
- metadata.gz: 587e5b34cf058fb84d488632eec7e0a3322c440395e7e24ca62d0741977beba613cea4b2a10fd2481c0e705a6239b32fbad2f6b06634859496552dac17d0a637
7
- data.tar.gz: 4025e4bdf77f15b72d5922e6a1c3ab8ad2974090444bb860be8dfdad2e9f6e4df2bd14fd0bba6e1b097d96c414c1c5bb187a1bd0f341f24cb36f74d3f5bbe21c
6
+ metadata.gz: fdbe0a5c875204a9e939ff3ddd396540baf8123dc728469e79cf6b959375adcd3aea447ae9195c264d8f72c9a683d69d6c63a583ff3f061788abe44354f65d9e
7
+ data.tar.gz: aa7b6e017f62bd115ac8da2a224392900c8952c74af207c83b4b1da8a66662cd7af64468ce48b290865f25f41e7c2a65e141f135f4aaa88906adaccff41633ba
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/s3_meta_sync.rb CHANGED
@@ -77,6 +77,7 @@ module S3MetaSync
77
77
  verify_integrity!(staging_area, destination)
78
78
  delete_empty_folders(staging_area)
79
79
  self.class.swap_in_directory(destination, staging_area)
80
+ FileUtils.mkdir(staging_area)
80
81
  end
81
82
  end
82
83
  end
@@ -87,8 +88,8 @@ module S3MetaSync
87
88
 
88
89
  # almost atomic when destination and temp dir are not on the same device
89
90
  def self.swap_in_directory(destination, dir)
90
- next_dir = ".#{destination}-next"
91
- delete = ".#{destination}-delete"
91
+ next_dir = "#{destination}-next"
92
+ delete = "#{destination}-delete"
92
93
 
93
94
  # clean up potential leftovers from last run
94
95
  FileUtils.remove_dir(next_dir) if File.exist?(next_dir)
@@ -1,3 +1,3 @@
1
1
  module S3MetaSync
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_meta_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
@@ -30,7 +30,7 @@ cert_chain:
30
30
  F5etKHZg0j3eHO31/i2HnswY04lqGImUu6aM5EnijFTB7PPW2KwKKM4+kKDYFdlw
31
31
  /0WV1Ng2/Y6qsHwmqGg2VlYj2h4=
32
32
  -----END CERTIFICATE-----
33
- date: 2014-03-31 00:00:00.000000000 Z
33
+ date: 2014-04-03 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: aws-sdk
metadata.gz.sig CHANGED
Binary file