Building RubyGems, lib/ in load path?
Hey, RubyMine has really grown on me, I want to use it for developing rubygems too (I've been using TextMate for this). Gems usually have this structure
lib/mymodule.rb
test/mymoduletest.rb
test/test_helper.rb, with
require 'mymodule'
rake understands this as I have lib/ in the load path (see the below code for details.). How do I set the load path in RubyMine? (I'm on 1.9.2 and EAP 96.1146)
Rakefile:
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require 'rake'
require 'rake/testtask'
Rake::TestTask.new(:standalone) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
Perhaps there should be an option in New Project => Project type: RubyGem ?
Please sign in to leave a comment.
Hello Ole Morten,
Unfortunally RubyMine doesn't provide any special facilities for development gems, however feel free to submit a feature request for this at: http://youtrack.jetbrains.net/issues/RUBY
Best regards,
Oleg
Here is the issue created: http://youtrack.jetbrains.net/issue/RUBY-6858