You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
I'm a beginner using bundler. I have generated a bundler gem project using "bundle install" and "rake install" but I don't know where to place bundler requirements. I got the following error:
C:/Ruby/lib/ruby/gems/1.8/gems/iline_lookup-0.0.2/lib/iline_lookup.rb:2: private method require' called for Bundler:Module (NoMethodError) from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:ingem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from ll2_retriever_runner.rb:3
I put it in the first line of my application like this:
require 'bundler/setup'
Bundler.require(:default)
Thanks
The text was updated successfully, but these errors were encountered:
If you are building a gem, you cannot use Bundler.require. As soon as you do that, you no longer have a gem, you have an application, and you can't package it as a gem.
Hi,
I'm a beginner using bundler. I have generated a bundler gem project using "bundle install" and "rake install" but I don't know where to place bundler requirements. I got the following error:
C:/Ruby/lib/ruby/gems/1.8/gems/iline_lookup-0.0.2/lib/iline_lookup.rb:2: private method
require' called for Bundler:Module (NoMethodError) from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require'from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from ll2_retriever_runner.rb:3
I put it in the first line of my application like this:
require 'bundler/setup'
Bundler.require(:default)
Thanks
The text was updated successfully, but these errors were encountered: