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,95 @@
1
+ /* Tomorrow Night Blue Theme */
2
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
3
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
4
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
5
+
6
+ /* Tomorrow Comment */
7
+ .hljs-comment {
8
+ color: #7285b7;
9
+ }
10
+
11
+ /* Tomorrow Red */
12
+ .hljs-variable,
13
+ .hljs-attribute,
14
+ .hljs-tag,
15
+ .hljs-regexp,
16
+ .ruby .hljs-constant,
17
+ .xml .hljs-tag .hljs-title,
18
+ .xml .hljs-pi,
19
+ .xml .hljs-doctype,
20
+ .html .hljs-doctype,
21
+ .css .hljs-id,
22
+ .css .hljs-class,
23
+ .css .hljs-pseudo {
24
+ color: #ff9da4;
25
+ }
26
+
27
+ /* Tomorrow Orange */
28
+ .hljs-number,
29
+ .hljs-preprocessor,
30
+ .hljs-pragma,
31
+ .hljs-built_in,
32
+ .hljs-literal,
33
+ .hljs-params,
34
+ .hljs-constant {
35
+ color: #ffc58f;
36
+ }
37
+
38
+ /* Tomorrow Yellow */
39
+ .ruby .hljs-class .hljs-title,
40
+ .css .hljs-rules .hljs-attribute {
41
+ color: #ffeead;
42
+ }
43
+
44
+ /* Tomorrow Green */
45
+ .hljs-string,
46
+ .hljs-value,
47
+ .hljs-inheritance,
48
+ .hljs-header,
49
+ .ruby .hljs-symbol,
50
+ .xml .hljs-cdata {
51
+ color: #d1f1a9;
52
+ }
53
+
54
+ /* Tomorrow Aqua */
55
+ .hljs-title,
56
+ .css .hljs-hexcolor {
57
+ color: #99ffff;
58
+ }
59
+
60
+ /* Tomorrow 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: #bbdaff;
70
+ }
71
+
72
+ /* Tomorrow Purple */
73
+ .hljs-keyword,
74
+ .javascript .hljs-function {
75
+ color: #ebbbff;
76
+ }
77
+
78
+ .hljs {
79
+ display: block;
80
+ overflow-x: auto;
81
+ background: #002451;
82
+ color: white;
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,94 @@
1
+ /* Tomorrow Night Bright Theme */
2
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
3
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
4
+
5
+ /* Tomorrow Comment */
6
+ .hljs-comment {
7
+ color: #969896;
8
+ }
9
+
10
+ /* Tomorrow Red */
11
+ .hljs-variable,
12
+ .hljs-attribute,
13
+ .hljs-tag,
14
+ .hljs-regexp,
15
+ .ruby .hljs-constant,
16
+ .xml .hljs-tag .hljs-title,
17
+ .xml .hljs-pi,
18
+ .xml .hljs-doctype,
19
+ .html .hljs-doctype,
20
+ .css .hljs-id,
21
+ .css .hljs-class,
22
+ .css .hljs-pseudo {
23
+ color: #d54e53;
24
+ }
25
+
26
+ /* Tomorrow Orange */
27
+ .hljs-number,
28
+ .hljs-preprocessor,
29
+ .hljs-pragma,
30
+ .hljs-built_in,
31
+ .hljs-literal,
32
+ .hljs-params,
33
+ .hljs-constant {
34
+ color: #e78c45;
35
+ }
36
+
37
+ /* Tomorrow Yellow */
38
+ .ruby .hljs-class .hljs-title,
39
+ .css .hljs-rules .hljs-attribute {
40
+ color: #e7c547;
41
+ }
42
+
43
+ /* Tomorrow Green */
44
+ .hljs-string,
45
+ .hljs-value,
46
+ .hljs-inheritance,
47
+ .hljs-header,
48
+ .ruby .hljs-symbol,
49
+ .xml .hljs-cdata {
50
+ color: #b9ca4a;
51
+ }
52
+
53
+ /* Tomorrow Aqua */
54
+ .hljs-title,
55
+ .css .hljs-hexcolor {
56
+ color: #70c0b1;
57
+ }
58
+
59
+ /* Tomorrow Blue */
60
+ .hljs-function,
61
+ .python .hljs-decorator,
62
+ .python .hljs-title,
63
+ .ruby .hljs-function .hljs-title,
64
+ .ruby .hljs-title .hljs-keyword,
65
+ .perl .hljs-sub,
66
+ .javascript .hljs-title,
67
+ .coffeescript .hljs-title {
68
+ color: #7aa6da;
69
+ }
70
+
71
+ /* Tomorrow Purple */
72
+ .hljs-keyword,
73
+ .javascript .hljs-function {
74
+ color: #c397d8;
75
+ }
76
+
77
+ .hljs {
78
+ display: block;
79
+ overflow-x: auto;
80
+ background: black;
81
+ color: #eaeaea;
82
+ padding: 0.5em;
83
+ -webkit-text-size-adjust: none;
84
+ }
85
+
86
+ .coffeescript .javascript,
87
+ .javascript .xml,
88
+ .tex .hljs-formula,
89
+ .xml .javascript,
90
+ .xml .vbscript,
91
+ .xml .css,
92
+ .xml .hljs-cdata {
93
+ opacity: 0.5;
94
+ }
@@ -0,0 +1,94 @@
1
+ /* Tomorrow Night Eighties Theme */
2
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
3
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
4
+
5
+ /* Tomorrow Comment */
6
+ .hljs-comment {
7
+ color: #999999;
8
+ }
9
+
10
+ /* Tomorrow Red */
11
+ .hljs-variable,
12
+ .hljs-attribute,
13
+ .hljs-tag,
14
+ .hljs-regexp,
15
+ .ruby .hljs-constant,
16
+ .xml .hljs-tag .hljs-title,
17
+ .xml .hljs-pi,
18
+ .xml .hljs-doctype,
19
+ .html .hljs-doctype,
20
+ .css .hljs-id,
21
+ .css .hljs-class,
22
+ .css .hljs-pseudo {
23
+ color: #f2777a;
24
+ }
25
+
26
+ /* Tomorrow Orange */
27
+ .hljs-number,
28
+ .hljs-preprocessor,
29
+ .hljs-pragma,
30
+ .hljs-built_in,
31
+ .hljs-literal,
32
+ .hljs-params,
33
+ .hljs-constant {
34
+ color: #f99157;
35
+ }
36
+
37
+ /* Tomorrow Yellow */
38
+ .ruby .hljs-class .hljs-title,
39
+ .css .hljs-rules .hljs-attribute {
40
+ color: #ffcc66;
41
+ }
42
+
43
+ /* Tomorrow Green */
44
+ .hljs-string,
45
+ .hljs-value,
46
+ .hljs-inheritance,
47
+ .hljs-header,
48
+ .ruby .hljs-symbol,
49
+ .xml .hljs-cdata {
50
+ color: #99cc99;
51
+ }
52
+
53
+ /* Tomorrow Aqua */
54
+ .hljs-title,
55
+ .css .hljs-hexcolor {
56
+ color: #66cccc;
57
+ }
58
+
59
+ /* Tomorrow Blue */
60
+ .hljs-function,
61
+ .python .hljs-decorator,
62
+ .python .hljs-title,
63
+ .ruby .hljs-function .hljs-title,
64
+ .ruby .hljs-title .hljs-keyword,
65
+ .perl .hljs-sub,
66
+ .javascript .hljs-title,
67
+ .coffeescript .hljs-title {
68
+ color: #6699cc;
69
+ }
70
+
71
+ /* Tomorrow Purple */
72
+ .hljs-keyword,
73
+ .javascript .hljs-function {
74
+ color: #cc99cc;
75
+ }
76
+
77
+ .hljs {
78
+ display: block;
79
+ overflow-x: auto;
80
+ background: #2d2d2d;
81
+ color: #cccccc;
82
+ padding: 0.5em;
83
+ -webkit-text-size-adjust: none;
84
+ }
85
+
86
+ .coffeescript .javascript,
87
+ .javascript .xml,
88
+ .tex .hljs-formula,
89
+ .xml .javascript,
90
+ .xml .vbscript,
91
+ .xml .css,
92
+ .xml .hljs-cdata {
93
+ opacity: 0.5;
94
+ }
@@ -0,0 +1,95 @@
1
+ /* Tomorrow Night Theme */
2
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
3
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
4
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
5
+
6
+ /* Tomorrow Comment */
7
+ .hljs-comment {
8
+ color: #969896;
9
+ }
10
+
11
+ /* Tomorrow Red */
12
+ .hljs-variable,
13
+ .hljs-attribute,
14
+ .hljs-tag,
15
+ .hljs-regexp,
16
+ .ruby .hljs-constant,
17
+ .xml .hljs-tag .hljs-title,
18
+ .xml .hljs-pi,
19
+ .xml .hljs-doctype,
20
+ .html .hljs-doctype,
21
+ .css .hljs-id,
22
+ .css .hljs-class,
23
+ .css .hljs-pseudo {
24
+ color: #cc6666;
25
+ }
26
+
27
+ /* Tomorrow Orange */
28
+ .hljs-number,
29
+ .hljs-preprocessor,
30
+ .hljs-pragma,
31
+ .hljs-built_in,
32
+ .hljs-literal,
33
+ .hljs-params,
34
+ .hljs-constant {
35
+ color: #de935f;
36
+ }
37
+
38
+ /* Tomorrow Yellow */
39
+ .ruby .hljs-class .hljs-title,
40
+ .css .hljs-rules .hljs-attribute {
41
+ color: #f0c674;
42
+ }
43
+
44
+ /* Tomorrow Green */
45
+ .hljs-string,
46
+ .hljs-value,
47
+ .hljs-inheritance,
48
+ .hljs-header,
49
+ .ruby .hljs-symbol,
50
+ .xml .hljs-cdata {
51
+ color: #b5bd68;
52
+ }
53
+
54
+ /* Tomorrow Aqua */
55
+ .hljs-title,
56
+ .css .hljs-hexcolor {
57
+ color: #8abeb7;
58
+ }
59
+
60
+ /* Tomorrow 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: #81a2be;
70
+ }
71
+
72
+ /* Tomorrow Purple */
73
+ .hljs-keyword,
74
+ .javascript .hljs-function {
75
+ color: #b294bb;
76
+ }
77
+
78
+ .hljs {
79
+ display: block;
80
+ overflow-x: auto;
81
+ background: #1d1f21;
82
+ color: #c5c8c6;
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,92 @@
1
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
2
+
3
+ /* Tomorrow Comment */
4
+ .hljs-comment {
5
+ color: #8e908c;
6
+ }
7
+
8
+ /* Tomorrow Red */
9
+ .hljs-variable,
10
+ .hljs-attribute,
11
+ .hljs-tag,
12
+ .hljs-regexp,
13
+ .ruby .hljs-constant,
14
+ .xml .hljs-tag .hljs-title,
15
+ .xml .hljs-pi,
16
+ .xml .hljs-doctype,
17
+ .html .hljs-doctype,
18
+ .css .hljs-id,
19
+ .css .hljs-class,
20
+ .css .hljs-pseudo {
21
+ color: #c82829;
22
+ }
23
+
24
+ /* Tomorrow Orange */
25
+ .hljs-number,
26
+ .hljs-preprocessor,
27
+ .hljs-pragma,
28
+ .hljs-built_in,
29
+ .hljs-literal,
30
+ .hljs-params,
31
+ .hljs-constant {
32
+ color: #f5871f;
33
+ }
34
+
35
+ /* Tomorrow Yellow */
36
+ .ruby .hljs-class .hljs-title,
37
+ .css .hljs-rules .hljs-attribute {
38
+ color: #eab700;
39
+ }
40
+
41
+ /* Tomorrow Green */
42
+ .hljs-string,
43
+ .hljs-value,
44
+ .hljs-inheritance,
45
+ .hljs-header,
46
+ .ruby .hljs-symbol,
47
+ .xml .hljs-cdata {
48
+ color: #718c00;
49
+ }
50
+
51
+ /* Tomorrow Aqua */
52
+ .hljs-title,
53
+ .css .hljs-hexcolor {
54
+ color: #3e999f;
55
+ }
56
+
57
+ /* Tomorrow Blue */
58
+ .hljs-function,
59
+ .python .hljs-decorator,
60
+ .python .hljs-title,
61
+ .ruby .hljs-function .hljs-title,
62
+ .ruby .hljs-title .hljs-keyword,
63
+ .perl .hljs-sub,
64
+ .javascript .hljs-title,
65
+ .coffeescript .hljs-title {
66
+ color: #4271ae;
67
+ }
68
+
69
+ /* Tomorrow Purple */
70
+ .hljs-keyword,
71
+ .javascript .hljs-function {
72
+ color: #8959a8;
73
+ }
74
+
75
+ .hljs {
76
+ display: block;
77
+ overflow-x: auto;
78
+ background: white;
79
+ color: #4d4d4c;
80
+ padding: 0.5em;
81
+ -webkit-text-size-adjust: none;
82
+ }
83
+
84
+ .coffeescript .javascript,
85
+ .javascript .xml,
86
+ .tex .hljs-formula,
87
+ .xml .javascript,
88
+ .xml .vbscript,
89
+ .xml .css,
90
+ .xml .hljs-cdata {
91
+ opacity: 0.5;
92
+ }