Skip to content

Commit

Permalink
adding shell specs & rspec setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Davis W. Frank committed Sep 4, 2010
1 parent ca7513e commit f75983d
Show file tree
Hide file tree
Showing 11 changed files with 1,003 additions and 48 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# KeyDown

KeyDown is another 'Presentation System in a single HTML page' inspired by [Slidedown](http://github.com/nakajima/slidedown),
[HTML5 Rocks](http://studio.html5rocks.com/#Deck), with a little Presentation Zen thrown in.
[HTML5 Rocks](http://studio.html5rocks.com/#Deck), with a little [Presentation Zen](http://amzn.to/8X55H2) thrown in.

## Note on Patches/Pull Requests

Expand Down
46 changes: 2 additions & 44 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,45 +1,3 @@
require 'rubygems'
require 'rake'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "keydown"
gem.summary = %Q{TODO: one-line summary of your gem}
gem.description = %Q{TODO: longer description of your gem}
gem.email = "dwfrank@infe.ws"
gem.homepage = "http://github.com/infews/keydown"
gem.authors = ["Davis W. Frank"]
gem.add_development_dependency "rspec", ">= 1.2.9"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end

Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end

task :spec => :check_dependencies

task :default => :spec

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "keydown #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
Dir["#{File.dirname(__FILE__)}/tasks/*.rb"].each do |file|
require file
end
Empty file added bin/keydown
Empty file.
14 changes: 11 additions & 3 deletions spec/keydown_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "Keydown" do
it "fails" do
fail "hey buddy, you should probably rename this file and start specing for real"
end

it "should set the document's title"

it "should set the document's filename"

it "should put slides into the template"

it "should inline any custom CSS"

it "should inline any custom JavaScript"

end
21 changes: 21 additions & 0 deletions spec/slide_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "Slide" do

it "should extract the CSS classnames"

it "should extract the content"

it "should ignore the notes"

describe "when generating HTML" do

it "should assign the classnames to the section"

it "should convert the content via Markdown"

it "should highlight any code fragments"

end

end
11 changes: 11 additions & 0 deletions spec/slidedeck_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "SlideDeck" do

it "should extract the document's title"

it "should extract slides"

it "should convert slides to HTML"

end
2 changes: 2 additions & 0 deletions spec/spec.opts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
--color
--format html:spec/output/results.html
--format progress
9 changes: 9 additions & 0 deletions tasks/doc.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "keydown #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
19 changes: 19 additions & 0 deletions tasks/jeweler.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
require 'rubygems'
require 'rake'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "keydown"
gem.summary = %Q{TODO: one-line summary of your gem}
gem.description = %Q{TODO: longer description of your gem}
gem.email = "dwfrank+github@infe.ws"
gem.homepage = "http://github.com/infews/keydown"
gem.authors = ["Davis W. Frank"]
gem.add_development_dependency "rspec", ">= 1.2.9"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
20 changes: 20 additions & 0 deletions tasks/spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require 'rubygems'
require 'rake'

require 'spec/rake/spectask'

Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end

Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end

task :spec => :check_dependencies

task :default => :spec

Loading

0 comments on commit f75983d

Please sign in to comment.