grape_fast_jsonapi 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38ad3fb865f43aa0c089abf0136617191d3dbf8fa10d3dff3798537312026851
4
- data.tar.gz: 44f09504170ee1b3ec39be3d11784adaf5255b867693c77850d5089b2b2cecf5
3
+ metadata.gz: 23959b13a1fe539f5657f5e4da15712f2da6c2010c05e415426523d419831c60
4
+ data.tar.gz: a5ebffa2ce6617034be70fc2a52f7a876d7d894d52ab2e865036060bf3934462
5
5
  SHA512:
6
- metadata.gz: c6d628fe38e31362949ee2c9e7fbf9d866fe5e99ee910aa16f8dc533da1ee54ec5e8af949d688b194fbe783d258fe5ac09e20ee5a23d60ba8b1aa61335f4d1f7
7
- data.tar.gz: c6f7ec14e0e3d67e9dd707dd99b563408d62526f4188c114198c53a8b053a0075c2c7f98bea028cf1baa797a613465ba7b0b8be16e431624bc961ae6dd00804c
6
+ metadata.gz: 44fd2eb2f433d265376c4e70b3d4a2a10b211a95f8251f041c1a6e0bc3825eaf4d0efcb1977a9e08cf77e479ca81f5d9fba1214b7afc925b018f7d87d74c74e1
7
+ data.tar.gz: 842921a39b89166e57d0286db7c6dfee887821251089c6d57a5050856582cd52c06e698544ccd3740f805a7322aba0e09020fe9cfc348a9115b80750f5854fc2
data/CHANGELOG.md CHANGED
@@ -1,9 +1,14 @@
1
1
  ## Changelog
2
2
 
3
- ### 0.2.1 (Next)
3
+ ### v0.2.2 (Next)
4
4
 
5
5
  * Your contribution here.
6
6
 
7
+ ### v0.2.1 (September 18, 2019)
8
+
9
+ * [#12](https://github.com/EmCousin/grape_fast_jsonapi/pull/12) - Removed call to `rails` and fixed a potential security issue
10
+
11
+
7
12
  ### v0.2.0 (February 8, 2019)
8
13
 
9
14
  * [#5](https://github.com/EmCousin/grape_fast_jsonapi/pull/5): Provide custom Grape Swagger parser for fast_jsonapi object serializers, as well as unit test coverage - [@EmCousin](https://github.com/EmCousin)
data/Gemfile.lock CHANGED
@@ -1,55 +1,68 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grape_fast_jsonapi (0.2.0)
4
+ grape_fast_jsonapi (0.2.1)
5
5
  fast_jsonapi (>= 1.5)
6
6
  grape
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.2.2)
12
- actionpack (= 5.2.2)
11
+ actioncable (6.0.0)
12
+ actionpack (= 6.0.0)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailer (5.2.2)
16
- actionpack (= 5.2.2)
17
- actionview (= 5.2.2)
18
- activejob (= 5.2.2)
15
+ actionmailbox (6.0.0)
16
+ actionpack (= 6.0.0)
17
+ activejob (= 6.0.0)
18
+ activerecord (= 6.0.0)
19
+ activestorage (= 6.0.0)
20
+ activesupport (= 6.0.0)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.0.0)
23
+ actionpack (= 6.0.0)
24
+ actionview (= 6.0.0)
25
+ activejob (= 6.0.0)
19
26
  mail (~> 2.5, >= 2.5.4)
20
27
  rails-dom-testing (~> 2.0)
21
- actionpack (5.2.2)
22
- actionview (= 5.2.2)
23
- activesupport (= 5.2.2)
28
+ actionpack (6.0.0)
29
+ actionview (= 6.0.0)
30
+ activesupport (= 6.0.0)
24
31
  rack (~> 2.0)
25
32
  rack-test (>= 0.6.3)
26
33
  rails-dom-testing (~> 2.0)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.2.2)
29
- activesupport (= 5.2.2)
34
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
35
+ actiontext (6.0.0)
36
+ actionpack (= 6.0.0)
37
+ activerecord (= 6.0.0)
38
+ activestorage (= 6.0.0)
39
+ activesupport (= 6.0.0)
40
+ nokogiri (>= 1.8.5)
41
+ actionview (6.0.0)
42
+ activesupport (= 6.0.0)
30
43
  builder (~> 3.1)
31
44
  erubi (~> 1.4)
32
45
  rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.2.2)
35
- activesupport (= 5.2.2)
46
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
47
+ activejob (6.0.0)
48
+ activesupport (= 6.0.0)
36
49
  globalid (>= 0.3.6)
37
- activemodel (5.2.2)
38
- activesupport (= 5.2.2)
39
- activerecord (5.2.2)
40
- activemodel (= 5.2.2)
41
- activesupport (= 5.2.2)
42
- arel (>= 9.0)
43
- activestorage (5.2.2)
44
- actionpack (= 5.2.2)
45
- activerecord (= 5.2.2)
50
+ activemodel (6.0.0)
51
+ activesupport (= 6.0.0)
52
+ activerecord (6.0.0)
53
+ activemodel (= 6.0.0)
54
+ activesupport (= 6.0.0)
55
+ activestorage (6.0.0)
56
+ actionpack (= 6.0.0)
57
+ activejob (= 6.0.0)
58
+ activerecord (= 6.0.0)
46
59
  marcel (~> 0.3.1)
47
- activesupport (5.2.2)
60
+ activesupport (6.0.0)
48
61
  concurrent-ruby (~> 1.0, >= 1.0.2)
49
62
  i18n (>= 0.7, < 2)
50
63
  minitest (~> 5.1)
51
64
  tzinfo (~> 1.1)
52
- arel (9.0.0)
65
+ zeitwerk (~> 2.1, >= 2.1.8)
53
66
  axiom-types (0.1.1)
54
67
  descendants_tracker (~> 0.0.4)
55
68
  ice_nine (~> 0.11.0)
@@ -57,7 +70,7 @@ GEM
57
70
  builder (3.2.3)
58
71
  coercible (1.0.0)
59
72
  descendants_tracker (~> 0.0.1)
60
- concurrent-ruby (1.1.4)
73
+ concurrent-ruby (1.1.5)
61
74
  crass (1.0.4)
62
75
  descendants_tracker (0.0.4)
63
76
  thread_safe (~> 0.3, >= 0.3.1)
@@ -68,14 +81,14 @@ GEM
68
81
  activesupport (>= 4.2)
69
82
  globalid (0.4.2)
70
83
  activesupport (>= 4.2.0)
71
- grape (1.2.3)
84
+ grape (1.2.4)
72
85
  activesupport
73
86
  builder
74
87
  mustermann-grape (~> 1.0.0)
75
88
  rack (>= 1.3.0)
76
89
  rack-accept
77
90
  virtus (>= 1.0.0)
78
- i18n (1.5.3)
91
+ i18n (1.6.0)
79
92
  concurrent-ruby (~> 1.0)
80
93
  ice_nine (0.11.2)
81
94
  loofah (2.2.3)
@@ -87,58 +100,60 @@ GEM
87
100
  mimemagic (~> 0.3.2)
88
101
  method_source (0.9.2)
89
102
  mimemagic (0.3.3)
90
- mini_mime (1.0.1)
103
+ mini_mime (1.0.2)
91
104
  mini_portile2 (2.4.0)
92
105
  minitest (5.11.3)
93
106
  mustermann (1.0.3)
94
107
  mustermann-grape (1.0.0)
95
108
  mustermann (~> 1.0.0)
96
- nio4r (2.3.1)
97
- nokogiri (1.10.1)
109
+ nio4r (2.5.1)
110
+ nokogiri (1.10.4)
98
111
  mini_portile2 (~> 2.4.0)
99
- rack (2.0.6)
112
+ rack (2.0.7)
100
113
  rack-accept (0.4.5)
101
114
  rack (>= 0.4)
102
115
  rack-test (1.1.0)
103
116
  rack (>= 1.0, < 3)
104
- rails (5.2.2)
105
- actioncable (= 5.2.2)
106
- actionmailer (= 5.2.2)
107
- actionpack (= 5.2.2)
108
- actionview (= 5.2.2)
109
- activejob (= 5.2.2)
110
- activemodel (= 5.2.2)
111
- activerecord (= 5.2.2)
112
- activestorage (= 5.2.2)
113
- activesupport (= 5.2.2)
117
+ rails (6.0.0)
118
+ actioncable (= 6.0.0)
119
+ actionmailbox (= 6.0.0)
120
+ actionmailer (= 6.0.0)
121
+ actionpack (= 6.0.0)
122
+ actiontext (= 6.0.0)
123
+ actionview (= 6.0.0)
124
+ activejob (= 6.0.0)
125
+ activemodel (= 6.0.0)
126
+ activerecord (= 6.0.0)
127
+ activestorage (= 6.0.0)
128
+ activesupport (= 6.0.0)
114
129
  bundler (>= 1.3.0)
115
- railties (= 5.2.2)
130
+ railties (= 6.0.0)
116
131
  sprockets-rails (>= 2.0.0)
117
132
  rails-dom-testing (2.0.3)
118
133
  activesupport (>= 4.2.0)
119
134
  nokogiri (>= 1.6)
120
- rails-html-sanitizer (1.0.4)
135
+ rails-html-sanitizer (1.2.0)
121
136
  loofah (~> 2.2, >= 2.2.2)
122
- railties (5.2.2)
123
- actionpack (= 5.2.2)
124
- activesupport (= 5.2.2)
137
+ railties (6.0.0)
138
+ actionpack (= 6.0.0)
139
+ activesupport (= 6.0.0)
125
140
  method_source
126
141
  rake (>= 0.8.7)
127
- thor (>= 0.19.0, < 2.0)
128
- rake (12.3.2)
142
+ thor (>= 0.20.3, < 2.0)
143
+ rake (12.3.3)
129
144
  rspec (3.8.0)
130
145
  rspec-core (~> 3.8.0)
131
146
  rspec-expectations (~> 3.8.0)
132
147
  rspec-mocks (~> 3.8.0)
133
- rspec-core (3.8.0)
148
+ rspec-core (3.8.2)
134
149
  rspec-support (~> 3.8.0)
135
- rspec-expectations (3.8.2)
150
+ rspec-expectations (3.8.4)
136
151
  diff-lcs (>= 1.2.0, < 2.0)
137
152
  rspec-support (~> 3.8.0)
138
- rspec-mocks (3.8.0)
153
+ rspec-mocks (3.8.1)
139
154
  diff-lcs (>= 1.2.0, < 2.0)
140
155
  rspec-support (~> 3.8.0)
141
- rspec-support (3.8.0)
156
+ rspec-support (3.8.2)
142
157
  sprockets (3.7.2)
143
158
  concurrent-ruby (~> 1.0)
144
159
  rack (> 1, < 3)
@@ -155,9 +170,10 @@ GEM
155
170
  coercible (~> 1.0)
156
171
  descendants_tracker (~> 0.0, >= 0.0.3)
157
172
  equalizer (~> 0.0, >= 0.0.9)
158
- websocket-driver (0.7.0)
173
+ websocket-driver (0.7.1)
159
174
  websocket-extensions (>= 0.1.0)
160
- websocket-extensions (0.1.3)
175
+ websocket-extensions (0.1.4)
176
+ zeitwerk (2.1.10)
161
177
 
162
178
  PLATFORMS
163
179
  ruby
@@ -170,4 +186,4 @@ DEPENDENCIES
170
186
  rspec (~> 3.7)
171
187
 
172
188
  BUNDLED WITH
173
- 1.16.6
189
+ 1.17.2
data/README.md CHANGED
@@ -17,8 +17,9 @@ gem 'grape_fast_jsonapi'
17
17
 
18
18
  ```ruby
19
19
  class API < Grape::API
20
- format :json
20
+ content_type :jsonapi, "application/vnd.api+json"
21
21
  formatter :json, Grape::Formatter::FastJsonapi
22
+ formatter :jsonapi, Grape::Formatter::FastJsonapi
22
23
  end
23
24
  ```
24
25
 
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rails'
4
3
  require 'fast_jsonapi'
5
4
  require 'grape'
6
5
  require 'grape_fast_jsonapi/endpoint_extension'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Grape
4
4
  module FastJsonapi
5
- VERSION = '0.2.0'.freeze
5
+ VERSION = '0.2.1'.freeze
6
6
  end
7
7
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  describe Grape::FastJsonapi::VERSION do
4
- it { is_expected.to eq '0.2.0' }
4
+ it { is_expected.to eq '0.2.1' }
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape_fast_jsonapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emmanuel Cousin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-04 00:00:00.000000000 Z
11
+ date: 2019-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape