copy_tuner_client 0.4.6 → 0.4.7

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
  SHA256:
3
- metadata.gz: bea0580a939cf024f1fdf8591aaa72956c1e3aeabdea1609a8f97d3ebb544890
4
- data.tar.gz: 9beccd0ea02ef6ee6b5283ce60ac442b1d6bcd3c5876907bcacb899ce5fbabf8
3
+ metadata.gz: ac7de9e94feb84dcd83112003007f9a2c8c334ef0a446ecfb1b3ea822c1b34fb
4
+ data.tar.gz: d5eb971a3f94c2f471476a46c76a5eaed0f5b28d6b7476e051ee95563e91252d
5
5
  SHA512:
6
- metadata.gz: 5efb8eb5d2ca1db876223bf4ab29307caf2104f83cff25d4583f74e409cbb30252b7cc9b6b6f28a4c2ca0d8e73671e6014ec04a8dd137b98b20b2cfd3b4099e2
7
- data.tar.gz: 17b5e90d9091dc0b95bbba213d5645a25b250f9c44e8ef6dd302447ec7de2e0d49b07c3fb022d0748ae8fdbf857716573daf8488db2f3ce033a110ef376c34bd
6
+ metadata.gz: 684e8d5fa455555b9da8c3cc2e0fb09238da7a4e7cd65050c7b44eb72a27ddea10d1db9d1d737e6d329553a34a724aa726bb2de728e5650372e565e0e8d386c5
7
+ data.tar.gz: 3ce3e0e8851c86d20644bc6c85653f1c1b4e01f52fcb5e87a025a87e8de65e4ff1191b1bd06fceafbb5c2c613604090221777f4b381c6461776e989a3997dfa4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.7
2
+ - changes
3
+ - Compatibile with bullet gem (rewrap response with ActionDispatch::Response::RackBody)
4
+
1
5
  ## 0.4.6
2
6
  - changes
3
7
  - Performance imporovement (sync with server asynchronously)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- copy_tuner_client (0.4.6)
4
+ copy_tuner_client (0.4.7)
5
5
  i18n (>= 0.5.0)
6
6
  json
7
7
 
@@ -15,12 +15,11 @@ module CopyTunerClient
15
15
  body = append_translation_logs(body)
16
16
  body = inject_copy_tuner_bar(body)
17
17
  content_length = body.bytesize.to_s
18
- if ActionDispatch::Response === response
19
- response.body = [body]
20
- response.headers['Content-Length'] = content_length
21
- response.to_a
18
+ headers['Content-Length'] = content_length
19
+ # maintains compatibility with other middlewares
20
+ if defined?(ActionDispatch::Response::RackBody) && ActionDispatch::Response::RackBody === response
21
+ ActionDispatch::Response.new(status, headers, [body]).to_a
22
22
  else
23
- headers['Content-Length'] = content_length
24
23
  [status, headers, [body]]
25
24
  end
26
25
  else
@@ -1,6 +1,6 @@
1
1
  module CopyTunerClient
2
2
  # Client version
3
- VERSION = '0.4.6'.freeze
3
+ VERSION = '0.4.7'.freeze
4
4
 
5
5
  # API version being used to communicate with the server
6
6
  API_VERSION = '2.0'.freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copy_tuner_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - SonicGarden
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-29 00:00:00.000000000 Z
11
+ date: 2018-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n