s3_meta_sync 0.6.2 → 0.7.0

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: 4a975f806dedbae756e1c01adfd15f72232b59e4
4
- data.tar.gz: cf5eac669081f6e12a80bd0d8c4f85e44b02ecf7
3
+ metadata.gz: 73d24caf55aefff70f928dca2019bbfbfe47bc97
4
+ data.tar.gz: 2d57f5a45398c0cb7032d2a0747b1ffd38a7c18e
5
5
  SHA512:
6
- metadata.gz: c9f3bcae6f1e1a5cd0a3735e3211722074b77411210dcf6c3c880a0bc35d2b05664ffe1bd303c7512a669c94e8defd9d3631bdc90d6ca23b555a670ac35eb4bc
7
- data.tar.gz: 10ee315fb1256b1736e9f1cc82c89c9712b1b25fe72235c62e5fbbb65ae8c8df62e76982430ac2f22205f84e4374c2e6495d53e7199b802941c347059e8a69d5
6
+ metadata.gz: f6bcbe512d940706406c791c0dde947b172672cee1d6a4f361e08bc366ad9255e640b5f1bfc97aac4bb6af33f9fee56956a9125cb9c35751f81f82b74d5b69e5
7
+ data.tar.gz: 359edb56cd2f2bef162f87089ca3fdcf979737ba495bd93ebc79d9aa785d2c23065307eb1add3b879d0cb64aff3851781336fef6845219372e6b999b21646be3
@@ -132,12 +132,17 @@ module S3MetaSync
132
132
  log "Uploading #{path}"
133
133
  content = File.read("#{source}/#{path}")
134
134
  content = Zip.zip(content) if @config[:zip] && path != META_FILE
135
- s3.put_object(
135
+
136
+ object = {
136
137
  bucket: @bucket,
137
138
  body: content,
138
139
  key: "#{destination}/#{path}",
139
140
  acl: 'public-read'
140
- )
141
+ }
142
+
143
+ object[:server_side_encryption] = @config[:server_side_encryption] if @config[:server_side_encryption]
144
+
145
+ s3.put_object(object)
141
146
  end
142
147
 
143
148
  def delete_remote_files(remote, paths)
@@ -1,3 +1,3 @@
1
1
  module S3MetaSync
2
- VERSION = "0.6.2"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_meta_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-13 00:00:00.000000000 Z
11
+ date: 2016-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project:
59
- rubygems_version: 2.4.5.1
59
+ rubygems_version: 2.5.1
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: Sync folders with s3 using a metadata file and md5 diffs