apitome 0.0.8 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +5 -5
  2. data/MIT.LICENSE +2 -2
  3. data/README.md +99 -40
  4. data/app/assets/javascripts/apitome/application.js +16 -0
  5. data/app/assets/stylesheets/apitome/application.css +10 -0
  6. data/app/controllers/apitome/docs_controller.rb +83 -45
  7. data/app/helpers/apitome/docs_helper.rb +19 -0
  8. data/app/views/apitome/docs/_all_examples.html.erb +6 -2
  9. data/app/views/apitome/docs/_body.html.erb +1 -1
  10. data/app/views/apitome/docs/_curl.html.erb +1 -1
  11. data/app/views/apitome/docs/_endpoint.html.erb +4 -0
  12. data/app/views/apitome/docs/_example.html.erb +10 -6
  13. data/app/views/apitome/docs/_explanation.html.erb +3 -3
  14. data/app/views/apitome/docs/_headers.html.erb +6 -4
  15. data/app/views/apitome/docs/_navigation.html.erb +14 -10
  16. data/app/views/apitome/docs/_params.html.erb +4 -4
  17. data/app/views/apitome/docs/_query.html.erb +1 -1
  18. data/app/views/apitome/docs/_resource_explanation.html.erb +3 -0
  19. data/app/views/apitome/docs/_response_fields.html.erb +1 -1
  20. data/app/views/apitome/docs/_route.html.erb +1 -1
  21. data/app/views/apitome/docs/_status.html.erb +1 -1
  22. data/app/views/apitome/docs/index.html.erb +11 -6
  23. data/app/views/apitome/docs/show.html.erb +2 -1
  24. data/app/views/layouts/apitome/application.html.erb +4 -4
  25. data/config/locales/en.yml +14 -11
  26. data/config/locales/es.yml +14 -10
  27. data/lib/apitome.rb +5 -5
  28. data/lib/apitome/configuration.rb +36 -15
  29. data/lib/apitome/engine.rb +13 -7
  30. data/lib/apitome/exceptions.rb +5 -1
  31. data/lib/apitome/version.rb +1 -1
  32. data/lib/generators/apitome/install/POST_INSTALL +1 -1
  33. data/lib/generators/apitome/install/install_generator.rb +7 -8
  34. data/lib/generators/apitome/install/templates/initializer.rb +35 -13
  35. data/vendor/assets/javascripts/apitome/highlight.min.js +2 -1
  36. data/vendor/assets/stylesheets/apitome/highlight_themes/agate.css +108 -0
  37. data/vendor/assets/stylesheets/apitome/highlight_themes/androidstudio.css +66 -0
  38. data/vendor/assets/stylesheets/apitome/highlight_themes/arduino-light.css +88 -0
  39. data/vendor/assets/stylesheets/apitome/highlight_themes/arta.css +41 -126
  40. data/vendor/assets/stylesheets/apitome/highlight_themes/ascetic.css +31 -36
  41. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-cave-dark.css +83 -0
  42. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-cave-light.css +85 -0
  43. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-dune-dark.css +69 -0
  44. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-dune-light.css +69 -0
  45. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-estuary-dark.css +84 -0
  46. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-estuary-light.css +84 -0
  47. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-forest-dark.css +69 -0
  48. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-forest-light.css +69 -0
  49. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-heath-dark.css +69 -0
  50. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-heath-light.css +69 -0
  51. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-lakeside-dark.css +69 -0
  52. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-lakeside-light.css +69 -0
  53. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-plateau-dark.css +84 -0
  54. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-plateau-light.css +84 -0
  55. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-savanna-dark.css +84 -0
  56. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-savanna-light.css +84 -0
  57. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-seaside-dark.css +69 -0
  58. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-seaside-light.css +69 -0
  59. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-sulphurpool-dark.css +69 -0
  60. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-sulphurpool-light.css +69 -0
  61. data/vendor/assets/stylesheets/apitome/highlight_themes/brown-paper.css +64 -0
  62. data/vendor/assets/stylesheets/apitome/highlight_themes/{brown_papersq.png → brown-papersq.png} +0 -0
  63. data/vendor/assets/stylesheets/apitome/highlight_themes/codepen-embed.css +60 -0
  64. data/vendor/assets/stylesheets/apitome/highlight_themes/color-brewer.css +71 -0
  65. data/vendor/assets/stylesheets/apitome/highlight_themes/dark.css +41 -81
  66. data/vendor/assets/stylesheets/apitome/highlight_themes/darkula.css +74 -0
  67. data/vendor/assets/stylesheets/apitome/highlight_themes/default.css +74 -110
  68. data/vendor/assets/stylesheets/apitome/highlight_themes/docco.css +97 -0
  69. data/vendor/assets/stylesheets/apitome/highlight_themes/dracula.css +76 -0
  70. data/vendor/assets/stylesheets/apitome/highlight_themes/far.css +46 -86
  71. data/vendor/assets/stylesheets/apitome/highlight_themes/foundation.css +88 -0
  72. data/vendor/assets/stylesheets/apitome/highlight_themes/github-gist.css +71 -0
  73. data/vendor/assets/stylesheets/apitome/highlight_themes/github.css +53 -81
  74. data/vendor/assets/stylesheets/apitome/highlight_themes/googlecode.css +48 -103
  75. data/vendor/assets/stylesheets/apitome/highlight_themes/grayscale.css +101 -0
  76. data/vendor/assets/stylesheets/apitome/highlight_themes/gruvbox-dark.css +108 -0
  77. data/vendor/assets/stylesheets/apitome/highlight_themes/gruvbox-light.css +108 -0
  78. data/vendor/assets/stylesheets/apitome/highlight_themes/hopscotch.css +83 -0
  79. data/vendor/assets/stylesheets/apitome/highlight_themes/hybrid.css +102 -0
  80. data/vendor/assets/stylesheets/apitome/highlight_themes/idea.css +40 -64
  81. data/vendor/assets/stylesheets/apitome/highlight_themes/ir-black.css +73 -0
  82. data/vendor/assets/stylesheets/apitome/highlight_themes/kimbie.dark.css +74 -0
  83. data/vendor/assets/stylesheets/apitome/highlight_themes/kimbie.light.css +74 -0
  84. data/vendor/assets/stylesheets/apitome/highlight_themes/magula.css +36 -87
  85. data/vendor/assets/stylesheets/apitome/highlight_themes/mono-blue.css +59 -0
  86. data/vendor/assets/stylesheets/apitome/highlight_themes/monokai-sublime.css +83 -0
  87. data/vendor/assets/stylesheets/apitome/highlight_themes/monokai.css +50 -94
  88. data/vendor/assets/stylesheets/apitome/highlight_themes/obsidian.css +88 -0
  89. data/vendor/assets/stylesheets/apitome/highlight_themes/paraiso-dark.css +72 -0
  90. data/vendor/assets/stylesheets/apitome/highlight_themes/paraiso-light.css +72 -0
  91. data/vendor/assets/stylesheets/apitome/highlight_themes/pojoaque.css +45 -66
  92. data/vendor/assets/stylesheets/apitome/highlight_themes/purebasic.css +96 -0
  93. data/vendor/assets/stylesheets/apitome/highlight_themes/qtcreator_dark.css +83 -0
  94. data/vendor/assets/stylesheets/apitome/highlight_themes/qtcreator_light.css +83 -0
  95. data/vendor/assets/stylesheets/apitome/highlight_themes/railscasts.css +106 -0
  96. data/vendor/assets/stylesheets/apitome/highlight_themes/rainbow.css +48 -77
  97. data/vendor/assets/stylesheets/apitome/highlight_themes/school-book.css +72 -0
  98. data/vendor/assets/stylesheets/apitome/highlight_themes/{school_book.png → school-book.png} +0 -0
  99. data/vendor/assets/stylesheets/apitome/highlight_themes/solarized-dark.css +84 -0
  100. data/vendor/assets/stylesheets/apitome/highlight_themes/solarized-light.css +84 -0
  101. data/vendor/assets/stylesheets/apitome/highlight_themes/sunburst.css +55 -111
  102. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-blue.css +75 -0
  103. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-bright.css +74 -0
  104. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-eighties.css +74 -0
  105. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night.css +75 -0
  106. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow.css +43 -20
  107. data/vendor/assets/stylesheets/apitome/highlight_themes/vs.css +50 -68
  108. data/vendor/assets/stylesheets/apitome/highlight_themes/xcode.css +55 -116
  109. data/vendor/assets/stylesheets/apitome/highlight_themes/xt256.css +92 -0
  110. data/vendor/assets/stylesheets/apitome/highlight_themes/zenburn.css +49 -84
  111. metadata +80 -65
  112. data/config/routes.rb +0 -4
  113. data/spec/apitome/configuration_spec.rb +0 -0
  114. data/spec/apitome/engine_spec.rb +0 -0
  115. data/spec/dummy/Rakefile +0 -7
  116. data/spec/dummy/config.ru +0 -15
  117. data/spec/dummy/config/application.rb +0 -16
  118. data/spec/dummy/config/boot.rb +0 -7
  119. data/spec/dummy/config/environment.rb +0 -5
  120. data/spec/dummy/config/environments/development.rb +0 -27
  121. data/spec/dummy/config/environments/test.rb +0 -29
  122. data/spec/dummy/config/initializers/apitome.rb +0 -44
  123. data/spec/dummy/config/routes.rb +0 -2
  124. data/spec/dummy/doc/api.md +0 -20
  125. data/spec/dummy/public/favicon.ico +0 -0
  126. data/spec/dummy/script/rails +0 -6
  127. data/vendor/assets/stylesheets/apitome/highlight_themes/brown_paper.css +0 -104
  128. data/vendor/assets/stylesheets/apitome/highlight_themes/ir_black.css +0 -104
  129. data/vendor/assets/stylesheets/apitome/highlight_themes/school_book.css +0 -111
  130. data/vendor/assets/stylesheets/apitome/highlight_themes/solarized_dark.css +0 -88
  131. data/vendor/assets/stylesheets/apitome/highlight_themes/solarized_light.css +0 -88
  132. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night.css +0 -52
  133. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_blue.css +0 -52
  134. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_bright.css +0 -51
  135. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_eighties.css +0 -51
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apitome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jejacks0n
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-16 00:00:00.000000000 Z
11
+ date: 2019-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -16,22 +16,16 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.5
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '5'
19
+ version: '0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: 3.2.5
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '5'
26
+ version: '0'
33
27
  - !ruby/object:Gem::Dependency
34
- name: rspec_api_documentation
28
+ name: kramdown
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - ">="
@@ -45,23 +39,23 @@ dependencies:
45
39
  - !ruby/object:Gem::Version
46
40
  version: '0'
47
41
  - !ruby/object:Gem::Dependency
48
- name: kramdown
42
+ name: rspec_api_documentation
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
- - - '='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
- version: 1.3.3
54
- type: :runtime
47
+ version: '0'
48
+ type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
- - - '='
52
+ - - ">="
59
53
  - !ruby/object:Gem::Version
60
- version: 1.3.3
54
+ version: '0'
61
55
  description: API documentation renderer for Rails using RSpec API Documentation JSON
62
56
  output
63
57
  email:
64
- - info@modeset.com
58
+ - jejacks0n@gmail.com
65
59
  executables: []
66
60
  extensions: []
67
61
  extra_rdoc_files: []
@@ -73,9 +67,11 @@ files:
73
67
  - app/assets/stylesheets/apitome/application.css
74
68
  - app/assets/stylesheets/apitome/bundle.css
75
69
  - app/controllers/apitome/docs_controller.rb
70
+ - app/helpers/apitome/docs_helper.rb
76
71
  - app/views/apitome/docs/_all_examples.html.erb
77
72
  - app/views/apitome/docs/_body.html.erb
