Uninitialized constant Rake::DSL in Ruby Gem?

This SO Question might help you out. The suggestion there is to add require 'rake/dsl_definition above require 'rake in your Rakefile.

This SO Question might help you out. The suggestion there is to add require 'rake/dsl_definition' above require 'rake' in your Rakefile.

1 Thanks, that really helped! – Ivanoats Jun 7 at 18:12.

I think this is something that happened with the rake 0.9.0 release. Try putting this in your Gemfile: gem 'rake', '0.8.7' Update You could try adding include Rake::DSL if defined?(Rake::DSL) to your app; it worked for my Rails app at one point.

1 Yes, that is correct. Rake 0.9.2 was supposed to correct this. Also, I want my gem to work with all the latest versions if possible.

– Ivanoats Jun 7 at 17:35 Sorry, I had skimmed over your answer and didn't realize you were aware of that. I updated my answer to try a different method. – Abe Voelker Jun 7 at 18:01 Rake 0.9.2 worked for me.

– Ben Fulton Sep 27 at 2:27.

I fooled around with the include Rake::DSL, etc and just got other errors. Adding gem 'rake', '0.8.7' to the Gemfile seems to work for me.

I had the same problem with 0.9.1, installed the 0.9.2 and it worked but the db:migrate command sent a message WARNING: Global access to Rake DSL methods is deprecated. Please.... it got solved adding to the rake file module ::yourappname class Application include Rake::DSL end end and require 'rake/dsl_definition' before the .. LoadTask entry.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions