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,152 @@
1
+ /*
2
+
3
+ Original 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: #f0f0f0;
12
+ -webkit-text-size-adjust: none;
13
+ }
14
+
15
+ .hljs,
16
+ .hljs-subst,
17
+ .hljs-tag .hljs-title,
18
+ .nginx .hljs-title {
19
+ color: black;
20
+ }
21
+
22
+ .hljs-string,
23
+ .hljs-title,
24
+ .hljs-constant,
25
+ .hljs-parent,
26
+ .hljs-tag .hljs-value,
27
+ .hljs-rules .hljs-value,
28
+ .hljs-preprocessor,
29
+ .hljs-pragma,
30
+ .haml .hljs-symbol,
31
+ .ruby .hljs-symbol,
32
+ .ruby .hljs-symbol .hljs-string,
33
+ .hljs-template_tag,
34
+ .django .hljs-variable,
35
+ .smalltalk .hljs-class,
36
+ .hljs-addition,
37
+ .hljs-flow,
38
+ .hljs-stream,
39
+ .bash .hljs-variable,
40
+ .apache .hljs-tag,
41
+ .apache .hljs-cbracket,
42
+ .tex .hljs-command,
43
+ .tex .hljs-special,
44
+ .erlang_repl .hljs-function_or_atom,
45
+ .asciidoc .hljs-header,
46
+ .markdown .hljs-header,
47
+ .coffeescript .hljs-attribute {
48
+ color: #800;
49
+ }
50
+
51
+ .smartquote,
52
+ .hljs-comment,
53
+ .hljs-annotation,
54
+ .diff .hljs-header,
55
+ .hljs-chunk,
56
+ .asciidoc .hljs-blockquote,
57
+ .markdown .hljs-blockquote {
58
+ color: #888;
59
+ }
60
+
61
+ .hljs-number,
62
+ .hljs-date,
63
+ .hljs-regexp,
64
+ .hljs-literal,
65
+ .hljs-hexcolor,
66
+ .smalltalk .hljs-symbol,
67
+ .smalltalk .hljs-char,
68
+ .go .hljs-constant,
69
+ .hljs-change,
70
+ .lasso .hljs-variable,
71
+ .makefile .hljs-variable,
72
+ .asciidoc .hljs-bullet,
73
+ .markdown .hljs-bullet,
74
+ .asciidoc .hljs-link_url,
75
+ .markdown .hljs-link_url {
76
+ color: #080;
77
+ }
78
+
79
+ .hljs-label,
80
+ .hljs-javadoc,
81
+ .ruby .hljs-string,
82
+ .hljs-decorator,
83
+ .hljs-filter .hljs-argument,
84
+ .hljs-localvars,
85
+ .hljs-array,
86
+ .hljs-attr_selector,
87
+ .hljs-important,
88
+ .hljs-pseudo,
89
+ .hljs-pi,
90
+ .haml .hljs-bullet,
91
+ .hljs-doctype,
92
+ .hljs-deletion,
93
+ .hljs-envvar,
94
+ .hljs-shebang,
95
+ .apache .hljs-sqbracket,
96
+ .nginx .hljs-built_in,
97
+ .tex .hljs-formula,
98
+ .erlang_repl .hljs-reserved,
99
+ .hljs-prompt,
100
+ .asciidoc .hljs-link_label,
101
+ .markdown .hljs-link_label,
102
+ .vhdl .hljs-attribute,
103
+ .clojure .hljs-attribute,
104
+ .asciidoc .hljs-attribute,
105
+ .lasso .hljs-attribute,
106
+ .coffeescript .hljs-property,
107
+ .hljs-phony {
108
+ color: #88f;
109
+ }
110
+
111
+ .hljs-keyword,
112
+ .hljs-id,
113
+ .hljs-title,
114
+ .hljs-built_in,
115
+ .css .hljs-tag,
116
+ .hljs-javadoctag,
117
+ .hljs-phpdoc,
118
+ .hljs-dartdoc,
119
+ .hljs-yardoctag,
120
+ .smalltalk .hljs-class,
121
+ .hljs-winutils,
122
+ .bash .hljs-variable,
123
+ .apache .hljs-tag,
124
+ .hljs-type,
125
+ .hljs-typename,
126
+ .tex .hljs-command,
127
+ .asciidoc .hljs-strong,
128
+ .markdown .hljs-strong,
129
+ .hljs-request,
130
+ .hljs-status {
131
+ font-weight: bold;
132
+ }
133
+
134
+ .asciidoc .hljs-emphasis,
135
+ .markdown .hljs-emphasis {
136
+ font-style: italic;
137
+ }
138
+
139
+ .nginx .hljs-built_in {
140
+ font-weight: normal;
141
+ }
142
+
143
+ .coffeescript .javascript,
144
+ .javascript .xml,
145
+ .lasso .markup,
146
+ .tex .hljs-formula,
147
+ .xml .javascript,
148
+ .xml .vbscript,
149
+ .xml .css,
150
+ .xml .hljs-cdata {
151
+ opacity: 0.5;
152
+ }
@@ -0,0 +1,135 @@
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
+ -webkit-text-size-adjust: none;
12
+ }
13
+
14
+ .hljs-comment,
15
+ .diff .hljs-header,
16
+ .hljs-javadoc {
17
+ color: #408080;
18
+ font-style: italic;
19
+ }
20
+
21
+ .hljs-keyword,
22
+ .assignment,
23
+ .hljs-literal,
24
+ .css .rule .hljs-keyword,
25
+ .hljs-winutils,
26
+ .javascript .hljs-title,
27
+ .lisp .hljs-title,
28
+ .hljs-subst {
29
+ color: #954121;
30
+ }
31
+
32
+ .hljs-number,
33
+ .hljs-hexcolor {
34
+ color: #40a070;
35
+ }
36
+
37
+ .hljs-string,
38
+ .hljs-tag .hljs-value,
39
+ .hljs-phpdoc,
40
+ .hljs-dartdoc,
41
+ .tex .hljs-formula {
42
+ color: #219161;
43
+ }
44
+
45
+ .hljs-title,
46
+ .hljs-id {
47
+ color: #19469d;
48
+ }
49
+ .hljs-params {
50
+ color: #00f;
51
+ }
52
+
53
+ .javascript .hljs-title,
54
+ .lisp .hljs-title,
55
+ .hljs-subst {
56
+ font-weight: normal;
57
+ }
58
+
59
+ .hljs-class .hljs-title,
60
+ .haskell .hljs-label,
61
+ .tex .hljs-command {
62
+ color: #458;
63
+ font-weight: bold;
64
+ }
65
+
66
+ .hljs-tag,
67
+ .hljs-tag .hljs-title,
68
+ .hljs-rules .hljs-property,
69
+ .django .hljs-tag .hljs-keyword {
70
+ color: #000080;
71
+ font-weight: normal;
72
+ }
73
+
74
+ .hljs-attribute,
75
+ .hljs-variable,
76
+ .instancevar,
77
+ .lisp .hljs-body {
78
+ color: #008080;
79
+ }
80
+
81
+ .hljs-regexp {
82
+ color: #b68;
83
+ }
84
+
85
+ .hljs-class {
86
+ color: #458;
87
+ font-weight: bold;
88
+ }
89
+
90
+ .hljs-symbol,
91
+ .ruby .hljs-symbol .hljs-string,
92
+ .ruby .hljs-symbol .hljs-keyword,
93
+ .ruby .hljs-symbol .keymethods,
94
+ .lisp .hljs-keyword,
95
+ .tex .hljs-special,
96
+ .input_number {
97
+ color: #990073;
98
+ }
99
+
100
+ .builtin,
101
+ .constructor,
102
+ .hljs-built_in,
103
+ .lisp .hljs-title {
104
+ color: #0086b3;
105
+ }
106
+
107
+ .hljs-preprocessor,
108
+ .hljs-pragma,
109
+ .hljs-pi,
110
+ .hljs-doctype,
111
+ .hljs-shebang,
112
+ .hljs-cdata {
113
+ color: #999;
114
+ font-weight: bold;
115
+ }
116
+
117
+ .hljs-deletion {
118
+ background: #fdd;
119
+ }
120
+
121
+ .hljs-addition {
122
+ background: #dfd;
123
+ }
124
+
125
+ .diff .hljs-change {
126
+ background: #0086b3;
127
+ }
128
+
129
+ .hljs-chunk {
130
+ color: #aaa;
131
+ }
132
+
133
+ .tex .hljs-formula {
134
+ opacity: 0.5;
135
+ }
@@ -0,0 +1,111 @@
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
+ -webkit-text-size-adjust: none;
13
+ }
14
+
15
+ .hljs,
16
+ .hljs-subst {
17
+ color: #0ff;
18
+ }
19
+
20
+ .hljs-string,
21
+ .ruby .hljs-string,
22
+ .haskell .hljs-type,
23
+ .hljs-tag .hljs-value,
24
+ .hljs-rules .hljs-value,
25
+ .hljs-rules .hljs-value .hljs-number,
26
+ .hljs-preprocessor,
27
+ .hljs-pragma,
28
+ .ruby .hljs-symbol,
29
+ .ruby .hljs-symbol .hljs-string,
30
+ .hljs-built_in,
31
+ .django .hljs-template_tag,
32
+ .django .hljs-variable,
33
+ .smalltalk .hljs-class,
34
+ .hljs-addition,
35
+ .apache .hljs-tag,
36
+ .apache .hljs-cbracket,
37
+ .tex .hljs-command,
38
+ .coffeescript .hljs-attribute {
39
+ color: #ff0;
40
+ }
41
+
42
+ .hljs-keyword,
43
+ .css .hljs-id,
44
+ .hljs-title,
45
+ .hljs-type,
46
+ .vbscript .hljs-built_in,
47
+ .rsl .hljs-built_in,
48
+ .smalltalk .hljs-class,
49
+ .xml .hljs-tag .hljs-title,
50
+ .hljs-winutils,
51
+ .hljs-flow,
52
+ .hljs-change,
53
+ .hljs-envvar,
54
+ .bash .hljs-variable,
55
+ .tex .hljs-special {
56
+ color: #fff;
57
+ }
58
+
59
+ .hljs-comment,
60
+ .hljs-phpdoc,
61
+ .hljs-dartdoc,
62
+ .hljs-javadoc,
63
+ .hljs-annotation,
64
+ .hljs-deletion,
65
+ .apache .hljs-sqbracket,
66
+ .tex .hljs-formula {
67
+ color: #888;
68
+ }
69
+
70
+ .hljs-number,
71
+ .hljs-date,
72
+ .hljs-regexp,
73
+ .hljs-literal,
74
+ .smalltalk .hljs-symbol,
75
+ .smalltalk .hljs-char,
76
+ .clojure .hljs-attribute {
77
+ color: #0f0;
78
+ }
79
+
80
+ .hljs-decorator,
81
+ .django .hljs-filter .hljs-argument,
82
+ .smalltalk .hljs-localvars,
83
+ .smalltalk .hljs-array,
84
+ .hljs-attr_selector,
85
+ .hljs-pseudo,
86
+ .xml .hljs-pi,
87
+ .diff .hljs-header,
88
+ .hljs-chunk,
89
+ .hljs-shebang,
90
+ .nginx .hljs-built_in,
91
+ .hljs-prompt {
92
+ color: #008080;
93
+ }
94
+
95
+ .hljs-keyword,
96
+ .css .hljs-id,
97
+ .hljs-title,
98
+ .hljs-type,
99
+ .vbscript .hljs-built_in,
100
+ .rsl .hljs-built_in,
101
+ .smalltalk .hljs-class,
102
+ .hljs-winutils,
103
+ .hljs-flow,
104
+ .apache .hljs-tag,
105
+ .nginx .hljs-built_in,
106
+ .tex .hljs-command,
107
+ .tex .hljs-special,
108
+ .hljs-request,
109
+ .hljs-status {
110
+ font-weight: bold;
111
+ }
@@ -0,0 +1,136 @@
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;
14
+ -webkit-text-size-adjust: none;
15
+ }
16
+
17
+ .hljs-header,
18
+ .hljs-decorator,
19
+ .hljs-annotation {
20
+ color: #000077;
21
+ }
22
+
23
+ .hljs-horizontal_rule,
24
+ .hljs-link_url,
25
+ .hljs-emphasis,
26
+ .hljs-attribute {
27
+ color: #070;
28
+ }
29
+
30
+ .hljs-emphasis {
31
+ font-style: italic;
32
+ }
33
+
34
+ .hljs-link_label,
35
+ .hljs-strong,
36
+ .hljs-value,
37
+ .hljs-string,
38
+ .scss .hljs-value .hljs-string {
39
+ color: #d14;
40
+ }
41
+
42
+ .hljs-strong {
43
+ font-weight: bold;
44
+ }
45
+
46
+ .hljs-blockquote,
47
+ .hljs-comment {
48
+ color: #998;
49
+ font-style: italic;
50
+ }
51
+
52
+ .asciidoc .hljs-title,
53
+ .hljs-function .hljs-title {
54
+ color: #900;
55
+ }
56
+
57
+ .hljs-class {
58
+ color: #458;
59
+ }
60
+
61
+ .hljs-id,
62
+ .hljs-pseudo,
63
+ .hljs-constant,
64
+ .hljs-hexcolor {
65
+ color: teal;
66
+ }
67
+
68
+ .hljs-variable {
69
+ color: #336699;
70
+ }
71
+
72
+ .hljs-bullet,
73
+ .hljs-javadoc {
74
+ color: #997700;
75
+ }
76
+
77
+ .hljs-pi,
78
+ .hljs-doctype {
79
+ color: #3344bb;
80
+ }
81
+
82
+ .hljs-code,
83
+ .hljs-number {
84
+ color: #099;
85
+ }
86
+
87
+ .hljs-important {
88
+ color: #f00;
89
+ }
90
+
91
+ .smartquote,
92
+ .hljs-label {
93
+ color: #970;
94
+ }
95
+
96
+ .hljs-preprocessor,
97
+ .hljs-pragma {
98
+ color: #579;
99
+ }
100
+
101
+ .hljs-reserved,
102
+ .hljs-keyword,
103
+ .scss .hljs-value {
104
+ color: #000;
105
+ }
106
+
107
+ .hljs-regexp {
108
+ background-color: #fff0ff;
109
+ color: #880088;
110
+ }
111
+
112
+ .hljs-symbol {
113
+ color: #990073;
114
+ }
115
+
116
+ .hljs-symbol .hljs-string {
117
+ color: #a60;
118
+ }
119
+
120
+ .hljs-tag {
121
+ color: #007700;
122
+ }
123
+
124
+ .hljs-at_rule,
125
+ .hljs-at_rule .hljs-keyword {
126
+ color: #088;
127
+ }
128
+
129
+ .hljs-at_rule .hljs-preprocessor {
130
+ color: #808;
131
+ }
132
+
133
+ .scss .hljs-tag,
134
+ .scss .hljs-attribute {
135
+ color: #339;
136
+ }