Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `dirty?' for Barista::Compiler:Class exception #10

Closed
nicolasblanco opened this issue Nov 15, 2010 · 3 comments
Closed

Comments

@nicolasblanco
Copy link
Contributor

Hi!

Compiler does not have the "dirty?" method ?!

ree-1.8.7-2010.02 > [$]nicolas@nicolas-desktop:[git:master] /home/nicolas/projects/novagolf-> rails c
Loading development environment (Rails 3.0.1)
ree-1.8.7-2010.02 > Barista::Compilers::Node.available?
true
ree-1.8.7-2010.02 > Barista.compile_all!
NoMethodError: undefined method `dirty?' for Barista::Compiler:Class
    from /home/nicolas/.rvm/gems/ree-1.8.7-2010.02@novagolf/gems/barista-0.6.0/lib/barista.rb:94:in `compile_file!'
    from /home/nicolas/.rvm/gems/ree-1.8.7-2010.02@novagolf/gems/barista-0.6.0/lib/barista.rb:115:in `compile_all!'
    from /home/nicolas/.rvm/gems/ree-1.8.7-2010.02@novagolf/gems/barista-0.6.0/lib/barista.rb:114:in `each'
    from /home/nicolas/.rvm/gems/ree-1.8.7-2010.02@novagolf/gems/barista-0.6.0/lib/barista.rb:114:in `compile_all!'
    from (irb):2
@nicolasblanco
Copy link
Contributor Author

Workaround..? :

#11

@shaug
Copy link

shaug commented Nov 16, 2010

I monkeypatched this in my barista.rb initializer:

module Barista
  class Compiler
    def self.dirty?(*args)
      compiler_klass.dirty?(*args)
    end
  end
end

@nicolasblanco
Copy link
Contributor Author

merged. thanks.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants