trickster 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. data/.gitignore +16 -0
  2. data/.rvmrc +1 -0
  3. data/Gemfile +2 -0
  4. data/README.rdoc +57 -13
  5. data/Rakefile +120 -0
  6. data/TODO +4 -0
  7. data/bin/trickster +66 -24
  8. data/css/themes-orig/arta.css +155 -0
  9. data/css/themes-orig/ascetic.css +50 -0
  10. data/css/themes-orig/brown_paper.css +102 -0
  11. data/css/themes-orig/brown_papersq.png +0 -0
  12. data/css/themes-orig/dark.css +101 -0
  13. data/css/themes-orig/default.css +132 -0
  14. data/css/themes-orig/far.css +111 -0
  15. data/css/themes-orig/github.css +131 -0
  16. data/css/themes-orig/googlecode.css +144 -0
  17. data/css/themes-orig/idea.css +121 -0
  18. data/css/themes-orig/ir_black.css +98 -0
  19. data/css/themes-orig/magula.css +119 -0
  20. data/css/themes-orig/monokai.css +112 -0
  21. data/css/themes-orig/pojoaque.css +104 -0
  22. data/css/themes-orig/pojoaque.jpg +0 -0
  23. data/css/themes-orig/rainbow.css +114 -0
  24. data/css/themes-orig/school_book.css +109 -0
  25. data/css/themes-orig/school_book.png +0 -0
  26. data/css/themes-orig/solarized_dark.css +88 -0
  27. data/css/themes-orig/solarized_light.css +88 -0
  28. data/css/themes-orig/sunburst.css +148 -0
  29. data/css/themes-orig/tomorrow-night-blue.css +42 -0
  30. data/css/themes-orig/tomorrow-night-bright.css +41 -0
  31. data/css/themes-orig/tomorrow-night-eighties.css +41 -0
  32. data/css/themes-orig/tomorrow-night.css +42 -0
  33. data/css/themes-orig/tomorrow.css +39 -0
  34. data/css/themes-orig/vs.css +85 -0
  35. data/css/themes-orig/xcode.css +154 -0
  36. data/css/themes-orig/zenburn.css +113 -0
  37. data/css/themes/arta.css +186 -0
  38. data/css/themes/ascetic.css +81 -0
  39. data/css/themes/brown_paper.css +133 -0
  40. data/css/themes/custom.scss +322 -0
  41. data/css/themes/dark.css +132 -0
  42. data/css/themes/default.css +163 -0
  43. data/css/themes/far.css +142 -0
  44. data/css/themes/github.css +162 -0
  45. data/css/themes/googlecode.css +175 -0
  46. data/css/themes/idea.css +152 -0
  47. data/css/themes/ir_black.css +129 -0
  48. data/css/themes/magula.css +150 -0
  49. data/css/themes/monokai.css +143 -0
  50. data/css/themes/pojoaque.css +135 -0
  51. data/css/themes/rainbow.css +145 -0
  52. data/css/themes/school_book.css +140 -0
  53. data/css/themes/solarized_dark.css +119 -0
  54. data/css/themes/solarized_light.css +119 -0
  55. data/css/themes/sunburst.css +179 -0
  56. data/css/themes/tomorrow-night-blue.css +73 -0
  57. data/css/themes/tomorrow-night-bright.css +72 -0
  58. data/css/themes/tomorrow-night-eighties.css +72 -0
  59. data/css/themes/tomorrow-night.css +73 -0
  60. data/css/themes/tomorrow.css +70 -0
  61. data/css/themes/vs.css +116 -0
  62. data/css/themes/xcode.css +185 -0
  63. data/css/themes/zenburn.css +144 -0
  64. data/erb/index.html.erb +2 -2
  65. data/features/build.feature +18 -0
  66. data/features/init.feature +57 -0
  67. data/features/step_definitions/trickster_steps.rb +78 -0
  68. data/features/support/env.rb +15 -0
  69. data/features/update.feature +33 -0
  70. data/js/trickster.js +1 -1
  71. data/lib/trickster.rb +2 -0
  72. data/lib/trickster/copier.rb +11 -0
  73. data/lib/trickster/file_copier.rb +1 -8
  74. data/lib/trickster/renderer/code_renderer.rb +47 -10
  75. data/lib/trickster/theme_copier.rb +16 -0
  76. data/lib/trickster/version.rb +1 -1
  77. data/notes.txt.md +56 -0
  78. data/test/jasmine.yml +4 -0
  79. data/test/js/bullets_spec.js +82 -0
  80. data/test/js/sizer_spec.js +244 -0
  81. data/test/js/trickster_spec.js +10 -0
  82. data/test/js/utils_spec.js +56 -0
  83. data/test/slide_parser_test.rb +50 -0
  84. data/test/slide_renderer_test.rb +316 -0
  85. data/{css → test/slideshow-with-sass/css}/highlight-solarized_light.min.css +0 -0
  86. data/test/slideshow-with-sass/css/normalize.css +375 -0
  87. data/test/slideshow-with-sass/css/styles.scss +66 -0
  88. data/test/slideshow-with-sass/js/bullets.js +83 -0
  89. data/test/slideshow-with-sass/js/custom.js +11 -0
  90. data/test/slideshow-with-sass/js/lib/highlight-7.1.min.js +1 -0
  91. data/test/slideshow-with-sass/js/lib/jquery-1.8.0.min.js +2 -0
  92. data/test/slideshow-with-sass/js/lib/jquerytypewriter.js +54 -0
  93. data/test/slideshow-with-sass/js/lib/underscore-1.3.3.min.js +32 -0
  94. data/test/slideshow-with-sass/js/sizer.js +149 -0
  95. data/test/slideshow-with-sass/js/trickster.js +216 -0
  96. data/test/slideshow-with-sass/js/utils.js +19 -0
  97. data/test/slideshow-with-sass/rudy.png +0 -0
  98. data/test/slideshow-with-sass/slides +47 -0
  99. data/test/slideshow/css/highlight-solarized_light.min.css +37 -0
  100. data/test/slideshow/css/normalize.css +375 -0
  101. data/test/slideshow/css/styles.css +66 -0
  102. data/test/slideshow/css/theme.css +163 -0
  103. data/test/slideshow/index.html +77 -0
  104. data/test/slideshow/js/bullets.js +83 -0
  105. data/test/slideshow/js/custom.js +11 -0
  106. data/test/slideshow/js/lib/highlight-7.1.min.js +1 -0
  107. data/test/slideshow/js/lib/jquery-1.8.0.min.js +2 -0
  108. data/test/slideshow/js/lib/jquerytypewriter.js +54 -0
  109. data/test/slideshow/js/lib/underscore-1.3.3.min.js +32 -0
  110. data/test/slideshow/js/sizer.js +149 -0
  111. data/test/slideshow/js/trickster.js +216 -0
  112. data/test/slideshow/js/utils.js +19 -0
  113. data/test/slideshow/rudy.png +0 -0
  114. data/test/slideshow/slides +47 -0
  115. data/test/test_helper.rb +11 -0
  116. data/trickster.gemspec +27 -0
  117. data/trickster.rdoc +44 -8
  118. metadata +348 -62
  119. data/js/lib/highlight-fc32801.min.js +0 -4601
