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,119 @@
1
+ /*
2
+ Description: Magula style for highligh.js
3
+ Author: Ruslan Keba <rukeba@gmail.com>
4
+ Website: http://rukeba.com/
5
+ Version: 1.0
6
+ Date: 2009-01-03
7
+ Music: Aphex Twin / Xtal
8
+ */
9
+
10
+ pre code {
11
+ display: block; padding: 0.5em;
12
+ background-color: #f4f4f4;
13
+ }
14
+
15
+ pre code,
16
+ pre .ruby .subst,
17
+ pre .lisp .title,
18
+ pre .clojure .built_in {
19
+ color: black;
20
+ }
21
+
22
+ pre .string,
23
+ pre .title,
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 .cbracket {
40
+ color: #050;
41
+ }
42
+
43
+ pre .comment,
44
+ pre .annotation,
45
+ pre .template_comment,
46
+ pre .diff .header,
47
+ pre .chunk {
48
+ color: #777;
49
+ }
50
+
51
+ pre .number,
52
+ pre .date,
53
+ pre .regexp,
54
+ pre .literal,
55
+ pre .smalltalk .symbol,
56
+ pre .smalltalk .char,
57
+ pre .change,
58
+ pre .tex .special {
59
+ color: #800;
60
+ }
61
+
62
+ pre .label,
63
+ pre .javadoc,
64
+ pre .ruby .string,
65
+ pre .decorator,
66
+ pre .filter .argument,
67
+ pre .localvars,
68
+ pre .array,
69
+ pre .attr_selector,
70
+ pre .pseudo,
71
+ pre .pi,
72
+ pre .doctype,
73
+ pre .deletion,
74
+ pre .envvar,
75
+ pre .shebang,
76
+ pre .apache .sqbracket,
77
+ pre .nginx .built_in,
78
+ pre .tex .formula,
79
+ pre .input_number,
80
+ pre .clojure .attribute {
81
+ color: #00e;
82
+ }
83
+
84
+ pre .keyword,
85
+ pre .id,
86
+ pre .phpdoc,
87
+ pre .title,
88
+ pre .built_in,
89
+ pre .aggregate,
90
+ pre .smalltalk .class,
91
+ pre .winutils,
92
+ pre .bash .variable,
93
+ pre .apache .tag,
94
+ pre .xml .tag,
95
+ pre .tex .command,
96
+ pre .request,
97
+ pre .status {
98
+ font-weight: bold;
99
+ color: navy;
100
+ }
101
+
102
+ pre .nginx .built_in {
103
+ font-weight: normal;
104
+ }
105
+
106
+ pre .coffeescript .javascript,
107
+ pre .xml .css,
108
+ pre .xml .javascript,
109
+ pre .xml .vbscript,
110
+ pre .tex .formula {
111
+ opacity: 0.5;
112
+ }
113
+
114
+ /* --- */
115
+ pre .apache .tag {
116
+ font-weight: bold;
117
+ color: blue;
118
+ }
119
+
@@ -0,0 +1,112 @@
1
+ /*
2
+ Monokai style - ported by Luigi Maselli - http://grigio.org
3
+ */
4
+
5
+ pre code {
6
+ display: block; padding: 0.5em;
7
+ background: #272822;
8
+ }
9
+
10
+ pre .tag,
11
+ pre .tag .title,
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: #F92672;
22
+ }
23
+
24
+ pre code {
25
+ color: #DDD;
26
+ }
27
+
28
+ pre code .constant {
29
+ color: #66D9EF;
30
+ }
31
+
32
+ pre .class .title {
33
+ color: white;
34
+ }
35
+
36
+ pre .attribute,
37
+ pre .symbol,
38
+ pre .symbol .string,
39
+ pre .value,
40
+ pre .regexp {
41
+ color: #BF79DB;
42
+ }
43
+
44
+ pre .tag .value,
45
+ pre .string,
46
+ pre .ruby .subst,
47
+ pre .title,
48
+ pre .haskell .type,
49
+ pre .preprocessor,
50
+ pre .ruby .class .parent,
51
+ pre .built_in,
52
+ pre .sql .aggregate,
53
+ pre .django .template_tag,
54
+ pre .django .variable,
55
+ pre .smalltalk .class,
56
+ pre .javadoc,
57
+ pre .django .filter .argument,
58
+ pre .smalltalk .localvars,
59
+ pre .smalltalk .array,
60
+ pre .attr_selector,
61
+ pre .pseudo,
62
+ pre .addition,
63
+ pre .stream,
64
+ pre .envvar,
65
+ pre .apache .tag,
66
+ pre .apache .cbracket,
67
+ pre .tex .command,
68
+ pre .input_number {
69
+ color: #A6E22E;
70
+ }
71
+
72
+ pre .comment,
73
+ pre .java .annotation,
74
+ pre .python .decorator,
75
+ pre .template_comment,
76
+ pre .pi,
77
+ pre .doctype,
78
+ pre .deletion,
79
+ pre .shebang,
80
+ pre .apache .sqbracket,
81
+ pre .tex .formula {
82
+ color: #75715E;
83
+ }
84
+
85
+ pre .keyword,
86
+ pre .literal,
87
+ pre .css .id,
88
+ pre .phpdoc,
89
+ pre .title,
90
+ pre .haskell .type,
91
+ pre .vbscript .built_in,
92
+ pre .sql .aggregate,
93
+ pre .rsl .built_in,
94
+ pre .smalltalk .class,
95
+ pre .diff .header,
96
+ pre .chunk,
97
+ pre .winutils,
98
+ pre .bash .variable,
99
+ pre .apache .tag,
100
+ pre .tex .special,
101
+ pre .request,
102
+ pre .status {
103
+ font-weight: bold;
104
+ }
105
+
106
+ pre .coffeescript .javascript,
107
+ pre .xml .css,
108
+ pre .xml .javascript,
109
+ pre .xml .vbscript,
110
+ pre .tex .formula {
111
+ opacity: 0.5;
112
+ }
@@ -0,0 +1,104 @@
1
+ /*
2
+
3
+ Pojoaque Style by Jason Tate
4
+ http://web-cms-designs.com/ftopict-10-pojoaque-style-for-highlight-js-code-highlighter.html
5
+ Based on Solarized Style from http://ethanschoonover.com/solarized
6
+
7
+ */
8
+
9
+ pre code {
10
+ display: block; padding: 0.5em;
11
+ color: #DCCF8F;
12
+ background: url(./pojoaque.jpg) repeat scroll left top #181914;
13
+ }
14
+
15
+ pre .comment,
16
+ pre .template_comment,
17
+ pre .diff .header,
18
+ pre .doctype,
19
+ pre .lisp .string,
20
+ pre .javadoc {
21
+ color: #586e75;
22
+ font-style: italic;
23
+ }
24
+
25
+ pre .keyword,
26
+ pre .css .rule .keyword,
27
+ pre .winutils,
28
+ pre .javascript .title,
29
+ pre .method,
30
+ pre .addition,
31
+ pre .css .tag,
32
+ pre .clojure .title,
33
+ pre .nginx .title {
34
+ color: #B64926;
35
+ }
36
+
37
+ pre .number,
38
+ pre .command,
39
+ pre .string,
40
+ pre .tag .value,
41
+ pre .phpdoc,
42
+ pre .tex .formula,
43
+ pre .regexp,
44
+ pre .hexcolor {
45
+ color: #468966;
46
+ }
47
+
48
+ pre .title,
49
+ pre .localvars,
50
+ pre .function .title,
51
+ pre .chunk,
52
+ pre .decorator,
53
+ pre .built_in,
54
+ pre .lisp .title,
55
+ pre .clojure .built_in,
56
+ pre .identifier,
57
+ pre .id {
58
+ color: #FFB03B;
59
+ }
60
+
61
+ pre .attribute,
62
+ pre .variable,
63
+ pre .lisp .body,
64
+ pre .smalltalk .number,
65
+ pre .constant,
66
+ pre .class .title,
67
+ pre .parent,
68
+ pre .haskell .type {
69
+ color: #b58900;
70
+ }
71
+
72
+ pre .css .attribute {
73
+ color: #b89859;
74
+ }
75
+
76
+ pre .css .number,pre .css .hexcolor{
77
+ color: #DCCF8F;
78
+ }
79
+
80
+ pre .css .class {
81
+ color: #d3a60c;
82
+ }
83
+
84
+ pre .preprocessor,
85
+ pre .pi,
86
+ pre .shebang,
87
+ pre .symbol,
88
+ pre .symbol .string,
89
+ pre .diff .change,
90
+ pre .special,
91
+ pre .attr_selector,
92
+ pre .important,
93
+ pre .subst,
94
+ pre .cdata {
95
+ color: #cb4b16;
96
+ }
97
+
98
+ pre .deletion {
99
+ color: #dc322f;
100
+ }
101
+
102
+ pre .tex .formula {
103
+ background: #073642;
104
+ }
Binary file
@@ -0,0 +1,114 @@
1
+ /*
2
+
3
+ Style with support for rainbow parens
4
+
5
+ */
6
+
7
+ pre ::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
8
+ pre ::selection { background:#FF5E99; color:#fff; text-shadow: none; }
9
+
10
+ pre code {
11
+ display: block; padding: 0.5em;
12
+ background: #474949; color: #D1D9E1;
13
+ }
14
+
15
+
16
+ pre .body,
17
+ pre .collection {
18
+ color: #D1D9E1;
19
+ }
20
+
21
+ pre .comment,
22
+ pre .template_comment,
23
+ pre .diff .header,
24
+ pre .doctype,
25
+ pre .lisp .string,
26
+ pre .javadoc {
27
+ color: #969896;
28
+ font-style: italic;
29
+ }
30
+
31
+ pre .keyword,
32
+ pre .clojure .attribute,
33
+ pre .winutils,
34
+ pre .javascript .title,
35
+ pre .addition,
36
+ pre .css .tag {
37
+ color: #cc99cc;
38
+ }
39
+
40
+ pre .number { color: #f99157; }
41
+
42
+ pre .command,
43
+ pre .string,
44
+ pre .tag .value,
45
+ pre .phpdoc,
46
+ pre .tex .formula,
47
+ pre .regexp,
48
+ pre .hexcolor {
49
+ color: #8abeb7;
50
+ }
51
+
52
+ pre .title,
53
+ pre .localvars,
54
+ pre .function .title,
55
+ pre .chunk,
56
+ pre .decorator,
57
+ pre .built_in,
58
+ pre .lisp .title,
59
+ pre .identifier
60
+ {
61
+ color: #b5bd68;
62
+ }
63
+
64
+ pre .class .keyword
65
+ {
66
+ color: #f2777a;
67
+ }
68
+
69
+ pre .variable,
70
+ pre .lisp .body,
71
+ pre .smalltalk .number,
72
+ pre .constant,
73
+ pre .class .title,
74
+ pre .parent,
75
+ pre .haskell .label,
76
+ pre .id,
77
+ pre .lisp .title,
78
+ pre .clojure .title .built_in {
79
+ color: #ffcc66;
80
+ }
81
+
82
+ pre .tag .title,
83
+ pre .rules .property,
84
+ pre .django .tag .keyword,
85
+ pre .clojure .title .built_in {
86
+ font-weight: bold;
87
+ }
88
+
89
+ pre .attribute,
90
+ pre .clojure .title {
91
+ color: #81a2be;
92
+ }
93
+
94
+ pre .preprocessor,
95
+ pre .pi,
96
+ pre .shebang,
97
+ pre .symbol,
98
+ pre .symbol .string,
99
+ pre .diff .change,
100
+ pre .special,
101
+ pre .attr_selector,
102
+ pre .important,
103
+ pre .subst,
104
+ pre .cdata {
105
+ color: #f99157;
106
+ }
107
+
108
+ pre .deletion {
109
+ color: #dc322f;
110
+ }
111
+
112
+ pre .tex .formula {
113
+ background: #eee8d5;
114
+ }