batch_request_api 1.0.15 → 1.0.18
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52621b4876e066a74d61ff7fba68098b494000e6
|
4
|
+
data.tar.gz: 3ead62d5638940c0014f458dbff6fcb4917eb082
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 444748fcb6c36dcb44c376cf8aa02acf8074661cc19a95b9fb35927239994559eea2ee14aa63a0c01e7d9224f0cc07cae4aa283f7210229fed117b4058c5adea
|
7
|
+
data.tar.gz: e379bef84f08714be3dcd12ce34e3703085b1e5b6f260de115c5ed1af4eb8c45375c114210ef8fd332f74e9a71cc56dd6c770296c37ab6dfec2787b1159063b4
|
@@ -12,7 +12,7 @@ module BatchRequestApi
|
|
12
12
|
responses = process_parallel_request(env, first_request, requests)
|
13
13
|
build_response(responses)
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
private
|
17
17
|
|
18
18
|
def process_parallel_request(env, first_request, requests)
|
@@ -32,11 +32,7 @@ module BatchRequestApi
|
|
32
32
|
def handoff_to_rails(env)
|
33
33
|
status, headers, body = @app.call(env)
|
34
34
|
body.close if body.respond_to? :close
|
35
|
-
|
36
|
-
{ status: status, headers: headers, body: JSON.parse(body.join) }
|
37
|
-
else
|
38
|
-
{ status: status, headers: headers, body: JSON.parse(body.body) }
|
39
|
-
end
|
35
|
+
{ status: status, headers: headers, response: JSON.parse(body.body) }
|
40
36
|
end
|
41
37
|
end
|
42
38
|
end
|
@@ -23,11 +23,7 @@ module BatchRequestApi
|
|
23
23
|
def handoff_to_rails(env)
|
24
24
|
status, headers, body = @app.call(env)
|
25
25
|
body.close if body.respond_to? :close
|
26
|
-
|
27
|
-
{ status: status, headers: headers, response: JSON.parse(body.join) }
|
28
|
-
else
|
29
|
-
{ status: status, headers: headers, response: JSON.parse(body.body) }
|
30
|
-
end
|
26
|
+
{ status: status, headers: headers, response: JSON.parse(body.body) }
|
31
27
|
end
|
32
28
|
|
33
29
|
def response_hash(responses)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: batch_request_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Srinivas Raghunathan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.6.11
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Rails Batch Request API.
|