78
73
  - app/views/apitome/docs/_curl.html.erb
74
+ - app/views/apitome/docs/_endpoint.html.erb
79
75
  - app/views/apitome/docs/_example.html.erb
80
76
  - app/views/apitome/docs/_explanation.html.erb
81
77
  - app/views/apitome/docs/_header.html.erb
@@ -83,6 +79,7 @@ files:
83
79
  - app/views/apitome/docs/_navigation.html.erb
84
80
  - app/views/apitome/docs/_params.html.erb
85
81
  - app/views/apitome/docs/_query.html.erb
82
+ - app/views/apitome/docs/_resource_explanation.html.erb
86
83
  - app/views/apitome/docs/_response_fields.html.erb
87
84
  - app/views/apitome/docs/_route.html.erb
88
85
  - app/views/apitome/docs/_status.html.erb
@@ -91,7 +88,6 @@ files:
91
88
  - app/views/layouts/apitome/application.html.erb
92
89
  - config/locales/en.yml
93
90
  - config/locales/es.yml
94
- - config/routes.rb
95
91
  - lib/apitome.rb
96
92
  - lib/apitome/configuration.rb
97
93
  - lib/apitome/engine.rb
@@ -101,57 +97,91 @@ files:
101
97
  - lib/generators/apitome/install/install_generator.rb
