apitome 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +15 -0
  2. data/MIT.LICENSE +22 -0
  3. data/README.md +21 -0
  4. data/app/assets/javascripts/apitome/application.js +16 -0
  5. data/app/assets/stylesheets/apitome/application.css +120 -0
  6. data/app/controllers/apitome/docs_controller.rb +63 -0
  7. data/app/views/apitome/docs/_all_examples.html.erb +10 -0
  8. data/app/views/apitome/docs/_body.html.erb +4 -0
  9. data/app/views/apitome/docs/_curl.html.erb +4 -0
  10. data/app/views/apitome/docs/_example.html.erb +25 -0
  11. data/app/views/apitome/docs/_explanation.html.erb +3 -0
  12. data/app/views/apitome/docs/_header.html.erb +7 -0
  13. data/app/views/apitome/docs/_headers.html.erb +4 -0
  14. data/app/views/apitome/docs/_navigation.html.erb +28 -0
  15. data/app/views/apitome/docs/_params.html.erb +27 -0
  16. data/app/views/apitome/docs/_query.html.erb +4 -0
  17. data/app/views/apitome/docs/_route.html.erb +4 -0
  18. data/app/views/apitome/docs/_status.html.erb +4 -0
  19. data/app/views/apitome/docs/index.html.erb +6 -0
  20. data/app/views/apitome/docs/show.html.erb +1 -0
  21. data/app/views/layouts/apitome/application.html.erb +30 -0
  22. data/config/routes.rb +4 -0
  23. data/lib/apitome.rb +7 -0
  24. data/lib/apitome/configuration.rb +30 -0
  25. data/lib/apitome/engine.rb +18 -0
  26. data/lib/apitome/exceptions.rb +3 -0
  27. data/lib/apitome/version.rb +3 -0
  28. data/spec/apitome/configuration_spec.rb +0 -0
  29. data/spec/apitome/engine_spec.rb +0 -0
  30. data/spec/dummy/Rakefile +7 -0
  31. data/spec/dummy/config.ru +15 -0
  32. data/spec/dummy/config/application.rb +16 -0
  33. data/spec/dummy/config/boot.rb +7 -0
  34. data/spec/dummy/config/environment.rb +5 -0
  35. data/spec/dummy/config/environments/development.rb +27 -0
  36. data/spec/dummy/config/environments/test.rb +29 -0
  37. data/spec/dummy/config/initializers/apitome.rb +6 -0
  38. data/spec/dummy/config/routes.rb +2 -0
  39. data/spec/dummy/doc/api.md +20 -0
  40. data/spec/dummy/doc/api/access_tokens/generating_an_access_token.json +47 -0
  41. data/spec/dummy/doc/api/alerts/listing_alert_types.json +33 -0
  42. data/spec/dummy/doc/api/alerts/listing_alerts.json +52 -0
  43. data/spec/dummy/doc/api/index.json +29 -0
  44. data/spec/dummy/log/development.log +18075 -0
  45. data/spec/dummy/public/favicon.ico +0 -0
  46. data/spec/dummy/script/rails +6 -0
  47. data/spec/dummy/tmp/cache/assets/development/sprockets/038ff9775f572c3dfc1a380247c59890 +0 -0
  48. data/spec/dummy/tmp/cache/assets/development/sprockets/03fdbedf7c517a2e1feda524c52a652a +0 -0
  49. data/spec/dummy/tmp/cache/assets/development/sprockets/07b6695ed44671a8d213823bc763b378 +0 -0
  50. data/spec/dummy/tmp/cache/assets/development/sprockets/0f10ed0a447d44a80afcc427e858ddf1 +0 -0
  51. data/spec/dummy/tmp/cache/assets/development/sprockets/3c0d7839d05fa6264e540e4612e76d8e +0 -0
  52. data/spec/dummy/tmp/cache/assets/development/sprockets/54ddec13d8230a77be44f49bba9ab063 +0 -0
  53. data/spec/dummy/tmp/cache/assets/development/sprockets/82a9467461d6cbd74f0c38002037d366 +0 -0
  54. data/spec/dummy/tmp/cache/assets/development/sprockets/82b46b5876ec191ffb4ee1f73b9037cf +0 -0
  55. data/spec/dummy/tmp/cache/assets/development/sprockets/833c936b0961f9bc9f6821682b662c28 +0 -0
  56. data/spec/dummy/tmp/cache/assets/development/sprockets/86d22f0e7f750dbdf5b602b99e7c51c8 +0 -0
  57. data/spec/dummy/tmp/cache/assets/development/sprockets/898d7a0610dc79a7141e7b570b77a951 +0 -0
  58. data/spec/dummy/tmp/cache/assets/development/sprockets/8eb01b8f553b48d4712bc6df728f05ed +0 -0
  59. data/spec/dummy/tmp/cache/assets/development/sprockets/98be05ccb93e3f09cd213ad66be4afd5 +0 -0
  60. data/spec/dummy/tmp/cache/assets/development/sprockets/a4636c23002ad75a90567e067a4a87b2 +0 -0
  61. data/spec/dummy/tmp/cache/assets/development/sprockets/a7dbf6dc1b06132961af53b0dc4bd187 +0 -0
  62. data/spec/dummy/tmp/cache/assets/development/sprockets/b7fc26490932e9ef364d72f46116f29a +0 -0
  63. data/spec/dummy/tmp/cache/assets/development/sprockets/d9052716353aa1cde34614ee79e75fc2 +0 -0
  64. data/spec/dummy/tmp/cache/assets/development/sprockets/dab2b969e1e0d90b3b2325566486eca9 +0 -0
  65. data/spec/dummy/tmp/cache/assets/development/sprockets/dfd8cd5b3aa5e4d8e14f8b26118e94f3 +0 -0
  66. data/spec/dummy/tmp/cache/assets/development/sprockets/e71d75c9c50c9552b2c6a42957e853fd +0 -0
  67. data/spec/dummy/tmp/cache/assets/development/sprockets/fa138ab5e008fb2d4c75be6c6558677b +0 -0
  68. data/vendor/assets/javascripts/apitome/bootstrap.min.LICENSE +176 -0
  69. data/vendor/assets/javascripts/apitome/bootstrap.min.js +6 -0
  70. data/vendor/assets/javascripts/apitome/highlight.min.LICENSE +24 -0
  71. data/vendor/assets/javascripts/apitome/highlight.min.js +1 -0
  72. data/vendor/assets/javascripts/apitome/jquery-2.0.3.min.js +6 -0
  73. data/vendor/assets/stylesheets/apitome/bootstrap.min.css +9 -0
  74. data/vendor/assets/stylesheets/apitome/highlight_themes/arta.css +158 -0
  75. data/vendor/assets/stylesheets/apitome/highlight_themes/ascetic.css +50 -0
  76. data/vendor/assets/stylesheets/apitome/highlight_themes/brown_paper.css +104 -0
  77. data/vendor/assets/stylesheets/apitome/highlight_themes/brown_papersq.png +0 -0
  78. data/vendor/assets/stylesheets/apitome/highlight_themes/dark.css +103 -0
  79. data/vendor/assets/stylesheets/apitome/highlight_themes/default.css +135 -0
  80. data/vendor/assets/stylesheets/apitome/highlight_themes/far.css +111 -0
  81. data/vendor/assets/stylesheets/apitome/highlight_themes/github.css +127 -0
  82. data/vendor/assets/stylesheets/apitome/highlight_themes/googlecode.css +144 -0
  83. data/vendor/assets/stylesheets/apitome/highlight_themes/idea.css +121 -0
  84. data/vendor/assets/stylesheets/apitome/highlight_themes/ir_black.css +104 -0
  85. data/vendor/assets/stylesheets/apitome/highlight_themes/magula.css +121 -0
  86. data/vendor/assets/stylesheets/apitome/highlight_themes/monokai.css +114 -0
  87. data/vendor/assets/stylesheets/apitome/highlight_themes/pojoaque.css +104 -0
  88. data/vendor/assets/stylesheets/apitome/highlight_themes/pojoaque.jpg +0 -0
  89. data/vendor/assets/stylesheets/apitome/highlight_themes/rainbow.css +114 -0
  90. data/vendor/assets/stylesheets/apitome/highlight_themes/school_book.css +111 -0
  91. data/vendor/assets/stylesheets/apitome/highlight_themes/school_book.png +0 -0
  92. data/vendor/assets/stylesheets/apitome/highlight_themes/solarized_dark.css +88 -0
  93. data/vendor/assets/stylesheets/apitome/highlight_themes/solarized_light.css +88 -0
  94. data/vendor/assets/stylesheets/apitome/highlight_themes/sunburst.css +158 -0
  95. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-blue.css +52 -0
  96. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-bright.css +51 -0
  97. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-eighties.css +51 -0
  98. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night.css +52 -0
  99. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow.css +49 -0
  100. data/vendor/assets/stylesheets/apitome/highlight_themes/vs.css +86 -0
  101. data/vendor/assets/stylesheets/apitome/highlight_themes/xcode.css +154 -0
  102. data/vendor/assets/stylesheets/apitome/highlight_themes/zenburn.css +115 -0
  103. metadata +233 -0
