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,112 @@
1
+ /*
2
+
3
+ School Book 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: 15px 0.5em 0.5em 30px;
11
+ font-size: 11px !important;
12
+ line-height:16px !important;
13
+ -webkit-text-size-adjust: none;
14
+ }
15
+
16
+ pre{
17
+ background:#f6f6ae url(./school_book.png);
18
+ border-top: solid 2px #d2e8b9;
19
+ border-bottom: solid 1px #d2e8b9;
20
+ }
21
+
22
+ .hljs-keyword,
23
+ .hljs-literal,
24
+ .hljs-change,
25
+ .hljs-winutils,
26
+ .hljs-flow,
27
+ .nginx .hljs-title,
28
+ .tex .hljs-special {
29
+ color:#005599;
30
+ font-weight:bold;
31
+ }
32
+
33
+ .hljs,
34
+ .hljs-subst,
35
+ .hljs-tag .hljs-keyword {
36
+ color: #3e5915;
37
+ }
38
+
39
+ .hljs-string,
40
+ .hljs-title,
41
+ .hljs-type,
42
+ .hljs-tag .hljs-value,
43
+ .css .hljs-rules .hljs-value,
44
+ .hljs-preprocessor,
45
+ .hljs-pragma,
46
+ .ruby .hljs-symbol,
47
+ .ruby .hljs-symbol .hljs-string,
48
+ .ruby .hljs-class .hljs-parent,
49
+ .hljs-built_in,
50
+ .django .hljs-template_tag,
51
+ .django .hljs-variable,
52
+ .smalltalk .hljs-class,
53
+ .hljs-javadoc,
54
+ .ruby .hljs-string,
55
+ .django .hljs-filter .hljs-argument,
56
+ .smalltalk .hljs-localvars,
57
+ .smalltalk .hljs-array,
58
+ .hljs-attr_selector,
59
+ .hljs-pseudo,
60
+ .hljs-addition,
61
+ .hljs-stream,
62
+ .hljs-envvar,
63
+ .apache .hljs-tag,
64
+ .apache .hljs-cbracket,
65
+ .nginx .hljs-built_in,
66
+ .tex .hljs-command,
67
+ .coffeescript .hljs-attribute {
68
+ color: #2c009f;
69
+ }
70
+
71
+ .hljs-comment,
72
+ .hljs-annotation,
73
+ .hljs-decorator,
74
+ .hljs-pi,
75
+ .hljs-doctype,
76
+ .hljs-deletion,
77
+ .hljs-shebang,
78
+ .apache .hljs-sqbracket {
79
+ color: #e60415;
80
+ }
81
+
82
+ .hljs-keyword,
83
+ .hljs-literal,
84
+ .css .hljs-id,
85
+ .hljs-phpdoc,
86
+ .hljs-dartdoc,
87
+ .hljs-title,
88
+ .hljs-type,
89
+ .vbscript .hljs-built_in,
90
+ .rsl .hljs-built_in,
91
+ .smalltalk .hljs-class,
92
+ .xml .hljs-tag .hljs-title,
93
+ .diff .hljs-header,
94
+ .hljs-chunk,
95
+ .hljs-winutils,
96
+ .bash .hljs-variable,
97
+ .apache .hljs-tag,
98
+ .tex .hljs-command,
99
+ .hljs-request,
100
+ .hljs-status {
101
+ font-weight: bold;
102
+ }
103
+
104
+ .coffeescript .javascript,
105
+ .javascript .xml,
106
+ .tex .hljs-formula,
107
+ .xml .javascript,
108
+ .xml .vbscript,
109
+ .xml .css,
110
+ .xml .hljs-cdata {
111
+ opacity: 0.5;
112
+ }
@@ -0,0 +1,108 @@
1
+ /*
2
+
3
+ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #002b36;
12
+ color: #839496;
13
+ -webkit-text-size-adjust: none;
14
+ }
15
+
16
+ .hljs-comment,
17
+ .diff .hljs-header,
18
+ .hljs-doctype,
19
+ .hljs-pi,
20
+ .lisp .hljs-string,
21
+ .hljs-javadoc {
22
+ color: #586e75;
23
+ }
24
+
25
+ /* Solarized Green */
26
+ .hljs-keyword,
27
+ .hljs-winutils,
28
+ .method,
29
+ .hljs-addition,
30
+ .css .hljs-tag,
31
+ .hljs-request,
32
+ .hljs-status,
33
+ .nginx .hljs-title {
34
+ color: #859900;
35
+ }
36
+
37
+ /* Solarized Cyan */
38
+ .hljs-number,
39
+ .hljs-command,
40
+ .hljs-string,
41
+ .hljs-tag .hljs-value,
42
+ .hljs-rules .hljs-value,
43
+ .hljs-phpdoc,
44
+ .hljs-dartdoc,
45
+ .tex .hljs-formula,
46
+ .hljs-regexp,
47
+ .hljs-hexcolor,
48
+ .hljs-link_url {
49
+ color: #2aa198;
50
+ }
51
+
52
+ /* Solarized Blue */
53
+ .hljs-title,
54
+ .hljs-localvars,
55
+ .hljs-chunk,
56
+ .hljs-decorator,
57
+ .hljs-built_in,
58
+ .hljs-identifier,
59
+ .vhdl .hljs-literal,
60
+ .hljs-id,
61
+ .css .hljs-function {
62
+ color: #268bd2;
63
+ }
64
+
65
+ /* Solarized Yellow */
66
+ .hljs-attribute,
67
+ .hljs-variable,
68
+ .lisp .hljs-body,
69
+ .smalltalk .hljs-number,
70
+ .hljs-constant,
71
+ .hljs-class .hljs-title,
72
+ .hljs-parent,
73
+ .hljs-type,
74
+ .hljs-link_reference {
75
+ color: #b58900;
76
+ }
77
+
78
+ /* Solarized Orange */
79
+ .hljs-preprocessor,
80
+ .hljs-preprocessor .hljs-keyword,
81
+ .hljs-pragma,
82
+ .hljs-shebang,
83
+ .hljs-symbol,
84
+ .hljs-symbol .hljs-string,
85
+ .diff .hljs-change,
86
+ .hljs-special,
87
+ .hljs-attr_selector,
88
+ .hljs-subst,
89
+ .hljs-cdata,
90
+ .css .hljs-pseudo,
91
+ .hljs-header {
92
+ color: #cb4b16;
93
+ }
94
+
95
+ /* Solarized Red */
96
+ .hljs-deletion,
97
+ .hljs-important {
98
+ color: #dc322f;
99
+ }
100
+
101
+ /* Solarized Violet */
102
+ .hljs-link_label {
103
+ color: #6c71c4;
104
+ }
105
+
106
+ .tex .hljs-formula {
107
+ background: #073642;
108
+ }
@@ -0,0 +1,108 @@
1
+ /*
2
+
3
+ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #fdf6e3;
12
+ color: #657b83;
13
+ -webkit-text-size-adjust: none;
14
+ }
15
+
16
+ .hljs-comment,
17
+ .diff .hljs-header,
18
+ .hljs-doctype,
19
+ .hljs-pi,
20
+ .lisp .hljs-string,
21
+ .hljs-javadoc {
22
+ color: #93a1a1;
23
+ }
24
+
25
+ /* Solarized Green */
26
+ .hljs-keyword,
27
+ .hljs-winutils,
28
+ .method,
29
+ .hljs-addition,
30
+ .css .hljs-tag,
31
+ .hljs-request,
32
+ .hljs-status,
33
+ .nginx .hljs-title {
34
+ color: #859900;
35
+ }
36
+
37
+ /* Solarized Cyan */
38
+ .hljs-number,
39
+ .hljs-command,
40
+ .hljs-string,
41
+ .hljs-tag .hljs-value,
42
+ .hljs-rules .hljs-value,
43
+ .hljs-phpdoc,
44
+ .hljs-dartdoc,
45
+ .tex .hljs-formula,
46
+ .hljs-regexp,
47
+ .hljs-hexcolor,
48
+ .hljs-link_url {
49
+ color: #2aa198;
50
+ }
51
+
52
+ /* Solarized Blue */
53
+ .hljs-title,
54
+ .hljs-localvars,
55
+ .hljs-chunk,
56
+ .hljs-decorator,
57
+ .hljs-built_in,
58
+ .hljs-identifier,
59
+ .vhdl .hljs-literal,
60
+ .hljs-id,
61
+ .css .hljs-function {
62
+ color: #268bd2;
63
+ }
64
+
65
+ /* Solarized Yellow */
66
+ .hljs-attribute,
67
+ .hljs-variable,
68
+ .lisp .hljs-body,
69
+ .smalltalk .hljs-number,
70
+ .hljs-constant,
71
+ .hljs-class .hljs-title,
72
+ .hljs-parent,
73
+ .hljs-type,
74
+ .hljs-link_reference {
75
+ color: #b58900;
76
+ }
77
+
78
+ /* Solarized Orange */
79
+ .hljs-preprocessor,
80
+ .hljs-preprocessor .hljs-keyword,
81
+ .hljs-pragma,
82
+ .hljs-shebang,
83
+ .hljs-symbol,
84
+ .hljs-symbol .hljs-string,
85
+ .diff .hljs-change,
86
+ .hljs-special,
87
+ .hljs-attr_selector,
88
+ .hljs-subst,
89
+ .hljs-cdata,
90
+ .css .hljs-pseudo,
91
+ .hljs-header {
92
+ color: #cb4b16;
93
+ }
94
+
95
+ /* Solarized Red */
96
+ .hljs-deletion,
97
+ .hljs-important {
98
+ color: #dc322f;
99
+ }
100
+
101
+ /* Solarized Violet */
102
+ .hljs-link_label {
103
+ color: #6c71c4;
104
+ }
105
+
106
+ .tex .hljs-formula {
107
+ background: #eee8d5;
108
+ }
@@ -0,0 +1,164 @@
1
+ /*
2
+
3
+ Sunburst-like style (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #000;
12
+ color: #f8f8f8;
13
+ -webkit-text-size-adjust: none;
14
+ }
15
+
16
+ .hljs-comment,
17
+ .hljs-javadoc {
18
+ color: #aeaeae;
19
+ font-style: italic;
20
+ }
21
+
22
+ .hljs-keyword,
23
+ .ruby .hljs-function .hljs-keyword,
24
+ .hljs-request,
25
+ .hljs-status,
26
+ .nginx .hljs-title {
27
+ color: #e28964;
28
+ }
29
+
30
+ .hljs-function .hljs-keyword,
31
+ .hljs-sub .hljs-keyword,
32
+ .method,
33
+ .hljs-list .hljs-title {
34
+ color: #99cf50;
35
+ }
36
+
37
+ .hljs-string,
38
+ .hljs-tag .hljs-value,
39
+ .hljs-cdata,
40
+ .hljs-filter .hljs-argument,
41
+ .hljs-attr_selector,
42
+ .apache .hljs-cbracket,
43
+ .hljs-date,
44
+ .tex .hljs-command,
45
+ .coffeescript .hljs-attribute {
46
+ color: #65b042;
47
+ }
48
+
49
+ .hljs-subst {
50
+ color: #daefa3;
51
+ }
52
+
53
+ .hljs-regexp {
54
+ color: #e9c062;
55
+ }
56
+
57
+ .hljs-title,
58
+ .hljs-sub .hljs-identifier,
59
+ .hljs-pi,
60
+ .hljs-tag,
61
+ .hljs-tag .hljs-keyword,
62
+ .hljs-decorator,
63
+ .hljs-shebang,
64
+ .hljs-prompt {
65
+ color: #89bdff;
66
+ }
67
+
68
+ .hljs-class .hljs-title,
69
+ .hljs-type,
70
+ .smalltalk .hljs-class,
71
+ .hljs-javadoctag,
72
+ .hljs-yardoctag,
73
+ .hljs-phpdoc,
74
+ .hljs-dartdoc {
75
+ text-decoration: underline;
76
+ }
77
+
78
+ .hljs-symbol,
79
+ .ruby .hljs-symbol .hljs-string,
80
+ .hljs-number {
81
+ color: #3387cc;
82
+ }
83
+
84
+ .hljs-params,
85
+ .hljs-variable,
86
+ .clojure .hljs-attribute {
87
+ color: #3e87e3;
88
+ }
89
+
90
+ .css .hljs-tag,
91
+ .hljs-rules .hljs-property,
92
+ .hljs-pseudo,
93
+ .tex .hljs-special {
94
+ color: #cda869;
95
+ }
96
+
97
+ .css .hljs-class {
98
+ color: #9b703f;
99
+ }
100
+
101
+ .hljs-rules .hljs-keyword {
102
+ color: #c5af75;
103
+ }
104
+
105
+ .hljs-rules .hljs-value {
106
+ color: #cf6a4c;
107
+ }
108
+
109
+ .css .hljs-id {
110
+ color: #8b98ab;
111
+ }
112
+
113
+ .hljs-annotation,
114
+ .apache .hljs-sqbracket,
115
+ .nginx .hljs-built_in {
116
+ color: #9b859d;
117
+ }
118
+
119
+ .hljs-preprocessor,
120
+ .hljs-pragma {
121
+ color: #8996a8;
122
+ }
123
+
124
+ .hljs-hexcolor,
125
+ .css .hljs-value .hljs-number {
126
+ color: #dd7b3b;
127
+ }
128
+
129
+ .css .hljs-function {
130
+ color: #dad085;
131
+ }
132
+
133
+ .diff .hljs-header,
134
+ .hljs-chunk,
135
+ .tex .hljs-formula {
136
+ background-color: #0e2231;
137
+ color: #f8f8f8;
138
+ font-style: italic;
139
+ }
140
+
141
+ .diff .hljs-change {
142
+ background-color: #4a410d;
143
+ color: #f8f8f8;
144
+ }
145
+
146
+ .hljs-addition {
147
+ background-color: #253b22;
148
+ color: #f8f8f8;
149
+ }
150
+
151
+ .hljs-deletion {
152
+ background-color: #420e09;
153
+ color: #f8f8f8;
154
+ }
155
+
156
+ .coffeescript .javascript,
157
+ .javascript .xml,
158
+ .tex .hljs-formula,
159
+ .xml .javascript,
160
+ .xml .vbscript,
161
+ .xml .css,
162
+ .xml .hljs-cdata {
163
+ opacity: 0.5;
164
+ }