simple_jsonapi_client 0.2.5 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docker-compose.yml +2 -0
- data/lib/simple_jsonapi_client/base.rb +3 -2
- data/lib/simple_jsonapi_client/version.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: 8e72a2d0cea7bff8938a532d200fe3da6f87d20050f24fe0b8ddb77cb3b6854c
|
4
|
+
data.tar.gz: 239dd8b6acab3f55408c3335fdc94c475a94f6b69144f8eb26b7082589d4162a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a41f9dcb9329fab138f1034e6a71150d5e0e73feff8b6543b0f441c256169d844f682abf565a6336a7e2b6dafcf43518005563db8d91ebd2fae92e2c1946954f
|
7
|
+
data.tar.gz: f56c4a42c6d07be0edab577677b128aabef784c9c410da23eb656cfae7a09f6a33fd7fc2851d969a7afc7cc430a999b54534b5d6c26bb2bed15dfb718df2d837
|
data/docker-compose.yml
CHANGED
@@ -110,20 +110,21 @@ module SimpleJSONAPIClient
|
|
110
110
|
end
|
111
111
|
|
112
112
|
def operation(request_method, response_type, opts)
|
113
|
-
response = send(request_method, opts)
|
113
|
+
response = send(request_method, **opts)
|
114
114
|
handling_error(response) do
|
115
115
|
send(:"interpret_#{response_type}_response", response, opts[:connection])
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
119
|
def create_request(connection:,
|
120
|
+
id: nil,
|
120
121
|
url_opts: {},
|
121
122
|
url: self::COLLECTION_URL % url_opts,
|
122
123
|
attributes: {},
|
123
124
|
relationships: {},
|
124
125
|
**attrs)
|
125
126
|
attributes, relationships = extract_attrs(attrs, attributes, relationships)
|
126
|
-
body = template(attributes: attributes, relationships: relationships)
|
127
|
+
body = template(id: id, attributes: attributes, relationships: relationships)
|
127
128
|
connection.post(url, body)
|
128
129
|
end
|
129
130
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_jsonapi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ariel Caplan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
requirements: []
|
168
|
-
rubygems_version: 3.2.
|
168
|
+
rubygems_version: 3.2.22
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: Framework for writing clients for JSONAPI APIs in Ruby.
|