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,95 @@
1
+ /*
2
+ Paraíso (light)
3
+ Created by Jan T. Sott (http://github.com/idleberg)
4
+ Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
5
+ */
6
+
7
+ /* Paraíso Comment */
8
+ .hljs-comment,
9
+ .hljs-title {
10
+ color: #776e71;
11
+ }
12
+
13
+ /* Paraíso Red */
14
+ .hljs-variable,
15
+ .hljs-attribute,
16
+ .hljs-tag,
17
+ .hljs-regexp,
18
+ .ruby .hljs-constant,
19
+ .xml .hljs-tag .hljs-title,
20
+ .xml .hljs-pi,
21
+ .xml .hljs-doctype,
22
+ .html .hljs-doctype,
23
+ .css .hljs-id,
24
+ .css .hljs-class,
25
+ .css .hljs-pseudo {
26
+ color: #ef6155;
27
+ }
28
+
29
+ /* Paraíso Orange */
30
+ .hljs-number,
31
+ .hljs-preprocessor,
32
+ .hljs-built_in,
33
+ .hljs-literal,
34
+ .hljs-params,
35
+ .hljs-constant {
36
+ color: #f99b15;
37
+ }
38
+
39
+ /* Paraíso Yellow */
40
+ .ruby .hljs-class .hljs-title,
41
+ .css .hljs-rules .hljs-attribute {
42
+ color: #fec418;
43
+ }
44
+
45
+ /* Paraíso Green */
46
+ .hljs-string,
47
+ .hljs-value,
48
+ .hljs-inheritance,
49
+ .hljs-header,
50
+ .ruby .hljs-symbol,
51
+ .xml .hljs-cdata {
52
+ color: #48b685;
53
+ }
54
+
55
+ /* Paraíso Aqua */
56
+ .css .hljs-hexcolor {
57
+ color: #5bc4bf;
58
+ }
59
+
60
+ /* Paraíso Blue */
61
+ .hljs-function,
62
+ .python .hljs-decorator,
63
+ .python .hljs-title,
64
+ .ruby .hljs-function .hljs-title,
65
+ .ruby .hljs-title .hljs-keyword,
66
+ .perl .hljs-sub,
67
+ .javascript .hljs-title,
68
+ .coffeescript .hljs-title {
69
+ color: #06b6ef;
70
+ }
71
+
72
+ /* Paraíso Purple */
73
+ .hljs-keyword,
74
+ .javascript .hljs-function {
75
+ color: #815ba4;
76
+ }
77
+
78
+ .hljs {
79
+ display: block;
80
+ overflow-x: auto;
81
+ background: #e7e9db;
82
+ color: #4f424c;
83
+ padding: 0.5em;
84
+ -webkit-text-size-adjust: none;
85
+ }
86
+
87
+ .coffeescript .javascript,
88
+ .javascript .xml,
89
+ .tex .hljs-formula,
90
+ .xml .javascript,
91
+ .xml .vbscript,
92
+ .xml .css,
93
+ .xml .hljs-cdata {
94
+ opacity: 0.5;
95
+ }
@@ -0,0 +1,107 @@
1
+ /*
2
+
3
+ Pojoaque Style by Jason Tate
4
+ http://web-cms-designs.com/ftopict-10-pojoaque-style-for-highlight-js-code-highlighter.html
5
+ Based on Solarized Style from http://ethanschoonover.com/solarized
6
+
7
+ */
8
+
9
+ .hljs {
10
+ display: block;
11
+ overflow-x: auto;
12
+ padding: 0.5em;
13
+ color: #dccf8f;
14
+ background: url(./pojoaque.jpg) repeat scroll left top #181914;
15
+ -webkit-text-size-adjust: none;
16
+ }
17
+
18
+ .hljs-comment,
19
+ .diff .hljs-header,
20
+ .hljs-doctype,
21
+ .lisp .hljs-string,
22
+ .hljs-javadoc {
23
+ color: #586e75;
24
+ font-style: italic;
25
+ }
26
+
27
+ .hljs-keyword,
28
+ .css .rule .hljs-keyword,
29
+ .hljs-winutils,
30
+ .javascript .hljs-title,
31
+ .method,
32
+ .hljs-addition,
33
+ .css .hljs-tag,
34
+ .hljs-list .hljs-keyword,
35
+ .nginx .hljs-title {
36
+ color: #b64926;
37
+ }
38
+
39
+ .hljs-number,
40
+ .hljs-command,
41
+ .hljs-string,
42
+ .hljs-tag .hljs-value,
43
+ .hljs-phpdoc,
44
+ .hljs-dartdoc,
45
+ .tex .hljs-formula,
46
+ .hljs-regexp,
47
+ .hljs-hexcolor {
48
+ color: #468966;
49
+ }
50
+
51
+ .hljs-title,
52
+ .hljs-localvars,
53
+ .hljs-function .hljs-title,
54
+ .hljs-chunk,
55
+ .hljs-decorator,
56
+ .hljs-built_in,
57
+ .hljs-identifier,
58
+ .hljs-id {
59
+ color: #ffb03b;
60
+ }
61
+
62
+ .hljs-attribute,
63
+ .hljs-variable,
64
+ .lisp .hljs-body,
65
+ .smalltalk .hljs-number,
66
+ .hljs-constant,
67
+ .hljs-class .hljs-title,
68
+ .hljs-parent,
69
+ .hljs-type {
70
+ color: #b58900;
71
+ }
72
+
73
+ .css .hljs-attribute {
74
+ color: #b89859;
75
+ }
76
+
77
+ .css .hljs-number,
78
+ .css .hljs-hexcolor {
79
+ color: #dccf8f;
80
+ }
81
+
82
+ .css .hljs-class {
83
+ color: #d3a60c;
84
+ }
85
+
86
+ .hljs-preprocessor,
87
+ .hljs-pragma,
88
+ .hljs-pi,
89
+ .hljs-shebang,
90
+ .hljs-symbol,
91
+ .hljs-symbol .hljs-string,
92
+ .diff .hljs-change,
93
+ .hljs-special,
94
+ .hljs-attr_selector,
95
+ .hljs-important,
96
+ .hljs-subst,
97
+ .hljs-cdata {
98
+ color: #cb4b16;
99
+ }
100
+
101
+ .hljs-deletion {
102
+ color: #dc322f;
103
+ }
104
+
105
+ .tex .hljs-formula {
106
+ background: #073642;
107
+ }
@@ -0,0 +1,187 @@
1
+ /*
2
+
3
+ Railscasts-like style (c) Visoft, Inc. (Damien White)
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #232323;
12
+ color: #e6e1dc;
13
+ -webkit-text-size-adjust: none;
14
+ }
15
+
16
+ .hljs-comment,
17
+ .hljs-javadoc,
18
+ .hljs-shebang {
19
+ color: #bc9458;
20
+ font-style: italic;
21
+ }
22
+
23
+ .hljs-keyword,
24
+ .ruby .hljs-function .hljs-keyword,
25
+ .hljs-request,
26
+ .hljs-status,
27
+ .nginx .hljs-title,
28
+ .method,
29
+ .hljs-list .hljs-title {
30
+ color: #c26230;
31
+ }
32
+
33
+ .hljs-string,
34
+ .hljs-number,
35
+ .hljs-regexp,
36
+ .hljs-tag .hljs-value,
37
+ .hljs-cdata,
38
+ .hljs-filter .hljs-argument,
39
+ .hljs-attr_selector,
40
+ .apache .hljs-cbracket,
41
+ .hljs-date,
42
+ .tex .hljs-command,
43
+ .asciidoc .hljs-link_label,
44
+ .markdown .hljs-link_label {
45
+ color: #a5c261;
46
+ }
47
+
48
+ .hljs-subst {
49
+ color: #519f50;
50
+ }
51
+
52
+ .hljs-tag,
53
+ .hljs-tag .hljs-keyword,
54
+ .hljs-tag .hljs-title,
55
+ .hljs-doctype,
56
+ .hljs-sub .hljs-identifier,
57
+ .hljs-pi,
58
+ .input_number {
59
+ color: #e8bf6a;
60
+ }
61
+
62
+ .hljs-identifier {
63
+ color: #d0d0ff;
64
+ }
65
+
66
+ .hljs-class .hljs-title,
67
+ .hljs-type,
68
+ .smalltalk .hljs-class,
69
+ .hljs-javadoctag,
70
+ .hljs-yardoctag,
71
+ .hljs-phpdoc,
72
+ .hljs-dartdoc {
73
+ text-decoration: none;
74
+ }
75
+
76
+ .hljs-constant {
77
+ color: #da4939;
78
+ }
79
+
80
+
81
+ .hljs-symbol,
82
+ .hljs-built_in,
83
+ .ruby .hljs-symbol .hljs-string,
84
+ .ruby .hljs-symbol .hljs-identifier,
85
+ .asciidoc .hljs-link_url,
86
+ .markdown .hljs-link_url,
87
+ .hljs-attribute {
88
+ color: #6d9cbe;
89
+ }
90
+
91
+ .asciidoc .hljs-link_url,
92
+ .markdown .hljs-link_url {
93
+ text-decoration: underline;
94
+ }
95
+
96
+
97
+
98
+ .hljs-params,
99
+ .hljs-variable,
100
+ .clojure .hljs-attribute {
101
+ color: #d0d0ff;
102
+ }
103
+
104
+ .css .hljs-tag,
105
+ .hljs-rules .hljs-property,
106
+ .hljs-pseudo,
107
+ .tex .hljs-special {
108
+ color: #cda869;
109
+ }
110
+
111
+ .css .hljs-class {
112
+ color: #9b703f;
113
+ }
114
+
115
+ .hljs-rules .hljs-keyword {
116
+ color: #c5af75;
117
+ }
118
+
119
+ .hljs-rules .hljs-value {
120
+ color: #cf6a4c;
121
+ }
122
+
123
+ .css .hljs-id {
124
+ color: #8b98ab;
125
+ }
126
+
127
+ .hljs-annotation,
128
+ .apache .hljs-sqbracket,
129
+ .nginx .hljs-built_in {
130
+ color: #9b859d;
131
+ }
132
+
133
+ .hljs-preprocessor,
134
+ .hljs-preprocessor *,
135
+ .hljs-pragma {
136
+ color: #8996a8 !important;
137
+ }
138
+
139
+ .hljs-hexcolor,
140
+ .css .hljs-value .hljs-number {
141
+ color: #a5c261;
142
+ }
143
+
144
+ .hljs-title,
145
+ .hljs-decorator,
146
+ .css .hljs-function {
147
+ color: #ffc66d;
148
+ }
149
+
150
+ .diff .hljs-header,
151
+ .hljs-chunk {
152
+ background-color: #2f33ab;
153
+ color: #e6e1dc;
154
+ display: inline-block;
155
+ width: 100%;
156
+ }
157
+
158
+ .diff .hljs-change {
159
+ background-color: #4a410d;
160
+ color: #f8f8f8;
161
+ display: inline-block;
162
+ width: 100%;
163
+ }
164
+
165
+ .hljs-addition {
166
+ background-color: #144212;
167
+ color: #e6e1dc;
168
+ display: inline-block;
169
+ width: 100%;
170
+ }
171
+
172
+ .hljs-deletion {
173
+ background-color: #600;
174
+ color: #e6e1dc;
175
+ display: inline-block;
176
+ width: 100%;
177
+ }
178
+
179
+ .coffeescript .javascript,
180
+ .javascript .xml,
181
+ .tex .hljs-formula,
182
+ .xml .javascript,
183
+ .xml .vbscript,
184
+ .xml .css,
185
+ .xml .hljs-cdata {
186
+ opacity: 0.7;
187
+ }
@@ -0,0 +1,108 @@
1
+ /*
2
+
3
+ Style with support for rainbow parens
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #474949;
12
+ color: #d1d9e1;
13
+ -webkit-text-size-adjust: none;
14
+ }
15
+
16
+
17
+ .hljs-body,
18
+ .hljs-collection {
19
+ color: #d1d9e1;
20
+ }
21
+
22
+ .hljs-comment,
23
+ .diff .hljs-header,
24
+ .hljs-doctype,
25
+ .lisp .hljs-string,
26
+ .hljs-javadoc {
27
+ color: #969896;
28
+ font-style: italic;
29
+ }
30
+
31
+ .hljs-keyword,
32
+ .clojure .hljs-attribute,
33
+ .hljs-winutils,
34
+ .javascript .hljs-title,
35
+ .hljs-addition,
36
+ .css .hljs-tag {
37
+ color: #cc99cc;
38
+ }
39
+
40
+ .hljs-number { color: #f99157; }
41
+
42
+ .hljs-command,
43
+ .hljs-string,
44
+ .hljs-tag .hljs-value,
45
+ .hljs-phpdoc,
46
+ .hljs-dartdoc,
47
+ .tex .hljs-formula,
48
+ .hljs-regexp,
49
+ .hljs-hexcolor {
50
+ color: #8abeb7;
51
+ }
52
+
53
+ .hljs-title,
54
+ .hljs-localvars,
55
+ .hljs-function .hljs-title,
56
+ .hljs-chunk,
57
+ .hljs-decorator,
58
+ .hljs-built_in,
59
+ .hljs-identifier {
60
+ color: #b5bd68;
61
+ }
62
+
63
+ .hljs-class .hljs-keyword {
64
+ color: #f2777a;
65
+ }
66
+
67
+ .hljs-variable,
68
+ .smalltalk .hljs-number,
69
+ .hljs-constant,
70
+ .hljs-class .hljs-title,
71
+ .hljs-parent,
72
+ .haskell .hljs-label,
73
+ .hljs-id {
74
+ color: #ffcc66;
75
+ }
76
+
77
+ .hljs-tag .hljs-title,
78
+ .hljs-rules .hljs-property,
79
+ .django .hljs-tag .hljs-keyword {
80
+ font-weight: bold;
81
+ }
82
+
83
+ .hljs-attribute {
84
+ color: #81a2be;
85
+ }
86
+
87
+ .hljs-preprocessor,
88
+ .hljs-pragma,
89
+ .hljs-pi,
90
+ .hljs-shebang,
91
+ .hljs-symbol,
92
+ .hljs-symbol .hljs-string,
93
+ .diff .hljs-change,
94
+ .hljs-special,
95
+ .hljs-attr_selector,
96
+ .hljs-important,
97
+ .hljs-subst,
98
+ .hljs-cdata {
99
+ color: #f99157;
100
+ }
101
+
102
+ .hljs-deletion {
103
+ color: #dc322f;
104
+ }
105
+
106
+ .tex .hljs-formula {
107
+ background: #eee8d5;
108
+ }