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,50 @@
1
+ /*
2
+
3
+ Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: white; color: black;
10
+ }
11
+
12
+ pre .string,
13
+ pre .tag .value,
14
+ pre .filter .argument,
15
+ pre .addition,
16
+ pre .change,
17
+ pre .apache .tag,
18
+ pre .apache .cbracket,
19
+ pre .nginx .built_in,
20
+ pre .tex .formula {
21
+ color: #888;
22
+ }
23
+
24
+ pre .comment,
25
+ pre .template_comment,
26
+ pre .shebang,
27
+ pre .doctype,
28
+ pre .pi,
29
+ pre .javadoc,
30
+ pre .deletion,
31
+ pre .apache .sqbracket {
32
+ color: #CCC;
33
+ }
34
+
35
+ pre .keyword,
36
+ pre .tag .title,
37
+ pre .ini .title,
38
+ pre .lisp .title,
39
+ pre .clojure .title,
40
+ pre .http .title,
41
+ pre .nginx .title,
42
+ pre .css .tag,
43
+ pre .winutils,
44
+ pre .flow,
45
+ pre .apache .tag,
46
+ pre .tex .command,
47
+ pre .request,
48
+ pre .status {
49
+ font-weight: bold;
50
+ }
@@ -0,0 +1,102 @@
1
+ /*
2
+
3
+ Brown Paper style from goldblog.com.ua (c) Zaripov Yura <yur4ik7@ukr.net>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background:#b7a68e url(./brown_papersq.png);
10
+ }
11
+
12
+ pre .keyword,
13
+ pre .literal,
14
+ pre .change,
15
+ pre .winutils,
16
+ pre .flow,
17
+ pre .lisp .title,
18
+ pre .clojure .built_in,
19
+ pre .nginx .title,
20
+ pre .tex .special,
21
+ pre .request,
22
+ pre .status {
23
+ color:#005599;
24
+ font-weight:bold;
25
+ }
26
+
27
+ pre code,
28
+ pre .ruby .subst,
29
+ pre .tag .keyword {
30
+ color: #363C69;
31
+ }
32
+
33
+ pre .string,
34
+ pre .title,
35
+ pre .haskell .type,
36
+ pre .tag .value,
37
+ pre .css .rules .value,
38
+ pre .preprocessor,
39
+ pre .ruby .symbol,
40
+ pre .ruby .symbol .string,
41
+ pre .ruby .class .parent,
42
+ pre .built_in,
43
+ pre .sql .aggregate,
44
+ pre .django .template_tag,
45
+ pre .django .variable,
46
+ pre .smalltalk .class,
47
+ pre .javadoc,
48
+ pre .ruby .string,
49
+ pre .django .filter .argument,
50
+ pre .smalltalk .localvars,
51
+ pre .smalltalk .array,
52
+ pre .attr_selector,
53
+ pre .pseudo,
54
+ pre .addition,
55
+ pre .stream,
56
+ pre .envvar,
57
+ pre .apache .tag,
58
+ pre .apache .cbracket,
59
+ pre .tex .number {
60
+ color: #2C009F;
61
+ }
62
+
63
+ pre .comment,
64
+ pre .java .annotation,
65
+ pre .python .decorator,
66
+ pre .template_comment,
67
+ pre .pi,
68
+ pre .doctype,
69
+ pre .deletion,
70
+ pre .shebang,
71
+ pre .apache .sqbracket,
72
+ pre .nginx .built_in,
73
+ pre .tex .formula {
74
+ color: #802022;
75
+ }
76
+
77
+ pre .keyword,
78
+ pre .literal,
79
+ pre .css .id,
80
+ pre .phpdoc,
81
+ pre .title,
82
+ pre .haskell .type,
83
+ pre .vbscript .built_in,
84
+ pre .sql .aggregate,
85
+ pre .rsl .built_in,
86
+ pre .smalltalk .class,
87
+ pre .diff .header,
88
+ pre .chunk,
89
+ pre .winutils,
90
+ pre .bash .variable,
91
+ pre .apache .tag,
92
+ pre .tex .command {
93
+ font-weight: bold;
94
+ }
95
+
96
+ pre .coffeescript .javascript,
97
+ pre .xml .css,
98
+ pre .xml .javascript,
99
+ pre .xml .vbscript,
100
+ pre .tex .formula {
101
+ opacity: 0.8;
102
+ }
Binary file
@@ -0,0 +1,101 @@
1
+ /*
2
+
3
+ Dark style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: #444;
10
+ }
11
+
12
+ pre .keyword,
13
+ pre .literal,
14
+ pre .change,
15
+ pre .winutils,
16
+ pre .flow,
17
+ pre .lisp .title,
18
+ pre .clojure .built_in,
19
+ pre .nginx .title,
20
+ pre .tex .special {
21
+ color: white;
22
+ }
23
+
24
+ pre code,
25
+ pre .ruby .subst {
26
+ color: #DDD;
27
+ }
28
+
29
+ pre .string,
30
+ pre .title,
31
+ pre .haskell .type,
32
+ pre .ini .title,
33
+ pre .tag .value,
34
+ pre .css .rules .value,
35
+ pre .preprocessor,
36
+ pre .ruby .symbol,
37
+ pre .ruby .symbol .string,
38
+ pre .ruby .class .parent,
39
+ pre .built_in,
40
+ pre .sql .aggregate,
41
+ pre .django .template_tag,
42
+ pre .django .variable,
43
+ pre .smalltalk .class,
44
+ pre .javadoc,
45
+ pre .ruby .string,
46
+ pre .django .filter .argument,
47
+ pre .smalltalk .localvars,
48
+ pre .smalltalk .array,
49
+ pre .attr_selector,
50
+ pre .pseudo,
51
+ pre .addition,
52
+ pre .stream,
53
+ pre .envvar,
54
+ pre .apache .tag,
55
+ pre .apache .cbracket,
56
+ pre .tex .command,
57
+ pre .input_number {
58
+ color: #D88;
59
+ }
60
+
61
+ pre .comment,
62
+ pre .java .annotation,
63
+ pre .python .decorator,
64
+ pre .template_comment,
65
+ pre .pi,
66
+ pre .doctype,
67
+ pre .deletion,
68
+ pre .shebang,
69
+ pre .apache .sqbracket,
70
+ pre .tex .formula {
71
+ color: #777;
72
+ }
73
+
74
+ pre .keyword,
75
+ pre .literal,
76
+ pre .title,
77
+ pre .css .id,
78
+ pre .phpdoc,
79
+ pre .haskell .type,
80
+ pre .vbscript .built_in,
81
+ pre .sql .aggregate,
82
+ pre .rsl .built_in,
83
+ pre .smalltalk .class,
84
+ pre .diff .header,
85
+ pre .chunk,
86
+ pre .winutils,
87
+ pre .bash .variable,
88
+ pre .apache .tag,
89
+ pre .tex .special,
90
+ pre .request,
91
+ pre .status {
92
+ font-weight: bold;
93
+ }
94
+
95
+ pre .coffeescript .javascript,
96
+ pre .xml .css,
97
+ pre .xml .javascript,
98
+ pre .xml .vbscript,
99
+ pre .tex .formula {
100
+ opacity: 0.5;
101
+ }
@@ -0,0 +1,132 @@
1
+ /*
2
+
3
+ Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: #F0F0F0;
10
+ }
11
+
12
+ pre code,
13
+ pre .ruby .subst,
14
+ pre .tag .title,
15
+ pre .lisp .title,
16
+ pre .clojure .built_in,
17
+ pre .nginx .title {
18
+ color: black;
19
+ }
20
+
21
+ pre .string,
22
+ pre .title,
23
+ pre .constant,
24
+ pre .parent,
25
+ pre .tag .value,
26
+ pre .rules .value,
27
+ pre .rules .value .number,
28
+ pre .preprocessor,
29
+ pre .ruby .symbol,
30
+ pre .ruby .symbol .string,
31
+ pre .aggregate,
32
+ pre .template_tag,
33
+ pre .django .variable,
34
+ pre .smalltalk .class,
35
+ pre .addition,
36
+ pre .flow,
37
+ pre .stream,
38
+ pre .bash .variable,
39
+ pre .apache .tag,
40
+ pre .apache .cbracket,
41
+ pre .tex .command,
42
+ pre .tex .special,
43
+ pre .erlang_repl .function_or_atom,
44
+ pre .markdown .header {
45
+ color: #800;
46
+ }
47
+
48
+ pre .comment,
49
+ pre .annotation,
50
+ pre .template_comment,
51
+ pre .diff .header,
52
+ pre .chunk,
53
+ pre .markdown .blockquote {
54
+ color: #888;
55
+ }
56
+
57
+ pre .number,
58
+ pre .date,
59
+ pre .regexp,
60
+ pre .literal,
61
+ pre .smalltalk .symbol,
62
+ pre .smalltalk .char,
63
+ pre .go .constant,
64
+ pre .change,
65
+ pre .markdown .bullet,
66
+ pre .markdown .link_url {
67
+ color: #080;
68
+ }
69
+
70
+ pre .label,
71
+ pre .javadoc,
72
+ pre .ruby .string,
73
+ pre .decorator,
74
+ pre .filter .argument,
75
+ pre .localvars,
76
+ pre .array,
77
+ pre .attr_selector,
78
+ pre .important,
79
+ pre .pseudo,
80
+ pre .pi,
81
+ pre .doctype,
82
+ pre .deletion,
83
+ pre .envvar,
84
+ pre .shebang,
85
+ pre .apache .sqbracket,
86
+ pre .nginx .built_in,
87
+ pre .tex .formula,
88
+ pre .erlang_repl .reserved,
89
+ pre .input_number,
90
+ pre .markdown .link_label,
91
+ pre .vhdl .attribute,
92
+ pre .clojure .attribute {
93
+ color: #88F
94
+ }
95
+
96
+ pre .keyword,
97
+ pre .id,
98
+ pre .phpdoc,
99
+ pre .title,
100
+ pre .built_in,
101
+ pre .aggregate,
102
+ pre .css .tag,
103
+ pre .javadoctag,
104
+ pre .phpdoc,
105
+ pre .yardoctag,
106
+ pre .smalltalk .class,
107
+ pre .winutils,
108
+ pre .bash .variable,
109
+ pre .apache .tag,
110
+ pre .go .typename,
111
+ pre .tex .command,
112
+ pre .markdown .strong,
113
+ pre .request,
114
+ pre .status {
115
+ font-weight: bold;
116
+ }
117
+
118
+ pre .markdown .emphasis {
119
+ font-style: italic;
120
+ }
121
+
122
+ pre .nginx .built_in {
123
+ font-weight: normal;
124
+ }
125
+
126
+ pre .coffeescript .javascript,
127
+ pre .xml .css,
128
+ pre .xml .javascript,
129
+ pre .xml .vbscript,
130
+ pre .tex .formula {
131
+ opacity: 0.5;
132
+ }
@@ -0,0 +1,111 @@
1
+ /*
2
+
3
+ FAR Style (c) MajestiC <majestic2k@gmail.com>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: #000080;
10
+ }
11
+
12
+ pre code,
13
+ .ruby .subst {
14
+ color: #0FF;
15
+ }
16
+
17
+ pre .string,
18
+ pre .ruby .string,
19
+ pre .haskell .type,
20
+ pre .tag .value,
21
+ pre .css .rules .value,
22
+ pre .css .rules .value .number,
23
+ pre .preprocessor,
24
+ pre .ruby .symbol,
25
+ pre .ruby .symbol .string,
26
+ pre .built_in,
27
+ pre .sql .aggregate,
28
+ pre .django .template_tag,
29
+ pre .django .variable,
30
+ pre .smalltalk .class,
31
+ pre .addition,
32
+ pre .apache .tag,
33
+ pre .apache .cbracket,
34
+ pre .tex .command,
35
+ pre .clojure .title {
36
+ color: #FF0;
37
+ }
38
+
39
+ pre .keyword,
40
+ pre .css .id,
41
+ pre .title,
42
+ pre .haskell .type,
43
+ pre .vbscript .built_in,
44
+ pre .sql .aggregate,
45
+ pre .rsl .built_in,
46
+ pre .smalltalk .class,
47
+ pre .xml .tag .title,
48
+ pre .winutils,
49
+ pre .flow,
50
+ pre .change,
51
+ pre .envvar,
52
+ pre .bash .variable,
53
+ pre .tex .special,
54
+ pre .clojure .built_in {
55
+ color: #FFF;
56
+ }
57
+
58
+ pre .comment,
59
+ pre .phpdoc,
60
+ pre .javadoc,
61
+ pre .java .annotation,
62
+ pre .template_comment,
63
+ pre .deletion,
64
+ pre .apache .sqbracket,
65
+ pre .tex .formula {
66
+ color: #888;
67
+ }
68
+
69
+ pre .number,
70
+ pre .date,
71
+ pre .regexp,
72
+ pre .literal,
73
+ pre .smalltalk .symbol,
74
+ pre .smalltalk .char,
75
+ pre .clojure .attribute {
76
+ color: #0F0;
77
+ }
78
+
79
+ pre .python .decorator,
80
+ pre .django .filter .argument,
81
+ pre .smalltalk .localvars,
82
+ pre .smalltalk .array,
83
+ pre .attr_selector,
84
+ pre .pseudo,
85
+ pre .xml .pi,
86
+ pre .diff .header,
87
+ pre .chunk,
88
+ pre .shebang,
89
+ pre .nginx .built_in,
90
+ pre .input_number {
91
+ color: #008080;
92
+ }
93
+
94
+ pre .keyword,
95
+ pre .css .id,
96
+ pre .title,
97
+ pre .haskell .type,
98
+ pre .vbscript .built_in,
99
+ pre .sql .aggregate,
100
+ pre .rsl .built_in,
101
+ pre .smalltalk .class,
102
+ pre .winutils,
103
+ pre .flow,
104
+ pre .apache .tag,
105
+ pre .nginx .built_in,
106
+ pre .tex .command,
107
+ pre .tex .special,
108
+ pre .request,
109
+ pre .status {
110
+ font-weight: bold;
111
+ }