apitome 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +100 -1
  3. data/lib/apitome/engine.rb +4 -2
  4. data/lib/apitome/version.rb +1 -1
  5. data/lib/generators/apitome/install/POST_INSTALL +4 -0
  6. data/lib/generators/apitome/install/install_generator.rb +19 -0
  7. data/lib/generators/apitome/install/templates/api.md +4 -0
  8. data/lib/generators/apitome/install/templates/initializer.rb +44 -0
  9. data/spec/dummy/config/initializers/apitome.rb +39 -1
  10. data/spec/dummy/log/development.log +215 -0
  11. data/spec/dummy/tmp/cache/assets/development/sprockets/03fdbedf7c517a2e1feda524c52a652a +0 -0
  12. data/spec/dummy/tmp/cache/assets/development/sprockets/51da1b3982537bb7f98b971e3f9c45f1 +0 -0
  13. data/spec/dummy/tmp/cache/assets/development/sprockets/53ba3c64ee4d340ffd21feaab8cc579a +0 -0
  14. data/spec/dummy/tmp/cache/assets/development/sprockets/54ddec13d8230a77be44f49bba9ab063 +0 -0
  15. data/spec/dummy/tmp/cache/assets/development/sprockets/82a9467461d6cbd74f0c38002037d366 +0 -0
  16. data/spec/dummy/tmp/cache/assets/development/sprockets/833c936b0961f9bc9f6821682b662c28 +0 -0
  17. data/spec/dummy/tmp/cache/assets/development/sprockets/86d22f0e7f750dbdf5b602b99e7c51c8 +0 -0
  18. data/spec/dummy/tmp/cache/assets/development/sprockets/a4636c23002ad75a90567e067a4a87b2 +0 -0
  19. data/spec/dummy/tmp/cache/assets/development/sprockets/a47d2ddd9c0e1b87d20a911bb1c92651 +0 -0
  20. data/spec/dummy/tmp/cache/assets/development/sprockets/dab2b969e1e0d90b3b2325566486eca9 +0 -0
  21. data/spec/dummy/tmp/cache/assets/development/sprockets/dfd8cd5b3aa5e4d8e14f8b26118e94f3 +0 -0
  22. data/spec/dummy/tmp/cache/assets/development/sprockets/fa138ab5e008fb2d4c75be6c6558677b +0 -0
  23. data/vendor/assets/stylesheets/apitome/highlight_themes/{tomorrow-night.css → tomorrow_night.css} +0 -0
  24. data/vendor/assets/stylesheets/apitome/highlight_themes/{tomorrow-night-blue.css → tomorrow_night_blue.css} +0 -0
  25. data/vendor/assets/stylesheets/apitome/highlight_themes/{tomorrow-night-bright.css → tomorrow_night_bright.css} +0 -0
  26. data/vendor/assets/stylesheets/apitome/highlight_themes/{tomorrow-night-eighties.css → tomorrow_night_eighties.css} +0 -0
  27. metadata +26 -16
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YjBhMmIwYWE5MTk1ODg5Njg3Zjg3ZTYyZGZlNjMxNmZkYjkxODEwNg==
5
- data.tar.gz: !binary |-
6
- YmZlY2NjYzczOTZlNmQ1YWVjZDhhYWRmNWIzMTc4N2IwOTE4NDY1YQ==
2
+ SHA1:
3
+ metadata.gz: 6502d6ca822e5f389f6be9f1b7913376951416b4
4
+ data.tar.gz: 80618ed260d3b5aa3b0ef4e4089d3e84c45a4e58
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- OGQ4ZDQ3YjQyMzM2MjU0ZmQ0ZDkwNTVhOThjYTIwMTEzOTg4ZGRkMDdhNGFm
10
- ODlkNDMyODlkZTIzNzEwM2E2MzBhNWM5MTNiM2E0YmFlZmY2ZmY2MjgzZmEz
11
- ZDBiY2U1OTkwMjk3YmRkZDNiYzgxYWZkY2JiZjNjMjhiMjgzNGQ=
12
- data.tar.gz: !binary |-
13
- ODY2NWU2ZTlhNzhhNmNhMDkyZGQyOTg2ZjY4MDlhY2NkZDQ2ZjYyMjA2ZmRm
14
- MTBkNTBjMDY1N2Y2OGU3ZWYxOGZkNDgwM2NjZjg5ZTM0OGFmNzRhNWQwM2Vm
15
- NjMxNjc4Nzk0YzEzMjE1MmQ1OGMxMzBmNWYxMmQ1MGQ2YTdhNzY=
6
+ metadata.gz: 875c1000fae6914a076bb3540931381e06b29f80c257ba20dd8413b9687e7243d87660c86f0c8743592e53c6fc1969033ff22f26e6d0a6f7b673071e70034313
7
+ data.tar.gz: 5e3b4182023c665d3e4cecd6a2fd03315ee76db60fe788315affa10d84ca7efeab15c6f06a21eaf71a58d59d5738ca3eab944addd020748a962975aa9ecf4328
data/README.md CHANGED
@@ -1,15 +1,114 @@
1
1
  Apitome
