Skip to content
Browse files

Fix deprecation warnings about Rake::DSL.

  • Loading branch information...
1 parent 7b1f361 commit 1fcc5eb70daa02adb8ba4fa7ee5a831adacc6c02 @alloy alloy committed Aug 20, 2011
Showing with 8 additions and 0 deletions.
  1. +6 −0 rakelib/builder/builder.rb
  2. +2 −0 rakelib/upstream_git_repo_tasks.rb
View
6 rakelib/builder/builder.rb
@@ -9,6 +9,11 @@
}.sort
class Builder
+ if defined?(Rake::DSL)
+ extend Rake::DSL
+ include Rake::DSL
+ end
+
# Runs the given array of +commands+ in parallel. The amount of spawned
# simultaneous jobs is determined by the `jobs' env variable. The default
# value is 1.
@@ -185,6 +190,7 @@ def self.install
end
end
+ extend Rake::DSL if defined?(Rake::DSL)
def self.clean
extension_dirs.each do |dir|
new(dir).clean_commands.each { |cmd| sh(cmd) }
View
2 rakelib/upstream_git_repo_tasks.rb
@@ -1,6 +1,8 @@
require File.expand_path('../git', __FILE__)
class Rake::UpstreamGitRepoTasks
+ include Rake::DSL if defined?(Rake::DSL)
+
attr_accessor :name, :local_dir, :upstream_dir, :anon_url, :commit_url, :upstream_options
def initialize(name)

0 comments on commit 1fcc5eb

Please sign in to comment.
Something went wrong with that request. Please try again.