@@ -0,0 +1,111 @@
1
+ /*
2
+
3
+ School Book style from goldblog.com.ua (c) Zaripov Yura <yur4ik7@ukr.net>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 15px 0.5em 0.5em 30px;
9
+ font-size: 11px !important;
10
+ line-height:16px !important;
11
+ }
12
+
13
+ pre{
14
+ background:#f6f6ae url(./school_book.png);
15
+ border-top: solid 2px #d2e8b9;
16
+ border-bottom: solid 1px #d2e8b9;
17
+ }
18
+
19
+ pre .keyword,
20
+ pre .literal,
21
+ pre .change,
22
+ pre .winutils,
23
+ pre .flow,
24
+ pre .lisp .title,
25
+ pre .clojure .built_in,
26
+ pre .nginx .title,
27
+ pre .tex .special {
28
+ color:#005599;
29
+ font-weight:bold;
30
+ }
31
+
32
+ pre code,
33
+ pre .subst,
34
+ pre .tag .keyword {
35
+ color: #3E5915;
36
+ }
37
+
38
+ pre .string,
39
+ pre .title,
40
+ pre .haskell .type,
41
+ pre .tag .value,
42
+ pre .css .rules .value,
43
+ pre .preprocessor,
44
+ pre .ruby .symbol,
45
+ pre .ruby .symbol .string,
46
+ pre .ruby .class .parent,
47
+ pre .built_in,
48
+ pre .sql .aggregate,
49
+ pre .django .template_tag,
50
+ pre .django .variable,
51
+ pre .smalltalk .class,
52
+ pre .javadoc,
53
+ pre .ruby .string,
54
+ pre .django .filter .argument,
55
+ pre .smalltalk .localvars,
56
+ pre .smalltalk .array,
57
+ pre .attr_selector,
58
+ pre .pseudo,
59
+ pre .addition,
60
+ pre .stream,
61
+ pre .envvar,
62
+ pre .apache .tag,
63
+ pre .apache .cbracket,
64
+ pre .nginx .built_in,
65
+ pre .tex .command {
66
+ color: #2C009F;
67
+ }
68
+
69
+ pre .comment,
70
+ pre .java .annotation,
71
+ pre .python .decorator,
72
+ pre .template_comment,
73
+ pre .pi,
74
+ pre .doctype,
75
+ pre .deletion,
76
+ pre .shebang,
77
+ pre .apache .sqbracket {
78
+ color: #E60415;
79
+ }
80
+
81
+ pre .keyword,
82
+ pre .literal,
83
+ pre .css .id,
84
+ pre .phpdoc,
85
+ pre .title,
86
+ pre .haskell .type,
87
+ pre .vbscript .built_in,
88
+ pre .sql .aggregate,
89
+ pre .rsl .built_in,
90
+ pre .smalltalk .class,
91
+ pre .xml .tag .title,
92
+ pre .diff .header,
93
+ pre .chunk,
94
+ pre .winutils,
95
+ pre .bash .variable,
96
+ pre .apache .tag,
97
+ pre .tex .command,
98
+ pre .request,
99
+ pre .status {
100
+ font-weight: bold;
101
+ }
102
+
103
+ pre .coffeescript .javascript,
104
+ pre .javascript .xml,
105
+ pre .tex .formula,
106
+ pre .xml .javascript,
107
+ pre .xml .vbscript,
108
+ pre .xml .css,
109
+ pre .xml .cdata {
110
+ opacity: 0.5;
111
+ }
@@ -0,0 +1,88 @@
1
+ /*
2
+
3
+ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: #002b36; color: #839496;
10
+ }
11
+
12
+ pre .comment,
13
+ pre .template_comment,
14
+ pre .diff .header,
15
+ pre .doctype,
16
+ pre .pi,
17
+ pre .lisp .string,
18
+ pre .javadoc {
19
+ color: #586e75;
20
+ font-style: italic;
21
+ }
22
+
23
+ pre .keyword,
24
+ pre .winutils,
25
+ pre .method,
26
+ pre .addition,
27
+ pre .css .tag,
28
+ pre .request,
29
+ pre .status,
30
+ pre .nginx .title {
31
+ color: #859900;
32
+ }
33
+
34
+ pre .number,
35
+ pre .command,
36
+ pre .string,
37
+ pre .tag .value,
38
+ pre .phpdoc,
39
+ pre .tex .formula,
40
+ pre .regexp,
41
+ pre .hexcolor {
42
+ color: #2aa198;
43
+ }
44
+
45
+ pre .title,
46
+ pre .localvars,
47
+ pre .chunk,
48
+ pre .decorator,
49
+ pre .built_in,
50
+ pre .identifier,
51
+ pre .vhdl .literal,
52
+ pre .id {
53
+ color: #268bd2;
54
+ }
55
+
56
+ pre .attribute,
57
+ pre .variable,
58
+ pre .lisp .body,
59
+ pre .smalltalk .number,
60
+ pre .constant,
61
+ pre .class .title,
62
+ pre .parent,
63
+ pre .haskell .type {
64
+ color: #b58900;
65
+ }
66
+
67
+ pre .preprocessor,
68
+ pre .preprocessor .keyword,
69
+ pre .shebang,
70
+ pre .symbol,
71
+ pre .symbol .string,
72
+ pre .diff .change,
73
+ pre .special,
74
+ pre .attr_selector,
75
+ pre .important,
76
+ pre .subst,
77
+ pre .cdata,
78
+ pre .clojure .title {
79
+ color: #cb4b16;
80
+ }
81
+
82
+ pre .deletion {
83
+ color: #dc322f;
84
+ }
85
+
86
+ pre .tex .formula {
87
+ background: #073642;
88
+ }
@@ -0,0 +1,88 @@
1
+ /*
2
+
3
+ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: #fdf6e3; color: #657b83;
10
+ }
11
+
12
+ pre .comment,
13
+ pre .template_comment,
14
+ pre .diff .header,
15
+ pre .doctype,
16
+ pre .pi,
17
+ pre .lisp .string,
18
+ pre .javadoc {
19
+ color: #93a1a1;
20
+ font-style: italic;
21
+ }
22
+
23
+ pre .keyword,
24
+ pre .winutils,
25
+ pre .method,
26
+ pre .addition,
27
+ pre .css .tag,
28
+ pre .request,
29
+ pre .status,
30
+ pre .nginx .title {
31
+ color: #859900;
32
+ }
33
+
34
+ pre .number,
35
+ pre .command,
36
+ pre .string,
37
+ pre .tag .value,
38
+ pre .phpdoc,
39
+ pre .tex .formula,
40
+ pre .regexp,
41
+ pre .hexcolor {
42
+ color: #2aa198;
43
+ }
44
+
45
+ pre .title,
46
+ pre .localvars,
47
+ pre .chunk,
48
+ pre .decorator,
49
+ pre .built_in,
50
+ pre .identifier,
51
+ pre .vhdl .literal,
52
+ pre .id {
53
+ color: #268bd2;
54
+ }
55
+
56
+ pre .attribute,
57
+ pre .variable,
58
+ pre .lisp .body,
59
+ pre .smalltalk .number,
60
+ pre .constant,
61
+ pre .class .title,
62
+ pre .parent,
63
+ pre .haskell .type {
64
+ color: #b58900;
65
+ }
66
+
67
+ pre .preprocessor,
68
+ pre .preprocessor .keyword,
69
+ pre .shebang,
70
+ pre .symbol,
71
+ pre .symbol .string,
72
+ pre .diff .change,
73
+ pre .special,
74
+ pre .attr_selector,
75
+ pre .important,
76
+ pre .subst,
77
+ pre .cdata,
78
+ pre .clojure .title {
79
+ color: #cb4b16;
80
+ }
81
+
82
+ pre .deletion {
83
+ color: #dc322f;
84
+ }
85
+
86
+ pre .tex .formula {
87
+ background: #eee8d5;
88
+ }
@@ -0,0 +1,158 @@
1
+ /*
2
+
3
+ Sunburst-like style (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: #000; color: #f8f8f8;
10
+ }
11
+
12
+ pre .comment,
13
+ pre .template_comment,
14
+ pre .javadoc {
15
+ color: #aeaeae;
16
+ font-style: italic;
17
+ }
18
+
19
+ pre .keyword,
20
+ pre .ruby .function .keyword,
21
+ pre .request,
22
+ pre .status,
23
+ pre .nginx .title {
24
+ color: #E28964;
25
+ }
26
+
27
+ pre .function .keyword,
28
+ pre .sub .keyword,
29
+ pre .method,
30
+ pre .list .title {
31
+ color: #99CF50;
32
+ }
33
+
34
+ pre .string,
35
+ pre .tag .value,
36
+ pre .cdata,
37
+ pre .filter .argument,
38
+ pre .attr_selector,
39
+ pre .apache .cbracket,
40
+ pre .date,
41
+ pre .tex .command {
42
+ color: #65B042;
43
+ }
44
+
45
+ pre .subst {
46
+ color: #DAEFA3;
47
+ }
48
+
49
+ pre .regexp {
50
+ color: #E9C062;
51
+ }
52
+
53
+ pre .title,
54
+ pre .sub .identifier,
55
+ pre .pi,
56
+ pre .tag,
57
+ pre .tag .keyword,
58
+ pre .decorator,
59
+ pre .shebang,
60
+ pre .prompt {
61
+ color: #89BDFF;
62
+ }
63
+
64
+ pre .class .title,
65
+ pre .haskell .type,
66
+ pre .smalltalk .class,
67
+ pre .javadoctag,
68
+ pre .yardoctag,
69
+ pre .phpdoc {
70
+ text-decoration: underline;
71
+ }
72
+
73
+ pre .symbol,
74
+ pre .ruby .symbol .string,
75
+ pre .number {
76
+ color: #3387CC;
77
+ }
78
+
79
+ pre .params,
80
+ pre .variable,
81
+ pre .clojure .attribute {
82
+ color: #3E87E3;
83
+ }
84
+
85
+ pre .css .tag,
86
+ pre .rules .property,
87
+ pre .pseudo,
88
+ pre .tex .special {
89
+ color: #CDA869;
90
+ }
91
+
92
+ pre .css .class {
93
+ color: #9B703F;
94
+ }
95
+
96
+ pre .rules .keyword {
97
+ color: #C5AF75;
98
+ }
99
+
100
+ pre .rules .value {
101
+ color: #CF6A4C;
102
+ }
103
+
104
+ pre .css .id {
105
+ color: #8B98AB;
106
+ }
107
+
108
+ pre .annotation,
109
+ pre .apache .sqbracket,
110
+ pre .nginx .built_in {
111
+ color: #9B859D;
112
+ }
113
+
114
+ pre .preprocessor {
115
+ color: #8996A8;
116
+ }
117
+
118
+ pre .hexcolor,
119
+ pre .css .value .number {
120
+ color: #DD7B3B;
121
+ }
122
+
123
+ pre .css .function {
124
+ color: #DAD085;
125
+ }
126
+
127
+ pre .diff .header,
128
+ pre .chunk,
129
+ pre .tex .formula {
130
+ background-color: #0E2231;
131
+ color: #F8F8F8;
132
+ font-style: italic;
133
+ }
134
+
135
+ pre .diff .change {
136
+ background-color: #4A410D;
137
+ color: #F8F8F8;
138
+ }
139
+
140
+ pre .addition {
141
+ background-color: #253B22;
142
+ color: #F8F8F8;
143
+ }
144
+
145
+ pre .deletion {
146
+ background-color: #420E09;
147
+ color: #F8F8F8;
148
+ }
149
+
150
+ pre .coffeescript .javascript,
151
+ pre .javascript .xml,
152
+ pre .tex .formula,
153
+ pre .xml .javascript,
154
+ pre .xml .vbscript,
155
+ pre .xml .css,
156
+ pre .xml .cdata {
157
+ opacity: 0.5;
158
+ }