2
2
  =======
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/apitome.png)](http://badge.fury.io/rb/apitome)
5
+ [![Code Climate](https://codeclimate.com/github/modeset/apitome.png)](https://codeclimate.com/github/modeset/apitome)
4
6
 
7
+ Apitome is a documentation tool for Rails that enhances [rspec_api_documentation](https://github.com/zipmark/rspec_api_documentation) (RAD). It's designed to display the documentation generated by RAD in either a single page (with scrollspy), or on individual pages, and uses Bootstrap3 for most of the basic styling and [highlight.js](https://github.com/isagalaev/highlight.js) for code highlighting.
8
+
9
+ You can provide a markdown file that will be displayed as the README page, and by taking advantage of its modular view structure you can override any number of views and partials to customize the output. You can also specify custom css and javascript if you want to do fancier things or change how it looks.
10
+
11
+
12
+ ## Installation
13
+
14
+ Add it to your Gemfile.
15
+
16
+ ```ruby
17
+ gem "apitome"
18
+ ```
19
+
20
+ Optionally run the install generator to get the initializer and an initial readme file (doc/api.md).
21
+
22
+ ```
23
+ rails generate apitome:install
24
+ ```
25
+
26
+ Update your `spec_helper.rb` to adjust how RAD outputs its results -- Apitome reads these JSON files to generate the documentation.
5
27
 
6
- `spec_helper.rb`
7
28
  ```ruby
8
29
  RspecApiDocumentation.configure do |config|
9
30
  config.format = :json
10
31
  end
11
32
  ```
12
33
 
34
+
35
+ ## Usage
36
+
37
+ You can view your documentation at the default `api/docs` route.
38
+
39
+
40
+ ## Configuration
41
+
42
+ <dl>
43
+
44
+ <dt> mount_at </dt><dd>
45
+ This determines where the Apitome routes will be mounted. Changing this to "/api/documentation" for instance would allow you to browse to http://localhost:3000/api/documentation to see your api documentation. Set to nil and mount it yourself if you need to.<br/>
46
+
47
+ <b>default:</b> <code>"/api/docs"</code>
48
+ </dd>
49
+
50
+ <dt> root </dt><dd>
51
+ This defaults to Rails.root if left nil. If you're providing documentation for an engine using a dummy application it can be useful to set this to your engines root.. E.g. <code>Application::Engine.root</code><br/>
52
+
53
+ <b>default:</b> <code>nil</code>
54
+ </dd>
55
+
56
+ <dt> doc_path </dt><dd>
57
+ This is where rspec_api_documentation outputs the JSON files. This is configurable within RAD, and so is configurable here.<br/>
58
+
59
+ <b>default:</b> <code>"doc/api"</code>
60
+ </dd>
61
+
62
+ <dt> title </dt><dd>
63
+ The title of the documentation -- If your project has a name, you'll want to put it here.<br/>
64
+
65
+ <b>default:</b> <code>"Apitome Documentation"</code>
66
+ </dd>
67
+
68
+ <dt> layout </dt><dd>
69
+ The main layout view for all documentation pages. By default this is pretty basic, but you may want to use your own application layout.<br/>
70
+
71
+ <b>default:</b> <code>"apitome/application"</code>
72
+ </dd>
73
+
74
+ <dt> code_theme </dt><dd>
75
+ We're using [highlight.js](https://github.com/isagalaev/highlight.js) for code highlighting, and it comes with some great themes. You can check [here for themes](http://softwaremaniacs.org/media/soft/highlight/test.html), and enter the theme as lowercase/underscore.<br/>
76
+
77
+ <b>default:</b> <code>"default"</code>
78
+ </dd>
79
+
80
+ <dt> css_override </dt><dd>
81
+ This allows you to override the css manually. You typically want to require `apitome/application` within the override, but if you want to override it entirely you can do so.<br/>
82
+
83
+ <b>default:</b> <code>nil</code>
84
+ </dd>
85
+
86
+ <dt> js_override </dt><dd>
87
+ This allows you to override the javascript manually. You typically want to require `apitome/application` within the override, but if you want to override it entirely you can do so.<br/>
88
+
89
+ <b>default:</b> <code>nil</code>
90
+ </dd>
91
+
92
+ <dt> readme </dt><dd>
93
+ You can provide a "README" style markdown file for the documentation, which is a useful place to include general information. This path is relative to your doc_path configuration.<br/>
94
+
95
+ <b>default:</b> <code>"../api.md"</code>
96
+ </dd>
97
+
98
+ <dt> single_page </dt><dd>
99
+ Apitome can render the documentation into a single page that uses scrollspy, or it can render the documentation on individual pages on demand. This allows you to specify which one you want, as a single page may impact performance.<br/>
100
+
101
+ <b>default:</b> <code>true</code>
102
+ </dd>
103
+
104
+
105
+ ## Customization
106
+
107
+ You can put custom views and partials in your own `views/apitome/docs` -- check the repo here for [examples](https://github.com/modeset/apitome/tree/master/app/views/apitome/docs). You can put any partial in your own path and they will be overridden.
108
+
109
+ Additional customization can come in the form of providing custom css and javascript. You can do this by creating the files you want (that often times require the default assets in the gem), and then configure Apitome to use those instead of the defaults.
110
+
111
+
13
112
  ## License
14
113
 
15
114
  Licensed under the [MIT License](http://creativecommons.org/licenses/MIT/)
@@ -9,8 +9,10 @@ module Apitome
9
9
 
10
10
  config.after_initialize do |app|
11
11
  # prepend routes so a catchall doesn't get in the way
12
- app.routes.prepend do
13
- mount Apitome::Engine => Apitome.configuration.mount_at
12
+ if Apitome.configuration.mount_at.present?
13
+ app.routes.prepend do
14
+ mount Apitome::Engine => Apitome.configuration.mount_at
15
+ end
14
16
  end
15
17
  end
16
18
 
@@ -1,3 +1,3 @@
1
1
  module Apitome
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -0,0 +1,4 @@
1
+ +============================================================================+
2
+ Congratulations! Apitome was successfully installed.
3
+
4
+ Documentation and more can be found at: https://github.com/modeset/apitome
@@ -0,0 +1,19 @@
1
+ module Apitome
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+ source_root File.expand_path("../", __FILE__)
5
+
6
+ desc "Installs the Apitome initializer and markdown file into your application."
7
+
8
+ def copy_initializers
9
+ copy_file "templates/initializer.rb", "config/initializers/apitome.rb"
10
+ copy_file "templates/api.md", "doc/api.md"
11
+ end
12
+
13
+ def display_readme
14
+ readme "POST_INSTALL" if behavior == :invoke
15
+ end
16
+
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,4 @@
1
+ Apitome Documentation
2
+ =====================
3
+
4
+ This file was automatically generated, and can be found at `doc/api.md`.
@@ -0,0 +1,44 @@
1
+ Apitome.setup do |config|
2
+
3
+ # This determines where the Apitome routes will be mounted. Changing this to "/api/documentation" for instance would
4
+ # allow you to browse to http://localhost:3000/api/documentation to see your api documentation. Set to nil and mount
5
+ # it yourself if you need to.
6
+ config.mount_at = "/api/docs"
7
+
8
+ # This defaults to Rails.root if left nil. If you're providing documentation for an engine using a dummy application
9
+ # it can be useful to set this to your engines root.. E.g. Application::Engine.root
10
+ config.root = nil
11
+
12
+ # This is where rspec_api_documentation outputs the JSON files. This is configurable within RAD, and so is
13
+ # configurable here.
14
+ config.doc_path = 'doc/api'
15
+
16
+ # The title of the documentation -- If your project has a name, you'll want to put it here.
17
+ config.title = 'Apitome Documentation'
18
+
19
+ # The main layout view for all documentation pages. By default this is pretty basic, but you may want to use your own
20
+ # application layout.
21
+ config.layout = 'apitome/application'
22
+
23
+ # We're using highlight.js (https://github.com/isagalaev/highlight.js) for code highlighting, and it comes with some
24
+ # great themes. You can check http://softwaremaniacs.org/media/soft/highlight/test.html for themes, and enter the
25
+ # theme as lowercase/underscore.
26
+ config.code_theme = 'default'
27
+
28
+ # This allows you to override the css manually. You typically want to require `apitome/application` within the
29
+ # override, but if you want to override it entirely you can do so.
30
+ config.css_override = nil
31
+
32
+ # This allows you to override the javascript manually. You typically want to require `apitome/application` within the
33
+ # override, but if you want to override it entirely you can do so.
34
+ config.js_override = nil
35
+
36
+ # You can provide a "README" style markdown file for the documentation, which is a useful place to include general
37
+ # information. This path is relative to your doc_path configuration.
38
+ config.readme = '../api.md'
39
+
40
+ # Apitome can render the documentation into a single page that uses scrollspy, or it can render the documentation on
41
+ # individual pages on demand. This allows you to specify which one you want, as a single page may impact performance.
42
+ config.single_page = true
43
+
44
+ end
@@ -1,6 +1,44 @@
1
1
  Apitome.setup do |config|
2
2
 
3
- #config.root = Apitome::Engine.root
3
+ # This determines where the Apitome routes will be mounted. Changing this to "/api/documentation" for instance would
4
+ # allow you to browse to http://localhost:3000/api/documentation to see your api documentation. Set to nil and mount
5
+ # it yourself if you need to.
6
+ config.mount_at = "/api/docs"
7
+
8
+ # This defaults to Rails.root if left nil. If you're providing documentation for an engine using a dummy application
9
+ # it can be useful to set this to your engines root.. E.g. Application::Engine.root
10
+ config.root = nil
11
+
12
+ # This is where rspec_api_documentation outputs the JSON files. This is configurable within RAD, and so is
13
+ # configurable here.
14
+ config.doc_path = 'doc/api'
15
+
16
+ # The title of the documentation -- If your project has a name, you'll want to put it here.
17
+ config.title = 'Apitome Documentation'
18
+
19
+ # The main layout view for all documentation pages. By default this is pretty basic, but you may want to use your own
20
+ # application layout.
21
+ config.layout = 'apitome/application'
22
+
23
+ # We're using highlight.js (https://github.com/isagalaev/highlight.js) for code highlighting, and it comes with some
24
+ # great themes. You can check http://softwaremaniacs.org/media/soft/highlight/test.html for themes, and enter the
25
+ # theme as lowercase/underscore.
26
+ config.code_theme = 'default'
27
+
28
+ # This allows you to override the css manually. You typically want to require `apitome/application` within the
29
+ # override, but if you want to override it entirely you can do so.
30
+ config.css_override = nil
31
+
32
+ # This allows you to override the javascript manually. You typically want to require `apitome/application` within the
33
+ # override, but if you want to override it entirely you can do so.
34
+ config.js_override = nil
35
+
36
+ # You can provide a "README" style markdown file for the documentation, which is a useful place to include general
37
+ # information. This path is relative to your doc_path configuration.
38
+ config.readme = '../api.md'
39
+
40
+ # Apitome can render the documentation into a single page that uses scrollspy, or it can render the documentation on
41
+ # individual pages on demand. This allows you to specify which one you want, as a single page may impact performance.
4
42
  config.single_page = true
5
43
 
6
44
  end
@@ -18073,3 +18073,218 @@ Started GET "/assets/apitome/application.css?body=1" for 127.0.0.1 at 2013-10-03
18073
18073
 
18074
18074
 
18075
18075
  Started GET "/assets/apitome/application.js?body=1" for 127.0.0.1 at 2013-10-03 10:51:34 -0600
18076
+
18077
+
18078
+ Started GET "/api/docs" for 127.0.0.1 at 2013-10-08 23:43:23 -0600
18079
+ Processing by Apitome::DocsController#index as HTML
18080
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_explanation.html.erb (0.5ms)
18081
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_params.html.erb (0.8ms)
18082
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_route.html.erb (0.3ms)
18083
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.3ms)
18084
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.4ms)
18085
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_status.html.erb (0.3ms)
18086
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.1ms)
18087
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.1ms)
18088
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_example.html.erb (10.2ms)
18089
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_route.html.erb (0.0ms)
18090
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.0ms)
18091
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_status.html.erb (0.0ms)
18092
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.1ms)
18093
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.1ms)
18094
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_example.html.erb (2.1ms)
18095
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_params.html.erb (0.2ms)
18096
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_route.html.erb (0.0ms)
18097
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.0ms)
18098
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_query.html.erb (0.3ms)
18099
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_status.html.erb (0.0ms)
18100
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.1ms)
18101
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.1ms)
18102
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_example.html.erb (4.0ms)
18103
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_all_examples.html.erb (21.1ms)
18104
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/index.html.erb within layouts/apitome/application (26.8ms)
18105
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_header.html.erb (0.4ms)
18106
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_navigation.html.erb (1.0ms)
18107
+ Completed 200 OK in 98ms (Views: 98.1ms)
18108
+
18109
+
18110
+ Started GET "/assets/apitome/bootstrap.min.css?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18111
+
18112
+
18113
+ Started GET "/assets/apitome/jquery-2.0.3.min.js?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18114
+
18115
+
18116
+ Started GET "/assets/apitome/highlight_themes/default.css?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18117
+
18118
+
18119
+ Started GET "/assets/apitome/bootstrap.min.js?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18120
+
18121
+
18122
+ Started GET "/assets/apitome/highlight.min.js?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18123
+
18124
+
18125
+ Started GET "/assets/apitome/application.css?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18126
+
18127
+
18128
+ Started GET "/assets/apitome/application.js?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18129
+
18130
+
18131
+ Started GET "/api/docs" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18132
+ Processing by Apitome::DocsController#index as HTML
18133
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_explanation.html.erb (0.0ms)
18134
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_params.html.erb (0.2ms)
18135
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_route.html.erb (0.0ms)
18136
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.0ms)
18137
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.1ms)
18138
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_status.html.erb (0.0ms)
18139
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.0ms)
18140
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.1ms)
18141
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_example.html.erb (3.6ms)
18142
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_route.html.erb (0.0ms)
18143
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.0ms)
18144
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_status.html.erb (0.0ms)
18145
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.1ms)
18146
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.1ms)
18147
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_example.html.erb (2.1ms)
18148
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_params.html.erb (0.2ms)
18149
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_route.html.erb (0.0ms)
18150
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.0ms)
18151
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_query.html.erb (0.0ms)
18152
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_status.html.erb (0.0ms)
18153
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.1ms)
18154
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.1ms)
18155
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_example.html.erb (3.1ms)
18156
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_all_examples.html.erb (10.9ms)
18157
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/index.html.erb within layouts/apitome/application (11.6ms)
18158
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_header.html.erb (0.1ms)
18159
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_navigation.html.erb (0.4ms)
18160
+ Completed 200 OK in 15ms (Views: 14.7ms)
18161
+
18162
+
18163
+ Started GET "/assets/apitome/highlight_themes/default.css?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18164
+
18165
+
18166
+ Started GET "/assets/apitome/bootstrap.min.css?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18167
+
18168
+
18169
+ Started GET "/assets/apitome/application.css?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18170
+
18171
+
18172
+ Started GET "/assets/apitome/jquery-2.0.3.min.js?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18173
+
18174
+
18175
+ Started GET "/assets/apitome/bootstrap.min.js?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18176
+
18177
+
18178
+ Started GET "/assets/apitome/highlight.min.js?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18179
+
18180
+
18181
+ Started GET "/assets/apitome/application.js?body=1" for 127.0.0.1 at 2013-10-08 23:43:24 -0600
18182
+
18183
+
18184
+ Started GET "/api/docs" for 127.0.0.1 at 2013-10-09 00:19:50 -0600
18185
+ Processing by Apitome::DocsController#index as HTML
18186
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_explanation.html.erb (0.4ms)
18187
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_params.html.erb (0.8ms)
18188
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_route.html.erb (0.3ms)
18189
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.3ms)
18190
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.4ms)
18191
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_status.html.erb (0.3ms)
18192
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.1ms)
18193
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.1ms)
18194
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_example.html.erb (9.2ms)
18195
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_route.html.erb (0.0ms)
18196
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.0ms)
18197
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_status.html.erb (0.0ms)
18198
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.1ms)
18199
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.1ms)
18200
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_example.html.erb (2.2ms)
18201
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_params.html.erb (0.3ms)
18202
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_route.html.erb (0.0ms)
18203
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.1ms)
18204
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_query.html.erb (0.4ms)
18205
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_status.html.erb (0.0ms)
18206
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.1ms)
18207
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.1ms)
18208
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_example.html.erb (4.6ms)
18209
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_all_examples.html.erb (21.0ms)
18210
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/index.html.erb within layouts/apitome/application (26.1ms)
18211
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_header.html.erb (0.5ms)
18212
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_navigation.html.erb (1.4ms)
18213
+ Completed 200 OK in 80ms (Views: 79.9ms)
18214
+
18215
+
18216
+ Started GET "/assets/apitome/bootstrap.min.css?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18217
+
18218
+
18219
+ Started GET "/assets/apitome/highlight_themes/default.css?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18220
+
18221
+
18222
+ Started GET "/assets/apitome/application.css?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18223
+
18224
+
18225
+ Started GET "/assets/apitome/jquery-2.0.3.min.js?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18226
+
18227
+
18228
+ Started GET "/assets/apitome/bootstrap.min.js?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18229
+
18230
+
18231
+ Started GET "/assets/apitome/highlight.min.js?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18232
+
18233
+
18234
+ Started GET "/assets/apitome/application.js?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18235
+
18236
+
18237
+ Started GET "/api/docs" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18238
+ Processing by Apitome::DocsController#index as HTML
18239
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_explanation.html.erb (0.1ms)
18240
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_params.html.erb (0.3ms)
18241
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_route.html.erb (0.1ms)
18242
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.1ms)
18243
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.1ms)
18244
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_status.html.erb (0.0ms)
18245
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.1ms)
18246
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.2ms)
18247
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_example.html.erb (5.4ms)
18248
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_route.html.erb (0.0ms)
18249
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.0ms)
18250
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_status.html.erb (0.0ms)
18251
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.1ms)
18252
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.1ms)
18253
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_example.html.erb (2.2ms)
18254
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_params.html.erb (0.2ms)
18255
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_route.html.erb (0.0ms)
18256
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.0ms)
18257
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_query.html.erb (0.0ms)
18258
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_status.html.erb (0.0ms)
18259
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_headers.html.erb (0.1ms)
18260
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_body.html.erb (0.1ms)
18261
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_example.html.erb (3.1ms)
18262
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_all_examples.html.erb (13.8ms)
18263
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/index.html.erb within layouts/apitome/application (15.4ms)
18264
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_header.html.erb (0.0ms)
18265
+ Rendered /Users/jejacks0n/Projects/apitome/app/views/apitome/docs/_navigation.html.erb (0.4ms)
18266
+ Completed 200 OK in 19ms (Views: 18.9ms)
18267
+
18268
+
18269
+ Started GET "/assets/apitome/bootstrap.min.css?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18270
+
18271
+
18272
+ Started GET "/assets/apitome/highlight_themes/default.css?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18273
+
18274
+
18275
+ Started GET "/assets/apitome/jquery-2.0.3.min.js?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18276
+
18277
+
18278
+ Started GET "/assets/apitome/application.css?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18279
+
18280
+
18281
+ Started GET "/assets/apitome/highlight.min.js?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18282
+
18283
+
18284
+ Started GET "/assets/apitome/bootstrap.min.js?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18285
+
18286
+
18287
+ Started GET "/assets/apitome/application.js?body=1" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
18288
+
18289
+
18290
+ Started GET "/assets/apitome/jquery-2.0.3.min.js" for 127.0.0.1 at 2013-10-09 00:19:51 -0600
metadata CHANGED
@@ -1,20 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apitome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - jejacks0n
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-09 00:00:00.000000000 Z
11
+ date: 2013-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.2.5
20
20
  - - <
