apipie-rails 0.0.24 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/.gitignore +1 -1
  2. data/.travis.yml +6 -0
  3. data/CHANGELOG.md +97 -0
  4. data/Gemfile +1 -1
  5. data/Gemfile.rails30 +5 -0
  6. data/Gemfile.rails32 +5 -0
  7. data/Gemfile.rails40 +5 -0
  8. data/Gemfile.rails41 +5 -0
  9. data/README.rst +126 -11
  10. data/apipie-rails.gemspec +1 -1
  11. data/app/controllers/apipie/apipies_controller.rb +3 -0
  12. data/app/helpers/apipie_helper.rb +9 -0
  13. data/app/views/apipie/apipies/_metadata.erb +1 -0
  14. data/app/views/apipie/apipies/_method_detail.erb +46 -0
  15. data/app/views/apipie/apipies/_params.html.erb +12 -0
  16. data/app/views/apipie/apipies/_params_plain.html.erb +4 -0
  17. data/app/views/apipie/apipies/apipie_checksum.json.erb +1 -0
  18. data/app/views/apipie/apipies/method.html.erb +1 -37
  19. data/app/views/apipie/apipies/plain.html.erb +1 -0
  20. data/app/views/apipie/apipies/resource.html.erb +6 -37
  21. data/app/views/apipie/apipies/static.html.erb +1 -0
  22. data/lib/apipie/application.rb +16 -2
  23. data/lib/apipie/configuration.rb +8 -2
  24. data/lib/apipie/dsl_definition.rb +25 -6
  25. data/lib/apipie/error_description.rb +22 -10
  26. data/lib/apipie/extractor.rb +2 -1
  27. data/lib/apipie/extractor/writer.rb +8 -6
  28. data/lib/apipie/method_description.rb +7 -4
  29. data/lib/apipie/middleware/checksum_in_headers.rb +35 -0
  30. data/lib/apipie/param_description.rb +25 -4
  31. data/lib/apipie/resource_description.rb +8 -4
  32. data/lib/apipie/routing.rb +1 -0
  33. data/lib/apipie/validator.rb +71 -3
  34. data/lib/apipie/version.rb +1 -1
  35. data/lib/tasks/apipie.rake +26 -5
  36. data/spec/controllers/apipies_controller_spec.rb +2 -0
  37. data/spec/controllers/concerns_controller_spec.rb +1 -1
  38. data/spec/controllers/users_controller_spec.rb +130 -19
  39. data/spec/dummy/app/controllers/api/v1/architectures_controller.rb +1 -0
  40. data/spec/dummy/app/controllers/api/v2/nested/architectures_controller.rb +22 -20
  41. data/spec/dummy/app/controllers/concerns/sample_controller.rb +32 -30
  42. data/spec/dummy/app/controllers/users_controller.rb +18 -5
  43. data/spec/lib/method_description_spec.rb +22 -0
  44. data/spec/lib/param_description_spec.rb +77 -0
  45. data/spec/lib/rake_spec.rb +68 -0
  46. data/spec/lib/resource_description_spec.rb +18 -0
  47. data/spec/lib/validator_spec.rb +9 -0
  48. data/spec/spec_helper.rb +2 -1
  49. data/spec/support/rake.rb +21 -0
  50. metadata +20 -7
  51. data/CHANGELOG +0 -72
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apipie-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-10-30 00:00:00.000000000 Z
13
+ date: 2014-03-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -65,17 +65,17 @@ dependencies:
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  none: false
67
67
  requirements:
68
- - - ~>
68
+ - - ! '>='
69
69
  - !ruby/object:Gem::Version
70
- version: '4.0'
70
+ version: '0'
71
71
  type: :development
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
- - - ~>
76
+ - - ! '>='
77
77
  - !ruby/object:Gem::Version
78
- version: '4.0'
78
+ version: '0'
79
79
  - !ruby/object:Gem::Dependency
80
80
  name: maruku
81
81
  requirement: !ruby/object:Gem::Requirement
@@ -136,14 +136,19 @@ files:
136
136
  - .rspec
137
137
  - .travis.yml
138
138
  - APACHE-LICENSE-2.0
139
- - CHANGELOG
139
+ - CHANGELOG.md
140
140
  - Gemfile
141
+ - Gemfile.rails30
142
+ - Gemfile.rails32
143
+ - Gemfile.rails40
144
+ - Gemfile.rails41
141
145
  - MIT-LICENSE
142
146
  - NOTICE
143
147
  - README.rst
144
148
  - Rakefile
145
149
  - apipie-rails.gemspec
146
150
  - app/controllers/apipie/apipies_controller.rb
151
+ - app/helpers/apipie_helper.rb
147
152
  - app/public/apipie/javascripts/apipie.js