102
98
  - lib/generators/apitome/install/templates/api.md
103
99
  - lib/generators/apitome/install/templates/initializer.rb
104
- - spec/apitome/configuration_spec.rb
105
- - spec/apitome/engine_spec.rb
106
- - spec/dummy/Rakefile
107
- - spec/dummy/config.ru
108
- - spec/dummy/config/application.rb
109
- - spec/dummy/config/boot.rb
110
- - spec/dummy/config/environment.rb
111
- - spec/dummy/config/environments/development.rb
112
- - spec/dummy/config/environments/test.rb
113
- - spec/dummy/config/initializers/apitome.rb
114
- - spec/dummy/config/routes.rb
115
- - spec/dummy/doc/api.md
116
- - spec/dummy/public/favicon.ico
117
- - spec/dummy/script/rails
118
100
  - vendor/assets/javascripts/apitome/bootstrap.min.LICENSE
119
101
  - vendor/assets/javascripts/apitome/bootstrap.min.js
120
102
  - vendor/assets/javascripts/apitome/highlight.min.LICENSE
121
103
  - vendor/assets/javascripts/apitome/highlight.min.js
122
104
  - vendor/assets/javascripts/apitome/jquery-2.0.3.min.js
123
105
  - vendor/assets/stylesheets/apitome/bootstrap.min.css
106
+ - vendor/assets/stylesheets/apitome/highlight_themes/agate.css
107
+ - vendor/assets/stylesheets/apitome/highlight_themes/androidstudio.css
108
+ - vendor/assets/stylesheets/apitome/highlight_themes/arduino-light.css
124
109
  - vendor/assets/stylesheets/apitome/highlight_themes/arta.css
125
110
  - vendor/assets/stylesheets/apitome/highlight_themes/ascetic.css
