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 +4 -4
- data/lib/s3_meta_sync/syncer.rb +7 -2
- data/lib/s3_meta_sync/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73d24caf55aefff70f928dca2019bbfbfe47bc97
|
4
|
+
data.tar.gz: 2d57f5a45398c0cb7032d2a0747b1ffd38a7c18e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6bcbe512d940706406c791c0dde947b172672cee1d6a4f361e08bc366ad9255e640b5f1bfc97aac4bb6af33f9fee56956a9125cb9c35751f81f82b74d5b69e5
|
7
|
+
data.tar.gz: 359edb56cd2f2bef162f87089ca3fdcf979737ba495bd93ebc79d9aa785d2c23065307eb1add3b879d0cb64aff3851781336fef6845219372e6b999b21646be3
|
data/lib/s3_meta_sync/syncer.rb
CHANGED
@@ -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
|
-
|
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)
|
data/lib/s3_meta_sync/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|