Skip to content

deprecation warnings w/rake 0.9.2.2 #8

Description

@mattscilipoti
WARNING: Global access to Rake DSL methods is deprecated.  Please include
    ...  Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method Module#desc called at /Users/matt/.rvm/gems/ruby-1.9.3-p0/gems/rake-hooks-1.2.3/lib/rake/hooks.rb:16:in `block in after'
WARNING: DSL method Module#task called at /Users/matt/.rvm/gems/ruby-1.9.3-p0/gems/rake-hooks-1.2.3/lib/rake/hooks.rb:17:in `block in after'
WARNING: DSL method Module#desc called at /Users/matt/.rvm/gems/ruby-1.9.3-p0/gems/rake-hooks-1.2.3/lib/rake/hooks.rb:16:in `block in after'
WARNING: DSL method Module#task called at /Users/matt/.rvm/gems/ruby-1.9.3-p0/gems/rake-hooks-1.2.3/lib/rake/hooks.rb:17:in `block in after'

Activity

  1. mattscilipoti commented on Feb 17, 2012

    @mattscilipoti
    Author

    A quick look identifies that this is cyclical. Rake wants you to include their DSL, but you include this module in Rake::DSL.

  2. mattscilipoti commented on Feb 17, 2012

    @mattscilipoti
    Author

    Clarification:

    This only happens if you call:

    Rake::Hooks.after 'db:migrate' do
    

    Instead of using:

    include Rake::Hooks
    after 'db:migrate' do
    
  3. guillermo commented on Feb 17, 2012

    @guillermo
    Owner

    Can you generate a test case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions