batch_request_api 1.0.15 → 1.0.18

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
  SHA1:
3
- metadata.gz: 95f9990c2d768e9e8d142ab3f354ffb62a489a55
4
- data.tar.gz: c24eeedcbf58673347a7afffb71bd26c63d5c5d0
3
+ metadata.gz: 52621b4876e066a74d61ff7fba68098b494000e6
4
+ data.tar.gz: 3ead62d5638940c0014f458dbff6fcb4917eb082
5
5
  SHA512:
6
- metadata.gz: 9da5cf0eb497b10155c06bcde3e6c3845a328363d154a330453cf412a8338df06f2595f3b7c6dc78867b707f0db9073614a79733481f3063e002a9048dc2cdda
7
- data.tar.gz: 4eb5725cb6cf3d29185e96ddf1cbdaeab12b6ac02e521778aa7ee57098800804ee1e91c66d28a5c53425581f78bf8c7f519d30018837024a8f1ce3dfd7153020
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
- if status == 200
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
- if status == 200
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)
@@ -1,3 +1,3 @@
1
1
  module BatchRequestApi
2
- VERSION = "1.0.15"
2
+ VERSION = "1.0.18"
3
3
  end
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.15
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: 2017-08-08 00:00:00.000000000 Z
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.4.6
94
+ rubygems_version: 2.6.11
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Rails Batch Request API.