@@ -24,7 +24,7 @@ dependencies:
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ! '>='
27
+ - - '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: 3.2.5
30
30
  - - <
@@ -34,28 +34,28 @@ dependencies:
34
34
  name: rspec_api_documentation
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ! '>='
37
+ - - '>='
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - ! '>='
44
+ - - '>='
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: github-markdown
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ! '>='
51
+ - - '>='
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ! '>='
58
+ - - '>='
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  description: API documentation renderer for Rails using RSpec API Documentation JSON
@@ -90,6 +90,10 @@ files:
90
90
  - lib/apitome/exceptions.rb
91
91
  - lib/apitome/version.rb
92
92
  - lib/apitome.rb
93
+ - lib/generators/apitome/install/install_generator.rb
94
+ - lib/generators/apitome/install/POST_INSTALL
95
+ - lib/generators/apitome/install/templates/api.md
96
+ - lib/generators/apitome/install/templates/initializer.rb
93
97
  - vendor/assets/javascripts/apitome/bootstrap.min.js
94
98
  - vendor/assets/javascripts/apitome/bootstrap.min.LICENSE
95
99
  - vendor/assets/javascripts/apitome/highlight.min.js
@@ -117,11 +121,11 @@ files:
117
121
  - vendor/assets/stylesheets/apitome/highlight_themes/solarized_dark.css
