rawscurl 0.0.0 → 0.0.1
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 +4 -4
- data/lib/rawscurl.rb +15 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0850a74223d4aafeb2fe38cc1c2773be242cf7ebfd570232d5e1d64f36b5c511'
|
|
4
|
+
data.tar.gz: 9715e27823f79cb6f55da0f55c3365d0a4df734e119a2b9b23c024cf886c1865
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52de5243430b95c55c1dd5c1511f2607dd6294aa1b8d9636994404f76e405fe7b5b639e5a3a639462d9dbefaaf07755fa40f729f9b1512df5582be5a4bc820c6
|
|
7
|
+
data.tar.gz: f93690587d084e3c2504a688704a999d13f8ca2303bf0dea41fd46c08a6ca4e202812a028dc024c918f394b0d47b702ee8d7213314f2a7b9fa4a2f9d38d8821e
|
data/lib/rawscurl.rb
CHANGED
|
@@ -109,12 +109,21 @@ class AwsCurl
|
|
|
109
109
|
|
|
110
110
|
# puts "AUTHORIZATION HEADER: #{authorization_header}"
|
|
111
111
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
if security_token&.empty?
|
|
113
|
+
headers = {
|
|
114
|
+
"Authorization": authorization_header,
|
|
115
|
+
"x-amz-date": amzdate,
|
|
116
|
+
#"x-amz-security-token": security_token,
|
|
117
|
+
"x-amz-content-sha256": payload_hash
|
|
118
|
+
}
|
|
119
|
+
else
|
|
120
|
+
headers = {
|
|
121
|
+
"Authorization": authorization_header,
|
|
122
|
+
"x-amz-date": amzdate,
|
|
123
|
+
"x-amz-security-token": security_token,
|
|
124
|
+
"x-amz-content-sha256": payload_hash
|
|
125
|
+
}
|
|
126
|
+
end
|
|
118
127
|
|
|
119
128
|
# puts "Headers: #{headers}"
|
|
120
129
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rawscurl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Houser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-08-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Ruby AWS WebSocket API library. Ported from awscurl python script.
|
|
14
14
|
email: rob.h@altiwi.com
|