itrp-client 1.0.11 → 1.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 +8 -8
- data/Gemfile.lock +1 -1
- data/lib/itrp/client/attachments.rb +3 -2
- data/lib/itrp/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NzJjODkzMjY1NWUzNzFkYzgyNmNmZDdlYWE1NDcxYzViYjc3YjYzZg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MzdlM2FkMTcwMWU2NWJiNjA3MDIzZjIyODJmYzk3OGE2OWMwMzE2OA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YzNkMDE4YWZjMWRlY2QzMzdkNjc0Y2M4YzRmODk3OWY5YTkyODNkNWQ4NzJj
|
|
10
|
+
YjkyMmVhZDg4NzhjYWJlMTUxYWVlNTVlOGNmNGM3YmM2Zjk2YWFkNGRlN2Zm
|
|
11
|
+
ZmRiMWUyY2U1MWNjZTg4NDM5ZDY4YjRhODQzNGNlYjEyZjRhYjE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
N2M4ZDQxZTNkYWY0NzhlZDhlZTkyYTE1YzY2ODY5ODNlYjMzZmVjODhlZGI1
|
|
14
|
+
YmU5ODUxNTA0NzBhYzkyODU4Yzc3OGRhYTFkYWJmMTA5YTJkMGU2Mzc0ODg0
|
|
15
|
+
MTdiMWE4NTJmOTI3NDQzMTdjYTkyZWE3NTAwMjNhZGJiM2QzODU=
|
data/Gemfile.lock
CHANGED
|
@@ -70,13 +70,14 @@ module Itrp
|
|
|
70
70
|
def aws_upload(aws, key_template, key, attachment)
|
|
71
71
|
# upload the file to AWS
|
|
72
72
|
response = send_file(aws[:upload_uri], {
|
|
73
|
+
:'x-amz-server-side-encryption' => 'AES256',
|
|
73
74
|
key: key_template,
|
|
74
75
|
AWSAccessKeyId: aws[:access_key],
|
|
75
76
|
acl: 'private',
|
|
76
77
|
signature: aws[:signature],
|
|
77
|
-
|
|
78
|
+
success_action_status: 201,
|
|
78
79
|
policy: aws[:policy],
|
|
79
|
-
file: attachment # file must be last
|
|
80
|
+
file: attachment # file must be last
|
|
80
81
|
})
|
|
81
82
|
# this is a bit of a hack, but Amazon S3 returns only XML :(
|
|
82
83
|
xml = response.raw.body || ''
|
data/lib/itrp/client/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: itrp-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ITRP
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gem_config
|