Extend MiniRake::DSL module to prevent inheritance pollution

```include MiniRake::DSL``` on toplevel will pollute ancestor tree of every object.

```extend MiniRake::DSL``` will add those methods only to ```main``` object.

Rake does the same: https://github.com/jimweirich/rake/blob/master/lib/rake/dsl_definition.rb#L153
This commit is contained in:
Ravil Bayramgalin
2013-02-12 20:07:46 +04:00
parent 8578cd622b
commit c7c435cf23
+1 -1
View File
@@ -287,7 +287,7 @@ module MiniRake
end
Rake = MiniRake
include MiniRake::DSL
extend MiniRake::DSL
######################################################################