easy-jsonapi 1.0.7 → 1.0.11
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/.github/workflows/codecov.yml +7 -10
- data/.github/workflows/publish.yml +3 -3
- data/.rspec_status +497 -492
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +21 -7
- data/Gemfile.lock +21 -20
- data/README.md +12 -10
- data/easy-jsonapi.gemspec +1 -1
- metadata +3 -3
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,36 +1,50 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
-
## 1.0.
|
|
3
|
+
## 1.0.11 - 2021-10-8
|
|
4
|
+
- Updated dependencies to fix security vulnerability
|
|
5
|
+
|
|
6
|
+
## 1.0.10 - 2021-09-29
|
|
7
|
+
- Updated dependencies to fix security vulnerability
|
|
8
|
+
|
|
9
|
+
## 1.0.9 - 2021-05-04
|
|
10
|
+
|
|
11
|
+
- Updated dependencies to fix security vulnerability in rexml
|
|
12
|
+
|
|
13
|
+
## 1.0.8 - 2021-05-04
|
|
14
|
+
|
|
15
|
+
- Updated dependencies to fix security vulnerability in rexml
|
|
16
|
+
|
|
17
|
+
## 1.0.7 - 2021-03-31
|
|
4
18
|
|
|
5
19
|
- Fixed bug in JSONAPI::Parser::JSONParser that would serialize hashes with symbol key values instead of string
|
|
6
20
|
|
|
7
|
-
## 1.0.6 -
|
|
21
|
+
## 1.0.6 - 2021-03-30
|
|
8
22
|
|
|
9
23
|
- Fixed bug in JSONAPI::Middleware that was not checking for environment variables properly
|
|
10
24
|
|
|
11
|
-
## 1.0.5 -
|
|
25
|
+
## 1.0.5 - 2021-03-30
|
|
12
26
|
|
|
13
27
|
- Fixed bug in JSONAPI::Exceptions::HeadersExceptions that didn't check for user required headers requirements
|
|
14
28
|
- Fixed bug in JSONAPI::Exceptions::QueryParamExceptions that didn't check for user required query param requirements
|
|
15
29
|
- Added more tests to the middleware
|
|
16
30
|
- Updated Documentation
|
|
17
31
|
|
|
18
|
-
## 1.0.4 -
|
|
32
|
+
## 1.0.4 - 2021-03-28
|
|
19
33
|
|
|
20
34
|
- Fixed JSONAPI::ExceptionsHeadersExceptions bug
|
|
21
35
|
- Updated README files
|
|
22
36
|
|
|
23
|
-
## 1.0.3 -
|
|
37
|
+
## 1.0.3 - 2021-03-25
|
|
24
38
|
|
|
25
39
|
- Updated JSONAPI::Exceptions::HeadersExceptions to allow wildcard matching for Accept header
|
|
26
40
|
|
|
27
|
-
## 1.0.2 -
|
|
41
|
+
## 1.0.2 - 2021-03-25
|
|
28
42
|
|
|
29
43
|
- Updated README and fix READE broken links
|
|
30
44
|
- Reorganization of README files into docs file.
|
|
31
45
|
- Make easy-jsonapi compatible with ruby versions >= 2.5
|
|
32
46
|
- Added wrapper around Oj usage so all raised errors are found in the JSONAPI::Exceptions module
|
|
33
47
|
|
|
34
|
-
## 1.0.0 -
|
|
48
|
+
## 1.0.0 - 2021-03-24
|
|
35
49
|
|
|
36
50
|
- This is the first release with a version of 1.0.0. All main features supported, but user configurations can be developed to provide greater adherence to the spec and more developer features.
|
data/Gemfile.lock
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
easy-jsonapi (1.0.
|
|
4
|
+
easy-jsonapi (1.0.11)
|
|
5
5
|
oj (~> 3.10)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
10
|
ast (2.4.2)
|
|
11
|
-
backport (1.
|
|
11
|
+
backport (1.2.0)
|
|
12
12
|
benchmark (0.1.1)
|
|
13
|
-
codecov (0.
|
|
13
|
+
codecov (0.6.0)
|
|
14
14
|
simplecov (>= 0.15, < 0.22)
|
|
15
15
|
diff-lcs (1.4.4)
|
|
16
|
-
docile (1.
|
|
16
|
+
docile (1.4.0)
|
|
17
17
|
e2mmap (0.1.0)
|
|
18
18
|
jaro_winkler (1.5.4)
|
|
19
19
|
kramdown (2.3.1)
|
|
20
20
|
rexml
|
|
21
21
|
kramdown-parser-gfm (1.1.0)
|
|
22
22
|
kramdown (~> 2.0)
|
|
23
|
-
nokogiri (1.
|
|
23
|
+
nokogiri (1.12.5-x86_64-darwin)
|
|
24
24
|
racc (~> 1.4)
|
|
25
|
-
nokogiri (1.
|
|
25
|
+
nokogiri (1.12.5-x86_64-linux)
|
|
26
26
|
racc (~> 1.4)
|
|
27
|
-
oj (3.
|
|
28
|
-
parallel (1.
|
|
29
|
-
parser (3.0.
|
|
27
|
+
oj (3.13.8)
|
|
28
|
+
parallel (1.21.0)
|
|
29
|
+
parser (3.0.2.0)
|
|
30
30
|
ast (~> 2.4.1)
|
|
31
31
|
racc (1.5.2)
|
|
32
32
|
rack (2.2.3)
|
|
33
33
|
rainbow (3.0.0)
|
|
34
|
-
rake (13.0.
|
|
34
|
+
rake (13.0.6)
|
|
35
35
|
redcarpet (3.5.1)
|
|
36
36
|
regexp_parser (2.1.1)
|
|
37
37
|
reverse_markdown (2.0.0)
|
|
38
38
|
nokogiri
|
|
39
|
-
rexml (3.2.
|
|
39
|
+
rexml (3.2.5)
|
|
40
40
|
rspec (3.10.0)
|
|
41
41
|
rspec-core (~> 3.10.0)
|
|
42
42
|
rspec-expectations (~> 3.10.0)
|
|
@@ -50,28 +50,29 @@ GEM
|
|
|
50
50
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
51
51
|
rspec-support (~> 3.10.0)
|
|
52
52
|
rspec-support (3.10.2)
|
|
53
|
-
rubocop (1.
|
|
53
|
+
rubocop (1.22.1)
|
|
54
54
|
parallel (~> 1.10)
|
|
55
55
|
parser (>= 3.0.0.0)
|
|
56
56
|
rainbow (>= 2.2.2, < 4.0)
|
|
57
57
|
regexp_parser (>= 1.8, < 3.0)
|
|
58
58
|
rexml
|
|
59
|
-
rubocop-ast (>= 1.
|
|
59
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
|
60
60
|
ruby-progressbar (~> 1.7)
|
|
61
61
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
62
|
-
rubocop-ast (1.
|
|
63
|
-
parser (>=
|
|
62
|
+
rubocop-ast (1.12.0)
|
|
63
|
+
parser (>= 3.0.1.1)
|
|
64
64
|
ruby-progressbar (1.11.0)
|
|
65
65
|
simplecov (0.21.2)
|
|
66
66
|
docile (~> 1.1)
|
|
67
67
|
simplecov-html (~> 0.11)
|
|
68
68
|
simplecov_json_formatter (~> 0.1)
|
|
69
69
|
simplecov-html (0.12.3)
|
|
70
|
-
simplecov_json_formatter (0.1.
|
|
71
|
-
solargraph (0.
|
|
72
|
-
backport (~> 1.
|
|
70
|
+
simplecov_json_formatter (0.1.3)
|
|
71
|
+
solargraph (0.44.0)
|
|
72
|
+
backport (~> 1.2)
|
|
73
73
|
benchmark
|
|
74
74
|
bundler (>= 1.17.2)
|
|
75
|
+
diff-lcs (~> 1.4)
|
|
75
76
|
e2mmap
|
|
76
77
|
jaro_winkler (~> 1.5)
|
|
77
78
|
kramdown (~> 2.3)
|
|
@@ -84,11 +85,11 @@ GEM
|
|
|
84
85
|
yard (~> 0.9, >= 0.9.24)
|
|
85
86
|
thor (1.1.0)
|
|
86
87
|
tilt (2.0.10)
|
|
87
|
-
unicode-display_width (2.
|
|
88
|
+
unicode-display_width (2.1.0)
|
|
88
89
|
yard (0.9.26)
|
|
89
90
|
|
|
90
91
|
PLATFORMS
|
|
91
|
-
x86_64-darwin-
|
|
92
|
+
x86_64-darwin-20
|
|
92
93
|
x86_64-linux
|
|
93
94
|
|
|
94
95
|
DEPENDENCIES
|
data/README.md
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|

|
|
9
9
|

|
|
10
|
-

|
|
11
|
+

|
|
12
12
|

|
|
13
|
-

|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
The gem that makes using [JSON:API](https://jsonapi.org/) ***EASY***!
|
|
@@ -27,10 +27,12 @@ As a bonus, flexible user configurations can be added to the middleware providin
|
|
|
27
27
|
|
|
28
28
|
## Links
|
|
29
29
|
|
|
30
|
-
- [*Documentation*](https://rubydoc.info/github/
|
|
30
|
+
- [*Documentation*](https://rubydoc.info/github/lucemhealth-archive/easy-jsonapi/production)
|
|
31
31
|
|
|
32
32
|
- [*RubyGems* *Repository*](https://rubygems.org/search?query=easy-jsonapi)
|
|
33
33
|
|
|
34
|
+
- [*Class Diagram*](https://lucid.app/lucidchart/invitations/accept/3d543b29-4171-43cb-94db-9aeb346cdcac)
|
|
35
|
+
|
|
34
36
|
## Installation
|
|
35
37
|
|
|
36
38
|
Add this line to your applications' Gemfile:
|
|
@@ -141,7 +143,7 @@ If `ENV['RACK_ENV']` is set to something other than `'development'`, then the m
|
|
|
141
143
|
|
|
142
144
|
### User Configurations
|
|
143
145
|
|
|
144
|
-
***easy-jsonapi*** has a fair amount of flexibility when it comes to user configurations but also plenty of room for to add more features. To see the currently available configurations see [UsingUserConfigurations](https://github.com/
|
|
146
|
+
***easy-jsonapi*** has a fair amount of flexibility when it comes to user configurations but also plenty of room for to add more features. To see the currently available configurations see [UsingUserConfigurations](https://github.com/lucemhealth-archive/easy-jsonapi/blob/production/docs/UsingUserConfigurations.md) and to propose a new feature create a pull request or ticket on the [dev repository](https://github.com/lucemhealth-archive/easy-jsonapi/tree/dev).
|
|
145
147
|
|
|
146
148
|
## Using the Request Parser
|
|
147
149
|
|
|
@@ -173,7 +175,7 @@ require 'easy/jsonapi'
|
|
|
173
175
|
jsonapi_req = JSONAPI::Parser.parse_request(env)
|
|
174
176
|
```
|
|
175
177
|
|
|
176
|
-
This returns a `JSONAPI::Request` object that can be used to access the collection of query params, collection of headers, and the body of the request. To see example usage, see [Using the Request Object](https://github.com/
|
|
178
|
+
This returns a `JSONAPI::Request` object that can be used to access the collection of query params, collection of headers, and the body of the request. To see example usage, see [Using the Request Object](https://github.com/lucemhealth-archive/easy-jsonapi/blob/production/docs/UsingTheRequestObject.md).
|
|
177
179
|
|
|
178
180
|
## Using the Serialized Response Validator
|
|
179
181
|
|
|
@@ -196,7 +198,7 @@ end
|
|
|
196
198
|
The `headers` param is a hash of `String => String` or `Symbol => String` of the header keys and values.
|
|
197
199
|
The `body` param is either the JSON body or a ruby hash representation of the body.
|
|
198
200
|
|
|
199
|
-
See the [rubydocs](https://rubydoc.info/github/
|
|
201
|
+
See the [rubydocs](https://rubydoc.info/github/lucemhealth-archive/easy-jsonapi/proudction) for more on the Serialized Response Validator.
|
|
200
202
|
|
|
201
203
|
## Acknowledgements
|
|
202
204
|
|
|
@@ -204,7 +206,7 @@ The exception checking strategy for `JSONAPI::Exceptions::DocumentExceptions` an
|
|
|
204
206
|
|
|
205
207
|
## Releases
|
|
206
208
|
|
|
207
|
-
See [{file:CHANGELOG.md}](https://github.com/
|
|
209
|
+
See [{file:CHANGELOG.md}](https://github.com/lucemhealth-archive/easy-jsonapi/blob/production/CHANGELOG.md).
|
|
208
210
|
|
|
209
211
|
## License
|
|
210
212
|
|
|
@@ -212,8 +214,8 @@ See [{file:CHANGELOG.md}](https://github.com/Curatess/easy-jsonapi/blob/producti
|
|
|
212
214
|
|
|
213
215
|
## Contributing
|
|
214
216
|
|
|
215
|
-
Bug reports and pull requests are welcome [here on Github](https://github.com/
|
|
217
|
+
Bug reports and pull requests are welcome [here on Github](https://github.com/lucemhealth-archive/easy-jsonapi). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Code of Conduct](https://github.com/lucemhealth-archive/easy-jsonapi/blob/production/CODE_OF_CONDUCT.md).
|
|
216
218
|
|
|
217
219
|
## Code of Conduct
|
|
218
220
|
|
|
219
|
-
Everyone interacting in the easy-jsonapi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [Code of Conduct](https://github.com/
|
|
221
|
+
Everyone interacting in the easy-jsonapi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [Code of Conduct](https://github.com/lucemhealth-archive/easy-jsonapi/blob/production/CODE_OF_CONDUCT.md).
|
data/easy-jsonapi.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: easy-jsonapi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joshua DeMoss, Joe Viscomi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-10-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|
|
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
249
249
|
- !ruby/object:Gem::Version
|
|
250
250
|
version: '0'
|
|
251
251
|
requirements: []
|
|
252
|
-
rubygems_version: 3.2.
|
|
252
|
+
rubygems_version: 3.2.15
|
|
253
253
|
signing_key:
|
|
254
254
|
specification_version: 4
|
|
255
255
|
summary: Middleware, Parser, and Validator for JSONAPI requests and serialized resopnses
|