@@ -0,0 +1,109 @@
1
+ /*
2
+
3
+ School Book style from goldblog.com.ua (c) Zaripov Yura <yur4ik7@ukr.net>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 15px 0.5em 0.5em 30px;
9
+ font-size: 11px !important;
10
+ line-height:16px !important;
11
+ }
12
+
13
+ pre{
14
+ background:#f6f6ae url(./school_book.png);
15
+ border-top: solid 2px #d2e8b9;
16
+ border-bottom: solid 1px #d2e8b9;
17
+ }
18
+
19
+ pre .keyword,
20
+ pre .literal,
21
+ pre .change,
22
+ pre .winutils,
23
+ pre .flow,
24
+ pre .lisp .title,
25
+ pre .clojure .built_in,
26
+ pre .nginx .title,
27
+ pre .tex .special {
28
+ color:#005599;
29
+ font-weight:bold;
30
+ }
31
+
32
+ pre code,
33
+ pre .ruby .subst,
34
+ pre .tag .keyword {
35
+ color: #3E5915;
36
+ }
37
+
38
+ pre .string,
39
+ pre .title,
40
+ pre .haskell .type,
41
+ pre .tag .value,
42
+ pre .css .rules .value,
43
+ pre .preprocessor,
44
+ pre .ruby .symbol,
45
+ pre .ruby .symbol .string,
46
+ pre .ruby .class .parent,
47
+ pre .built_in,
48
+ pre .sql .aggregate,
49
+ pre .django .template_tag,
50
+ pre .django .variable,
51
+ pre .smalltalk .class,
52
+ pre .javadoc,
53
+ pre .ruby .string,
54
+ pre .django .filter .argument,
55
+ pre .smalltalk .localvars,
56
+ pre .smalltalk .array,
57
+ pre .attr_selector,
58
+ pre .pseudo,
59
+ pre .addition,
60
+ pre .stream,
61
+ pre .envvar,
62
+ pre .apache .tag,
63
+ pre .apache .cbracket,
64
+ pre .nginx .built_in,
65
+ pre .tex .command {
66
+ color: #2C009F;
67
+ }
68
+
69
+ pre .comment,
70
+ pre .java .annotation,
71
+ pre .python .decorator,
72
+ pre .template_comment,
73
+ pre .pi,
74
+ pre .doctype,
75
+ pre .deletion,
76
+ pre .shebang,
77
+ pre .apache .sqbracket {
78
+ color: #E60415;
79
+ }
80
+
81
+ pre .keyword,
82
+ pre .literal,
83
+ pre .css .id,
84
+ pre .phpdoc,
85
+ pre .title,
86
+ pre .haskell .type,
87
+ pre .vbscript .built_in,
88
+ pre .sql .aggregate,
89
+ pre .rsl .built_in,
90
+ pre .smalltalk .class,
91
+ pre .xml .tag .title,
92
+ pre .diff .header,
93
+ pre .chunk,
94
+ pre .winutils,
95
+ pre .bash .variable,
96
+ pre .apache .tag,
97
+ pre .tex .command,
98
+ pre .request,
99
+ pre .status {
100
+ font-weight: bold;
101
+ }
102
+
103
+ pre .coffeescript .javascript,
104
+ pre .xml .css,
105
+ pre .xml .javascript,
106
+ pre .xml .vbscript,
107
+ pre .tex .formula {
108
+ opacity: 0.5;
109
+ }
Binary file
@@ -0,0 +1,88 @@
1
+ /*
2
+
3
+ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: #002b36; color: #839496;
10
+ }
11
+
12
+ pre .comment,
13
+ pre .template_comment,
14
+ pre .diff .header,
15
+ pre .doctype,
16
+ pre .pi,
17
+ pre .lisp .string,
18
+ pre .javadoc {
19
+ color: #586e75;
20
+ font-style: italic;
21
+ }
22
+
23
+ pre .keyword,
24
+ pre .winutils,
25
+ pre .method,
26
+ pre .addition,
27
+ pre .css .tag,
28
+ pre .request,
29
+ pre .status,
30
+ pre .nginx .title {
31
+ color: #859900;
32
+ }
33
+
34
+ pre .number,
35
+ pre .command,
36
+ pre .string,
37
+ pre .tag .value,
38
+ pre .phpdoc,
39
+ pre .tex .formula,
40
+ pre .regexp,
41
+ pre .hexcolor {
42
+ color: #2aa198;
43
+ }
44
+
45
+ pre .title,
46
+ pre .localvars,
47
+ pre .chunk,
48
+ pre .decorator,
49
+ pre .built_in,
50
+ pre .identifier,
51
+ pre .vhdl .literal,
52
+ pre .id {
53
+ color: #268bd2;
54
+ }
55
+
56
+ pre .attribute,
57
+ pre .variable,
58
+ pre .lisp .body,
59
+ pre .smalltalk .number,
60
+ pre .constant,
61
+ pre .class .title,
62
+ pre .parent,
63
+ pre .haskell .type {
64
+ color: #b58900;
65
+ }
66
+
67
+ pre .preprocessor,
68
+ pre .preprocessor .keyword,
69
+ pre .shebang,
70
+ pre .symbol,
71
+ pre .symbol .string,
72
+ pre .diff .change,
73
+ pre .special,
74
+ pre .attr_selector,
75
+ pre .important,
76
+ pre .subst,
77
+ pre .cdata,
78
+ pre .clojure .title {
79
+ color: #cb4b16;
80
+ }
81
+
82
+ pre .deletion {
83
+ color: #dc322f;
84
+ }
85
+
86
+ pre .tex .formula {
87
+ background: #073642;
88
+ }
@@ -0,0 +1,88 @@
1
+ /*
2
+
3
+ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: #fdf6e3; color: #657b83;
10
+ }
11
+
12
+ pre .comment,
13
+ pre .template_comment,
14
+ pre .diff .header,
15
+ pre .doctype,
16
+ pre .pi,
17
+ pre .lisp .string,
18
+ pre .javadoc {
19
+ color: #93a1a1;
20
+ font-style: italic;
21
+ }
22
+
23
+ pre .keyword,
24
+ pre .winutils,
25
+ pre .method,
26
+ pre .addition,
27
+ pre .css .tag,
28
+ pre .request,
29
+ pre .status,
30
+ pre .nginx .title {
31
+ color: #859900;
32
+ }
33
+
34
+ pre .number,
35
+ pre .command,
36
+ pre .string,
37
+ pre .tag .value,
38
+ pre .phpdoc,
39
+ pre .tex .formula,
40
+ pre .regexp,
41
+ pre .hexcolor {
42
+ color: #2aa198;
43
+ }
44
+
45
+ pre .title,
46
+ pre .localvars,
47
+ pre .chunk,
48
+ pre .decorator,
49
+ pre .built_in,
50
+ pre .identifier,
51
+ pre .vhdl .literal,
52
+ pre .id {
53
+ color: #268bd2;
54
+ }
55
+
56
+ pre .attribute,
57
+ pre .variable,
58
+ pre .lisp .body,
59
+ pre .smalltalk .number,
60
+ pre .constant,
61
+ pre .class .title,
62
+ pre .parent,
63
+ pre .haskell .type {
64
+ color: #b58900;
65
+ }
66
+
67
+ pre .preprocessor,
68
+ pre .preprocessor .keyword,
69
+ pre .shebang,
70
+ pre .symbol,
71
+ pre .symbol .string,
72
+ pre .diff .change,
73
+ pre .special,
74
+ pre .attr_selector,
75
+ pre .important,
76
+ pre .subst,
77
+ pre .cdata,
78
+ pre .clojure .title {
79
+ color: #cb4b16;
80
+ }
81
+
82
+ pre .deletion {
83
+ color: #dc322f;
84
+ }
85
+
86
+ pre .tex .formula {
87
+ background: #eee8d5;
88
+ }
@@ -0,0 +1,148 @@
1
+ /*
2
+
3
+ Sunburst-like style (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: #000; color: #f8f8f8;
10
+ }
11
+
12
+ pre .comment,
13
+ pre .template_comment,
14
+ pre .javadoc {
15
+ color: #aeaeae;
16
+ font-style: italic;
17
+ }
18
+
19
+ pre .keyword,
20
+ pre .ruby .function .keyword,
21
+ pre .request,
22
+ pre .status,
23
+ pre .nginx .title {
24
+ color: #E28964;
25
+ }
26
+
27
+ pre .function .keyword,
28
+ pre .sub .keyword,
29
+ pre .method,
30
+ pre .list .title {
31
+ color: #99CF50;
32
+ }
33
+
34
+ pre .string,
35
+ pre .tag .value,
36
+ pre .cdata,
37
+ pre .filter .argument,
38
+ pre .attr_selector,
39
+ pre .apache .cbracket,
40
+ pre .date,
41
+ pre .tex .command {
42
+ color: #65B042;
43
+ }
44
+
45
+ pre .subst {
46
+ color: #DAEFA3;
47
+ }
48
+
49
+ pre .regexp {
50
+ color: #E9C062;
51
+ }
52
+
53
+ pre .title,
54
+ pre .sub .identifier,
55
+ pre .pi,
56
+ pre .tag,
57
+ pre .tag .keyword,
58
+ pre .decorator,
59
+ pre .shebang,
60
+ pre .input_number {
61
+ color: #89BDFF;
62
+ }
63
+
64
+ pre .class .title,
65
+ pre .haskell .type,
66
+ pre .smalltalk .class,
67
+ pre .javadoctag,
68
+ pre .yardoctag,
69
+ pre .phpdoc {
70
+ text-decoration: underline;
71
+ }
72
+
73
+ pre .symbol,
74
+ pre .ruby .symbol .string,
75
+ pre .number {
76
+ color: #3387CC;
77
+ }
78
+
79
+ pre .params,
80
+ pre .variable,
81
+ pre .clojure .attribute {
82
+ color: #3E87E3;
83
+ }
84
+
85
+ pre .css .tag,
86
+ pre .rules .property,
87
+ pre .pseudo,
88
+ pre .tex .special {
89
+ color: #CDA869;
90
+ }
91
+
92
+ pre .css .class {
93
+ color: #9B703F;
94
+ }
95
+
96
+ pre .rules .keyword {
97
+ color: #C5AF75;
98
+ }
99
+
100
+ pre .rules .value {
101
+ color: #CF6A4C;
102
+ }
103
+
104
+ pre .css .id {
105
+ color: #8B98AB;
106
+ }
107
+
108
+ pre .annotation,
109
+ pre .apache .sqbracket,
110
+ pre .nginx .built_in {
111
+ color: #9B859D;
112
+ }
113
+
114
+ pre .preprocessor {
115
+ color: #8996A8;
116
+ }
117
+
118
+ pre .hexcolor,
119
+ pre .css .value .number {
120
+ color: #DD7B3B;
121
+ }
122
+
123
+ pre .css .function {
124
+ color: #DAD085;
125
+ }
126
+
127
+ pre .diff .header,
128
+ pre .chunk,
129
+ pre .tex .formula {
130
+ background-color: #0E2231;
131
+ color: #F8F8F8;
132
+ font-style: italic;
133
+ }
134
+
135
+ pre .diff .change {
136
+ background-color: #4A410D;
137
+ color: #F8F8F8;
138
+ }
139
+
140
+ pre .addition {
141
+ background-color: #253B22;
142
+ color: #F8F8F8;
143
+ }
144
+
145
+ pre .deletion {
146
+ background-color: #420E09;
147
+ color: #F8F8F8;
148
+ }
@@ -0,0 +1,42 @@
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
+ .tomorrow-comment, pre .comment, pre .title {
6
+ color: #7285b7;
7
+ }
8
+
9
+ .tomorrow-red, pre .variable, pre .attribute, pre .tag, pre .regexp, pre .ruby .constant, pre .xml .tag .title, pre .xml .pi, pre .xml .doctype, pre .html .doctype, pre .css .id, pre .css .class, pre .css .pseudo {
10
+ color: #ff9da4;
11
+ }
12
+
13
+ .tomorrow-orange, pre .number, pre .preprocessor, pre .built_in, pre .literal, pre .params, pre .constant {
14
+ color: #ffc58f;
15
+ }
16
+
17
+ .tomorrow-yellow, pre .class, pre .ruby .class .title, pre .css .rules .attribute {
18
+ color: #ffeead;
19
+ }
20
+
21
+ .tomorrow-green, pre .string, pre .value, pre .inheritance, pre .header, pre .ruby .symbol, pre .xml .cdata {
22
+ color: #d1f1a9;
23
+ }
24
+
25
+ .tomorrow-aqua, pre .css .hexcolor {
26
+ color: #99ffff;
27
+ }
28
+
29
+ .tomorrow-blue, pre .function, pre .python .decorator, pre .python .title, pre .ruby .function .title, pre .ruby .title .keyword, pre .perl .sub, pre .javascript .title, pre .coffeescript .title {
30
+ color: #bbdaff;
31
+ }
32
+
33
+ .tomorrow-purple, pre .keyword, pre .javascript .function {
34
+ color: #ebbbff;
35
+ }
36
+
37
+ pre code {
38
+ display: block;
39
+ background: #002451;
40
+ color: white;
41
+ padding: 0.5em;
42
+ }