148
153
  - app/public/apipie/javascripts/bundled/bootstrap-collapse.js
149
154
  - app/public/apipie/javascripts/bundled/bootstrap.js
@@ -154,9 +159,12 @@ files:
154
159
  - app/public/apipie/stylesheets/bundled/bootstrap.min.css
155
160
  - app/public/apipie/stylesheets/bundled/prettify.css
156
161
  - app/views/apipie/apipies/_disqus.html.erb
162
+ - app/views/apipie/apipies/_metadata.erb
163
+ - app/views/apipie/apipies/_method_detail.erb
157
164
  - app/views/apipie/apipies/_params.html.erb
158
165
  - app/views/apipie/apipies/_params_plain.html.erb
159
166
  - app/views/apipie/apipies/apipie_404.html.erb
167
+ - app/views/apipie/apipies/apipie_checksum.json.erb
160
168
  - app/views/apipie/apipies/getting_started.html.erb
161
169
  - app/views/apipie/apipies/index.html.erb
162
170
  - app/views/apipie/apipies/method.html.erb
@@ -179,6 +187,7 @@ files:
179
187
  - lib/apipie/helpers.rb
180
188
  - lib/apipie/markup.rb
181
189
  - lib/apipie/method_description.rb
190
+ - lib/apipie/middleware/checksum_in_headers.rb
182
191
  - lib/apipie/param_description.rb
183
192
  - lib/apipie/railtie.rb
184
193
  - lib/apipie/resource_description.rb
@@ -250,9 +259,11 @@ files:
250
259
  - spec/lib/method_description_spec.rb
251
260
  - spec/lib/param_description_spec.rb
252
261
  - spec/lib/param_group_spec.rb
262
+ - spec/lib/rake_spec.rb
253
263
  - spec/lib/resource_description_spec.rb
254
264
  - spec/lib/validator_spec.rb
255
265
  - spec/spec_helper.rb
266
+ - spec/support/rake.rb
256
267
  homepage: http://github.com/Pajk/apipie-rails
257
268
  licenses: []
258
269
  post_install_message:
@@ -333,7 +344,9 @@ test_files:
333
344
  - spec/lib/method_description_spec.rb
334
345
  - spec/lib/param_description_spec.rb
335
346
  - spec/lib/param_group_spec.rb
347
+ - spec/lib/rake_spec.rb
336
348
  - spec/lib/resource_description_spec.rb
337
349
  - spec/lib/validator_spec.rb
338
350
  - spec/spec_helper.rb
351
+ - spec/support/rake.rb
339
352
  has_rdoc:
data/CHANGELOG DELETED
@@ -1,72 +0,0 @@
1
- ===========
2
- Changelog
3
- ===========
4
-
5
- v0.0.24
6
- -------
7
-
8
- * fix DOS vulnerability for running in production without use_cache
9
- * ability to load descriptions from external files
10
- * improved examples extractor
11
- * fixed deprecation warnings in Rails 4
12
- * using StandardError instead of Exception for errors
13
-
14
- v0.0.23
15
- -------
16
-
17
- * fix exceptions on unknown validator
18
- * fix concerns substitution in parameters
19
- * possibility to authenticate the API doc
20
- * support for array in api_controllers_matcher
21
-
22
- v0.0.22
23
- -------
24
-
25
- * fix "named_resources" option
26
- * fix generating static files when concerns used
27
-
28
- v0.0.21
29
- -------
30
-
31
- * fix RDoc 4.0 compatibility issue
32
- * ``validate_value`` and ``validate_presence`` options for better
33
- validation granularity
34
-
35
- v0.0.20
36
- -------
37
-
38
- * namespaced resources - prevent collisions when one resource defined
39
- in more modules
40
- * ``Apipie::DSL::Concern`` for being able to use the DSL in module
41
- that is included into controllers
42
-
43
- v0.0.19
44
- -------
45
-
46
- * fix examples recording when resource_id is set
47
- * use safe_yaml for loading examples file when available
48
-
49
- v0.0.18
50
- -------
51
-
52
- * ``param_group`` and ``def_param_group`` keywords
53
- * ``:action_aware`` options for reusing param groups for create/update actions
54
-
55
- v0.0.17
56
- -------
57
-
58
- * support for multiple see links at action and ability to provide
59
- description of see links
60
-
61
- v0.0.16
62
- -------
63
-
64
- * Fix getting started being rendered even when documentation was available
65
-
66
- v0.0.15
67
- -------
68
-
69
- * Fix case when there is no documentation yet: with link to how to
70
- start
71
- * Fix handling bad requests when cache is on
72
- * Fix params extractor in case there is already some documentation