keydown 0.7.0 → 0.7.1
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.
- data/.rvmrc +1 -1
- data/Gemfile.lock +2 -2
- data/README.md +4 -4
- data/lib/keydown/lib/slide.rb +1 -1
- data/lib/version.rb +1 -1
- data/spec/tasks/generate_spec.rb +1 -1
- data/spec/tasks/slides_spec.rb +7 -7
- data/templates/generate/js/rocks.js +4 -0
- metadata +76 -123
data/.rvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
rvm use
|
|
1
|
+
rvm use ruby-1.9.2-p180@keydown --create
|
data/Gemfile.lock
CHANGED
|
@@ -2,6 +2,7 @@ PATH
|
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
4
|
keydown (0.7.0)
|
|
5
|
+
coderay (~> 0.9.8)
|
|
5
6
|
rdiscount (>= 1.6.8)
|
|
6
7
|
thor (>= 0.14.0)
|
|
7
8
|
|
|
@@ -9,6 +10,7 @@ GEM
|
|
|
9
10
|
remote: http://rubygems.org/
|
|
10
11
|
specs:
|
|
11
12
|
chalofa_ruby-progressbar (0.0.9.1)
|
|
13
|
+
coderay (0.9.8)
|
|
12
14
|
diff-lcs (1.1.2)
|
|
13
15
|
fuubar (0.0.4)
|
|
14
16
|
chalofa_ruby-progressbar (~> 0.0.9)
|
|
@@ -36,6 +38,4 @@ DEPENDENCIES
|
|
|
36
38
|
gem-release
|
|
37
39
|
keydown!
|
|
38
40
|
nokogiri
|
|
39
|
-
rdiscount (>= 1.6.8)
|
|
40
41
|
rspec (>= 2.5.0)
|
|
41
|
-
thor (>= 0.14.0)
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# KeyDown
|
|
2
2
|
|
|
3
|
-
KeyDown is another 'Presentation System in a single HTML page' inspired by [Showoff](http://github.com/
|
|
3
|
+
KeyDown is another 'Presentation System in a single HTML page' inspired by [Showoff](http://github.com/drnic/showoff), [Slidedown](http://github.com/nakajima/slidedown),
|
|
4
4
|
[HTML5 Rocks](http://studio.html5rocks.com/#Deck), with a little [Presentation Zen](http://amzn.to/8X55H2) thrown in.
|
|
5
5
|
|
|
6
6
|
## Usage
|
|
@@ -115,7 +115,7 @@ If you wish to have attribution text, an icon (currently Flickr and Creative Com
|
|
|
115
115
|
|
|
116
116
|
### Syntax Highlighting
|
|
117
117
|
|
|
118
|
-
Code syntax highlighting is done via [Pygments](), which must be installed locally to work. All Pygments lexers are supported.
|
|
118
|
+
Code syntax highlighting is done via [Pygments](http://pygments.org), which must be installed locally to work. All Pygments lexers are supported.
|
|
119
119
|
|
|
120
120
|
Mark your code by block escaping via `@@@` or ` ``` `
|
|
121
121
|
|
|
@@ -154,7 +154,7 @@ All JavaScript files in the `js` directory will be linked in your presentation H
|
|
|
154
154
|
### For Use
|
|
155
155
|
|
|
156
156
|
* Ruby and Rubygems
|
|
157
|
-
* [Pygments]() is required for code syntax highlighting
|
|
157
|
+
* [Pygments](http://pygments.org) is required for code syntax highlighting
|
|
158
158
|
* Other dependent gems will be installed
|
|
159
159
|
|
|
160
160
|
### For Development
|
|
@@ -175,7 +175,7 @@ All JavaScript files in the `js` directory will be linked in your presentation H
|
|
|
175
175
|
Thanks to:
|
|
176
176
|
|
|
177
177
|
* HTML5 Rocks guys for a great presentation template
|
|
178
|
-
* [@nakajima](http://twitter.com/nakajima) & [Slidedown]() for some parsing
|
|
178
|
+
* [@nakajima](http://twitter.com/nakajima) & [Slidedown](http://github.com/nakajima/slidedown) for some parsing
|
|
179
179
|
* The various Github guys for Albino, Gollum, etc.
|
|
180
180
|
|
|
181
181
|
## Copyright
|
data/lib/keydown/lib/slide.rb
CHANGED
|
@@ -114,7 +114,7 @@ module Keydown
|
|
|
114
114
|
@codemap.each do |id, code_block|
|
|
115
115
|
lang = code_block[:lang]
|
|
116
116
|
code = code_block[:code]
|
|
117
|
-
if code.all? { |line| line =~ /\A\r?\n\Z/ || line =~ /^( |\t)/ }
|
|
117
|
+
if code.lines.all? { |line| line =~ /\A\r?\n\Z/ || line =~ /^( |\t)/ }
|
|
118
118
|
code.gsub!(/^( |\t)/m, '')
|
|
119
119
|
end
|
|
120
120
|
|
data/lib/version.rb
CHANGED
data/spec/tasks/generate_spec.rb
CHANGED
data/spec/tasks/slides_spec.rb
CHANGED
|
@@ -38,7 +38,7 @@ describe Keydown, "`slides`" do
|
|
|
38
38
|
before(:each) do
|
|
39
39
|
Dir.chdir @tmp_dir do
|
|
40
40
|
@std_out = capture_output do
|
|
41
|
-
@thor.invoke Keydown::Tasks, "slides", "with_title.md"
|
|
41
|
+
@thor.invoke Keydown::Tasks, ["slides", "with_title.md"]
|
|
42
42
|
end
|
|
43
43
|
end
|
|
44
44
|
end
|
|
@@ -63,7 +63,7 @@ describe Keydown, "`slides`" do
|
|
|
63
63
|
before(:each) do
|
|
64
64
|
capture_output do
|
|
65
65
|
Dir.chdir @tmp_dir do
|
|
66
|
-
@thor.invoke Keydown::Tasks, "slides", "with_title.md"
|
|
66
|
+
@thor.invoke Keydown::Tasks, ["slides", "with_title.md"]
|
|
67
67
|
@file = File.new('with_title.html')
|
|
68
68
|
@doc = Nokogiri(@file)
|
|
69
69
|
end
|
|
@@ -92,7 +92,7 @@ describe Keydown, "`slides`" do
|
|
|
92
92
|
before(:each) do
|
|
93
93
|
capture_output do
|
|
94
94
|
Dir.chdir @tmp_dir do
|
|
95
|
-
@thor.invoke Keydown::Tasks, "slides", "with_title"
|
|
95
|
+
@thor.invoke Keydown::Tasks, ["slides", "with_title"]
|
|
96
96
|
@file = File.new('with_title.html')
|
|
97
97
|
@doc = Nokogiri(@file)
|
|
98
98
|
end
|
|
@@ -109,14 +109,14 @@ describe Keydown, "`slides`" do
|
|
|
109
109
|
capture_output do
|
|
110
110
|
|
|
111
111
|
Dir.chdir @tmp_dir do
|
|
112
|
-
@thor.invoke Keydown::Tasks, "generate", "test"
|
|
112
|
+
@thor.invoke Keydown::Tasks, ["generate", "test"]
|
|
113
113
|
|
|
114
114
|
Dir.chdir "test" do
|
|
115
115
|
system "cp #{Keydown::Tasks.source_root}/spec/fixtures/with_title.md #{@tmp_dir}/test/with_title.md"
|
|
116
116
|
system "cp #{Keydown::Tasks.source_root}/spec/fixtures/custom.css #{@tmp_dir}/test/css/custom.css"
|
|
117
117
|
system "cp #{Keydown::Tasks.source_root}/spec/fixtures/custom.js #{@tmp_dir}/test/js/custom.js"
|
|
118
118
|
|
|
119
|
-
@thor.invoke Keydown::Tasks, "slides", "with_title.md"
|
|
119
|
+
@thor.invoke Keydown::Tasks, ["slides", "with_title.md"]
|
|
120
120
|
|
|
121
121
|
@file = File.new('with_title.html')
|
|
122
122
|
@doc = Nokogiri(@file)
|
|
@@ -143,12 +143,12 @@ describe Keydown, "`slides`" do
|
|
|
143
143
|
capture_output do
|
|
144
144
|
|
|
145
145
|
Dir.chdir @tmp_dir do
|
|
146
|
-
@thor.invoke Keydown::Tasks, "generate", "test"
|
|
146
|
+
@thor.invoke Keydown::Tasks, ["generate", "test"]
|
|
147
147
|
|
|
148
148
|
Dir.chdir "test" do
|
|
149
149
|
system "cp #{Keydown::Tasks.source_root}/spec/fixtures/with_backgrounds.md #{@tmp_dir}/test/with_backgrounds.md"
|
|
150
150
|
|
|
151
|
-
@thor.invoke Keydown::Tasks, "slides", "with_backgrounds.md"
|
|
151
|
+
@thor.invoke Keydown::Tasks, ["slides", "with_backgrounds.md"]
|
|
152
152
|
|
|
153
153
|
@file = File.new('with_backgrounds.html')
|
|
154
154
|
@doc = Nokogiri(@file)
|
metadata
CHANGED
|
@@ -1,139 +1,102 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: keydown
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
prerelease:
|
|
6
|
-
segments:
|
|
7
|
-
- 0
|
|
8
|
-
- 7
|
|
9
|
-
- 0
|
|
10
|
-
version: 0.7.0
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.7.1
|
|
5
|
+
prerelease:
|
|
11
6
|
platform: ruby
|
|
12
|
-
authors:
|
|
7
|
+
authors:
|
|
13
8
|
- Davis W. Frank
|
|
14
9
|
autorequire:
|
|
15
10
|
bindir: bin
|
|
16
11
|
cert_chain: []
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
dependencies:
|
|
21
|
-
- !ruby/object:Gem::Dependency
|
|
12
|
+
date: 2011-09-24 00:00:00.000000000Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
22
15
|
name: thor
|
|
23
|
-
|
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
|
16
|
+
requirement: &70328094820000 !ruby/object:Gem::Requirement
|
|
25
17
|
none: false
|
|
26
|
-
requirements:
|
|
27
|
-
- -
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
hash: 39
|
|
30
|
-
segments:
|
|
31
|
-
- 0
|
|
32
|
-
- 14
|
|
33
|
-
- 0
|
|
18
|
+
requirements:
|
|
19
|
+
- - ! '>='
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
34
21
|
version: 0.14.0
|
|
35
22
|
type: :runtime
|
|
36
|
-
version_requirements: *id001
|
|
37
|
-
- !ruby/object:Gem::Dependency
|
|
38
|
-
name: rdiscount
|
|
39
23
|
prerelease: false
|
|
40
|
-
|
|
24
|
+
version_requirements: *70328094820000
|
|
25
|
+
- !ruby/object:Gem::Dependency
|
|
26
|
+
name: rdiscount
|
|
27
|
+
requirement: &70328094819500 !ruby/object:Gem::Requirement
|
|
41
28
|
none: false
|
|
42
|
-
requirements:
|
|
43
|
-
- -
|
|
44
|
-
- !ruby/object:Gem::Version
|
|
45
|
-
hash: 31
|
|
46
|
-
segments:
|
|
47
|
-
- 1
|
|
48
|
-
- 6
|
|
49
|
-
- 8
|
|
29
|
+
requirements:
|
|
30
|
+
- - ! '>='
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
50
32
|
version: 1.6.8
|
|
51
33
|
type: :runtime
|
|
52
|
-
version_requirements: *id002
|
|
53
|
-
- !ruby/object:Gem::Dependency
|
|
54
|
-
name: coderay
|
|
55
34
|
prerelease: false
|
|
56
|
-
|
|
35
|
+
version_requirements: *70328094819500
|
|
36
|
+
- !ruby/object:Gem::Dependency
|
|
37
|
+
name: coderay
|
|
38
|
+
requirement: &70328094819040 !ruby/object:Gem::Requirement
|
|
57
39
|
none: false
|
|
58
|
-
requirements:
|
|
40
|
+
requirements:
|
|
59
41
|
- - ~>
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
hash: 43
|
|
62
|
-
segments:
|
|
63
|
-
- 0
|
|
64
|
-
- 9
|
|
65
|
-
- 8
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
66
43
|
version: 0.9.8
|
|
67
44
|
type: :runtime
|
|
68
|
-
version_requirements: *id003
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rspec
|
|
71
45
|
prerelease: false
|
|
72
|
-
|
|
46
|
+
version_requirements: *70328094819040
|
|
47
|
+
- !ruby/object:Gem::Dependency
|
|
48
|
+
name: rspec
|
|
49
|
+
requirement: &70328094818580 !ruby/object:Gem::Requirement
|
|
73
50
|
none: false
|
|
74
|
-
requirements:
|
|
75
|
-
- -
|
|
76
|
-
- !ruby/object:Gem::Version
|
|
77
|
-
hash: 27
|
|
78
|
-
segments:
|
|
79
|
-
- 2
|
|
80
|
-
- 5
|
|
81
|
-
- 0
|
|
51
|
+
requirements:
|
|
52
|
+
- - ! '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
82
54
|
version: 2.5.0
|
|
83
55
|
type: :development
|
|
84
|
-
version_requirements: *id004
|
|
85
|
-
- !ruby/object:Gem::Dependency
|
|
86
|
-
name: fuubar
|
|
87
56
|
prerelease: false
|
|
88
|
-
|
|
57
|
+
version_requirements: *70328094818580
|
|
58
|
+
- !ruby/object:Gem::Dependency
|
|
59
|
+
name: fuubar
|
|
60
|
+
requirement: &70328094818200 !ruby/object:Gem::Requirement
|
|
89
61
|
none: false
|
|
90
|
-
requirements:
|
|
91
|
-
- -
|
|
92
|
-
- !ruby/object:Gem::Version
|
|
93
|
-
|
|
94
|
-
segments:
|
|
95
|
-
- 0
|
|
96
|
-
version: "0"
|
|
62
|
+
requirements:
|
|
63
|
+
- - ! '>='
|
|
64
|
+
- !ruby/object:Gem::Version
|
|
65
|
+
version: '0'
|
|
97
66
|
type: :development
|
|
98
|
-
version_requirements: *id005
|
|
99
|
-
- !ruby/object:Gem::Dependency
|
|
100
|
-
name: nokogiri
|
|
101
67
|
prerelease: false
|
|
102
|
-
|
|
68
|
+
version_requirements: *70328094818200
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: nokogiri
|
|
71
|
+
requirement: &70328094817740 !ruby/object:Gem::Requirement
|
|
103
72
|
none: false
|
|
104
|
-
requirements:
|
|
105
|
-
- -
|
|
106
|
-
- !ruby/object:Gem::Version
|
|
107
|
-
|
|
108
|
-
segments:
|
|
109
|
-
- 0
|
|
110
|
-
version: "0"
|
|
73
|
+
requirements:
|
|
74
|
+
- - ! '>='
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: '0'
|
|
111
77
|
type: :development
|
|
112
|
-
version_requirements: *id006
|
|
113
|
-
- !ruby/object:Gem::Dependency
|
|
114
|
-
name: gem-release
|
|
115
78
|
prerelease: false
|
|
116
|
-
|
|
79
|
+
version_requirements: *70328094817740
|
|
80
|
+
- !ruby/object:Gem::Dependency
|
|
81
|
+
name: gem-release
|
|
82
|
+
requirement: &70328094817320 !ruby/object:Gem::Requirement
|
|
117
83
|
none: false
|
|
118
|
-
requirements:
|
|
119
|
-
- -
|
|
120
|
-
- !ruby/object:Gem::Version
|
|
121
|
-
|
|
122
|
-
segments:
|
|
123
|
-
- 0
|
|
124
|
-
version: "0"
|
|
84
|
+
requirements:
|
|
85
|
+
- - ! '>='
|
|
86
|
+
- !ruby/object:Gem::Version
|
|
87
|
+
version: '0'
|
|
125
88
|
type: :development
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
89
|
+
prerelease: false
|
|
90
|
+
version_requirements: *70328094817320
|
|
91
|
+
description: Bastard child of Slidedown, HTML5 Rocks, and organic fair trade Bolivian
|
|
92
|
+
coffee
|
|
93
|
+
email:
|
|
129
94
|
- dwfrank@infe.ws
|
|
130
|
-
executables:
|
|
95
|
+
executables:
|
|
131
96
|
- keydown
|
|
132
97
|
extensions: []
|
|
133
|
-
|
|
134
98
|
extra_rdoc_files: []
|
|
135
|
-
|
|
136
|
-
files:
|
|
99
|
+
files:
|
|
137
100
|
- .gitignore
|
|
138
101
|
- .rspec
|
|
139
102
|
- .rvmrc
|
|
@@ -174,41 +137,31 @@ files:
|
|
|
174
137
|
- templates/keydown.css.erb
|
|
175
138
|
- templates/rocks/index.rhtml
|
|
176
139
|
- templates/rocks/slide.rhtml
|
|
177
|
-
has_rdoc: true
|
|
178
140
|
homepage: http://rubygems.org/gems/keydown
|
|
179
141
|
licenses: []
|
|
180
|
-
|
|
181
142
|
post_install_message:
|
|
182
143
|
rdoc_options: []
|
|
183
|
-
|
|
184
|
-
require_paths:
|
|
144
|
+
require_paths:
|
|
185
145
|
- lib
|
|
186
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
147
|
none: false
|
|
188
|
-
requirements:
|
|
189
|
-
- -
|
|
190
|
-
- !ruby/object:Gem::Version
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
- 0
|
|
194
|
-
version: "0"
|
|
195
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
|
+
requirements:
|
|
149
|
+
- - ! '>='
|
|
150
|
+
- !ruby/object:Gem::Version
|
|
151
|
+
version: '0'
|
|
152
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
153
|
none: false
|
|
197
|
-
requirements:
|
|
198
|
-
- -
|
|
199
|
-
- !ruby/object:Gem::Version
|
|
200
|
-
|
|
201
|
-
segments:
|
|
202
|
-
- 0
|
|
203
|
-
version: "0"
|
|
154
|
+
requirements:
|
|
155
|
+
- - ! '>='
|
|
156
|
+
- !ruby/object:Gem::Version
|
|
157
|
+
version: '0'
|
|
204
158
|
requirements: []
|
|
205
|
-
|
|
206
159
|
rubyforge_project:
|
|
207
|
-
rubygems_version: 1.
|
|
160
|
+
rubygems_version: 1.8.6
|
|
208
161
|
signing_key:
|
|
209
162
|
specification_version: 3
|
|
210
163
|
summary: Yet another "Slides in HTML" generator
|
|
211
|
-
test_files:
|
|
164
|
+
test_files:
|
|
212
165
|
- spec/fixtures/custom.css
|
|
213
166
|
- spec/fixtures/custom.js
|
|
214
167
|
- spec/fixtures/with_backgrounds.md
|