118
122
  - vendor/assets/stylesheets/apitome/highlight_themes/solarized_light.css
119
123
  - vendor/assets/stylesheets/apitome/highlight_themes/sunburst.css
120
- - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-blue.css
121
- - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-bright.css
122
- - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-eighties.css
123
- - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night.css
124
124
  - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow.css
125
+ - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night.css
126
+ - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_blue.css
127
+ - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_bright.css
128
+ - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_eighties.css
125
129
  - vendor/assets/stylesheets/apitome/highlight_themes/vs.css
126
130
  - vendor/assets/stylesheets/apitome/highlight_themes/xcode.css
127
131
  - vendor/assets/stylesheets/apitome/highlight_themes/zenburn.css
@@ -151,6 +155,8 @@ files:
151
155
  - spec/dummy/tmp/cache/assets/development/sprockets/07b6695ed44671a8d213823bc763b378
152
156
  - spec/dummy/tmp/cache/assets/development/sprockets/0f10ed0a447d44a80afcc427e858ddf1
153
157
  - spec/dummy/tmp/cache/assets/development/sprockets/3c0d7839d05fa6264e540e4612e76d8e
158
+ - spec/dummy/tmp/cache/assets/development/sprockets/51da1b3982537bb7f98b971e3f9c45f1
159
+ - spec/dummy/tmp/cache/assets/development/sprockets/53ba3c64ee4d340ffd21feaab8cc579a
154
160
  - spec/dummy/tmp/cache/assets/development/sprockets/54ddec13d8230a77be44f49bba9ab063
