scalingo-ruby-api 2.0.0 → 2.0.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/scalingo/connection.rb +2 -1
- data/lib/scalingo/version.rb +1 -1
- data/test/request_test.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 93d44948b9d5003a90b68d9f3d361a10bc703effd26bbc316562d988fd20e2d4
|
|
4
|
+
data.tar.gz: 420bc61f173da2db6e43da4cbeb1e21431ee3209919da0cdab192917125dbeda
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '099d5c2bfb8d29e0e6b13b81bba10043f304ceaecb2ed727650b487519b0bbb7e06ce763857f1a616d4d5cbd8d306f05b276f4406bfda8c778a6b73ca2a5f21b'
|
|
7
|
+
data.tar.gz: d7d8088511af8662f0edf4663d000c833b6999de2a0a3ea911eba538aaada4ed106ff2b96b24e838870e51a3b7559c784d042576869f859d2ab48e4b843e3e9e
|
data/CHANGELOG.md
CHANGED
data/lib/scalingo/connection.rb
CHANGED
|
@@ -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, :
|
|
15
|
+
connection.response :json, content_type: /\bjson$/
|
|
16
|
+
connection.request :json
|
|
16
17
|
connection.adapter(adapter)
|
|
17
18
|
end
|
|
18
19
|
end
|
data/lib/scalingo/version.rb
CHANGED
data/test/request_test.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
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
|