Skip to content

Commit

Permalink
Fix compatibility with Rake 0.9.x.
Browse files Browse the repository at this point in the history
This method is incredibly unsatisfactory, please see:

 * jimweirich/rake#81

for more discussion about this issue.
  • Loading branch information
leehambley committed Feb 19, 2012
1 parent c11cfec commit bd6ff00
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/capistrano.rb
@@ -1,3 +1,5 @@
require 'capistrano/fix_rake_deprecated_dsl'

require 'capistrano/configuration' require 'capistrano/configuration'
require 'capistrano/extensions' require 'capistrano/extensions'
require 'capistrano/ext/string' require 'capistrano/ext/string'
8 changes: 8 additions & 0 deletions lib/capistrano/fix_rake_deprecated_dsl.rb
@@ -0,0 +1,8 @@
#
# See https://github.com/jimweirich/rake/issues/81
#
if defined?(Rake::DeprecatedObjectDSL)
Rake::DeprecatedObjectDSL.private_instance_methods.each do |m|
Rake::DeprecatedObjectDSL.send("undef_method", m)
end
end

0 comments on commit bd6ff00

Please sign in to comment.