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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -8
  3. data/app/assets/javascripts/table.js.coffee +10 -1
  4. data/app/assets/stylesheets/rails_api_doc/default.sass +39 -16
  5. data/app/assets/stylesheets/rails_api_doc/table.sass +21 -4
  6. data/app/controllers/rails_api_doc/api_docs_controller.rb +17 -20
  7. data/app/helpers/rails_api_doc/application_helper.rb +11 -0
  8. data/app/models/rails_api_doc/api_datum.rb +17 -0
  9. data/app/views/layouts/rails_api_doc/application.slim +2 -5
  10. data/app/views/rails_api_doc/api_docs/_request_api_table.slim +1 -1
  11. data/app/views/rails_api_doc/api_docs/_response_api_table.slim +4 -3
  12. data/app/views/rails_api_doc/api_docs/{index.slim → show.slim} +0 -0
  13. data/app/views/shared/_param_inputs.slim +2 -3
  14. data/app/views/shared/_table.slim +8 -6
  15. data/app/views/shared/_title.slim +8 -0
  16. data/config/routes.rb +1 -1
  17. data/lib/generators/rails_api_doc/templates/api_datum_migration.rb +4 -1
  18. data/lib/rails_api_doc.rb +16 -1
  19. data/lib/rails_api_doc/controller/headers.rb +59 -0
  20. data/lib/rails_api_doc/controller/param.rb +113 -0
  21. data/lib/rails_api_doc/controller/repo.rb +35 -0
  22. data/lib/rails_api_doc/controller/request/dsl.rb +1 -3
  23. data/lib/rails_api_doc/controller/request/factory.rb +29 -0
  24. data/lib/rails_api_doc/controller/request/headers.rb +11 -42
  25. data/lib/rails_api_doc/controller/request/param.rb +26 -33
  26. data/lib/rails_api_doc/controller/request/repository.rb +5 -26
  27. data/lib/rails_api_doc/controller/response/factory.rb +20 -2
  28. data/lib/rails_api_doc/controller/response/headers.rb +10 -21
  29. data/lib/rails_api_doc/controller/response/param.rb +38 -1
  30. data/lib/rails_api_doc/controller/response/rabl.rb +8 -19
  31. data/lib/rails_api_doc/controller/response/rabl_compiler.rb +7 -9
  32. data/lib/rails_api_doc/controller/response/repository.rb +38 -0
  33. data/lib/rails_api_doc/model/attribute_merger.rb +130 -0
  34. data/lib/rails_api_doc/model/attribute_parser.rb +23 -5
  35. data/lib/rails_api_doc/version.rb +1 -1
  36. 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.2.3
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-03 00:00:00.000000000 Z
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/index.slim
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