dancroak-slidedown 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,115 @@
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ }
5
+
6
+ body {
7
+ font-family: Helvetica;
8
+ font-size: 38px;
9
+ color: #111;
10
+ background: #fff;
11
+ }
12
+
13
+ pre {
14
+ font-family: Bitstream Vera Sans Mono;
15
+ font-size: 1em;
16
+ }
17
+
18
+ blockquote {
19
+ padding: 0 0 0 1em;
20
+ font-size: 1.4em;
21
+ font-family: Georgia, serif;
22
+ font-style: italic;
23
+ }
24
+
25
+ ul {
26
+ padding: 0 0 0 1em;
27
+ }
28
+
29
+ #slides {
30
+ overflow: hidden;
31
+ text-align: left;
32
+ }
33
+
34
+ #track {
35
+ width: 1000000px;
36
+ overflow: hidden;
37
+ }
38
+
39
+ #track > div {
40
+ float: left;
41
+ overflow: hidden;
42
+ }
43
+
44
+ #track > div .content {
45
+ margin: 0 0.6em;
46
+ }
47
+
48
+ #track > div .content h1 {
49
+ margin-bottom: 0.1em;
50
+ }
51
+
52
+ #track > div .content h1 strong {
53
+ text-decoration: underline;
54
+ }
55
+
56
+ /* - Ripped shamefully from GitHub - */
57
+ .code .c { color: #999988; font-style: italic } /* Comment */
58
+ .code .err { color: #a61717; background-color: #e3d2d2 } /* Error */
59
+ .code .k { font-weight: bold } /* Keyword */
60
+ .code .o { font-weight: bold } /* Operator */
61
+ .code .cm { color: #999988; font-style: italic } /* Comment.Multiline */
62
+ .code .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
63
+ .code .c1 { color: #999988; font-style: italic } /* Comment.Single */
64
+ .code .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
65
+ .code .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
66
+ .code .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
67
+ .code .ge { font-style: italic } /* Generic.Emph */
68
+ .code .gr { color: #aa0000 } /* Generic.Error */
69
+ .code .gh { color: #999999 } /* Generic.Heading */
70
+ .code .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
71
+ .code .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
72
+ .code .go { color: #888888 } /* Generic.Output */
73
+ .code .gp { color: #555555 } /* Generic.Prompt */
74
+ .code .gs { font-weight: bold } /* Generic.Strong */
75
+ .code .gu { color: #aaaaaa } /* Generic.Subheading */
76
+ .code .gt { color: #aa0000 } /* Generic.Traceback */
77
+ .code .kc { font-weight: bold } /* Keyword.Constant */
78
+ .code .kd { font-weight: bold } /* Keyword.Declaration */
79
+ .code .kp { font-weight: bold } /* Keyword.Pseudo */
80
+ .code .kr { font-weight: bold } /* Keyword.Reserved */
81
+ .code .kt { color: #445588; font-weight: bold } /* Keyword.Type */
82
+ .code .m { color: #009999 } /* Literal.Number */
83
+ .code .s { color: #d14 } /* Literal.String */
84
+ .code .na { color: #008080 } /* Name.Attribute */
85
+ .code .nb { color: #0086B3 } /* Name.Builtin */
86
+ .code .nc { color: #445588; font-weight: bold } /* Name.Class */
87
+ .code .no { color: #008080 } /* Name.Constant */
88
+ .code .ni { color: #800080 } /* Name.Entity */
89
+ .code .ne { color: #990000; font-weight: bold } /* Name.Exception */
90
+ .code .nf { color: #990000; font-weight: bold } /* Name.Function */
91
+ .code .nn { color: #555555 } /* Name.Namespace */
92
+ .code .nt { color: #000080 } /* Name.Tag */
93
+ .code .nv { color: #008080 } /* Name.Variable */
94
+ .code .ow { font-weight: bold } /* Operator.Word */
95
+ .code .w { color: #bbbbbb } /* Text.Whitespace */
96
+ .code .mf { color: #009999 } /* Literal.Number.Float */
97
+ .code .mh { color: #009999 } /* Literal.Number.Hex */
98
+ .code .mi { color: #009999 } /* Literal.Number.Integer */
99
+ .code .mo { color: #009999 } /* Literal.Number.Oct */
100
+ .code .sb { color: #d14 } /* Literal.String.Backtick */
101
+ .code .sc { color: #d14 } /* Literal.String.Char */
102
+ .code .sd { color: #d14 } /* Literal.String.Doc */
103
+ .code .s2 { color: #d14 } /* Literal.String.Double */
104
+ .code .se { color: #d14 } /* Literal.String.Escape */
105
+ .code .sh { color: #d14 } /* Literal.String.Heredoc */
106
+ .code .si { color: #d14 } /* Literal.String.Interpol */
107
+ .code .sx { color: #d14 } /* Literal.String.Other */
108
+ .code .sr { color: #009926 } /* Literal.String.Regex */
109
+ .code .s1 { color: #d14 } /* Literal.String.Single */
110
+ .code .ss { color: #990073 } /* Literal.String.Symbol */
111
+ .code .bp { color: #999999 } /* Name.Builtin.Pseudo */
112
+ .code .vc { color: #008080 } /* Name.Variable.Class */
113
+ .code .vg { color: #008080 } /* Name.Variable.Global */
114
+ .code .vi { color: #008080 } /* Name.Variable.Instance */
115
+ .code .il { color: #009999 } /* Literal.Number.Integer.Long */
data/vendor/albino.rb ADDED
@@ -0,0 +1,80 @@
1
+ ##
2
+ # Wrapper for the Pygments command line tool, pygmentize.
3
+ #
4
+ # Pygments: http://pygments.org/
5
+ #
6
+ # Assumes pygmentize is in the path. If not, set its location
7
+ # with Albino.bin = '/path/to/pygmentize'
8
+ #
9
+ # Use like so:
10
+ #
11
+ # @syntaxer = Albino.new('/some/file.rb', :ruby)
12
+ # puts @syntaxer.colorize
13
+ #
14
+ # This'll print out an HTMLized, Ruby-highlighted version
15
+ # of '/some/file.rb'.
16
+ #
17
+ # To use another formatter, pass it as the third argument:
18
+ #
19
+ # @syntaxer = Albino.new('/some/file.rb', :ruby, :bbcode)
20
+ # puts @syntaxer.colorize
21
+ #
22
+ # You can also use the #colorize class method:
23
+ #
24
+ # puts Albino.colorize('/some/file.rb', :ruby)
25
+ #
26
+ # Another also: you get a #to_s, for somewhat nicer use in Rails views.
27
+ #
28
+ # ... helper file ...
29
+ # def highlight(text)
30
+ # Albino.new(text, :ruby)
31
+ # end
32
+ #
33
+ # ... view file ...
34
+ # <%= highlight text %>
35
+ #
36
+ # The default lexer is 'text'. You need to specify a lexer yourself;
37
+ # because we are using STDIN there is no auto-detect.
38
+ #
39
+ # To see all lexers and formatters available, run `pygmentize -L`.
40
+ #
41
+ # Chris Wanstrath // chris@ozmm.org
42
+ # GitHub // http://github.com
43
+ #
44
+ require 'open4'
45
+
46
+ class Albino
47
+ @@bin = '/usr/local/bin/pygmentize'
48
+
49
+ def self.bin=(path)
50
+ @@bin = path
51
+ end
52
+
53
+ def self.colorize(*args)
54
+ new(*args).colorize
55
+ end
56
+
57
+ def initialize(target, lexer = :ruby, format = :html)
58
+ @target = File.exists?(target) ? File.read(target) : target rescue target
59
+ @options = { :l => lexer, :f => format }
60
+ end
61
+
62
+ def execute(command)
63
+ pid, stdin, stdout, stderr = Open4.popen4(command)
64
+ stdin.puts @target
65
+ stdin.close
66
+ stdout.read.strip
67
+ end
68
+
69
+ def colorize(options = {})
70
+ execute @@bin + convert_options(options)
71
+ end
72
+ alias_method :to_s, :colorize
73
+
74
+ def convert_options(options = {})
75
+ @options.merge(options).inject('') do |string, (flag, value)|
76
+ string + " -#{flag} #{value}" if value
77
+ string
78
+ end
79
+ end
80
+ end
metadata ADDED
@@ -0,0 +1,87 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dancroak-slidedown
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.7
5
+ platform: ruby
6
+ authors:
7
+ - Pat Nakajima
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-03-09 21:00:00 -07:00
13
+ default_executable: slidedown
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rdiscount
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: nokogiri
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ description:
36
+ email:
37
+ executables:
38
+ - slidedown
39
+ extensions: []
40
+
41
+ extra_rdoc_files: []
42
+
43
+ files:
44
+ - README.md
45
+ - bin/slidedown
46
+ - lib/slide.rb
47
+ - lib/slidedown.rb
48
+ - templates/default.erb
49
+ - templates/import.erb
50
+ - templates/javascripts
51
+ - templates/javascripts/jquery-1.3.2.js
52
+ - templates/javascripts/jquery.easing.js
53
+ - templates/javascripts/jquery.hash-changed.js
54
+ - templates/javascripts/slides.js
55
+ - templates/stylesheets
56
+ - templates/stylesheets/screen.css
57
+ - templates/stylesheets/slides.css
58
+ - vendor/albino.rb
59
+ has_rdoc: true
60
+ homepage:
61
+ post_install_message:
62
+ rdoc_options: []
63
+
64
+ require_paths:
65
+ - lib
66
+ - vendor
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: "0"
72
+ version:
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: "0"
78
+ version:
79
+ requirements: []
80
+
81
+ rubyforge_project:
82
+ rubygems_version: 1.2.0
83
+ signing_key:
84
+ specification_version: 2
85
+ summary: Create slides with Markdown
86
+ test_files: []
87
+