126
- - vendor/assets/stylesheets/apitome/highlight_themes/brown_paper.css
127
- - vendor/assets/stylesheets/apitome/highlight_themes/brown_papersq.png
111
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-cave-dark.css
112
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-cave-light.css
113
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-dune-dark.css
114
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-dune-light.css
115
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-estuary-dark.css
116
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-estuary-light.css
117
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-forest-dark.css
118
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-forest-light.css
119
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-heath-dark.css
120
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-heath-light.css
121
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-lakeside-dark.css
122
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-lakeside-light.css
123
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-plateau-dark.css
124
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-plateau-light.css
125
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-savanna-dark.css
126
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-savanna-light.css
127
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-seaside-dark.css
128
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-seaside-light.css
129
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-sulphurpool-dark.css
130
+ - vendor/assets/stylesheets/apitome/highlight_themes/atelier-sulphurpool-light.css
131
+ - vendor/assets/stylesheets/apitome/highlight_themes/brown-paper.css
132
+ - vendor/assets/stylesheets/apitome/highlight_themes/brown-papersq.png
133
+ - vendor/assets/stylesheets/apitome/highlight_themes/codepen-embed.css
134
+ - vendor/assets/stylesheets/apitome/highlight_themes/color-brewer.css
128
135
  - vendor/assets/stylesheets/apitome/highlight_themes/dark.css
136
+ - vendor/assets/stylesheets/apitome/highlight_themes/darkula.css
129
137
  - vendor/assets/stylesheets/apitome/highlight_themes/default.css
138
+ - vendor/assets/stylesheets/apitome/highlight_themes/docco.css
139
+ - vendor/assets/stylesheets/apitome/highlight_themes/dracula.css
130
140
  - vendor/assets/stylesheets/apitome/highlight_themes/far.css
141
+ - vendor/assets/stylesheets/apitome/highlight_themes/foundation.css
142
+ - vendor/assets/stylesheets/apitome/highlight_themes/github-gist.css
131
143
  - vendor/assets/stylesheets/apitome/highlight_themes/github.css
132
144
  - vendor/assets/stylesheets/apitome/highlight_themes/googlecode.css
145
+ - vendor/assets/stylesheets/apitome/highlight_themes/grayscale.css
146
+ - vendor/assets/stylesheets/apitome/highlight_themes/gruvbox-dark.css
147
+ - vendor/assets/stylesheets/apitome/highlight_themes/gruvbox-light.css
148
+ - vendor/assets/stylesheets/apitome/highlight_themes/hopscotch.css
149
+ - vendor/assets/stylesheets/apitome/highlight_themes/hybrid.css
133
150
  - vendor/assets/stylesheets/apitome/highlight_themes/idea.css
134
- - vendor/assets/stylesheets/apitome/highlight_themes/ir_black.css
151
+ - vendor/assets/stylesheets/apitome/highlight_themes/ir-black.css
152
+ - vendor/assets/stylesheets/apitome/highlight_themes/kimbie.dark.css
153
+ - vendor/assets/stylesheets/apitome/highlight_themes/kimbie.light.css
135
154
  - vendor/assets/stylesheets/apitome/highlight_themes/magula.css
155
+ - vendor/assets/stylesheets/apitome/highlight_themes/mono-blue.css
156
+ - vendor/assets/stylesheets/apitome/highlight_themes/monokai-sublime.css
136
157
  - vendor/assets/stylesheets/apitome/highlight_themes/monokai.css
158
+ - vendor/assets/stylesheets/apitome/highlight_themes/obsidian.css
159
+ - vendor/assets/stylesheets/apitome/highlight_themes/paraiso-dark.css
160
+ - vendor/assets/stylesheets/apitome/highlight_themes/paraiso-light.css
137
161
  - vendor/assets/stylesheets/apitome/highlight_themes/pojoaque.css
138
162
  - vendor/assets/stylesheets/apitome/highlight_themes/pojoaque.jpg
163
+ - vendor/assets/stylesheets/apitome/highlight_themes/purebasic.css
164
+ - vendor/assets/stylesheets/apitome/highlight_themes/qtcreator_dark.css
165
+ - vendor/assets/stylesheets/apitome/highlight_themes/qtcreator_light.css
166
+ - vendor/assets/stylesheets/apitome/highlight_themes/railscasts.css
139
167
  - vendor/assets/stylesheets/apitome/highlight_themes/rainbow.css
