Ruby on Rails
Monday, May 5, 2014
No ideas on this fellas?
On Wednesday, April 30, 2014 2:39:32 PM UTC+2, Wael wrote:
-- On Wednesday, April 30, 2014 2:39:32 PM UTC+2, Wael wrote:
Hey,Is there an automated way of loading initializers depending on whether you are currently using ruby or jruby? I have an internal gem that loads some jRuby tasks, but I fail to run them because other non-jruby initializers keep erroring out, understandably since they are not currently installed as jruby gems.Assuming the following gemfile:----------------gem railsplatform :ruby doruby '2.1.0' if RUBY_ENGINE == 'ruby'gem A # Not needed when running jrubyendplatform :jruby doruby '1.9.3' if RUBY_ENGINE == 'jruby'gem 'internal_gem'end--------------I won't be able to run anything provided by 'internal_gem' unless I move gem A to the jruby platform, which is not very nice because it would mean I will be doing it for every gem I add.Any ideas?
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6b5afe0a-b1c4-4852-b77f-c9b982e334fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment