power_api 2.0.0 → 2.1.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 +4 -4
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +71 -85
- data/README.md +15 -281
- data/lib/generators/power_api/controller/controller_generator.rb +0 -28
- data/lib/generators/power_api/exposed_api_config/exposed_api_config_generator.rb +0 -11
- data/lib/generators/power_api/version/version_generator.rb +0 -23
- data/lib/power_api/engine.rb +2 -5
- data/lib/power_api/generator_helper/active_record_resource.rb +0 -14
- data/lib/power_api/generator_helper/rspec_controller_helper.rb +20 -4
- data/lib/power_api/generator_helpers.rb +0 -1
- data/lib/power_api/version.rb +1 -1
- data/lib/power_api.rb +0 -2
- data/power_api.gemspec +0 -3
- data/spec/dummy/spec/lib/power_api/generator_helper/rspec_controller_helper_spec.rb +18 -6
- data/spec/dummy/spec/support/shared_examples/active_record_resource_atrributes.rb +20 -20
- metadata +2 -47
- data/lib/power_api/generator_helper/swagger_helper.rb +0 -468
- data/spec/dummy/spec/lib/power_api/generator_helper/swagger_helper_spec.rb +0 -470
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f9ac70fd373bcfa86774718053e2a050a63cf01edaf3b795ae32974f84d4316
|
4
|
+
data.tar.gz: 987dfb777a07a02ceffb510d2e958e66295a2a7b032f4b59589c7b46466f9554
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91645d4b96ce2956214e9520a17111907935507a756b15a6b76c6a1703deb39b5a6b70da33432c4dce90b8d3407c89e3639082311c311013f64230904b9f1031
|
7
|
+
data.tar.gz: a7fc3106279ad4b52c8da096e9367e9c4c90e6ea10d504e4f7f3f54d07bfdfdc764b2512a432a4597aebd1fbcdda560590bb9df9e288beffbf0adeb28d179e62
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
|
+
|
5
|
+
### v2.1.0
|
6
|
+
|
7
|
+
* Swagger has been deleted from the Exposed Api version.
|
8
|
+
|
9
|
+
### v2.0.2
|
10
|
+
|
11
|
+
* Fix: change the way PowerApi::ApplicationHelper is loaded into host app.
|
12
|
+
|
13
|
+
### v2.0.1
|
14
|
+
|
15
|
+
* Fix: trying to reference ApplicationController in wrong namespace.
|
4
16
|
### v2.0.0
|
5
17
|
|
6
18
|
* Add API internal and exposed modes.
|
data/Gemfile.lock
CHANGED
@@ -1,55 +1,53 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
power_api (2.
|
4
|
+
power_api (2.1.0)
|
5
5
|
active_model_serializers (~> 0.10.0)
|
6
6
|
api-pagination
|
7
7
|
kaminari
|
8
8
|
rails (>= 6.0)
|
9
9
|
ransack
|
10
10
|
responders
|
11
|
-
rswag-api
|
12
|
-
rswag-ui
|
13
11
|
simple_token_authentication (~> 1.0)
|
14
12
|
versionist (~> 1.0)
|
15
13
|
|
16
14
|
GEM
|
17
15
|
remote: https://rubygems.org/
|
18
16
|
specs:
|
19
|
-
actioncable (6.1.
|
20
|
-
actionpack (= 6.1.
|
21
|
-
activesupport (= 6.1.
|
17
|
+
actioncable (6.1.6)
|
18
|
+
actionpack (= 6.1.6)
|
19
|
+
activesupport (= 6.1.6)
|
22
20
|
nio4r (~> 2.0)
|
23
21
|
websocket-driver (>= 0.6.1)
|
24
|
-
actionmailbox (6.1.
|
25
|
-
actionpack (= 6.1.
|
26
|
-
activejob (= 6.1.
|
27
|
-
activerecord (= 6.1.
|
28
|
-
activestorage (= 6.1.
|
29
|
-
activesupport (= 6.1.
|
22
|
+
actionmailbox (6.1.6)
|
23
|
+
actionpack (= 6.1.6)
|
24
|
+
activejob (= 6.1.6)
|
25
|
+
activerecord (= 6.1.6)
|
26
|
+
activestorage (= 6.1.6)
|
27
|
+
activesupport (= 6.1.6)
|
30
28
|
mail (>= 2.7.1)
|
31
|
-
actionmailer (6.1.
|
32
|
-
actionpack (= 6.1.
|
33
|
-
actionview (= 6.1.
|
34
|
-
activejob (= 6.1.
|
35
|
-
activesupport (= 6.1.
|
29
|
+
actionmailer (6.1.6)
|
30
|
+
actionpack (= 6.1.6)
|
31
|
+
actionview (= 6.1.6)
|
32
|
+
activejob (= 6.1.6)
|
33
|
+
activesupport (= 6.1.6)
|
36
34
|
mail (~> 2.5, >= 2.5.4)
|
37
35
|
rails-dom-testing (~> 2.0)
|
38
|
-
actionpack (6.1.
|
39
|
-
actionview (= 6.1.
|
40
|
-
activesupport (= 6.1.
|
36
|
+
actionpack (6.1.6)
|
37
|
+
actionview (= 6.1.6)
|
38
|
+
activesupport (= 6.1.6)
|
41
39
|
rack (~> 2.0, >= 2.0.9)
|
42
40
|
rack-test (>= 0.6.3)
|
43
41
|
rails-dom-testing (~> 2.0)
|
44
42
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
45
|
-
actiontext (6.1.
|
46
|
-
actionpack (= 6.1.
|
47
|
-
activerecord (= 6.1.
|
48
|
-
activestorage (= 6.1.
|
49
|
-
activesupport (= 6.1.
|
43
|
+
actiontext (6.1.6)
|
44
|
+
actionpack (= 6.1.6)
|
45
|
+
activerecord (= 6.1.6)
|
46
|
+
activestorage (= 6.1.6)
|
47
|
+
activesupport (= 6.1.6)
|
50
48
|
nokogiri (>= 1.8.5)
|
51
|
-
actionview (6.1.
|
52
|
-
activesupport (= 6.1.
|
49
|
+
actionview (6.1.6)
|
50
|
+
activesupport (= 6.1.6)
|
53
51
|
builder (~> 3.1)
|
54
52
|
erubi (~> 1.4)
|
55
53
|
rails-dom-testing (~> 2.0)
|
@@ -59,37 +57,35 @@ GEM
|
|
59
57
|
activemodel (>= 4.1, < 7.1)
|
60
58
|
case_transform (>= 0.2)
|
61
59
|
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
|
62
|
-
activejob (6.1.
|
63
|
-
activesupport (= 6.1.
|
60
|
+
activejob (6.1.6)
|
61
|
+
activesupport (= 6.1.6)
|
64
62
|
globalid (>= 0.3.6)
|
65
|
-
activemodel (6.1.
|
66
|
-
activesupport (= 6.1.
|
67
|
-
activerecord (6.1.
|
68
|
-
activemodel (= 6.1.
|
69
|
-
activesupport (= 6.1.
|
70
|
-
activestorage (6.1.
|
71
|
-
actionpack (= 6.1.
|
72
|
-
activejob (= 6.1.
|
73
|
-
activerecord (= 6.1.
|
74
|
-
activesupport (= 6.1.
|
75
|
-
marcel (~> 1.0
|
63
|
+
activemodel (6.1.6)
|
64
|
+
activesupport (= 6.1.6)
|
65
|
+
activerecord (6.1.6)
|
66
|
+
activemodel (= 6.1.6)
|
67
|
+
activesupport (= 6.1.6)
|
68
|
+
activestorage (6.1.6)
|
69
|
+
actionpack (= 6.1.6)
|
70
|
+
activejob (= 6.1.6)
|
71
|
+
activerecord (= 6.1.6)
|
72
|
+
activesupport (= 6.1.6)
|
73
|
+
marcel (~> 1.0)
|
76
74
|
mini_mime (>= 1.1.0)
|
77
|
-
activesupport (6.1.
|
75
|
+
activesupport (6.1.6)
|
78
76
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
79
77
|
i18n (>= 1.6, < 2)
|
80
78
|
minitest (>= 5.1)
|
81
79
|
tzinfo (~> 2.0)
|
82
80
|
zeitwerk (~> 2.3)
|
83
|
-
addressable (2.8.0)
|
84
|
-
public_suffix (>= 2.0.2, < 5.0)
|
85
81
|
api-pagination (4.8.2)
|
86
82
|
ast (2.4.2)
|
87
|
-
bcrypt (3.1.
|
83
|
+
bcrypt (3.1.18)
|
88
84
|
builder (3.2.4)
|
89
85
|
case_transform (0.2)
|
90
86
|
activesupport
|
91
87
|
coderay (1.1.3)
|
92
|
-
concurrent-ruby (1.1.
|
88
|
+
concurrent-ruby (1.1.10)
|
93
89
|
coveralls (0.8.23)
|
94
90
|
json (>= 1.8, < 3)
|
95
91
|
simplecov (~> 0.16.1)
|
@@ -129,12 +125,10 @@ GEM
|
|
129
125
|
guard (~> 2.1)
|
130
126
|
guard-compat (~> 1.1)
|
131
127
|
rspec (>= 2.99.0, < 4.0)
|
132
|
-
i18n (1.
|
128
|
+
i18n (1.10.0)
|
133
129
|
concurrent-ruby (~> 1.0)
|
134
130
|
jaro_winkler (1.5.4)
|
135
131
|
json (2.5.1)
|
136
|
-
json-schema (2.8.1)
|
137
|
-
addressable (>= 2.4)
|
138
132
|
jsonapi-renderer (0.2.2)
|
139
133
|
kaminari (1.2.2)
|
140
134
|
activesupport (>= 4.1.0)
|
@@ -151,7 +145,7 @@ GEM
|
|
151
145
|
listen (3.5.1)
|
152
146
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
153
147
|
rb-inotify (~> 0.9, >= 0.9.10)
|
154
|
-
loofah (2.
|
148
|
+
loofah (2.18.0)
|
155
149
|
crass (~> 1.0.2)
|
156
150
|
nokogiri (>= 1.5.9)
|
157
151
|
lumberjack (1.2.8)
|
@@ -163,9 +157,11 @@ GEM
|
|
163
157
|
minitest (5.15.0)
|
164
158
|
nenv (0.3.0)
|
165
159
|
nio4r (2.5.8)
|
166
|
-
nokogiri (1.13.
|
160
|
+
nokogiri (1.13.6-arm64-darwin)
|
167
161
|
racc (~> 1.4)
|
168
|
-
nokogiri (1.13.
|
162
|
+
nokogiri (1.13.6-x86_64-darwin)
|
163
|
+
racc (~> 1.4)
|
164
|
+
nokogiri (1.13.6-x86_64-linux)
|
169
165
|
racc (~> 1.4)
|
170
166
|
notiffany (0.1.3)
|
171
167
|
nenv (~> 0.1)
|
@@ -181,42 +177,41 @@ GEM
|
|
181
177
|
pry-rails (0.3.9)
|
182
178
|
pry (>= 0.10.4)
|
183
179
|
psych (4.0.1)
|
184
|
-
public_suffix (4.0.6)
|
185
180
|
racc (1.6.0)
|
186
181
|
rack (2.2.3)
|
187
182
|
rack-test (1.1.0)
|
188
183
|
rack (>= 1.0, < 3)
|
189
|
-
rails (6.1.
|
190
|
-
actioncable (= 6.1.
|
191
|
-
actionmailbox (= 6.1.
|
192
|
-
actionmailer (= 6.1.
|
193
|
-
actionpack (= 6.1.
|
194
|
-
actiontext (= 6.1.
|
195
|
-
actionview (= 6.1.
|
196
|
-
activejob (= 6.1.
|
197
|
-
activemodel (= 6.1.
|
198
|
-
activerecord (= 6.1.
|
199
|
-
activestorage (= 6.1.
|
200
|
-
activesupport (= 6.1.
|
184
|
+
rails (6.1.6)
|
185
|
+
actioncable (= 6.1.6)
|
186
|
+
actionmailbox (= 6.1.6)
|
187
|
+
actionmailer (= 6.1.6)
|
188
|
+
actionpack (= 6.1.6)
|
189
|
+
actiontext (= 6.1.6)
|
190
|
+
actionview (= 6.1.6)
|
191
|
+
activejob (= 6.1.6)
|
192
|
+
activemodel (= 6.1.6)
|
193
|
+
activerecord (= 6.1.6)
|
194
|
+
activestorage (= 6.1.6)
|
195
|
+
activesupport (= 6.1.6)
|
201
196
|
bundler (>= 1.15.0)
|
202
|
-
railties (= 6.1.
|
197
|
+
railties (= 6.1.6)
|
203
198
|
sprockets-rails (>= 2.0.0)
|
204
199
|
rails-dom-testing (2.0.3)
|
205
200
|
activesupport (>= 4.2.0)
|
206
201
|
nokogiri (>= 1.6)
|
207
202
|
rails-html-sanitizer (1.4.2)
|
208
203
|
loofah (~> 2.3)
|
209
|
-
railties (6.1.
|
210
|
-
actionpack (= 6.1.
|
211
|
-
activesupport (= 6.1.
|
204
|
+
railties (6.1.6)
|
205
|
+
actionpack (= 6.1.6)
|
206
|
+
activesupport (= 6.1.6)
|
212
207
|
method_source
|
213
|
-
rake (>=
|
208
|
+
rake (>= 12.2)
|
214
209
|
thor (~> 1.0)
|
215
210
|
rainbow (3.0.0)
|
216
211
|
rake (13.0.6)
|
217
|
-
ransack (2.
|
218
|
-
activerecord (>=
|
219
|
-
activesupport (>=
|
212
|
+
ransack (3.2.0)
|
213
|
+
activerecord (>= 6.1.5)
|
214
|
+
activesupport (>= 6.1.5)
|
220
215
|
i18n
|
221
216
|
rb-fsevent (0.11.0)
|
222
217
|
rb-inotify (0.10.1)
|
@@ -247,15 +242,6 @@ GEM
|
|
247
242
|
rspec-support (3.10.2)
|
248
243
|
rspec_junit_formatter (0.4.1)
|
249
244
|
rspec-core (>= 2, < 4, != 2.12.0)
|
250
|
-
rswag-api (2.4.0)
|
251
|
-
railties (>= 3.1, < 7.0)
|
252
|
-
rswag-specs (2.4.0)
|
253
|
-
activesupport (>= 3.1, < 7.0)
|
254
|
-
json-schema (~> 2.2)
|
255
|
-
railties (>= 3.1, < 7.0)
|
256
|
-
rswag-ui (2.4.0)
|
257
|
-
actionpack (>= 3.1, < 7.0)
|
258
|
-
railties (>= 3.1, < 7.0)
|
259
245
|
rubocop (0.65.0)
|
260
246
|
jaro_winkler (~> 1.5.1)
|
261
247
|
parallel (~> 1.10)
|
@@ -278,7 +264,7 @@ GEM
|
|
278
264
|
json (>= 1.8, < 3)
|
279
265
|
simplecov-html (~> 0.10.0)
|
280
266
|
simplecov-html (0.10.2)
|
281
|
-
sprockets (4.0.
|
267
|
+
sprockets (4.0.3)
|
282
268
|
concurrent-ruby (~> 1.0)
|
283
269
|
rack (> 1, < 3)
|
284
270
|
sprockets-rails (3.4.2)
|
@@ -307,9 +293,10 @@ GEM
|
|
307
293
|
websocket-extensions (0.1.5)
|
308
294
|
yard (0.9.27)
|
309
295
|
webrick (~> 1.7.0)
|
310
|
-
zeitwerk (2.5.
|
296
|
+
zeitwerk (2.5.4)
|
311
297
|
|
312
298
|
PLATFORMS
|
299
|
+
arm64-darwin-20
|
313
300
|
x86_64-darwin-20
|
314
301
|
x86_64-linux
|
315
302
|
|
@@ -323,10 +310,9 @@ DEPENDENCIES
|
|
323
310
|
pry-rails
|
324
311
|
rspec-rails
|
325
312
|
rspec_junit_formatter
|
326
|
-
rswag-specs
|
327
313
|
rubocop (= 0.65.0)
|
328
314
|
rubocop-rspec
|
329
315
|
sqlite3 (~> 1.4.2)
|
330
316
|
|
331
317
|
BUNDLED WITH
|
332
|
-
2.2.
|
318
|
+
2.2.24
|