diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c111b33 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.gem diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..196d5f0 --- /dev/null +++ b/Rakefile @@ -0,0 +1,14 @@ +desc "remove built gems" +task :clean do + sh "rm markdown_doctor-*" rescue true +end + +desc "build gem" +task :build do + sh "gem build markdown_doctor.gemspec" +end + +desc "install gem" +task :install => [:clean, :build] do + sh "gem install `ls markdown_doctor-*`" +end diff --git a/markdown_doctor.rb b/bin/markdown_doctor similarity index 100% rename from markdown_doctor.rb rename to bin/markdown_doctor diff --git a/markdown_doctor.gemspec b/markdown_doctor.gemspec new file mode 100644 index 0000000..37f63f3 --- /dev/null +++ b/markdown_doctor.gemspec @@ -0,0 +1,23 @@ +Gem::Specification.new do |s| + s.name = "markdown_doctor" + s.version = "0.1.0" + + s.required_rubygems_version = Gem::Requirement.new(">=0") if s.respond_to? :required_rubygems_version= + s.specification_version = 2 if s.respond_to? :specification_version= + + s.authors = "Daniel MacDougall", "Caleb Spare" + s.email = "dmacdougall@gmail.com", "cespare@gmail.com" + + s.description = "An absurdly simple script for rendering markdown with github styles." + s.summary = "An absurdly simple script for rendering markdown with github styles." + s.homepage = "https://github.com/dmacdougall/markdown_doctor" + s.rubyforge_project = "markdown_doctor" + + s.executables = %w(markdown_doctor) + s.files = %w( + README.md + markdown_doctor.gemspec + bin/markdown_doctor + ) + s.add_dependency("redcarpet", ">=1.13.1") +end