fortitude 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/.travis.yml +28 -22
  4. data/CHANGES.md +50 -0
  5. data/CONTRIBUTORS.md +1 -0
  6. data/doc/.gitignore +18 -0
  7. data/doc/Gemfile +21 -0
  8. data/doc/config.rb +92 -0
  9. data/doc/source/images/background.png +0 -0
  10. data/doc/source/images/middleman.png +0 -0
  11. data/doc/source/images/why/icon_button.png +0 -0
  12. data/doc/source/images/why/icon_button@2x.png +0 -0
  13. data/doc/source/images/why/modal_dialog@2x.png +0 -0
  14. data/doc/source/index.html.pcss +96 -0
  15. data/doc/source/index.html.rb +66 -0
  16. data/doc/source/javascripts/all.js +1 -0
  17. data/doc/source/javascripts/highlight.pack.js +1 -0
  18. data/doc/source/layouts/layout.rb +55 -0
  19. data/doc/source/portable/fortitude-bootstrap.rb +53 -0
  20. data/doc/source/shared/base.pcss +62 -0
  21. data/doc/source/shared/base.rb +30 -0
  22. data/doc/source/shared/common.rb +55 -0
  23. data/doc/source/shared/standard_page.rb +40 -0
  24. data/doc/source/stylesheets/_shared_prefix.scss +25 -0
  25. data/doc/source/stylesheets/all.css.scss +7 -0
  26. data/doc/source/stylesheets/basics.css.scss +20 -0
  27. data/doc/source/stylesheets/bootstrap_importer.css.scss +1 -0
  28. data/doc/source/stylesheets/highlight/arta.css +140 -0
  29. data/doc/source/stylesheets/highlight/ascetic.css +52 -0
  30. data/doc/source/stylesheets/highlight/atelier-dune.dark.css +95 -0
  31. data/doc/source/stylesheets/highlight/atelier-dune.light.css +95 -0
  32. data/doc/source/stylesheets/highlight/atelier-forest.dark.css +95 -0
  33. data/doc/source/stylesheets/highlight/atelier-forest.light.css +95 -0
  34. data/doc/source/stylesheets/highlight/atelier-heath.dark.css +95 -0
  35. data/doc/source/stylesheets/highlight/atelier-heath.light.css +95 -0
  36. data/doc/source/stylesheets/highlight/atelier-lakeside.dark.css +95 -0
  37. data/doc/source/stylesheets/highlight/atelier-lakeside.light.css +95 -0
  38. data/doc/source/stylesheets/highlight/atelier-seaside.dark.css +95 -0
  39. data/doc/source/stylesheets/highlight/atelier-seaside.light.css +95 -0
  40. data/doc/source/stylesheets/highlight/brown_paper.css +104 -0
  41. data/doc/source/stylesheets/highlight/brown_papersq.png +0 -0
  42. data/doc/source/stylesheets/highlight/codepen-embed.css +108 -0
  43. data/doc/source/stylesheets/highlight/color-brewer.css +168 -0
  44. data/doc/source/stylesheets/highlight/dark.css +104 -0
  45. data/doc/source/stylesheets/highlight/default.css +152 -0
  46. data/doc/source/stylesheets/highlight/docco.css +135 -0
  47. data/doc/source/stylesheets/highlight/far.css +111 -0
  48. data/doc/source/stylesheets/highlight/foundation.css +136 -0
  49. data/doc/source/stylesheets/highlight/github.css +124 -0
  50. data/doc/source/stylesheets/highlight/googlecode.css +147 -0
  51. data/doc/source/stylesheets/highlight/hybrid.css +170 -0
  52. data/doc/source/stylesheets/highlight/idea.css +125 -0
  53. data/doc/source/stylesheets/highlight/ir_black.css +109 -0
  54. data/doc/source/stylesheets/highlight/kimbie.dark.css +96 -0
  55. data/doc/source/stylesheets/highlight/kimbie.light.css +96 -0
  56. data/doc/source/stylesheets/highlight/magula.css +121 -0
  57. data/doc/source/stylesheets/highlight/mono-blue.css +69 -0
  58. data/doc/source/stylesheets/highlight/monokai.css +127 -0
  59. data/doc/source/stylesheets/highlight/monokai_sublime.css +154 -0
  60. data/doc/source/stylesheets/highlight/obsidian.css +153 -0
  61. data/doc/source/stylesheets/highlight/paraiso.dark.css +95 -0
  62. data/doc/source/stylesheets/highlight/paraiso.light.css +95 -0
  63. data/doc/source/stylesheets/highlight/pojoaque.css +107 -0
  64. data/doc/source/stylesheets/highlight/pojoaque.jpg +0 -0
  65. data/doc/source/stylesheets/highlight/railscasts.css +187 -0
  66. data/doc/source/stylesheets/highlight/rainbow.css +108 -0
  67. data/doc/source/stylesheets/highlight/school_book.css +112 -0
  68. data/doc/source/stylesheets/highlight/school_book.png +0 -0
  69. data/doc/source/stylesheets/highlight/solarized_dark.css +108 -0
  70. data/doc/source/stylesheets/highlight/solarized_light.css +108 -0
  71. data/doc/source/stylesheets/highlight/sunburst.css +164 -0
  72. data/doc/source/stylesheets/highlight/tomorrow-night-blue.css +95 -0
  73. data/doc/source/stylesheets/highlight/tomorrow-night-bright.css +94 -0
  74. data/doc/source/stylesheets/highlight/tomorrow-night-eighties.css +94 -0
  75. data/doc/source/stylesheets/highlight/tomorrow-night.css +95 -0
  76. data/doc/source/stylesheets/highlight/tomorrow.css +92 -0
  77. data/doc/source/stylesheets/highlight/vs.css +93 -0
  78. data/doc/source/stylesheets/highlight/xcode.css +158 -0
  79. data/doc/source/stylesheets/highlight/zenburn.css +118 -0
  80. data/doc/source/why/a_larger_view.html.rb +774 -0
  81. data/doc/source/why/a_simple_helper.html.rb +332 -0
  82. data/doc/source/why/building_a_rich_modal_dialog.html.rb +156 -0
  83. data/doc/source/why/commonality_and_inheritance.html.rb +564 -0
  84. data/doc/source/why/example_list.rb +60 -0
  85. data/doc/source/why/example_page.rb +116 -0
  86. data/doc/source/why/index.html.rb +86 -0
  87. data/doc/source/why/other_benefits.html.rb +110 -0
  88. data/fortitude.gemspec +6 -1
  89. data/lib/fortitude/doctypes/html4_tags_strict.rb +1 -0
  90. data/lib/fortitude/doctypes/html5.rb +1 -0
  91. data/lib/fortitude/method_templates/tag_method_template.rb.smpl +27 -14
  92. data/lib/fortitude/rails/helpers.rb +2 -2
  93. data/lib/fortitude/rendering_context.rb +10 -1
  94. data/lib/fortitude/tags/tag.rb +3 -2
  95. data/lib/fortitude/tags/tag_support.rb +8 -3
  96. data/lib/fortitude/tilt/fortitude_template.rb +6 -2
  97. data/lib/fortitude/version.rb +1 -1
  98. data/lib/fortitude/widget.rb +2 -0
  99. data/lib/fortitude/widget/convenience.rb +30 -0
  100. data/lib/fortitude/widget/files.rb +22 -11
  101. data/lib/fortitude/widget/needs.rb +5 -3
  102. data/spec/helpers/system_helpers.rb +1 -0
  103. data/spec/rails/development_mode_system_spec.rb +0 -1
  104. data/spec/rails/rendering_system_spec.rb +20 -1
  105. data/spec/rails/templates/rendering_system_spec/app/controllers/rendering_system_spec_controller.rb +13 -0
  106. data/spec/rails/templates/rendering_system_spec/app/views/rendering_system_spec/render_hash_subclass.rb +18 -0
  107. data/spec/rails/templates/rendering_system_spec/lib/my_hash.rb +5 -0
  108. data/spec/system/convenience_methods_system_spec.rb +166 -0
  109. data/spec/system/formatting_system_spec.rb +25 -1
  110. data/spec/system/tag_rendering_system_spec.rb +73 -0
  111. data/spec/system/tilt_system_spec.rb +31 -0
  112. data/spec/system/widget_class_from_spec.rb +20 -4
  113. metadata +92 -4
