lib/maid.rb in maid-0.6.0.alpha.1 vs lib/maid.rb in maid-0.6.0.alpha.2
- old
+ new
@@ -3,10 +3,11 @@
Deprecated.set_action(:warn)
# Must be in this order:
require 'maid/version'
require 'maid/tools'
+require 'maid/rule_container'
require 'maid/maid'
# Alphabetical:
require 'maid/app'
require 'maid/numeric_extensions'
@@ -14,10 +15,12 @@
require 'maid/rake/single_rule'
require 'maid/rake/task'
require 'maid/rule'
require 'maid/trash_migration'
require 'maid/user_agent'
+require 'maid/watch'
+require 'maid/repeat'
module Maid
class << self
# Execute the block with the Maid instance set to <tt>instance</tt>.
def with_instance(instance)
@@ -27,10 +30,10 @@
result
end
# Define rules for the Maid instance.
def rules(&block)
- @instance.instance_eval(&block)
+ @instance.instance_exec(&block)
end
end
end
class Numeric