Skip to content

Commit

Permalink
Updated Rakefile and setup.rb
Browse files Browse the repository at this point in the history
* Use gem package task supplied by rubygems
* Add coderay as development dependency
* Fix warning in setup.rb because of Config::CONFIG use
  • Loading branch information
gettalong committed Dec 13, 2011
1 parent bb7e82c commit 6828b83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# load all optional developer libraries
begin
require 'rubygems'
require 'rake/gempackagetask'
require 'rubygems/package_task'
rescue LoadError
end

Expand Down Expand Up @@ -196,6 +196,7 @@ EOF
s.require_path = 'lib'
s.executables = ['kramdown']
s.default_executable = 'kramdown'
s.add_development_dependency 'coderay', '~> 1.0.0'

#### Documentation

Expand All @@ -211,7 +212,7 @@ EOF
s.rubyforge_project = 'kramdown'
end

Rake::GemPackageTask.new(spec) do |pkg|
Gem::PackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end
Expand Down
2 changes: 1 addition & 1 deletion setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def ToplevelInstaller.load_rbconfig
else
require 'rbconfig'
end
::Config::CONFIG
::RbConfig::CONFIG
end

def initialize(ardir_root, config)
Expand Down

0 comments on commit 6828b83

Please sign in to comment.