155
161
  - spec/dummy/tmp/cache/assets/development/sprockets/82a9467461d6cbd74f0c38002037d366
156
162
  - spec/dummy/tmp/cache/assets/development/sprockets/82b46b5876ec191ffb4ee1f73b9037cf
@@ -160,6 +166,7 @@ files:
160
166
  - spec/dummy/tmp/cache/assets/development/sprockets/8eb01b8f553b48d4712bc6df728f05ed
161
167
  - spec/dummy/tmp/cache/assets/development/sprockets/98be05ccb93e3f09cd213ad66be4afd5
162
168
  - spec/dummy/tmp/cache/assets/development/sprockets/a4636c23002ad75a90567e067a4a87b2
169
+ - spec/dummy/tmp/cache/assets/development/sprockets/a47d2ddd9c0e1b87d20a911bb1c92651
163
170
  - spec/dummy/tmp/cache/assets/development/sprockets/a7dbf6dc1b06132961af53b0dc4bd187
164
171
  - spec/dummy/tmp/cache/assets/development/sprockets/b7fc26490932e9ef364d72f46116f29a
165
172
  - spec/dummy/tmp/cache/assets/development/sprockets/d9052716353aa1cde34614ee79e75fc2
@@ -176,20 +183,20 @@ require_paths:
176
183
  - lib
