cabbage_doc 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cabbage_doc/authentication.rb +18 -0
  3. data/lib/cabbage_doc/cache.rb +23 -0
  4. data/lib/cabbage_doc/client.rb +1 -6
  5. data/lib/cabbage_doc/configuration.rb +7 -4
  6. data/lib/cabbage_doc/path.rb +1 -1
  7. data/lib/cabbage_doc/processor.rb +33 -0
  8. data/lib/cabbage_doc/processors/documentation.rb +3 -1
  9. data/lib/cabbage_doc/request.rb +39 -1
  10. data/lib/cabbage_doc/response.rb +12 -0
  11. data/lib/cabbage_doc/task.rb +8 -20
  12. data/lib/cabbage_doc/version.rb +1 -1
  13. data/lib/cabbage_doc/web.rb +9 -3
  14. data/lib/cabbage_doc/web_helper.rb +36 -1
  15. data/lib/cabbage_doc/worker.rb +28 -0
  16. data/lib/cabbage_doc.rb +2 -1
  17. data/web/public/css/application.css +10 -0
  18. data/web/public/css/highlight/agate.css +108 -0
  19. data/web/public/css/highlight/androidstudio.css +66 -0
  20. data/web/public/css/highlight/arduino-light.css +88 -0
  21. data/web/public/css/highlight/arta.css +73 -0
  22. data/web/public/css/highlight/ascetic.css +45 -0
  23. data/web/public/css/highlight/atelier-cave-dark.css +83 -0
  24. data/web/public/css/highlight/atelier-cave-light.css +85 -0
  25. data/web/public/css/highlight/atelier-dune-dark.css +69 -0
  26. data/web/public/css/highlight/atelier-dune-light.css +69 -0
  27. data/web/public/css/highlight/atelier-estuary-dark.css +84 -0
  28. data/web/public/css/highlight/atelier-estuary-light.css +84 -0
  29. data/web/public/css/highlight/atelier-forest-dark.css +69 -0
  30. data/web/public/css/highlight/atelier-forest-light.css +69 -0
  31. data/web/public/css/highlight/atelier-heath-dark.css +69 -0
  32. data/web/public/css/highlight/atelier-heath-light.css +69 -0
  33. data/web/public/css/highlight/atelier-lakeside-dark.css +69 -0
  34. data/web/public/css/highlight/atelier-lakeside-light.css +69 -0
  35. data/web/public/css/highlight/atelier-plateau-dark.css +84 -0
  36. data/web/public/css/highlight/atelier-plateau-light.css +84 -0
  37. data/web/public/css/highlight/atelier-savanna-dark.css +84 -0
  38. data/web/public/css/highlight/atelier-savanna-light.css +84 -0
  39. data/web/public/css/highlight/atelier-seaside-dark.css +69 -0
  40. data/web/public/css/highlight/atelier-seaside-light.css +69 -0
  41. data/web/public/css/highlight/atelier-sulphurpool-dark.css +69 -0
  42. data/web/public/css/highlight/atelier-sulphurpool-light.css +69 -0
  43. data/web/public/css/highlight/brown-paper.css +64 -0
  44. data/web/public/css/highlight/codepen-embed.css +60 -0
  45. data/web/public/css/highlight/color-brewer.css +71 -0
  46. data/web/public/css/highlight/dark.css +63 -0
  47. data/web/public/css/highlight/darkula.css +74 -0
  48. data/web/public/css/highlight/default.css +99 -0
  49. data/web/public/css/highlight/docco.css +97 -0
  50. data/web/public/css/highlight/dracula.css +76 -0
  51. data/web/public/css/highlight/far.css +71 -0
  52. data/web/public/css/highlight/foundation.css +88 -0
  53. data/web/public/css/highlight/github-gist.css +71 -0
  54. data/web/public/css/highlight/github.css +99 -0
  55. data/web/public/css/highlight/googlecode.css +89 -0
  56. data/web/public/css/highlight/grayscale.css +101 -0
  57. data/web/public/css/highlight/gruvbox-dark.css +108 -0
  58. data/web/public/css/highlight/gruvbox-light.css +108 -0
  59. data/web/public/css/highlight/hopscotch.css +83 -0
  60. data/web/public/css/highlight/hybrid.css +102 -0
  61. data/web/public/css/highlight/idea.css +97 -0
  62. data/web/public/css/highlight/ir-black.css +73 -0
  63. data/web/public/css/highlight/kimbie.dark.css +74 -0
  64. data/web/public/css/highlight/kimbie.light.css +74 -0
  65. data/web/public/css/highlight/magula.css +70 -0
  66. data/web/public/css/highlight/mono-blue.css +59 -0
  67. data/web/public/css/highlight/monokai-sublime.css +83 -0
  68. data/web/public/css/highlight/monokai.css +70 -0
  69. data/web/public/css/highlight/obsidian.css +88 -0
  70. data/web/public/css/highlight/ocean.css +74 -0
  71. data/web/public/css/highlight/paraiso-dark.css +72 -0
  72. data/web/public/css/highlight/paraiso-light.css +72 -0
  73. data/web/public/css/highlight/pojoaque.css +83 -0
  74. data/web/public/css/highlight/purebasic.css +96 -0
  75. data/web/public/css/highlight/qtcreator_dark.css +83 -0
  76. data/web/public/css/highlight/qtcreator_light.css +83 -0
  77. data/web/public/css/highlight/railscasts.css +106 -0
  78. data/web/public/css/highlight/rainbow.css +85 -0
  79. data/web/public/css/highlight/school-book.css +72 -0
  80. data/web/public/css/highlight/solarized-dark.css +84 -0
  81. data/web/public/css/highlight/solarized-light.css +84 -0
  82. data/web/public/css/highlight/sunburst.css +102 -0
  83. data/web/public/css/highlight/tomorrow-night-blue.css +75 -0
  84. data/web/public/css/highlight/tomorrow-night-bright.css +74 -0
  85. data/web/public/css/highlight/tomorrow-night-eighties.css +74 -0
  86. data/web/public/css/highlight/tomorrow-night.css +75 -0
  87. data/web/public/css/highlight/tomorrow.css +72 -0
  88. data/web/public/css/highlight/vs.css +68 -0
  89. data/web/public/css/highlight/xcode.css +93 -0
  90. data/web/public/css/highlight/xt256.css +92 -0
  91. data/web/public/css/highlight/zenburn.css +80 -0
  92. data/web/public/js/application.js +79 -12
  93. data/web/public/js/highlight.min.js +3 -0
  94. data/web/views/layout.haml +6 -3
  95. data/web/views/response.haml +10 -5
  96. metadata +81 -7
  97. data/lib/cabbage_doc/pacto_helper.rb +0 -27
  98. data/lib/cabbage_doc/processors/contracts.rb +0 -12
  99. data/lib/cabbage_doc/processors/rspec.rb +0 -11
