fix up jekyll-docs

This commit is contained in:
Parker Moore 2016-02-19 17:07:22 -08:00
parent fa4d327ddb
commit e9ecb93dec
3 changed files with 7 additions and 2 deletions

View File

@ -53,3 +53,8 @@ task :build => :init do
sh "gem build #{gemspec_file}" sh "gem build #{gemspec_file}"
sh "mv #{gem_file} pkg" sh "mv #{gem_file} pkg"
end end
desc "Install #{name} v#{version} into your gem folder."
task :install => :build do
sh "gem install -l pkg/#{gem_file}"
end

View File

@ -9,8 +9,7 @@ Gem::Specification.new do |spec|
spec.homepage = 'http://jekyllrb.com' spec.homepage = 'http://jekyllrb.com'
spec.license = 'MIT' spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0").grep(%r{^site/}) spec.files = Dir['**/*'].grep(%r{^(lib|site)/})
spec.files << "lib/jekyll-docs.rb"
spec.require_paths = ['lib'] spec.require_paths = ['lib']
spec.add_dependency 'jekyll', ENV.fetch('JEKYLL_VERSION') spec.add_dependency 'jekyll', ENV.fetch('JEKYLL_VERSION')

View File

@ -1,5 +1,6 @@
require 'rubygems' require 'rubygems'
require 'jekyll' require 'jekyll'
require 'tmpdir'
module JekyllDocs module JekyllDocs
class DocsCommand < Jekyll::Command class DocsCommand < Jekyll::Command