rails_api_documentation 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -8
- data/app/assets/javascripts/table.js.coffee +10 -1
- data/app/assets/stylesheets/rails_api_doc/default.sass +39 -16
- data/app/assets/stylesheets/rails_api_doc/table.sass +21 -4
- data/app/controllers/rails_api_doc/api_docs_controller.rb +17 -20
- data/app/helpers/rails_api_doc/application_helper.rb +11 -0
- data/app/models/rails_api_doc/api_datum.rb +17 -0
- data/app/views/layouts/rails_api_doc/application.slim +2 -5
- data/app/views/rails_api_doc/api_docs/_request_api_table.slim +1 -1
- data/app/views/rails_api_doc/api_docs/_response_api_table.slim +4 -3
- data/app/views/rails_api_doc/api_docs/{index.slim → show.slim} +0 -0
- data/app/views/shared/_param_inputs.slim +2 -3
- data/app/views/shared/_table.slim +8 -6
- data/app/views/shared/_title.slim +8 -0
- data/config/routes.rb +1 -1
- data/lib/generators/rails_api_doc/templates/api_datum_migration.rb +4 -1
- data/lib/rails_api_doc.rb +16 -1
- data/lib/rails_api_doc/controller/headers.rb +59 -0
- data/lib/rails_api_doc/controller/param.rb +113 -0
- data/lib/rails_api_doc/controller/repo.rb +35 -0
- data/lib/rails_api_doc/controller/request/dsl.rb +1 -3
- data/lib/rails_api_doc/controller/request/factory.rb +29 -0
- data/lib/rails_api_doc/controller/request/headers.rb +11 -42
- data/lib/rails_api_doc/controller/request/param.rb +26 -33
- data/lib/rails_api_doc/controller/request/repository.rb +5 -26
- data/lib/rails_api_doc/controller/response/factory.rb +20 -2
- data/lib/rails_api_doc/controller/response/headers.rb +10 -21
- data/lib/rails_api_doc/controller/response/param.rb +38 -1
- data/lib/rails_api_doc/controller/response/rabl.rb +8 -19
- data/lib/rails_api_doc/controller/response/rabl_compiler.rb +7 -9
- data/lib/rails_api_doc/controller/response/repository.rb +38 -0
- data/lib/rails_api_doc/model/attribute_merger.rb +130 -0
- data/lib/rails_api_doc/model/attribute_parser.rb +23 -5
- data/lib/rails_api_doc/version.rb +1 -1
- metadata +10 -3
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_api_documentation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -150,10 +150,11 @@ files:
|
|
150
150
|
- app/views/layouts/rails_api_doc/application.slim
|
151
151
|
- app/views/rails_api_doc/api_docs/_request_api_table.slim
|
152
152
|
- app/views/rails_api_doc/api_docs/_response_api_table.slim
|
153
|
-
- app/views/rails_api_doc/api_docs/
|
153
|
+
- app/views/rails_api_doc/api_docs/show.slim
|
154
154
|
- app/views/shared/_param_inputs.slim
|
155
155
|
- app/views/shared/_side_menu.slim
|
156
156
|
- app/views/shared/_table.slim
|
157
|
+
- app/views/shared/_title.slim
|
157
158
|
- config/routes.rb
|
158
159
|
- lib/generators/rails_api_doc/install_generator.rb
|
159
160
|
- lib/generators/rails_api_doc/templates/api_datum_migration.rb
|
@@ -163,7 +164,11 @@ files:
|
|
163
164
|
- lib/rails_api_doc/config/validate_enum.rb
|
164
165
|
- lib/rails_api_doc/config/validate_type.rb
|
165
166
|
- lib/rails_api_doc/config/validator.rb
|
167
|
+
- lib/rails_api_doc/controller/headers.rb
|
168
|
+
- lib/rails_api_doc/controller/param.rb
|
169
|
+
- lib/rails_api_doc/controller/repo.rb
|
166
170
|
- lib/rails_api_doc/controller/request/dsl.rb
|
171
|
+
- lib/rails_api_doc/controller/request/factory.rb
|
167
172
|
- lib/rails_api_doc/controller/request/headers.rb
|
168
173
|
- lib/rails_api_doc/controller/request/param.rb
|
169
174
|
- lib/rails_api_doc/controller/request/repository.rb
|
@@ -172,10 +177,12 @@ files:
|
|
172
177
|
- lib/rails_api_doc/controller/response/param.rb
|
173
178
|
- lib/rails_api_doc/controller/response/rabl.rb
|
174
179
|
- lib/rails_api_doc/controller/response/rabl_compiler.rb
|
180
|
+
- lib/rails_api_doc/controller/response/repository.rb
|
175
181
|
- lib/rails_api_doc/controller/strong_params/dsl.rb
|
176
182
|
- lib/rails_api_doc/controller/strong_params/permitted_params.rb
|
177
183
|
- lib/rails_api_doc/engine.rb
|
178
184
|
- lib/rails_api_doc/exception/param_required.rb
|
185
|
+
- lib/rails_api_doc/model/attribute_merger.rb
|
179
186
|
- lib/rails_api_doc/model/attribute_parser.rb
|
180
187
|
- lib/rails_api_doc/railtie.rb
|
181
188
|
- lib/rails_api_doc/version.rb
|