trailer_vote-api 0.6.0 → 0.6.1

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: 62d279fb8e9f3dccbe08c75dd759fb92c6d0760f
4
- data.tar.gz: 6fa59a669252af7ef626608e9572f05f4d7046c7
3
+ metadata.gz: 3eeb024b539fc6f3d91d8b8b7b0856ace8176c2f
4
+ data.tar.gz: 824f168e749e1adfd15dad052391d94a07543543
5
5
  SHA512:
6
- metadata.gz: 3f0688032cff2a5b11065bc2a59a8789e1c624af4ab79b21e7cfb1ef02f05affdbf529671262eff05ccaedef61ee366ef2c1394bc5fb088130f2d1722038c73f
7
- data.tar.gz: 696fb2058426f50b5e772969bd219d364d41882c0c267fa3a6e8d8345335380a239dd7048bbce0481393f38c15725d0eacbd44473deaa2377079ea5bfe4d8706
6
+ metadata.gz: 2c6249c188cab7e34fa49506fd9b96fb40a7d28d98356a124b77ef60ef1f452e3122aff23e7d7decce052a731621cd3c43bdfba90346e782db92a90e3162db0c
7
+ data.tar.gz: b43f3f1c5bb2d5b81ff61f248d1bdc343e198520f1dfce694afbae6b5208f74c0a0e9db389625b6810bd02212423da4de5348840fb1cfdc0fc26e4b35dcf76e1
data/.rubocop.yml CHANGED
@@ -5,7 +5,7 @@ AllCops:
5
5
  Exclude:
6
6
  - 'Gemfile'
7
7
  - 'bin/**/*'
8
- TargetRubyVersion: 2.3
8
+ TargetRubyVersion: 2.4
9
9
 
10
10
  Layout/EmptyLinesAroundClassBody:
11
11
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.6.1
2
+
3
+ - Always coerce body into string first because `Oj` might choke on chunked body.
4
+
1
5
  # 0.6.0
2
6
 
3
7
  - Add error classes for common errors
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trailer_vote-api (0.6.0)
4
+ trailer_vote-api (0.6.1)
5
5
  http (>= 3.3.0, < 4.x)
6
6
  oj (>= 3.6, < 4.x)
7
7
  trailer_vote-media_types (>= 0.6.1, < 1)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrailerVote
4
4
  module Api
5
- VERSION = '0.6.0'
5
+ VERSION = '0.6.1'
6
6
  end
7
7
  end
@@ -15,7 +15,7 @@ module TrailerVote
15
15
  module_function
16
16
 
17
17
  def decode(result)
18
- TypeRegistry[result.content_type.mime_type].decode(result.body)
18
+ TypeRegistry[result.content_type.mime_type].decode(result.body.to_s)
19
19
  end
20
20
 
21
21
  def encode(media_type, data)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailer_vote-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-06 00:00:00.000000000 Z
11
+ date: 2018-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http