summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorLamont Granquist <lamont@opscode.com>2013-06-12 14:19:36 -0700
committerLamont Granquist <lamont@opscode.com>2013-06-12 14:19:36 -0700
commita550cd91c8fb28a9f98ec9fec5336291cfe7029f (patch)
tree5c8851e9930e08beafbee3479ccd7cda20b1c0a4 /Rakefile
parent439980b12ed78eb5f61c52cf0d23d4a9205d1011 (diff)
downloadchef-a550cd91c8fb28a9f98ec9fec5336291cfe7029f.tar.gz
fixes for 'rake install' on ruby-2.0.0
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index b227bd3e7a..c223a60618 100644
--- a/Rakefile
+++ b/Rakefile
@@ -48,10 +48,12 @@ begin
end
rescue LoadError
puts "sdoc is not available. (sudo) gem install sdoc to generate rdoc documentation."
+rescue TypeError
+ puts "sdoc is not working on ruby-2.0.0 and throwing an odd TypeError, rdoc generation will be disabled on ruby 2.0 until that gets fixed."
end
task :install => :package do
- sh %{gem install pkg/#{GEM_NAME}-#{Chef::VERSION} --no-rdoc --no-ri}
+ sh %{gem install pkg/#{GEM_NAME}-#{Chef::VERSION}.gem --no-rdoc --no-ri}
end
task :uninstall do