fortitude 0.9.1-java → 0.9.2-java

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 +91 -4
@@ -0,0 +1,104 @@
1
+ /*
2
+
3
+ Brown Paper style from goldblog.com.ua (c) Zaripov Yura <yur4ik7@ukr.net>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background:#b7a68e url(./brown_papersq.png);
12
+ -webkit-text-size-adjust: none;
13
+ }
14
+
15
+ .hljs-keyword,
16
+ .hljs-literal,
17
+ .hljs-change,
18
+ .hljs-winutils,
19
+ .hljs-flow,
20
+ .nginx .hljs-title,
21
+ .tex .hljs-special,
22
+ .hljs-request,
23
+ .hljs-status {
24
+ color:#005599;
25
+ font-weight:bold;
26
+ }
27
+
28
+ .hljs,
29
+ .hljs-subst,
30
+ .hljs-tag .hljs-keyword {
31
+ color: #363c69;
32
+ }
33
+
34
+ .hljs-string,
35
+ .hljs-title,
36
+ .hljs-type,
37
+ .hljs-tag .hljs-value,
38
+ .css .hljs-rules .hljs-value,
39
+ .hljs-preprocessor,
40
+ .hljs-pragma,
41
+ .ruby .hljs-symbol,
42
+ .ruby .hljs-symbol .hljs-string,
43
+ .ruby .hljs-class .hljs-parent,
44
+ .hljs-built_in,
45
+ .django .hljs-template_tag,
46
+ .django .hljs-variable,
47
+ .smalltalk .hljs-class,
48
+ .hljs-javadoc,
49
+ .ruby .hljs-string,
50
+ .django .hljs-filter .hljs-argument,
51
+ .smalltalk .hljs-localvars,
52
+ .smalltalk .hljs-array,
53
+ .hljs-attr_selector,
54
+ .hljs-pseudo,
55
+ .hljs-addition,
56
+ .hljs-stream,
57
+ .hljs-envvar,
58
+ .apache .hljs-tag,
59
+ .apache .hljs-cbracket,
60
+ .tex .hljs-number {
61
+ color: #2c009f;
62
+ }
63
+
64
+ .hljs-comment,
65
+ .hljs-annotation,
66
+ .hljs-decorator,
67
+ .hljs-pi,
68
+ .hljs-doctype,
69
+ .hljs-deletion,
70
+ .hljs-shebang,
71
+ .apache .hljs-sqbracket,
72
+ .nginx .hljs-built_in,
73
+ .tex .hljs-formula {
74
+ color: #802022;
75
+ }
76
+
77
+ .hljs-keyword,
78
+ .hljs-literal,
79
+ .css .hljs-id,
80
+ .hljs-phpdoc,
81
+ .hljs-dartdoc,
82
+ .hljs-title,
83
+ .hljs-type,
84
+ .vbscript .hljs-built_in,
85
+ .rsl .hljs-built_in,
86
+ .smalltalk .hljs-class,
87
+ .diff .hljs-header,
88
+ .hljs-chunk,
89
+ .hljs-winutils,
90
+ .bash .hljs-variable,
91
+ .apache .hljs-tag,
92
+ .tex .hljs-command {
93
+ font-weight: bold;
94
+ }
95
+
96
+ .coffeescript .javascript,
97
+ .javascript .xml,
98
+ .tex .hljs-formula,
99
+ .xml .javascript,
100
+ .xml .vbscript,
101
+ .xml .css,
102
+ .xml .hljs-cdata {
103
+ opacity: 0.8;
104
+ }
@@ -0,0 +1,108 @@
1
+ /*
2
+ codepen.io Embed Theme
3
+ Author: Justin Perry <http://github.com/ourmaninamsterdam>
4
+ Original theme - https://github.com/chriskempson/tomorrow-theme
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #222;
12
+ color: #fff;
13
+ font-family: Menlo, Monaco, 'Andale Mono', 'Lucida Console', 'Courier New', monospace;
14
+ -webkit-text-size-adjust: none;
15
+ }
16
+
17
+ .hljs-comment,
18
+ .hljs-title {
19
+ color: #777;
20
+ }
21
+
22
+ .hljs-variable,
23
+ .hljs-attribute,
24
+ .hljs-tag,
25
+ .hljs-regexp,
26
+ .ruby .constant,
27
+ .xml .tag .title,
28
+ .xml .pi,
29
+ .xml .doctype,
30
+ .html .doctype {
31
+ color: #ab875d;
32
+ }
33
+
34
+ .css .value {
35
+ color: #cd6a51;
36
+ }
37
+
38
+ .css .value .function,
39
+ .css .value .string {
40
+ color: #a67f59;
41
+ }
42
+
43
+ .css .value .number {
44
+ color: #9b869c;
45
+ }
46
+
47
+ .css .id,
48
+ .css .class,
49
+ .css-pseudo,
50
+ .css .selector,
51
+ .css .tag {
52
+ color: #dfc48c;
53
+ }
54
+
55
+ .hljs-number,
56
+ .hljs-preprocessor,
57
+ .hljs-built_in,
58
+ .hljs-literal,
59
+ .hljs-params,
60
+ .hljs-constant {
61
+ color: #ab875d;
62
+ }
63
+
64
+ .ruby .class .title,
65
+ .css .rules .attribute {
66
+ color: #9b869b;
67
+ }
68
+
69
+ .hljs-string,
70
+ .hljs-value,
71
+ .hljs-inheritance,
72
+ .hljs-header,
73
+ .ruby .symbol,
74
+ .xml .cdata {
75
+ color: #8f9c6c;
76
+ }
77
+
78
+ .css .hexcolor {
79
+ color: #cd6a51;
80
+ }
81
+
82
+ .function,
83
+ .python .decorator,
84
+ .python .title,
85
+ .ruby .function .title,
86
+ .ruby .title .keyword,
87
+ .perl .sub,
88
+ .javascript .title,
89
+ .coffeescript .title {
90
+ color: #fff;
91
+ }
92
+
93
+ .hljs-keyword,
94
+ .javascript .function {
95
+ color: #8f9c6c;
96
+ }
97
+
98
+ .coffeescript .javascript,
99
+ .javascript,
100
+ .javascript .xml,
101
+ .tex .formula,
102
+ .xml .javascript,
103
+ .xml .vbscript,
104
+ .xml .css,
105
+ .xml .cdata {
106
+ background: transparent;
107
+ opacity: 1;
108
+ }
@@ -0,0 +1,168 @@
1
+ /*
2
+
3
+ Colorbrewer theme
4
+ Original: https://github.com/mbostock/colorbrewer-theme (c) Mike Bostock <mike@ocks.org>
5
+ Ported by Fabrício Tavares de Oliveira
6
+
7
+ */
8
+
9
+ .hljs {
10
+ display: block;
11
+ overflow-x: auto;
12
+ padding: 0.5em;
13
+ background: #fff;
14
+ -webkit-text-size-adjust: none;
15
+ }
16
+
17
+ .hljs,
18
+ .hljs-subst,
19
+ .hljs-tag .hljs-title,
20
+ .nginx .hljs-title {
21
+ color: #000;
22
+ }
23
+
24
+ .hljs-string,
25
+ .hljs-title,
26
+ .hljs-constant,
27
+ .hljs-parent,
28
+ .hljs-tag .hljs-value,
29
+ .hljs-rules .hljs-value,
30
+ .hljs-preprocessor,
31
+ .hljs-pragma,
32
+ .haml .hljs-symbol,
33
+ .ruby .hljs-symbol,
34
+ .ruby .hljs-symbol .hljs-string,
35
+ .hljs-template_tag,
36
+ .django .hljs-variable,
37
+ .smalltalk .hljs-class,
38
+ .hljs-addition,
39
+ .hljs-flow,
40
+ .hljs-stream,
41
+ .bash .hljs-variable,
42
+ .apache .hljs-tag,
43
+ .apache .hljs-cbracket,
44
+ .tex .hljs-command,
45
+ .tex .hljs-special,
46
+ .erlang_repl .hljs-function_or_atom,
47
+ .asciidoc .hljs-header,
48
+ .markdown .hljs-header,
49
+ .coffeescript .hljs-attribute {
50
+ color: #756bb1;
51
+ }
52
+
53
+ .smartquote,
54
+ .hljs-comment,
55
+ .hljs-annotation,
56
+ .diff .hljs-header,
57
+ .hljs-chunk,
58
+ .asciidoc .hljs-blockquote,
59
+ .markdown .hljs-blockquote {
60
+ color: #636363;
61
+ }
62
+
63
+ .hljs-number,
64
+ .hljs-date,
65
+ .hljs-regexp,
66
+ .hljs-literal,
67
+ .hljs-hexcolor,
68
+ .smalltalk .hljs-symbol,
69
+ .smalltalk .hljs-char,
70
+ .go .hljs-constant,
71
+ .hljs-change,
72
+ .lasso .hljs-variable,
73
+ .makefile .hljs-variable,
74
+ .asciidoc .hljs-bullet,
75
+ .markdown .hljs-bullet,
76
+ .asciidoc .hljs-link_url,
77
+ .markdown .hljs-link_url {
78
+ color: #31a354;
79
+ }
80
+
81
+ .hljs-label,
82
+ .hljs-javadoc,
83
+ .ruby .hljs-string,
84
+ .hljs-decorator,
85
+ .hljs-filter .hljs-argument,
86
+ .hljs-localvars,
87
+ .hljs-array,
88
+ .hljs-attr_selector,
89
+ .hljs-important,
90
+ .hljs-pseudo,
91
+ .hljs-pi,
92
+ .haml .hljs-bullet,
93
+ .hljs-doctype,
94
+ .hljs-deletion,
95
+ .hljs-envvar,
96
+ .hljs-shebang,
97
+ .apache .hljs-sqbracket,
98
+ .nginx .hljs-built_in,
99
+ .hljs-list .hljs-built_in,
100
+ .tex .hljs-formula,
101
+ .erlang_repl .hljs-reserved,
102
+ .hljs-prompt,
103
+ .asciidoc .hljs-link_label,
104
+ .markdown .hljs-link_label,
105
+ .vhdl .hljs-attribute,
106
+ .clojure .hljs-attribute,
107
+ .asciidoc .hljs-attribute,
108
+ .lasso .hljs-attribute,
109
+ .coffeescript .hljs-property,
110
+ .hljs-phony {
111
+ color: #88f;
112
+ }
113
+
114
+
115
+
116
+ .hljs-keyword,
117
+ .hljs-id,
118
+ .hljs-title,
119
+ .hljs-built_in,
120
+ .css .hljs-tag,
121
+ .hljs-javadoctag,
122
+ .hljs-phpdoc,
123
+ .hljs-dartdoc,
124
+ .hljs-yardoctag,
125
+ .smalltalk .hljs-class,
126
+ .hljs-winutils,
127
+ .bash .hljs-variable,
128
+ .apache .hljs-tag,
129
+ .hljs-type,
130
+ .hljs-typename,
131
+ .tex .hljs-command,
132
+ .asciidoc .hljs-strong,
133
+ .markdown .hljs-strong,
134
+ .hljs-request,
135
+ .hljs-status {
136
+ color: #3182bd;
137
+ }
138
+
139
+ .asciidoc .hljs-emphasis,
140
+ .markdown .hljs-emphasis {
141
+ font-style: italic;
142
+ }
143
+
144
+ .nginx .hljs-built_in {
145
+ font-weight: normal;
146
+ }
147
+
148
+ .coffeescript .javascript,
149
+ .javascript .xml,
150
+ .lasso .markup,
151
+ .tex .hljs-formula,
152
+ .xml .javascript,
153
+ .xml .vbscript,
154
+ .xml .css,
155
+ .xml .hljs-cdata {
156
+ opacity: 0.5;
157
+ }
158
+
159
+ .css .hljs-attribute,
160
+ .html .hljs-attribute {
161
+ color: #e6550d;
162
+ }
163
+
164
+ .css .hljs-class,
165
+ .html .hljs-tag,
166
+ .html .hljs-title {
167
+ color: #3182bd;
168
+ }
@@ -0,0 +1,104 @@
1
+ /*
2
+
3
+ Dark style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #444;
12
+ -webkit-text-size-adjust: none;
13
+ }
14
+
15
+ .hljs-keyword,
16
+ .hljs-literal,
17
+ .hljs-change,
18
+ .hljs-winutils,
19
+ .hljs-flow,
20
+ .nginx .hljs-title,
21
+ .tex .hljs-special {
22
+ color: white;
23
+ }
24
+
25
+ .hljs,
26
+ .hljs-subst {
27
+ color: #ddd;
28
+ }
29
+
30
+ .hljs-string,
31
+ .hljs-title,
32
+ .hljs-type,
33
+ .ini .hljs-title,
34
+ .hljs-tag .hljs-value,
35
+ .css .hljs-rules .hljs-value,
36
+ .hljs-preprocessor,
37
+ .hljs-pragma,
38
+ .ruby .hljs-symbol,
39
+ .ruby .hljs-symbol .hljs-string,
40
+ .ruby .hljs-class .hljs-parent,
41
+ .hljs-built_in,
42
+ .django .hljs-template_tag,
43
+ .django .hljs-variable,
44
+ .smalltalk .hljs-class,
45
+ .hljs-javadoc,
46
+ .ruby .hljs-string,
47
+ .django .hljs-filter .hljs-argument,
48
+ .smalltalk .hljs-localvars,
49
+ .smalltalk .hljs-array,
50
+ .hljs-attr_selector,
51
+ .hljs-pseudo,
52
+ .hljs-addition,
53
+ .hljs-stream,
54
+ .hljs-envvar,
55
+ .apache .hljs-tag,
56
+ .apache .hljs-cbracket,
57
+ .tex .hljs-command,
58
+ .hljs-prompt,
59
+ .coffeescript .hljs-attribute {
60
+ color: #d88;
61
+ }
62
+
63
+ .hljs-comment,
64
+ .hljs-annotation,
65
+ .hljs-decorator,
66
+ .hljs-pi,
67
+ .hljs-doctype,
68
+ .hljs-deletion,
69
+ .hljs-shebang,
70
+ .apache .hljs-sqbracket,
71
+ .tex .hljs-formula {
72
+ color: #777;
73
+ }
74
+
75
+ .hljs-keyword,
76
+ .hljs-literal,
77
+ .hljs-title,
78
+ .css .hljs-id,
79
+ .hljs-phpdoc,
80
+ .hljs-dartdoc,
81
+ .hljs-type,
82
+ .vbscript .hljs-built_in,
83
+ .rsl .hljs-built_in,
84
+ .smalltalk .hljs-class,
85
+ .diff .hljs-header,
86
+ .hljs-chunk,
87
+ .hljs-winutils,
88
+ .bash .hljs-variable,
89
+ .apache .hljs-tag,
90
+ .tex .hljs-special,
91
+ .hljs-request,
92
+ .hljs-status {
93
+ font-weight: bold;
94
+ }
95
+
96
+ .coffeescript .javascript,
97
+ .javascript .xml,
98
+ .tex .hljs-formula,
99
+ .xml .javascript,
100
+ .xml .vbscript,
101
+ .xml .css,
102
+ .xml .hljs-cdata {
103
+ opacity: 0.5;
104
+ }