177
184
  required_ruby_version: !ruby/object:Gem::Requirement
178
185
  requirements:
179
- - - ! '>='
186
+ - - '>='
180
187
  - !ruby/object:Gem::Version
181
188
  version: '0'
182
189
  required_rubygems_version: !ruby/object:Gem::Requirement
183
190
  requirements:
184
- - - ! '>='
191
+ - - '>='
185
192
  - !ruby/object:Gem::Version
186
193
  version: '0'
187
194
  requirements: []
188
195
  rubyforge_project:
189
- rubygems_version: 2.1.3
196
+ rubygems_version: 2.1.9
190
197
  signing_key:
191
198
  specification_version: 4
192
- summary: ! 'Apitome: /iˈpitəmē/ An API documentation reader RSpec API Documentation'
199
+ summary: 'Apitome: /iˈpitəmē/ An API documentation reader RSpec API Documentation'
193
200
  test_files:
194
201
  - spec/apitome/configuration_spec.rb
195
202
  - spec/apitome/engine_spec.rb
@@ -215,6 +222,8 @@ test_files:
215
222
  - spec/dummy/tmp/cache/assets/development/sprockets/07b6695ed44671a8d213823bc763b378
216
223
  - spec/dummy/tmp/cache/assets/development/sprockets/0f10ed0a447d44a80afcc427e858ddf1