@@ -0,0 +1,109 @@
1
+ /*
2
+ IR_Black style (c) Vasily Mikhailitchenko <vaskas@programica.ru>
3
+ */
4
+
5
+ .hljs {
6
+ display: block;
7
+ overflow-x: auto;
8
+ padding: 0.5em;
9
+ background: #000;
10
+ color: #f8f8f8;
11
+ -webkit-text-size-adjust: none;
12
+ }
13
+
14
+ .hljs-shebang,
15
+ .hljs-comment,
16
+ .hljs-javadoc {
17
+ color: #7c7c7c;
18
+ }
19
+
20
+ .hljs-keyword,
21
+ .hljs-tag,
22
+ .tex .hljs-command,
23
+ .hljs-request,
24
+ .hljs-status,
25
+ .clojure .hljs-attribute {
26
+ color: #96cbfe;
27
+ }
28
+
29
+ .hljs-sub .hljs-keyword,
30
+ .method,
31
+ .hljs-list .hljs-title,
32
+ .nginx .hljs-title {
33
+ color: #ffffb6;
34
+ }
35
+
36
+ .hljs-string,
37
+ .hljs-tag .hljs-value,
38
+ .hljs-cdata,
39
+ .hljs-filter .hljs-argument,
40
+ .hljs-attr_selector,
41
+ .apache .hljs-cbracket,
42
+ .hljs-date,
43
+ .coffeescript .hljs-attribute {
44
+ color: #a8ff60;
45
+ }
46
+
47
+ .hljs-subst {
48
+ color: #daefa3;
49
+ }
50
+
51
+ .hljs-regexp {
52
+ color: #e9c062;
53
+ }
54
+
55
+ .hljs-title,
56
+ .hljs-sub .hljs-identifier,
57
+ .hljs-pi,
58
+ .hljs-decorator,
59
+ .tex .hljs-special,
60
+ .hljs-type,
61
+ .hljs-constant,
62
+ .smalltalk .hljs-class,
63
+ .hljs-javadoctag,
64
+ .hljs-yardoctag,
65
+ .hljs-phpdoc,
66
+ .hljs-dartdoc,
67
+ .nginx .hljs-built_in {
68
+ color: #ffffb6;
69
+ }
70
+
71
+ .hljs-symbol,
72
+ .ruby .hljs-symbol .hljs-string,
73
+ .hljs-number,
74
+ .hljs-variable,
75
+ .vbscript,
76
+ .hljs-literal {
77
+ color: #c6c5fe;
78
+ }
79
+
80
+ .css .hljs-tag {
81
+ color: #96cbfe;
82
+ }
83
+
84
+ .css .hljs-rules .hljs-property,
85
+ .css .hljs-id {
86
+ color: #ffffb6;
87
+ }
88
+
89
+ .css .hljs-class {
90
+ color: #fff;
91
+ }
92
+
93
+ .hljs-hexcolor {
94
+ color: #c6c5fe;
95
+ }
96
+
97
+ .hljs-number {
98
+ color:#ff73fd;
99
+ }
100
+
101
+ .coffeescript .javascript,
102
+ .javascript .xml,
103
+ .tex .hljs-formula,
104
+ .xml .javascript,
105
+ .xml .vbscript,
106
+ .xml .css,
107
+ .xml .hljs-cdata {
108
+ opacity: 0.7;
109
+ }
@@ -0,0 +1,96 @@
1
+ /*
2
+ Name: Kimbie (dark)
3
+ Author: Jan T. Sott
4
+ License: Creative Commons Attribution-ShareAlike 4.0 Unported License
5
+ URL: https://github.com/idleberg/Kimbie-highlight.js
6
+ */
7
+
8
+ /* Kimbie Comment */
9
+ .hljs-comment,
10
+ .hljs-title {
11
+ color: #d6baad;
12
+ }
13
+
14
+ /* Kimbie Red */
15
+ .hljs-variable,
16
+ .hljs-attribute,
17
+ .hljs-tag,
18
+ .hljs-regexp,
19
+ .ruby .hljs-constant,
20
+ .xml .hljs-tag .hljs-title,
21
+ .xml .hljs-pi,
22
+ .xml .hljs-doctype,
23
+ .html .hljs-doctype,
24
+ .css .hljs-id,
25
+ .css .hljs-class,
26
+ .css .hljs-pseudo {
27
+ color: #dc3958;
28
+ }
29
+
30
+ /* Kimbie Orange */
31
+ .hljs-number,
32
+ .hljs-preprocessor,
33
+ .hljs-built_in,
34
+ .hljs-literal,
35
+ .hljs-params,
36
+ .hljs-constant {
37
+ color: #f79a32;
38
+ }
39
+
40
+ /* Kimbie Yellow */
41
+ .ruby .hljs-class .hljs-title,
42
+ .css .hljs-rules .hljs-attribute {
43
+ color: #f06431;
44
+ }
45
+
46
+ /* Kimbie Green */
47
+ .hljs-string,
48
+ .hljs-value,
49
+ .hljs-inheritance,
50
+ .hljs-header,
51
+ .ruby .hljs-symbol,
52
+ .xml .hljs-cdata {
53
+ color: #889b4a;
54
+ }
55
+
56
+ /* Kimbie Aqua */
57
+ .css .hljs-hexcolor {
58
+ color: #088649;
59
+ }
60
+
61
+ /* Kimbie Blue */
62
+ .hljs-function,
63
+ .python .hljs-decorator,
64
+ .python .hljs-title,
65
+ .ruby .hljs-function .hljs-title,
66
+ .ruby .hljs-title .hljs-keyword,
67
+ .perl .hljs-sub,
68
+ .javascript .hljs-title,
69
+ .coffeescript .hljs-title {
70
+ color: #8ab1b0;
71
+ }
72
+
73
+ /* Kimbie Purple */
74
+ .hljs-keyword,
75
+ .javascript .hljs-function {
76
+ color: #98676a;
77
+ }
78
+
79
+ .hljs {
80
+ display: block;
81
+ overflow-x: auto;
82
+ background: #221a0f;
83
+ color: #d3af86;
84
+ padding: 0.5em;
85
+ -webkit-text-size-adjust: none;
86
+ }
87
+
88
+ .coffeescript .javascript,
89
+ .javascript .xml,
90
+ .tex .hljs-formula,
91
+ .xml .javascript,
92
+ .xml .vbscript,
93
+ .xml .css,
94
+ .xml .hljs-cdata {
95
+ opacity: 0.5;
96
+ }
@@ -0,0 +1,96 @@
1
+ /*
2
+ Name: Kimbie (light)
3
+ Author: Jan T. Sott
4
+ License: Creative Commons Attribution-ShareAlike 4.0 Unported License
5
+ URL: https://github.com/idleberg/Kimbie-highlight.js
6
+ */
7
+
8
+ /* Kimbie Comment */
9
+ .hljs-comment,
10
+ .hljs-title {
11
+ color: #a57a4c;
12
+ }
13
+
14
+ /* Kimbie Red */
15
+ .hljs-variable,
16
+ .hljs-attribute,
17
+ .hljs-tag,
18
+ .hljs-regexp,
19
+ .ruby .hljs-constant,
20
+ .xml .hljs-tag .hljs-title,
21
+ .xml .hljs-pi,
22
+ .xml .hljs-doctype,
23
+ .html .hljs-doctype,
24
+ .css .hljs-id,
25
+ .css .hljs-class,
26
+ .css .hljs-pseudo {
27
+ color: #dc3958;
28
+ }
29
+
30
+ /* Kimbie Orange */
31
+ .hljs-number,
32
+ .hljs-preprocessor,
33
+ .hljs-built_in,
34
+ .hljs-literal,
35
+ .hljs-params,
36
+ .hljs-constant {
37
+ color: #f79a32;
38
+ }
39
+
40
+ /* Kimbie Yellow */
41
+ .ruby .hljs-class .hljs-title,
42
+ .css .hljs-rules .hljs-attribute {
43
+ color: #f06431;
44
+ }
45
+
46
+ /* Kimbie Green */
47
+ .hljs-string,
48
+ .hljs-value,
49
+ .hljs-inheritance,
50
+ .hljs-header,
51
+ .ruby .hljs-symbol,
52
+ .xml .hljs-cdata {
53
+ color: #889b4a;
54
+ }
55
+
56
+ /* Kimbie Aqua */
57
+ .css .hljs-hexcolor {
58
+ color: #088649;
59
+ }
60
+
61
+ /* Kimbie Blue */
62
+ .hljs-function,
63
+ .python .hljs-decorator,
64
+ .python .hljs-title,
65
+ .ruby .hljs-function .hljs-title,
66
+ .ruby .hljs-title .hljs-keyword,
67
+ .perl .hljs-sub,
68
+ .javascript .hljs-title,
69
+ .coffeescript .hljs-title {
70
+ color: #8ab1b0;
71
+ }
72
+
73
+ /* Kimbie Purple */
74
+ .hljs-keyword,
75
+ .javascript .hljs-function {
76
+ color: #98676a;
77
+ }
78
+
79
+ .hljs {
80
+ display: block;
81
+ overflow-x: auto;
82
+ background: #fbebd4;
83
+ color: #84613d;
84
+ padding: 0.5em;
85
+ -webkit-text-size-adjust: none;
86
+ }
87
+
88
+ .coffeescript .javascript,
89
+ .javascript .xml,
90
+ .tex .hljs-formula,
91
+ .xml .javascript,
92
+ .xml .vbscript,
93
+ .xml .css,
94
+ .xml .hljs-cdata {
95
+ opacity: 0.5;
96
+ }
@@ -0,0 +1,121 @@
1
+ /*
2
+ Description: Magula style for highligh.js
3
+ Author: Ruslan Keba <rukeba@gmail.com>
4
+ Website: http://rukeba.com/
5
+ Version: 1.0
6
+ Date: 2009-01-03
7
+ Music: Aphex Twin / Xtal
8
+ */
9
+
10
+ .hljs {
11
+ display: block;
12
+ overflow-x: auto;
13
+ padding: 0.5em;
14
+ background-color: #f4f4f4;
15
+ -webkit-text-size-adjust: none;
16
+ }
17
+
18
+ .hljs,
19
+ .hljs-subst {
20
+ color: black;
21
+ }
22
+
23
+ .hljs-string,
24
+ .hljs-title,
25
+ .hljs-parent,
26
+ .hljs-tag .hljs-value,
27
+ .hljs-rules .hljs-value,
28
+ .hljs-preprocessor,
29
+ .hljs-pragma,
30
+ .ruby .hljs-symbol,
31
+ .ruby .hljs-symbol .hljs-string,
32
+ .hljs-template_tag,
33
+ .django .hljs-variable,
34
+ .smalltalk .hljs-class,
35
+ .hljs-addition,
36
+ .hljs-flow,
37
+ .hljs-stream,
38
+ .bash .hljs-variable,
39
+ .apache .hljs-cbracket,
40
+ .coffeescript .hljs-attribute {
41
+ color: #050;
42
+ }
43
+
44
+ .hljs-comment,
45
+ .hljs-annotation,
46
+ .diff .hljs-header,
47
+ .hljs-chunk {
48
+ color: #777;
49
+ }
50
+
51
+ .hljs-number,
52
+ .hljs-date,
53
+ .hljs-regexp,
54
+ .hljs-literal,
55
+ .smalltalk .hljs-symbol,
56
+ .smalltalk .hljs-char,
57
+ .hljs-change,
58
+ .tex .hljs-special {
59
+ color: #800;
60
+ }
61
+
62
+ .hljs-label,
63
+ .hljs-javadoc,
64
+ .ruby .hljs-string,
65
+ .hljs-decorator,
66
+ .hljs-filter .hljs-argument,
67
+ .hljs-localvars,
68
+ .hljs-array,
69
+ .hljs-attr_selector,
70
+ .hljs-pseudo,
71
+ .hljs-pi,
72
+ .hljs-doctype,
73
+ .hljs-deletion,
74
+ .hljs-envvar,
75
+ .hljs-shebang,
76
+ .apache .hljs-sqbracket,
77
+ .nginx .hljs-built_in,
78
+ .tex .hljs-formula,
79
+ .hljs-prompt,
80
+ .clojure .hljs-attribute {
81
+ color: #00e;
82
+ }
83
+
84
+ .hljs-keyword,
85
+ .hljs-id,
86
+ .hljs-phpdoc,
87
+ .hljs-dartdoc,
88
+ .hljs-title,
89
+ .hljs-built_in,
90
+ .smalltalk .hljs-class,
91
+ .hljs-winutils,
92
+ .bash .hljs-variable,
93
+ .apache .hljs-tag,
94
+ .xml .hljs-tag,
95
+ .tex .hljs-command,
96
+ .hljs-request,
97
+ .hljs-status {
98
+ font-weight: bold;
99
+ color: navy;
100
+ }
101
+
102
+ .nginx .hljs-built_in {
103
+ font-weight: normal;
104
+ }
105
+
106
+ .coffeescript .javascript,
107
+ .javascript .xml,
108
+ .tex .hljs-formula,
109
+ .xml .javascript,
110
+ .xml .vbscript,
111
+ .xml .css,
112
+ .xml .hljs-cdata {
113
+ opacity: 0.5;
114
+ }
115
+
116
+ /* --- */
117
+ .apache .hljs-tag {
118
+ font-weight: bold;
119
+ color: blue;
120
+ }
121
+
@@ -0,0 +1,69 @@
1
+ /*
2
+ Five-color theme from a single blue hue.
3
+ */
4
+ .hljs {
5
+ display: block;
6
+ overflow-x: auto;
7
+ padding: 0.5em;
8
+ background: #eaeef3;
9
+ -webkit-text-size-adjust: none;
10
+ }
11
+
12
+ .hljs,
13
+ .hljs-list .hljs-built_in {
14
+ color: #00193a;
15
+ }
16
+
17
+ .hljs-keyword,
18
+ .hljs-title,
19
+ .hljs-important,
20
+ .hljs-request,
21
+ .hljs-header,
22
+ .hljs-javadoctag {
23
+ font-weight: bold;
24
+ }
25
+
26
+ .hljs-comment,
27
+ .hljs-chunk {
28
+ color: #738191;
29
+ }
30
+
31
+ .hljs-string,
32
+ .hljs-title,
33
+ .hljs-parent,
34
+ .hljs-built_in,
35
+ .hljs-literal,
36
+ .hljs-filename,
37
+ .hljs-value,
38
+ .hljs-addition,
39
+ .hljs-tag,
40
+ .hljs-argument,
41
+ .hljs-link_label,
42
+ .hljs-blockquote,
43
+ .hljs-header {
44
+ color: #0048ab;
45
+ }
46
+
47
+ .hljs-decorator,
48
+ .hljs-prompt,
49
+ .hljs-yardoctag,
50
+ .hljs-subst,
51
+ .hljs-symbol,
52
+ .hljs-doctype,
53
+ .hljs-regexp,
54
+ .hljs-preprocessor,
55
+ .hljs-pragma,
56
+ .hljs-pi,
57
+ .hljs-attribute,
58
+ .hljs-attr_selector,
59
+ .hljs-javadoc,
60
+ .hljs-xmlDocTag,
61
+ .hljs-deletion,
62
+ .hljs-shebang,
63
+ .hljs-string .hljs-variable,
64
+ .hljs-link_url,
65
+ .hljs-bullet,
66
+ .hljs-sqbracket,
67
+ .hljs-phony {
68
+ color: #4c81c9;
69
+ }