apipie-rails 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -2
- data/CHANGELOG.md +26 -0
- data/README.rst +94 -3
- data/app/controllers/apipie/apipies_controller.rb +28 -10
- data/app/views/apipie/apipies/_disqus.html.erb +4 -2
- data/app/views/apipie/apipies/_languages.erb +6 -0
- data/app/views/apipie/apipies/_method_detail.erb +7 -7
- data/app/views/apipie/apipies/_params.html.erb +2 -2
- data/app/views/apipie/apipies/_params_plain.html.erb +2 -2
- data/app/views/apipie/apipies/apipie_404.html.erb +7 -4
- data/app/views/apipie/apipies/getting_started.html.erb +5 -3
- data/app/views/apipie/apipies/index.html.erb +7 -6
- data/app/views/apipie/apipies/method.html.erb +4 -2
- data/app/views/apipie/apipies/plain.html.erb +3 -3
- data/app/views/apipie/apipies/resource.html.erb +3 -2
- data/app/views/apipie/apipies/static.html.erb +7 -7
- data/app/views/layouts/apipie/apipie.html.erb +1 -1
- data/config/locales/en.yml +27 -0
- data/lib/apipie-rails.rb +7 -0
- data/lib/apipie/apipie_module.rb +5 -2
- data/lib/apipie/application.rb +27 -16
- data/lib/apipie/configuration.rb +6 -1
- data/lib/apipie/extractor.rb +35 -26
- data/lib/apipie/extractor/recorder.rb +9 -5
- data/lib/apipie/extractor/writer.rb +36 -7
- data/lib/apipie/method_description.rb +6 -6
- data/lib/apipie/param_description.rb +9 -4
- data/lib/apipie/resource_description.rb +5 -5
- data/lib/apipie/routing.rb +1 -1
- data/lib/apipie/version.rb +1 -1
- data/lib/generators/apipie/install/templates/initializer.rb.erb +1 -1
- data/lib/tasks/apipie.rake +89 -47
- data/spec/dummy/doc/apipie_examples.json +1 -0
- data/spec/lib/extractor/middleware_spec.rb +21 -0
- data/spec/lib/extractor/writer_spec.rb +76 -0
- metadata +10 -5
- data/Gemfile.rails30 +0 -5
- data/spec/dummy/doc/apipie_examples.yml +0 -28
data/Gemfile.rails30
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
---
|
2
|
-
users#show:
|
3
|
-
- verb: :GET
|
4
|
-
path: /users/15
|
5
|
-
query:
|
6
|
-
request_data:
|
7
|
-
response_data:
|
8
|
-
code: 404
|
9
|
-
show_in_doc: 2
|
10
|
-
recorded: true
|
11
|
-
- verb: :GET
|
12
|
-
path: /users/14
|
13
|
-
query: "verbose=true"
|
14
|
-
request_data:
|
15
|
-
response_data:
|
16
|
-
name: Test User
|
17
|
-
code: 200
|
18
|
-
show_in_doc: 1
|
19
|
-
recorded: true
|
20
|
-
- verb: :GET
|
21
|
-
path: /users/15
|
22
|
-
query: "verbose=true"
|
23
|
-
request_data:
|
24
|
-
response_data:
|
25
|
-
name: Test User
|
26
|
-
code: 200
|
27
|
-
show_in_doc: 0
|
28
|
-
recorded: true
|