217
224
  - spec/dummy/tmp/cache/assets/development/sprockets/3c0d7839d05fa6264e540e4612e76d8e
225
+ - spec/dummy/tmp/cache/assets/development/sprockets/51da1b3982537bb7f98b971e3f9c45f1
226
+ - spec/dummy/tmp/cache/assets/development/sprockets/53ba3c64ee4d340ffd21feaab8cc579a
218
227
  - spec/dummy/tmp/cache/assets/development/sprockets/54ddec13d8230a77be44f49bba9ab063
219
228
  - spec/dummy/tmp/cache/assets/development/sprockets/82a9467461d6cbd74f0c38002037d366
220
229
  - spec/dummy/tmp/cache/assets/development/sprockets/82b46b5876ec191ffb4ee1f73b9037cf
@@ -224,6 +233,7 @@ test_files:
224
233
  - spec/dummy/tmp/cache/assets/development/sprockets/8eb01b8f553b48d4712bc6df728f05ed
225
234
  - spec/dummy/tmp/cache/assets/development/sprockets/98be05ccb93e3f09cd213ad66be4afd5
226
235
  - spec/dummy/tmp/cache/assets/development/sprockets/a4636c23002ad75a90567e067a4a87b2
236
+ - spec/dummy/tmp/cache/assets/development/sprockets/a47d2ddd9c0e1b87d20a911bb1c92651
227
237
  - spec/dummy/tmp/cache/assets/development/sprockets/a7dbf6dc1b06132961af53b0dc4bd187
228
238
  - spec/dummy/tmp/cache/assets/development/sprockets/b7fc26490932e9ef364d72f46116f29a
229
239
  - spec/dummy/tmp/cache/assets/development/sprockets/d9052716353aa1cde34614ee79e75fc2