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,175 @@
1
+ /*
2
+
3
+ Google Code style (c) Aahan Krish <geekpanth3r@gmail.com>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: white; color: black;
10
+ }
11
+
12
+ pre .comment,
13
+ pre .template_comment,
14
+ pre .javadoc,
15
+ pre .comment * {
16
+ color: #800;
17
+ }
18
+
19
+ pre .keyword,
20
+ pre .method,
21
+ pre .list .title,
22
+ pre .clojure .built_in,
23
+ pre .nginx .title,
24
+ pre .tag .title,
25
+ pre .setting .value,
26
+ pre .winutils,
27
+ pre .tex .command,
28
+ pre .http .title,
29
+ pre .request,
30
+ pre .status {
31
+ color: #008;
32
+ }
33
+
34
+ pre .envvar,
35
+ pre .tex .special {
36
+ color: #660;
37
+ }
38
+
39
+ pre .string,
40
+ pre .tag .value,
41
+ pre .cdata,
42
+ pre .filter .argument,
43
+ pre .attr_selector,
44
+ pre .apache .cbracket,
45
+ pre .date,
46
+ pre .regexp {
47
+ color: #080;
48
+ }
49
+
50
+ pre .sub .identifier,
51
+ pre .pi,
52
+ pre .tag,
53
+ pre .tag .keyword,
54
+ pre .decorator,
55
+ pre .ini .title,
56
+ pre .shebang,
57
+ pre .input_number,
58
+ pre .hexcolor,
59
+ pre .rules .value,
60
+ pre .css .value .number,
61
+ pre .literal,
62
+ pre .symbol,
63
+ pre .ruby .symbol .string,
64
+ pre .number,
65
+ pre .css .function,
66
+ pre .clojure .attribute {
67
+ color: #066;
68
+ }
69
+
70
+ pre .class .title,
71
+ pre .haskell .type,
72
+ pre .smalltalk .class,
73
+ pre .javadoctag,
74
+ pre .yardoctag,
75
+ pre .phpdoc,
76
+ pre .typename,
77
+ pre .tag .attribute,
78
+ pre .doctype,
79
+ pre .class .id,
80
+ pre .built_in,
81
+ pre .setting,
82
+ pre .params,
83
+ pre .variable,
84
+ pre .clojure .title {
85
+ color: #606;
86
+ }
87
+
88
+ pre .css .tag,
89
+ pre .rules .property,
90
+ pre .pseudo,
91
+ pre .subst {
92
+ color: #000;
93
+ }
94
+
95
+ pre .css .class, pre .css .id {
96
+ color: #9B703F;
97
+ }
98
+
99
+ pre .value .important {
100
+ color: #ff7700;
101
+ font-weight: bold;
102
+ }
103
+
104
+ pre .rules .keyword {
105
+ color: #C5AF75;
106
+ }
107
+
108
+ pre .annotation,
109
+ pre .apache .sqbracket,
110
+ pre .nginx .built_in {
111
+ color: #9B859D;
112
+ }
113
+
114
+ pre .preprocessor,
115
+ pre .preprocessor * {
116
+ color: #444;
117
+ }
118
+
119
+ pre .tex .formula {
120
+ background-color: #EEE;
121
+ font-style: italic;
122
+ }
123
+
124
+ pre .diff .header,
125
+ pre .chunk {
126
+ color: #808080;
127
+ font-weight: bold;
128
+ }
129
+
130
+ pre .diff .change {
131
+ background-color: #BCCFF9;
132
+ }
133
+
134
+ pre .addition {
135
+ background-color: #BAEEBA;
136
+ }
137
+
138
+ pre .deletion {
139
+ background-color: #FFC8BD;
140
+ }
141
+
142
+ pre .comment .yardoctag {
143
+ font-weight: bold;
144
+ }
145
+ pre {
146
+ counter-reset: lines;
147
+ }
148
+ pre .line {
149
+ counter-increment: lines;
150
+ }
151
+ pre .line::before {
152
+ content: counter(lines); text-align: right;
153
+ display: inline-block; width: 2em;
154
+ padding-right: 0.5em; margin-right: 0.5em;
155
+ color: #eee8d5;
156
+ }
157
+
158
+ pre .line-callout::before {
159
+ content: '\2192'; text-align: right;
160
+ display: inline-block; width: 2em;
161
+ padding-right: 0.5em; margin-right: 0.5em;
162
+ color: #002b36;
163
+ }
164
+
165
+ .lines-callout {
166
+ border-radius: 0.25em;
167
+ padding-top: 0.15em;
168
+ padding-bottom: 0.15em;
169
+ }
170
+
171
+ .lines-callout {
172
+ padding-top: 0.1em;
173
+ padding-bottom: 0.1em;
174
+ background: #EEE;
175
+ }
@@ -0,0 +1,152 @@
1
+ /*
2
+
3
+ Intellij Idea-like styling (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ color: #000;
10
+ background: #fff;
11
+ }
12
+
13
+ pre .subst,
14
+ pre .title {
15
+ font-weight: normal;
16
+ color: #000;
17
+ }
18
+
19
+ pre .comment,
20
+ pre .template_comment,
21
+ pre .javadoc,
22
+ pre .diff .header {
23
+ color: #808080;
24
+ font-style: italic;
25
+ }
26
+
27
+ pre .annotation,
28
+ pre .decorator,
29
+ pre .preprocessor,
30
+ pre .doctype,
31
+ pre .pi,
32
+ pre .chunk,
33
+ pre .shebang,
34
+ pre .apache .cbracket,
35
+ pre .input_number,
36
+ pre .http .title {
37
+ color: #808000;
38
+ }
39
+
40
+ pre .tag,
41
+ pre .pi {
42
+ background: #efefef;
43
+ }
44
+
45
+ pre .tag .title,
46
+ pre .id,
47
+ pre .attr_selector,
48
+ pre .pseudo,
49
+ pre .literal,
50
+ pre .keyword,
51
+ pre .hexcolor,
52
+ pre .css .function,
53
+ pre .ini .title,
54
+ pre .css .class,
55
+ pre .list .title,
56
+ pre .clojure .title,
57
+ pre .nginx .title,
58
+ pre .tex .command,
59
+ pre .request,
60
+ pre .status {
61
+ font-weight: bold;
62
+ color: #000080;
63
+ }
64
+
65
+ pre .attribute,
66
+ pre .rules .keyword,
67
+ pre .number,
68
+ pre .date,
69
+ pre .regexp,
70
+ pre .tex .special {
71
+ font-weight: bold;
72
+ color: #0000ff;
73
+ }
74
+
75
+ pre .number,
76
+ pre .regexp {
77
+ font-weight: normal;
78
+ }
79
+
80
+ pre .string,
81
+ pre .value,
82
+ pre .filter .argument,
83
+ pre .css .function .params,
84
+ pre .apache .tag {
85
+ color: #008000;
86
+ font-weight: bold;
87
+ }
88
+
89
+ pre .symbol,
90
+ pre .ruby .symbol .string,
91
+ pre .char,
92
+ pre .tex .formula {
93
+ color: #000;
94
+ background: #d0eded;
95
+ font-style: italic;
96
+ }
97
+
98
+ pre .phpdoc,
99
+ pre .yardoctag,
100
+ pre .javadoctag {
101
+ text-decoration: underline;
102
+ }
103
+
104
+ pre .variable,
105
+ pre .envvar,
106
+ pre .apache .sqbracket,
107
+ pre .nginx .built_in {
108
+ color: #660e7a;
109
+ }
110
+
111
+ pre .addition {
112
+ background: #baeeba;
113
+ }
114
+
115
+ pre .deletion {
116
+ background: #ffc8bd;
117
+ }
118
+
119
+ pre .diff .change {
120
+ background: #bccff9;
121
+ }
122
+ pre {
123
+ counter-reset: lines;
124
+ }
125
+ pre .line {
126
+ counter-increment: lines;
127
+ }
128
+ pre .line::before {
129
+ content: counter(lines); text-align: right;
130
+ display: inline-block; width: 2em;
131
+ padding-right: 0.5em; margin-right: 0.5em;
132
+ color: #eee8d5;
133
+ }
134
+
135
+ pre .line-callout::before {
136
+ content: '\2192'; text-align: right;
137
+ display: inline-block; width: 2em;
138
+ padding-right: 0.5em; margin-right: 0.5em;
139
+ color: #002b36;
140
+ }
141
+
142
+ .lines-callout {
143
+ border-radius: 0.25em;
144
+ padding-top: 0.15em;
145
+ padding-bottom: 0.15em;
146
+ }
147
+
148
+ .lines-callout {
149
+ padding-top: 0.1em;
150
+ padding-bottom: 0.1em;
151
+ background: #d0eded;
152
+ }
@@ -0,0 +1,129 @@
1
+ /*
2
+ IR_Black style (c) Vasily Mikhailitchenko <vaskas@programica.ru>
3
+ */
4
+
5
+ pre code {
6
+ display: block; padding: 0.5em;
7
+ background: #000; color: #f8f8f8;
8
+ }
9
+
10
+ pre .shebang,
11
+ pre .comment,
12
+ pre .template_comment,
13
+ pre .javadoc {
14
+ color: #7c7c7c;
15
+ }
16
+
17
+ pre .keyword,
18
+ pre .tag,
19
+ pre .tex .command,
20
+ pre .request,
21
+ pre .status,
22
+ pre .clojure .attribute {
23
+ color: #96CBFE;
24
+ }
25
+
26
+ pre .sub .keyword,
27
+ pre .method,
28
+ pre .list .title,
29
+ pre .nginx .title {
30
+ color: #FFFFB6;
31
+ }
32
+
33
+ pre .string,
34
+ pre .tag .value,
35
+ pre .cdata,
36
+ pre .filter .argument,
37
+ pre .attr_selector,
38
+ pre .apache .cbracket,
39
+ pre .date {
40
+ color: #A8FF60;
41
+ }
42
+
43
+ pre .subst {
44
+ color: #DAEFA3;
45
+ }
46
+
47
+ pre .regexp {
48
+ color: #E9C062;
49
+ }
50
+
51
+ pre .title,
52
+ pre .sub .identifier,
53
+ pre .pi,
54
+ pre .decorator,
55
+ pre .tex .special,
56
+ pre .haskell .type,
57
+ pre .constant,
58
+ pre .smalltalk .class,
59
+ pre .javadoctag,
60
+ pre .yardoctag,
61
+ pre .phpdoc,
62
+ pre .nginx .built_in {
63
+ color: #FFFFB6;
64
+ }
65
+
66
+ pre .symbol,
67
+ pre .ruby .symbol .string,
68
+ pre .number,
69
+ pre .variable,
70
+ pre .vbscript,
71
+ pre .literal {
72
+ color: #C6C5FE;
73
+ }
74
+
75
+ pre .css .tag {
76
+ color: #96CBFE;
77
+ }
78
+
79
+ pre .css .rules .property,
80
+ pre .css .id {
81
+ color: #FFFFB6;
82
+ }
83
+
84
+ pre .css .class {
85
+ color: #FFF;
86
+ }
87
+
88
+ pre .hexcolor {
89
+ color: #C6C5FE;
90
+ }
91
+
92
+ pre .number {
93
+ color:#FF73FD;
94
+ }
95
+
96
+ pre .tex .formula {
97
+ opacity: 0.7;
98
+ }
99
+ pre {
100
+ counter-reset: lines;
101
+ }
102
+ pre .line {
103
+ counter-increment: lines;
104
+ }
105
+ pre .line::before {
106
+ content: counter(lines); text-align: right;
107
+ display: inline-block; width: 2em;
108
+ padding-right: 0.5em; margin-right: 0.5em;
109
+ color: #eee8d5;
110
+ }
111
+
112
+ pre .line-callout::before {
113
+ content: '\2192'; text-align: right;
114
+ display: inline-block; width: 2em;
115
+ padding-right: 0.5em; margin-right: 0.5em;
116
+ color: #002b36;
117
+ }
118
+
119
+ .lines-callout {
120
+ border-radius: 0.25em;
121
+ padding-top: 0.15em;
122
+ padding-bottom: 0.15em;
123
+ }
124
+
125
+ .lines-callout {
126
+ padding-top: 0.1em;
127
+ padding-bottom: 0.1em;
128
+ opacity: 0.7;
129
+ }