api_scaffolding 1.1.4 → 1.1.6

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: 0c10796abf03c6ab7c0ed0127ec229cfa73b9f5a1f06cc5bfd49098ff7c9cdd4
4
- data.tar.gz: c36615b870ecc74e27ff6e6211cf23f0423468bd2db823f401edf392ddb705fd
3
+ metadata.gz: eb5dcafe8e054a77daf3460abe718c81255e2d7b261e0b784867648c49952b11
4
+ data.tar.gz: 325adee0b8385a18dfb0887d08e6c5d0f0e33093af237aba100bb6a9dd570ac9
5
5
  SHA512:
6
- metadata.gz: c52e844dceb9672d91e6b75988063115bd5405255d13604fa281c3f327144a94c23ee6b1012a1f57c6c2f9890459ed5a1f4d1ae068862fc428cad77459dad843
7
- data.tar.gz: 03b179e896c2058afb9b87031b9a707da7894c435f7f2c15b2ba7ad43d33b80398e1eafc9f09ac613ea2168cb172cc63db2cf7d0b568f146d3d0f381fefd0489
6
+ metadata.gz: 1fc146406892fcb22905975ef6f8f8ec4d7502760088fc076f714f4ced4368484626d56568d8e9ebc896b5e6da0fefc547193c34cff8769d08ed1d8a0c296b08
7
+ data.tar.gz: 23bee1ea5bb7a9073a30b1e013796cdec7c538f674236a332a0d4f146c9fb2f8cd8676a9406db0f649f3ff03200cf3c401c5c3392f72690c8bca718472e139e8
@@ -2,7 +2,6 @@
2
2
  module API<%= api_version_module_with_prefix %>
3
3
  class <%= controller_class %> < API<%= api_version_module_with_prefix %>::Root
4
4
 
5
- include API<%= api_version_module_with_prefix %>::Defaults
6
5
  <%- unless @no_params -%>
7
6
  helpers Params<%= api_version_module_with_prefix %>::<%= controller_class %>
8
7
  <%- end -%>
@@ -59,7 +58,7 @@ module API<%= api_version_module_with_prefix %>
59
58
  oauth2
60
59
  <%- unless @no_params -%>
61
60
  params do
62
- use :<%= file_name %>
61
+ use :attributes
63
62
  end
64
63
  <%- end -%>
65
64
  <%- if @abilities_check -%>
@@ -105,7 +104,7 @@ module API<%= api_version_module_with_prefix %>
105
104
  oauth2
106
105
  <%- unless @no_params -%>
107
106
  params do
108
- use :<%= file_name %>
107
+ use :attributes
109
108
  end
110
109
  <%- end -%>
111
110
  <%- if @abilities_check -%>
@@ -8,7 +8,7 @@ module Params<%= api_version_module_with_prefix %>::<%= controller_class %>
8
8
  optional :columns, type: [String], desc: 'Требуемый список колонок'
9
9
  end
10
10
 
11
- params :<%= file_name %> do
11
+ params :attributes do
12
12
  <%- params_fields.each do |column| -%>
13
13
  <%= parameter_line(column) %>
14
14
  <%- end -%>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_scaffolding
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Павел Бабин
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-16 00:00:00.000000000 Z
11
+ date: 2024-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faker