json_api_client 1.5.2 → 1.22.0
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 +5 -5
- data/README.md +206 -9
- data/lib/json_api_client/associations/base_association.rb +7 -0
- data/lib/json_api_client/associations/belongs_to.rb +11 -10
- data/lib/json_api_client/associations/has_many.rb +0 -8
- data/lib/json_api_client/associations/has_one.rb +6 -9
- data/lib/json_api_client/connection.rb +8 -3
- data/lib/json_api_client/error_collector.rb +19 -10
- data/lib/json_api_client/errors.rb +86 -17
- data/lib/json_api_client/helpers/associatable.rb +88 -0
- data/lib/json_api_client/helpers/dirty.rb +5 -1
- data/lib/json_api_client/helpers/dynamic_attributes.rb +19 -11
- data/lib/json_api_client/helpers.rb +1 -0
- data/lib/json_api_client/included_data.rb +24 -12
- data/lib/json_api_client/middleware/json_request.rb +16 -1
- data/lib/json_api_client/middleware/status.rb +32 -6
- data/lib/json_api_client/paginating/nested_param_paginator.rb +140 -0
- data/lib/json_api_client/paginating/paginator.rb +1 -1
- data/lib/json_api_client/paginating.rb +2 -1
- data/lib/json_api_client/query/builder.rb +77 -49
- data/lib/json_api_client/query/requestor.rb +21 -13
- data/lib/json_api_client/relationships/relations.rb +0 -1
- data/lib/json_api_client/request_params.rb +57 -0
- data/lib/json_api_client/resource.rb +196 -46
- data/lib/json_api_client/schema.rb +3 -3
- data/lib/json_api_client/utils.rb +26 -1
- data/lib/json_api_client/version.rb +1 -1
- data/lib/json_api_client.rb +2 -1
- metadata +44 -16
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: json_api_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.22.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeff Ching
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-11-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -28,30 +28,42 @@ dependencies:
|
|
|
28
28
|
name: faraday
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - "
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 0.15.2
|
|
34
|
+
- - "<"
|
|
35
|
+
- !ruby/object:Gem::Version
|
|
36
|
+
version: '2.0'
|
|
34
37
|
type: :runtime
|
|
35
38
|
prerelease: false
|
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
40
|
requirements:
|
|
38
|
-
- - "
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: 0.15.2
|
|
44
|
+
- - "<"
|
|
39
45
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '0
|
|
46
|
+
version: '2.0'
|
|
41
47
|
- !ruby/object:Gem::Dependency
|
|
42
48
|
name: faraday_middleware
|
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
|
44
50
|
requirements:
|
|
45
|
-
- - "
|
|
51
|
+
- - ">="
|
|
46
52
|
- !ruby/object:Gem::Version
|
|
47
|
-
version:
|
|
53
|
+
version: 0.9.0
|
|
54
|
+
- - "<"
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
version: '2.0'
|
|
48
57
|
type: :runtime
|
|
49
58
|
prerelease: false
|
|
50
59
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
60
|
requirements:
|
|
52
|
-
- - "
|
|
61
|
+
- - ">="
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: 0.9.0
|
|
64
|
+
- - "<"
|
|
53
65
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '0
|
|
66
|
+
version: '2.0'
|
|
55
67
|
- !ruby/object:Gem::Dependency
|
|
56
68
|
name: addressable
|
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -81,19 +93,33 @@ dependencies:
|
|
|
81
93
|
- !ruby/object:Gem::Version
|
|
82
94
|
version: 3.2.0
|
|
83
95
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
name:
|
|
96
|
+
name: rack
|
|
85
97
|
requirement: !ruby/object:Gem::Requirement
|
|
86
98
|
requirements:
|
|
87
99
|
- - ">="
|
|
88
100
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '0'
|
|
90
|
-
type: :
|
|
101
|
+
version: '0.2'
|
|
102
|
+
type: :runtime
|
|
91
103
|
prerelease: false
|
|
92
104
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
105
|
requirements:
|
|
94
106
|
- - ">="
|
|
95
107
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '0'
|
|
108
|
+
version: '0.2'
|
|
109
|
+
- !ruby/object:Gem::Dependency
|
|
110
|
+
name: webmock
|
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
|
112
|
+
requirements:
|
|
113
|
+
- - "~>"
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: 3.5.1
|
|
116
|
+
type: :development
|
|
117
|
+
prerelease: false
|
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
- - "~>"
|
|
121
|
+
- !ruby/object:Gem::Version
|
|
122
|
+
version: 3.5.1
|
|
97
123
|
- !ruby/object:Gem::Dependency
|
|
98
124
|
name: mocha
|
|
99
125
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -128,6 +154,7 @@ files:
|
|
|
128
154
|
- lib/json_api_client/errors.rb
|
|
129
155
|
- lib/json_api_client/formatter.rb
|
|
130
156
|
- lib/json_api_client/helpers.rb
|
|
157
|
+
- lib/json_api_client/helpers/associatable.rb
|
|
131
158
|
- lib/json_api_client/helpers/callbacks.rb
|
|
132
159
|
- lib/json_api_client/helpers/dirty.rb
|
|
133
160
|
- lib/json_api_client/helpers/dynamic_attributes.rb
|
|
@@ -143,6 +170,7 @@ files:
|
|
|
143
170
|
- lib/json_api_client/middleware/parse_json.rb
|
|
144
171
|
- lib/json_api_client/middleware/status.rb
|
|
145
172
|
- lib/json_api_client/paginating.rb
|
|
173
|
+
- lib/json_api_client/paginating/nested_param_paginator.rb
|
|
146
174
|
- lib/json_api_client/paginating/paginator.rb
|
|
147
175
|
- lib/json_api_client/parsers.rb
|
|
148
176
|
- lib/json_api_client/parsers/parser.rb
|
|
@@ -152,6 +180,7 @@ files:
|
|
|
152
180
|
- lib/json_api_client/relationships.rb
|
|
153
181
|
- lib/json_api_client/relationships/relations.rb
|
|
154
182
|
- lib/json_api_client/relationships/top_level_relations.rb
|
|
183
|
+
- lib/json_api_client/request_params.rb
|
|
155
184
|
- lib/json_api_client/resource.rb
|
|
156
185
|
- lib/json_api_client/result_set.rb
|
|
157
186
|
- lib/json_api_client/schema.rb
|
|
@@ -176,8 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
176
205
|
- !ruby/object:Gem::Version
|
|
177
206
|
version: '0'
|
|
178
207
|
requirements: []
|
|
179
|
-
|
|
180
|
-
rubygems_version: 2.5.2
|
|
208
|
+
rubygems_version: 3.0.3.1
|
|
181
209
|
signing_key:
|
|
182
210
|
specification_version: 4
|
|
183
211
|
summary: Build client libraries compliant with specification defined by jsonapi.org
|