@@ -0,0 +1,99 @@
1
+ /*
2
+
3
+ Original highlight.js style (c) Ivan Sagalaev <maniac@softwaremaniacs.org>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #F0F0F0;
12
+ }
13
+
14
+
15
+ /* Base color: saturation 0; */
16
+
17
+ .hljs,
18
+ .hljs-subst {
19
+ color: #444;
20
+ }
21
+
22
+ .hljs-comment {
23
+ color: #888888;
24
+ }
25
+
26
+ .hljs-keyword,
27
+ .hljs-attribute,
28
+ .hljs-selector-tag,
29
+ .hljs-meta-keyword,
30
+ .hljs-doctag,
31
+ .hljs-name {
32
+ font-weight: bold;
33
+ }
34
+
35
+
36
+ /* User color: hue: 0 */
37
+
38
+ .hljs-type,
39
+ .hljs-string,
40
+ .hljs-number,
41
+ .hljs-selector-id,
42
+ .hljs-selector-class,
43
+ .hljs-quote,
44
+ .hljs-template-tag,
45
+ .hljs-deletion {
46
+ color: #880000;
47
+ }
48
+
49
+ .hljs-title,
50
+ .hljs-section {
51
+ color: #880000;
52
+ font-weight: bold;
53
+ }
54
+
55
+ .hljs-regexp,
56
+ .hljs-symbol,
57
+ .hljs-variable,
58
+ .hljs-template-variable,
59
+ .hljs-link,
60
+ .hljs-selector-attr,
61
+ .hljs-selector-pseudo {
62
+ color: #BC6060;
63
+ }
64
+
65
+
66
+ /* Language color: hue: 90; */
67
+
68
+ .hljs-literal {
69
+ color: #78A960;
70
+ }
71
+
72
+ .hljs-built_in,
73
+ .hljs-bullet,
74
+ .hljs-code,
75
+ .hljs-addition {
76
+ color: #397300;
77
+ }
78
+
79
+
80
+ /* Meta color: hue: 200 */
81
+
82
+ .hljs-meta {
83
+ color: #1f7199;
84
+ }
85
+
86
+ .hljs-meta-string {
87
+ color: #4d99bf;
88
+ }
89
+
90
+
91
+ /* Misc effects */
92
+
93
+ .hljs-emphasis {
94
+ font-style: italic;
95
+ }
96
+
97
+ .hljs-strong {
98
+ font-weight: bold;
99
+ }
@@ -0,0 +1,97 @@
1
+ /*
2
+ Docco style used in http://jashkenas.github.com/docco/ converted by Simon Madine (@thingsinjars)
3
+ */
4
+
5
+ .hljs {
6
+ display: block;
7
+ overflow-x: auto;
8
+ padding: 0.5em;
9
+ color: #000;
10
+ background: #f8f8ff;
11
+ }
12
+
13
+ .hljs-comment,
14
+ .hljs-quote {
15
+ color: #408080;
16
+ font-style: italic;
17
+ }
18
+
19
+ .hljs-keyword,
20
+ .hljs-selector-tag,
21
+ .hljs-literal,
22
+ .hljs-subst {
23
+ color: #954121;
24
+ }
25
+
26
+ .hljs-number {
27
+ color: #40a070;
28
+ }
29
+
30
+ .hljs-string,
31
+ .hljs-doctag {
32
+ color: #219161;
33
+ }
34
+
35
+ .hljs-selector-id,
36
+ .hljs-selector-class,
37
+ .hljs-section,
38
+ .hljs-type {
39
+ color: #19469d;
40
+ }
41
+
42
+ .hljs-params {
43
+ color: #00f;
44
+ }
45
+
46
+ .hljs-title {
47
+ color: #458;
48
+ font-weight: bold;
49
+ }
50
+
51
+ .hljs-tag,
52
+ .hljs-name,
53
+ .hljs-attribute {
54
+ color: #000080;
55
+ font-weight: normal;
56
+ }
57
+
58
+ .hljs-variable,
59
+ .hljs-template-variable {
60
+ color: #008080;
61
+ }
62
+
63
+ .hljs-regexp,
64
+ .hljs-link {
65
+ color: #b68;
66
+ }
67
+
68
+ .hljs-symbol,
69
+ .hljs-bullet {
70
+ color: #990073;
71
+ }
72
+
73
+ .hljs-built_in,
74
+ .hljs-builtin-name {
75
+ color: #0086b3;
76
+ }
77
+
78
+ .hljs-meta {
79
+ color: #999;
80
+ font-weight: bold;
81
+ }
82
+
83
+ .hljs-deletion {
84
+ background: #fdd;
85
+ }
86
+
87
+ .hljs-addition {
88
+ background: #dfd;
89
+ }
90
+
91
+ .hljs-emphasis {
92
+ font-style: italic;
93
+ }
94
+
95
+ .hljs-strong {
96
+ font-weight: bold;
97
+ }
@@ -0,0 +1,76 @@
1
+ /*
2
+
3
+ Dracula Theme v1.2.0
4
+
5
+ https://github.com/zenorocha/dracula-theme
6
+
7
+ Copyright 2015, All rights reserved
8
+
9
+ Code licensed under the MIT license
10
+ http://zenorocha.mit-license.org
11
+
12
+ @author Éverton Ribeiro <nuxlli@gmail.com>
13
+ @author Zeno Rocha <hi@zenorocha.com>
14
+
15
+ */
16
+
17
+ .hljs {
18
+ display: block;
19
+ overflow-x: auto;
20
+ padding: 0.5em;
21
+ background: #282a36;
22
+ }
23
+
24
+ .hljs-keyword,
25
+ .hljs-selector-tag,
26
+ .hljs-literal,
27
+ .hljs-section,
28
+ .hljs-link {
29
+ color: #8be9fd;
30
+ }
31
+
32
+ .hljs-function .hljs-keyword {
33
+ color: #ff79c6;
34
+ }
35
+
36
+ .hljs,
37
+ .hljs-subst {
38
+ color: #f8f8f2;
39
+ }
40
+
41
+ .hljs-string,
42
+ .hljs-title,
43
+ .hljs-name,
44
+ .hljs-type,
45
+ .hljs-attribute,
46
+ .hljs-symbol,
47
+ .hljs-bullet,
48
+ .hljs-addition,
49
+ .hljs-variable,
50
+ .hljs-template-tag,
51
+ .hljs-template-variable {
52
+ color: #f1fa8c;
53
+ }
54
+
55
+ .hljs-comment,
56
+ .hljs-quote,
57
+ .hljs-deletion,
58
+ .hljs-meta {
59
+ color: #6272a4;
60
+ }
61
+
62
+ .hljs-keyword,
63
+ .hljs-selector-tag,
64
+ .hljs-literal,
65
+ .hljs-title,
66
+ .hljs-section,
67
+ .hljs-doctag,
68
+ .hljs-type,
69
+ .hljs-name,
70
+ .hljs-strong {
71
+ font-weight: bold;
72
+ }
73
+
74
+ .hljs-emphasis {
75
+ font-style: italic;
76
+ }
@@ -0,0 +1,71 @@
1
+ /*
2
+
3
+ FAR Style (c) MajestiC <majestic2k@gmail.com>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #000080;
12
+ }
13
+
14
+ .hljs,
15
+ .hljs-subst {
16
+ color: #0ff;
17
+ }
18
+
19
+ .hljs-string,
20
+ .hljs-attribute,
21
+ .hljs-symbol,
22
+ .hljs-bullet,
23
+ .hljs-built_in,
24
+ .hljs-builtin-name,
25
+ .hljs-template-tag,
26
+ .hljs-template-variable,
27
+ .hljs-addition {
28
+ color: #ff0;
29
+ }
30
+
31
+ .hljs-keyword,
32
+ .hljs-selector-tag,
33
+ .hljs-section,
34
+ .hljs-type,
35
+ .hljs-name,
36
+ .hljs-selector-id,
37
+ .hljs-selector-class,
38
+ .hljs-variable {
39
+ color: #fff;
40
+ }
41
+
42
+ .hljs-comment,
43
+ .hljs-quote,
44
+ .hljs-doctag,
45
+ .hljs-deletion {
46
+ color: #888;
47
+ }
48
+
49
+ .hljs-number,
50
+ .hljs-regexp,
51
+ .hljs-literal,
52
+ .hljs-link {
53
+ color: #0f0;
54
+ }
55
+
56
+ .hljs-meta {
57
+ color: #008080;
58
+ }
59
+
60
+ .hljs-keyword,
61
+ .hljs-selector-tag,
62
+ .hljs-title,
63
+ .hljs-section,
64
+ .hljs-name,
65
+ .hljs-strong {
66
+ font-weight: bold;
67
+ }
68
+
69
+ .hljs-emphasis {
70
+ font-style: italic;
71
+ }
@@ -0,0 +1,88 @@
1
+ /*
2
+ Description: Foundation 4 docs style for highlight.js
3
+ Author: Dan Allen <dan.j.allen@gmail.com>
4
+ Website: http://foundation.zurb.com/docs/
5
+ Version: 1.0
6
+ Date: 2013-04-02
7
+ */
8
+
9
+ .hljs {
10
+ display: block;
11
+ overflow-x: auto;
12
+ padding: 0.5em;
13
+ background: #eee; color: black;
14
+ }
15
+
16
+ .hljs-link,
17
+ .hljs-emphasis,
18
+ .hljs-attribute,
19
+ .hljs-addition {
20
+ color: #070;
21
+ }
22
+
23
+ .hljs-emphasis {
24
+ font-style: italic;
25
+ }
26
+
27
+ .hljs-strong,
28
+ .hljs-string,
29
+ .hljs-deletion {
30
+ color: #d14;
31
+ }
32
+
33
+ .hljs-strong {
34
+ font-weight: bold;
35
+ }
36
+
37
+ .hljs-quote,
38
+ .hljs-comment {
39
+ color: #998;
40
+ font-style: italic;
41
+ }
42
+
43
+ .hljs-section,
44
+ .hljs-title {
45
+ color: #900;
46
+ }
47
+
48
+ .hljs-class .hljs-title,
49
+ .hljs-type {
50
+ color: #458;
51
+ }
52
+
53
+ .hljs-variable,
54
+ .hljs-template-variable {
55
+ color: #336699;
56
+ }
57
+
58
+ .hljs-bullet {
59
+ color: #997700;
60
+ }
61
+
62
+ .hljs-meta {
63
+ color: #3344bb;
64
+ }
65
+
66
+ .hljs-code,
67
+ .hljs-number,
68
+ .hljs-literal,
69
+ .hljs-keyword,
70
+ .hljs-selector-tag {
71
+ color: #099;
72
+ }
73
+
74
+ .hljs-regexp {
75
+ background-color: #fff0ff;
76
+ color: #880088;
77
+ }
78
+
79
+ .hljs-symbol {
80
+ color: #990073;
81
+ }
82
+
83
+ .hljs-tag,
84
+ .hljs-name,
85
+ .hljs-selector-id,
86
+ .hljs-selector-class {
87
+ color: #007700;
88
+ }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * GitHub Gist Theme
3
+ * Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro
4
+ */
5
+
6
+ .hljs {
7
+ display: block;
8
+ background: white;
9
+ padding: 0.5em;
10
+ color: #333333;
11
+ overflow-x: auto;
12
+ }
13
+
14
+ .hljs-comment,
15
+ .hljs-meta {
16
+ color: #969896;
17
+ }
18
+
19
+ .hljs-string,
20
+ .hljs-variable,
21
+ .hljs-template-variable,
22
+ .hljs-strong,
23
+ .hljs-emphasis,
24
+ .hljs-quote {
25
+ color: #df5000;
26
+ }
27
+
28
+ .hljs-keyword,
29
+ .hljs-selector-tag,
30
+ .hljs-type {
31
+ color: #a71d5d;
32
+ }
33
+
34
+ .hljs-literal,
35
+ .hljs-symbol,
36
+ .hljs-bullet,
37
+ .hljs-attribute {
38
+ color: #0086b3;
39
+ }
40
+
41
+ .hljs-section,
42
+ .hljs-name {
43
+ color: #63a35c;
44
+ }
45
+
46
+ .hljs-tag {
47
+ color: #333333;
48
+ }
49
+
50
+ .hljs-title,
51
+ .hljs-attr,
52
+ .hljs-selector-id,
53
+ .hljs-selector-class,
54
+ .hljs-selector-attr,
55
+ .hljs-selector-pseudo {
56
+ color: #795da3;
57
+ }
58
+
59
+ .hljs-addition {
60
+ color: #55a532;
61
+ background-color: #eaffea;
62
+ }
63
+
64
+ .hljs-deletion {
65
+ color: #bd2c00;
66
+ background-color: #ffecec;
67
+ }
68
+
69
+ .hljs-link {
70
+ text-decoration: underline;
71
+ }
@@ -0,0 +1,99 @@
1
+ /*
2
+
3
+ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ color: #333;
12
+ background: #f8f8f8;
13
+ }
14
+
15
+ .hljs-comment,
16
+ .hljs-quote {
17
+ color: #998;
18
+ font-style: italic;
19
+ }
20
+
21
+ .hljs-keyword,
22
+ .hljs-selector-tag,
23
+ .hljs-subst {
24
+ color: #333;
25
+ font-weight: bold;
26
+ }
27
+
28
+ .hljs-number,
29
+ .hljs-literal,
30
+ .hljs-variable,
31
+ .hljs-template-variable,
32
+ .hljs-tag .hljs-attr {
33
+ color: #008080;
34
+ }
35
+
36
+ .hljs-string,
37
+ .hljs-doctag {
38
+ color: #d14;
39
+ }
40
+
41
+ .hljs-title,
42
+ .hljs-section,
43
+ .hljs-selector-id {
44
+ color: #900;
45
+ font-weight: bold;
46
+ }
47
+
48
+ .hljs-subst {
49
+ font-weight: normal;
50
+ }
51
+
52
+ .hljs-type,
53
+ .hljs-class .hljs-title {
54
+ color: #458;
55
+ font-weight: bold;
56
+ }
57
+
58
+ .hljs-tag,
59
+ .hljs-name,
60
+ .hljs-attribute {
61
+ color: #000080;
62
+ font-weight: normal;
63
+ }
64
+
65
+ .hljs-regexp,
66
+ .hljs-link {
67
+ color: #009926;
68
+ }
69
+
70
+ .hljs-symbol,
71
+ .hljs-bullet {
72
+ color: #990073;
73
+ }
74
+
75
+ .hljs-built_in,
76
+ .hljs-builtin-name {
77
+ color: #0086b3;
78
+ }
79
+
80
+ .hljs-meta {
81
+ color: #999;
82
+ font-weight: bold;
83
+ }
84
+
85
+ .hljs-deletion {
86
+ background: #fdd;
87
+ }
88
+
89
+ .hljs-addition {
90
+ background: #dfd;
91
+ }
92
+
93
+ .hljs-emphasis {
94
+ font-style: italic;
95
+ }
96
+
97
+ .hljs-strong {
98
+ font-weight: bold;
99
+ }
@@ -0,0 +1,89 @@
1
+ /*
2
+
3
+ Google Code style (c) Aahan Krish <geekpanth3r@gmail.com>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: white;
12
+ color: black;
13
+ }
14
+
15
+ .hljs-comment,
16
+ .hljs-quote {
17
+ color: #800;
18
+ }
19
+
20
+ .hljs-keyword,
21
+ .hljs-selector-tag,
22
+ .hljs-section,
23
+ .hljs-title,
24
+ .hljs-name {
25
+ color: #008;
26
+ }
27
+
28
+ .hljs-variable,
29
+ .hljs-template-variable {
30
+ color: #660;
31
+ }
32
+
33
+ .hljs-string,
34
+ .hljs-selector-attr,
35
+ .hljs-selector-pseudo,
36
+ .hljs-regexp {
37
+ color: #080;
38
+ }
39
+
40
+ .hljs-literal,
41
+ .hljs-symbol,
42
+ .hljs-bullet,
43
+ .hljs-meta,
44
+ .hljs-number,
45
+ .hljs-link {
46
+ color: #066;
47
+ }
48
+
49
+ .hljs-title,
50
+ .hljs-doctag,
51
+ .hljs-type,
52
+ .hljs-attr,
53
+ .hljs-built_in,
54
+ .hljs-builtin-name,
55
+ .hljs-params {
56
+ color: #606;
57
+ }
58
+
59
+ .hljs-attribute,
60
+ .hljs-subst {
61
+ color: #000;
62
+ }
63
+
64
+ .hljs-formula {
65
+ background-color: #eee;
66
+ font-style: italic;
67
+ }
68
+
69
+ .hljs-selector-id,
70
+ .hljs-selector-class {
71
+ color: #9B703F
72
+ }
73
+
74
+ .hljs-addition {
75
+ background-color: #baeeba;
76
+ }
77
+
78
+ .hljs-deletion {
79
+ background-color: #ffc8bd;
80
+ }
81
+
82
+ .hljs-doctag,
83
+ .hljs-strong {
84
+ font-weight: bold;
85
+ }
86
+
87
+ .hljs-emphasis {
88
+ font-style: italic;
89
+ }