standardapi 6.0.0.15 → 6.0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -6
- data/lib/standard_api.rb +2 -0
- data/lib/standard_api/active_record/connection_adapters/postgresql/schema_statements.rb +21 -0
- data/lib/standard_api/controller.rb +77 -66
- data/lib/standard_api/errors.rb +13 -0
- data/lib/standard_api/helpers.rb +67 -15
- data/lib/standard_api/includes.rb +22 -12
- data/lib/standard_api/orders.rb +4 -6
- data/lib/standard_api/railtie.rb +1 -1
- data/lib/standard_api/route_helpers.rb +4 -0
- data/lib/standard_api/test_case/calculate_tests.rb +5 -3
- data/lib/standard_api/test_case/create_tests.rb +0 -3
- data/lib/standard_api/test_case/schema_tests.rb +19 -3
- data/lib/standard_api/version.rb +1 -1
- data/lib/standard_api/views/application/_record.json.jbuilder +11 -10
- data/lib/standard_api/views/application/_record.streamer +11 -10
- data/lib/standard_api/views/application/_schema.json.jbuilder +68 -0
- data/lib/standard_api/views/application/_schema.streamer +78 -0
- data/lib/standard_api/views/application/index.json.jbuilder +9 -16
- data/lib/standard_api/views/application/index.streamer +9 -16
- data/lib/standard_api/views/application/schema.json.jbuilder +1 -12
- data/lib/standard_api/views/application/schema.streamer +1 -16
- data/lib/standard_api/views/application/show.json.jbuilder +8 -1
- data/lib/standard_api/views/application/show.streamer +8 -1
- data/test/standard_api/test_app.rb +55 -0
- data/test/standard_api/test_app/config/database.yml +4 -0
- data/test/standard_api/test_app/controllers.rb +107 -0
- data/test/standard_api/test_app/models.rb +94 -0
- data/test/standard_api/test_app/test/factories.rb +50 -0
- data/test/standard_api/test_app/test/fixtures/photo.png +0 -0
- data/test/standard_api/test_app/views/photos/_photo.json.jbuilder +15 -0
- data/test/standard_api/test_app/views/photos/_photo.streamer +17 -0
- data/test/standard_api/test_app/views/photos/_schema.json.jbuilder +1 -0
- data/test/standard_api/test_app/views/photos/_schema.streamer +3 -0
- data/test/standard_api/test_app/views/photos/schema.json.jbuilder +1 -0
- data/test/standard_api/test_app/views/photos/schema.streamer +1 -0
- data/test/standard_api/test_app/views/properties/edit.html.erb +1 -0
- data/test/standard_api/test_app/views/sessions/new.html.erb +0 -0
- metadata +27 -8
@@ -0,0 +1 @@
|
|
1
|
+
json.set! 'template', 'photos/schema'
|
@@ -0,0 +1 @@
|
|
1
|
+
json.partial! 'schema'
|
@@ -0,0 +1 @@
|
|
1
|
+
json.partial! 'schema'
|
@@ -0,0 +1 @@
|
|
1
|
+
properties#edit.html
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standardapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.0.
|
4
|
+
version: 6.0.0.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Bracy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -151,7 +151,7 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: simplecov
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
@@ -165,7 +165,7 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: factory_bot_rails
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
@@ -179,7 +179,7 @@ dependencies:
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
182
|
+
name: faker
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - ">="
|
@@ -193,7 +193,7 @@ dependencies:
|
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
196
|
+
name: byebug
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - ">="
|
@@ -207,7 +207,7 @@ dependencies:
|
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
210
|
+
name: mocha
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
213
|
- - ">="
|
@@ -221,7 +221,7 @@ dependencies:
|
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
224
|
+
name: benchmark-ips
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - ">="
|
@@ -245,7 +245,9 @@ extra_rdoc_files:
|
|
245
245
|
files:
|
246
246
|
- README.md
|
247
247
|
- lib/standard_api.rb
|
248
|
+
- lib/standard_api/active_record/connection_adapters/postgresql/schema_statements.rb
|
248
249
|
- lib/standard_api/controller.rb
|
250
|
+
- lib/standard_api/errors.rb
|
249
251
|
- lib/standard_api/helpers.rb
|
250
252
|
- lib/standard_api/includes.rb
|
251
253
|
- lib/standard_api/middleware/query_encoding.rb
|
@@ -264,6 +266,8 @@ files:
|
|
264
266
|
- lib/standard_api/version.rb
|
265
267
|
- lib/standard_api/views/application/_record.json.jbuilder
|
266
268
|
- lib/standard_api/views/application/_record.streamer
|
269
|
+
- lib/standard_api/views/application/_schema.json.jbuilder
|
270
|
+
- lib/standard_api/views/application/_schema.streamer
|
267
271
|
- lib/standard_api/views/application/index.json.jbuilder
|
268
272
|
- lib/standard_api/views/application/index.streamer
|
269
273
|
- lib/standard_api/views/application/new.json.jbuilder
|
@@ -272,6 +276,20 @@ files:
|
|
272
276
|
- lib/standard_api/views/application/schema.streamer
|
273
277
|
- lib/standard_api/views/application/show.json.jbuilder
|
274
278
|
- lib/standard_api/views/application/show.streamer
|
279
|
+
- test/standard_api/test_app.rb
|
280
|
+
- test/standard_api/test_app/config/database.yml
|
281
|
+
- test/standard_api/test_app/controllers.rb
|
282
|
+
- test/standard_api/test_app/models.rb
|
283
|
+
- test/standard_api/test_app/test/factories.rb
|
284
|
+
- test/standard_api/test_app/test/fixtures/photo.png
|
285
|
+
- test/standard_api/test_app/views/photos/_photo.json.jbuilder
|
286
|
+
- test/standard_api/test_app/views/photos/_photo.streamer
|
287
|
+
- test/standard_api/test_app/views/photos/_schema.json.jbuilder
|
288
|
+
- test/standard_api/test_app/views/photos/_schema.streamer
|
289
|
+
- test/standard_api/test_app/views/photos/schema.json.jbuilder
|
290
|
+
- test/standard_api/test_app/views/photos/schema.streamer
|
291
|
+
- test/standard_api/test_app/views/properties/edit.html.erb
|
292
|
+
- test/standard_api/test_app/views/sessions/new.html.erb
|
275
293
|
homepage: https://github.com/waratuman/standardapi
|
276
294
|
licenses:
|
277
295
|
- MIT
|
@@ -282,6 +300,7 @@ rdoc_options:
|
|
282
300
|
- README.md
|
283
301
|
require_paths:
|
284
302
|
- lib
|
303
|
+
- test
|
285
304
|
required_ruby_version: !ruby/object:Gem::Requirement
|
286
305
|
requirements:
|
287
306
|
- - ">="
|