140
- - vendor/assets/stylesheets/apitome/highlight_themes/school_book.css
141
- - vendor/assets/stylesheets/apitome/highlight_themes/school_book.png
142
- - vendor/assets/stylesheets/apitome/highlight_themes/solarized_dark.css
143
- - vendor/assets/stylesheets/apitome/highlight_themes/solarized_light.css
168
+ - vendor/assets/stylesheets/apitome/highlight_themes/school-book.css
169
+ - vendor/assets/stylesheets/apitome/highlight_themes/school-book.png
170
+ - vendor/assets/stylesheets/apitome/highlight_themes/solarized-dark.css
171
+ - vendor/assets/stylesheets/apitome/highlight_themes/solarized-light.css
144
172
  - vendor/assets/stylesheets/apitome/highlight_themes/sunburst.css
173
+ - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-blue.css
174
+ - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-bright.css
175
+ - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-eighties.css
176
+ - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night.css
145
177
  - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow.css
146
- - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night.css
147
- - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_blue.css
148
- - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_bright.css
149
- - vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_eighties.css
150
178
  - vendor/assets/stylesheets/apitome/highlight_themes/vs.css
151
179
  - vendor/assets/stylesheets/apitome/highlight_themes/xcode.css
180
+ - vendor/assets/stylesheets/apitome/highlight_themes/xt256.css
152
181
  - vendor/assets/stylesheets/apitome/highlight_themes/zenburn.css
153
- homepage: https://github.com/modeset/apitome
154
- licenses: []
182
+ homepage: https://github.com/jejacks0n/apitome
183
+ licenses:
184
+ - MIT
155
185
  metadata: {}
156
186
  post_install_message:
157
187
  rdoc_options: []
@@ -159,32 +189,17 @@ require_paths:
159
189
  - lib
160
190
  required_ruby_version: !ruby/object:Gem::Requirement
161
191
  requirements:
162
- - - ">="
192
+ - - "~>"
163
193
  - !ruby/object:Gem::Version
164
- version: '0'
194
+ version: '2.4'
165
195
  required_rubygems_version: !ruby/object:Gem::Requirement
166
196
  requirements:
167
197
  - - ">="
168
198
  - !ruby/object:Gem::Version
169
199
  version: '0'
170
200
  requirements: []
171
- rubyforge_project:
172
- rubygems_version: 2.2.2
201
+ rubygems_version: 3.0.3
173
202
  signing_key:
174
203
  specification_version: 4
175
204
  summary: 'Apitome: /iˈpitəmē/ An API documentation reader RSpec API Documentation'
176
- test_files:
177
- - spec/apitome/configuration_spec.rb
178
- - spec/apitome/engine_spec.rb
179
- - spec/dummy/config/application.rb
180
- - spec/dummy/config/boot.rb
181
- - spec/dummy/config/environment.rb
182
- - spec/dummy/config/environments/development.rb
183
- - spec/dummy/config/environments/test.rb
184
- - spec/dummy/config/initializers/apitome.rb
185
- - spec/dummy/config/routes.rb
186
- - spec/dummy/config.ru
187
- - spec/dummy/doc/api.md
188
- - spec/dummy/public/favicon.ico
189
- - spec/dummy/Rakefile
190
- - spec/dummy/script/rails
205
+ test_files: []
data/config/routes.rb DELETED
@@ -1,4 +0,0 @@
1
- Apitome::Engine.routes.draw do
2
- root to: 'docs#index'
3
- get '/*path', to: 'docs#show'
4
- end
File without changes
File without changes
data/spec/dummy/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env rake
2
- # Add your own tasks in files placed in lib/tasks ending in .rake,
3
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
-
5
- require File.expand_path('../config/application', __FILE__)
6
-
7
- Dummy::Application.load_tasks
data/spec/dummy/config.ru DELETED
@@ -1,15 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require 'rails/commands/server'
4
-
5
- module Rails
6
- class Server
7
- alias :default_options_alias :default_options
8
- def default_options
9
- default_options_alias.merge!(:Port => 3333)
10
- end
11
- end
12
- end
13
-
14
- require ::File.expand_path('../config/environment', __FILE__)
15
- run Dummy::Application
@@ -1,16 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require "action_controller/railtie"
4
-
5
- Bundler.require
6
-
7
- module Dummy
8
- class Application < Rails::Application
9
- config.encoding = "utf-8"
10
- config.session_store :cookie_store, key: '_dummy_session'
11
- config.secret_token = 'bc510a13d2fb96575782e90e9f2f64afc0ba4e63e5869b6139613686f104d4d3dd92ee696468de5bcbbb74daedb702d3da97554efbc6792abe75091b9df0a2ab'
12
- config.secret_key_base = 'bc510a13d2fb96575782e90e9f2f64afc0ba4e63e5869b6139613686f104d4d3dd92ee696468de5bcbbb74daedb702d3da97554efbc6792abe75091b9df0a2ab'
13
- config.assets.enabled = true
14
- config.assets.version = '1.0'
15
- end
16
- end
@@ -1,7 +0,0 @@
1
- require "rubygems"
2
-
3
- # Set up gems listed in the Gemfile.
4
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../../Gemfile", __FILE__)
5
-
6
- require "bundler/setup" if File.exists?(ENV["BUNDLE_GEMFILE"])
7
- require "rubygems"
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- Dummy::Application.initialize!
@@ -1,27 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Show full error reports and disable caching
10
- config.consider_all_requests_local = true
11
- config.action_controller.perform_caching = false
12
-
13
- # Print deprecation notices to the Rails logger
14
- config.active_support.deprecation = :log
15
-
16
- # Only use best-standards-support built into browsers
17
- config.action_dispatch.best_standards_support = :builtin
18
-
19
- # Do not compress assets
20
- config.assets.compress = false
21
-
22
- # Expands the lines which load the assets
23
- config.assets.debug = true
24
-
25
- # Eager loading
26
- config.eager_load = false
27
- end
@@ -1,29 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Configure static asset server for tests with Cache-Control for performance
11
- config.serve_static_assets = true
12
- config.static_cache_control = "public, max-age=3600"
13
-
14
- # Show full error reports and disable caching
15
- config.consider_all_requests_local = true
16
- config.action_controller.perform_caching = false
17
-
18
- # Raise exceptions instead of rendering exception templates
19
- config.action_dispatch.show_exceptions = false
20
-
21
- # Disable request forgery protection in test environment
22
- config.action_controller.allow_forgery_protection = false
23
-
24
- # Print deprecation notices to the stderr
25
- config.active_support.deprecation = :stderr
26
-
27
- # Eager loading
28
- config.eager_load = false
29
- end
@@ -1,44 +0,0 @@
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,2 +0,0 @@
1
- Dummy::Application.routes.draw do
2
- end
@@ -1,20 +0,0 @@
1
- ## API Documentation
2
-
3
- ### Request Headers
4
-
5
- The [`Accept-Language`](http://www.w3.org/International/questions/qa-accept-lang-locales) header should be provided in all requests so localization of messaging can be applied and/or different translations for records can be returned. The value will default to `en-US,en` if unspecified.
6
-
7
- The `X-Unit-Type` header should be provided in all requests so units of measurements (temperature, etc) can be provided back to the client in the correct format or processed/converted before storing. The value can be either `imperial`, or `metric`. This could be provided to the user as a setting, and if omitted will be inferred using the `Accept-Language` header or 'en-US,en'. Imperial/Fahrenheit will be used for country codes matching "US", "LR" (Liberia), or "MM" (Myanmar/Burma), otherwise Metric/Celsius is assumed.
8
-
9
- ### Response Codes
10
-
11
- #### 401 Unauthorized
12
-
13
- The server responds with a 401 if the client isn't providing the correct client id/secret or if the user doesn't have access to the given resource being requested.
14
-
15
- ```json
16
- {
17
- "error": "unauthenticated",
18
- "error_description": "This action requires authentication to continue."
19
- }
20
- ```