flash_integration 0.1.2 → 0.1.2.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d29c5738c7098856c1b14c3c2f5a0b066950c3e25cacfcad53e565427d60d9e3
|
|
4
|
+
data.tar.gz: f7296474e9631500dae3c335e48ad330028eefa16770f014bd0e7c7fa017be33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: deec4c6103f054baf73f4bbf0de3581806351040eeeaa175ea4c860331180678e114b1fbd10ad90a26275956898ae3180f5e24c6a95b7079569ff2b465d3076e
|
|
7
|
+
data.tar.gz: 81ef75fb2ba847adf20827aafa32ed183ab9570c06930d2bb3d490e640959ccc1c69b6f9896ae09d9fa423d9986777ad3aac2df9174d17cac0bb6b8d0e9a4410
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v0.1.2.1-20220209 - Danilo Carolino
|
|
4
|
+
|
|
5
|
+
Fixes
|
|
6
|
+
|
|
7
|
+
* [32](https://github.com/Quasar-Flash/flash_integration/issues/32) HashSyntax with EnforcedShorthandSyntax as always
|
|
8
|
+
|
|
3
9
|
## v0.1.2-20220202 - Danilo Carolino
|
|
4
10
|
|
|
5
11
|
* [QC-79](https://qflash.atlassian.net/jira/software/projects/QC/boards/31?selectedIssue=QC-79)
|
|
@@ -13,50 +13,50 @@ module Flash
|
|
|
13
13
|
def get(url: "", params: {}, headers: {})
|
|
14
14
|
send_request(
|
|
15
15
|
method: :get,
|
|
16
|
-
url
|
|
17
|
-
params
|
|
18
|
-
headers:
|
|
16
|
+
url: url,
|
|
17
|
+
params: params,
|
|
18
|
+
headers: headers
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def post(url: "", params: {}, headers: {}, body: {}, multipart: false)
|
|
23
23
|
send_request(
|
|
24
24
|
method: :post,
|
|
25
|
-
url
|
|
26
|
-
params
|
|
27
|
-
headers
|
|
28
|
-
body
|
|
29
|
-
multipart:
|
|
25
|
+
url: url,
|
|
26
|
+
params: params,
|
|
27
|
+
headers: headers,
|
|
28
|
+
body: body,
|
|
29
|
+
multipart: multipart
|
|
30
30
|
)
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def put(url: "", params: {}, headers: {}, body: {})
|
|
34
34
|
send_request(
|
|
35
35
|
method: :put,
|
|
36
|
-
url
|
|
37
|
-
params
|
|
38
|
-
headers
|
|
39
|
-
body:
|
|
36
|
+
url: url,
|
|
37
|
+
params: params,
|
|
38
|
+
headers: headers,
|
|
39
|
+
body: body
|
|
40
40
|
)
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def patch(url: "", params: {}, headers: {}, body: {})
|
|
44
44
|
send_request(
|
|
45
45
|
method: :patch,
|
|
46
|
-
url
|
|
47
|
-
params
|
|
48
|
-
headers
|
|
49
|
-
body:
|
|
46
|
+
url: url,
|
|
47
|
+
params: params,
|
|
48
|
+
headers: headers,
|
|
49
|
+
body: body
|
|
50
50
|
)
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
def delete(url: "", params: {}, headers: {}, body: {})
|
|
54
54
|
send_request(
|
|
55
55
|
method: :delete,
|
|
56
|
-
url
|
|
57
|
-
params
|
|
58
|
-
headers
|
|
59
|
-
body:
|
|
56
|
+
url: url,
|
|
57
|
+
params: params,
|
|
58
|
+
headers: headers,
|
|
59
|
+
body: body
|
|
60
60
|
)
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -95,21 +95,21 @@ module Flash
|
|
|
95
95
|
|
|
96
96
|
def build_request(method, url, params, headers, body)
|
|
97
97
|
Flash::Integration::Request.new(
|
|
98
|
-
method
|
|
99
|
-
url
|
|
100
|
-
params
|
|
101
|
-
headers
|
|
102
|
-
body
|
|
98
|
+
method: method,
|
|
99
|
+
url: url,
|
|
100
|
+
params: params,
|
|
101
|
+
headers: headers,
|
|
102
|
+
body: body,
|
|
103
103
|
time: Time.now.utc
|
|
104
104
|
)
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
def build_response(request, status, headers, body)
|
|
108
108
|
Flash::Integration::Response.new(
|
|
109
|
-
request
|
|
110
|
-
status
|
|
111
|
-
headers
|
|
112
|
-
body
|
|
109
|
+
request: request,
|
|
110
|
+
status: status,
|
|
111
|
+
headers: headers,
|
|
112
|
+
body: body,
|
|
113
113
|
time: Time.now.utc
|
|
114
114
|
)
|
|
115
115
|
end
|
|
@@ -9,6 +9,6 @@ module Flash
|
|
|
9
9
|
# Major - Incremented for incompatible changes with previous release (or big enough new features)
|
|
10
10
|
# Minor - Incremented for new backwards-compatible features + deprecations
|
|
11
11
|
# Patch - Incremented for backwards-compatible bug fixes
|
|
12
|
-
VERSION = "0.1.2"
|
|
12
|
+
VERSION = "0.1.2.1"
|
|
13
13
|
end
|
|
14
14
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
describe Flash::Integration::Connection do
|
|
4
4
|
let(:base_url) { "http://localhost" }
|
|
5
5
|
let(:connection) { Faraday::Connection.new(url: base_url) }
|
|
6
|
-
let(:instance) { described_class.new(request_class
|
|
6
|
+
let(:instance) { described_class.new(request_class: request_class, base_url: base_url) }
|
|
7
7
|
let(:request_params) { double("request-params") }
|
|
8
8
|
let(:request_class) { class_double(Faraday, default_adapter: double("request-params")) }
|
|
9
9
|
let(:request_headers) { {} }
|
|
@@ -17,7 +17,7 @@ describe Flash::Integration::Connection do
|
|
|
17
17
|
let(:response) do
|
|
18
18
|
double(
|
|
19
19
|
"response",
|
|
20
|
-
request
|
|
20
|
+
request: request,
|
|
21
21
|
status: response_status,
|
|
22
22
|
headers: response_headers,
|
|
23
23
|
body: response_body
|
|
@@ -30,7 +30,7 @@ describe Flash::Integration::Connection do
|
|
|
30
30
|
params: request_params,
|
|
31
31
|
headers: request_headers,
|
|
32
32
|
body: request_body,
|
|
33
|
-
time:
|
|
33
|
+
time: time
|
|
34
34
|
)
|
|
35
35
|
end
|
|
36
36
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
describe Flash::Integration::Response do
|
|
4
4
|
let(:request) { double("request") }
|
|
5
|
-
let(:instance) { described_class.new(request
|
|
5
|
+
let(:instance) { described_class.new(request: request, status: status) }
|
|
6
6
|
|
|
7
7
|
describe "#success?" do
|
|
8
8
|
subject { instance.success? }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flash_integration
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.2
|
|
4
|
+
version: 0.1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danilo Carolino
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-02-
|
|
11
|
+
date: 2022-02-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|