scalingo-ruby-api 2.0.0 → 2.0.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
  SHA256:
3
- metadata.gz: 9cac65a8cb02d5c36c8a21f1079f5da30a22499183f4df5f5c218c0f31df8362
4
- data.tar.gz: f5d702234ea4b5c2f13ac430f945dcc1e66986258a56526a8ae0167a3fa9e55b
3
+ metadata.gz: 93d44948b9d5003a90b68d9f3d361a10bc703effd26bbc316562d988fd20e2d4
4
+ data.tar.gz: 420bc61f173da2db6e43da4cbeb1e21431ee3209919da0cdab192917125dbeda
5
5
  SHA512:
6
- metadata.gz: d47763e0fb6b43781cdeaccda286a666efdc5240671889b2a1a7c152c2a32b5512685eacf945b2e0f3787ec64dd814b785c16d42c49ebc546d830b8dda69e26a
7
- data.tar.gz: 56a4f6d9996a71d2d1b2ca43fd1bd9948d0e90559ec9415d2e0d4b426f86087926fd3f9bda21c90fef55be014ce31ff9555504512779ed9cec918d37c10bd7d6
6
+ metadata.gz: '099d5c2bfb8d29e0e6b13b81bba10043f304ceaecb2ed727650b487519b0bbb7e06ce763857f1a616d4d5cbd8d306f05b276f4406bfda8c778a6b73ca2a5f21b'
7
+ data.tar.gz: d7d8088511af8662f0edf4663d000c833b6999de2a0a3ea911eba538aaada4ed106ff2b96b24e838870e51a3b7559c784d042576869f859d2ab48e4b843e3e9e
@@ -1,3 +1,7 @@
1
+ ## 2.0.1 - 2019/12/11
2
+
3
+ * Bugfix: payload was not correctly serialized to JSON for POST/PUT/PATCH queries
4
+
1
5
  ## 2.0.0 - 2019/12/05
2
6
 
3
7
  * Compatibility with new API tokens
@@ -12,7 +12,8 @@ module Scalingo
12
12
  connection.use Faraday::Request::Multipart
13
13
  connection.use Faraday::Request::UrlEncoded
14
14
  connection.use FaradayMiddleware::RaiseHttpException
15
- connection.response :json, :content_type => /\bjson$/
15
+ connection.response :json, content_type: /\bjson$/
16
+ connection.request :json
16
17
  connection.adapter(adapter)
17
18
  end
18
19
  end
@@ -1,3 +1,3 @@
1
1
  module Scalingo
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
@@ -66,7 +66,7 @@ class RequestTest < BaseTestCase
66
66
  assert_equal sym, @request.http_method
67
67
  assert_equal({}, @request.query)
68
68
  assert_equal 'hello', @request.path
69
- assert_equal({ hello: :world }, @request.body)
69
+ assert_equal({ hello: :world }.to_json, @request.body)
70
70
  end
71
71
  end
72
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scalingo-ruby-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo Unbekandt
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-12-09 00:00:00.000000000 Z
12
+ date: 2019-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -186,9 +186,9 @@ specification_version: 4
186
186
  summary: Ruby API for the awesome scalingo project !
187
187
  test_files:
188
188
  - test/scalingo_test.rb
189
- - test/request_test.rb
190
189
  - test/endpoint_collection_test.rb
191
190
  - test/endpoint_resource_test.rb
192
191
  - test/endpoint_base_test.rb
193
192
  - test/connection_test.rb
194
193
  - test/test_helper.rb
194
+ - test/request_test.rb