standardapi 1.0.9 → 1.0.10

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
  SHA1:
3
- metadata.gz: 63c8921b97fdb4abbf50b62b99cec5050e93c4ed
4
- data.tar.gz: ed7258f9fe40b427d5c0c99905f3f7531dcb23df
3
+ metadata.gz: c3ef0a277d0306f9afa031a1bbbd80e7a36595b5
4
+ data.tar.gz: 89adcb13d289d2ef7b4b7027d9385c50f3555e9c
5
5
  SHA512:
6
- metadata.gz: 01a8d8c64f137d55e5e2df91731841b9005e86398a8e5741d4b6aba7c964d371e342d23a67f60d77d306cbfb2316cca3c6cb14b75dd68700684494884af87228
7
- data.tar.gz: 9b6ca4d68e679f91ef4cb254485fd6251675cb513a27383104a14b168f5a74d9702932b2e6d567e7a8a081fc8434e741fbbd9d5ef05b932c54a4576be0ecb66f
6
+ metadata.gz: b51fb68bea85b47d19549f567f5a3461de9d662633b973c93461f692ce660945d16cb6604dcf11b89db04bc1566c9a92269e477b494906c3f2ac96a6b42af1e9
7
+ data.tar.gz: 554e724a84890ca9dc5d0d0c21e481c217e4b9384cc67ef624bed671e984baf2fc89d24fa9b5079ba18aeaf66b7474ffdc94b3270259ec8deec05f67129f60f8
@@ -0,0 +1,8 @@
1
+ module StandardAPI
2
+ module TestCase
3
+ module IndexTests
4
+ extend ActiveSupport::Testing::Declarative
5
+
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,9 @@
1
1
  records = @records if !records
2
2
 
3
+ # partial = if lookup_context.exists?(association.klass.model_name.element, controller_name)
4
+ # association.klass.model_name.element
5
+ # else
6
+ # 'record'
7
+ # end
8
+
3
9
  json.array! records, partial: 'application/record', as: :record, includes: includes
@@ -1,3 +1,9 @@
1
1
  record = @record if !record
2
2
 
3
+ # partial = if lookup_context.exists?(association.klass.model_name.element, controller_name)
4
+ # association.klass.model_name.element
5
+ # else
6
+ # 'record'
7
+ # end
8
+
3
9
  json.partial! 'application/record', record: record, includes: includes
data/lib/standard_api.rb CHANGED
@@ -20,7 +20,7 @@ module StandardAPI
20
20
  def self.included(klass)
21
21
  klass.hide_action :current_mask
22
22
  klass.helper_method :includes, :orders, :model
23
- klass.prepend_view_path(File.join(File.dirname(__FILE__), 'standard_api', 'views'))
23
+ klass.append_view_path(File.join(File.dirname(__FILE__), 'standard_api', 'views'))
24
24
  klass.extend(ClassMethods)
25
25
  end
26
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standardapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Bracy
@@ -196,6 +196,7 @@ files:
196
196
  - lib/standard_api/test_case/create_tests.rb
197
197
  - lib/standard_api/test_case/destroy_tests.rb
198
198
  - lib/standard_api/test_case/index_tests.rb
199
+ - lib/standard_api/test_case/schema_test.rb
199
200
  - lib/standard_api/test_case/show_tests.rb
200
201
  - lib/standard_api/test_case/update_tests.rb
201
202
  - lib/standard_api/views/application/_record.json.jbuilder