json_requester 0.1.4 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/json_requester.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 748a32c5295898af685b4e3ed70df92ea11efc759a221fbec98cce193392c427
|
4
|
+
data.tar.gz: 435e21117b3428590f3ef89239ae527bacfde144450129d57928f1aed6e27386
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34d090e834fa922db9806bde4de4090bed712a4b75962228863618fafd9b1ea6bf9ecd0a6d41cb5aabf2232d16f1d00072413902f4d56b46cc0429d041cfd09a
|
7
|
+
data.tar.gz: ee00fa54730c1ea8561db4967c100c7c1fcc6a6ec3d9c56abd16fdf20a2eae9bf2836edc9f540c020cf941d490ece55c38b8beaf7bde3bf9b8646c1e3f688971
|
data/lib/json_requester.rb
CHANGED
@@ -44,7 +44,7 @@ class JsonRequester
|
|
44
44
|
res = @conn.send(http_method) do |req|
|
45
45
|
req.url path
|
46
46
|
req.headers = headers if object_present?(headers)
|
47
|
-
req.headers['Content-Type'] = 'application/json
|
47
|
+
req.headers['Content-Type'] = 'application/json;charset=utf-8'
|
48
48
|
req.body = params.to_json if object_present?(params)
|
49
49
|
end
|
50
50
|
process_response(res)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_requester
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JiaRou Lee
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -37,7 +37,7 @@ homepage: https://github.com/kdan-mobile-software-ltd/json_requester
|
|
37
37
|
licenses:
|
38
38
|
- MIT
|
39
39
|
metadata: {}
|
40
|
-
post_install_message:
|
40
|
+
post_install_message:
|
41
41
|
rdoc_options:
|
42
42
|
- "--charset=UTF-8"
|
43
43
|
require_paths:
|
@@ -53,9 +53,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
requirements: []
|
56
|
-
|
57
|
-
|
58
|
-
signing_key:
|
56
|
+
rubygems_version: 3.0.3
|
57
|
+
signing_key:
|
59
58
|
specification_version: 4
|
60
59
|
summary: Basic Wrapper of Faraday
|
61
60
|
test_files: []
|