_djbkd has quit [Remote host closed the connection]
_djbkd has joined #bundler
houhoulis has joined #bundler
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #bundler
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #bundler
huoxito has quit []
_djbkd has quit [Quit: My people need me...]
Scrivener has joined #bundler
Scrivener has quit [Ping timeout: 246 seconds]
houhoulis has quit [Remote host closed the connection]
_djbkd has joined #bundler
relix has joined #bundler
relix has quit [Ping timeout: 260 seconds]
_djbkd has quit [Remote host closed the connection]
adac has joined #bundler
gingray has joined #bundler
<gingray>
Hi everybody. I've faced with problem when i do Bundler.require :default, :test in my spec_helper.rb. Bundler seems to require nothing
<gingray>
It's not rails app just usual script
Gidogeek has joined #bundler
Pupeno has joined #bundler
samphippen has joined #bundler
gregkare has left #bundler [#bundler]
gingray has quit [Ping timeout: 265 seconds]
Gidogeek has quit [Quit: (null)]
gingray has joined #bundler
<gingray>
Anyone can help with my issue ?
samphippen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
gingray: well, how do you assess your claim? check $LOADED_FEATURES after. Also make sure you actually do have gems in the default (none specified) and test groups
<gingray>
jhass: Thanks for ur response. Yes i've activerecord, sqlite3 and active-import in my gem file without any section
<gingray>
jhass: check $LOADED_FEATURES no of my gems where loaded
<jhass>
mmh, that should work, I'd only have the nitpick of require "rubygems" being redundant since Ruby 1.9
<jhass>
you did put p $LOADED_FEATURES on line 4 and got an array printed that contained bundler.rb among others but no activerecord.rb ?
<gingray>
jhass: yes right
<jhass>
that's weird
<jhass>
are you sure the right Gemfile gets picked up? any application preloader stuff running?
<jhass>
any chance you make say a small github repo that reproduces the issue for you?
<gingray>
jhass: how can i checkout this ?
<gingray>
jhass: now i'm not sure in everything
<gingray>
jhass: couple of weeks it works fine but now something happened and i don't know what seems like bad magic
<gingray>
jhass: also one remark active-import gem using activerecord and when gem is loaded via bundler i get an error like uninitialized constant ActiveRecord
<jhass>
what's the output of p Bundler.environment.dependencies there?
<jhass>
gingray: ^
<jhass>
also p Bundler.settings
robbyoconnor has quit [Ping timeout: 265 seconds]
<jhass>
and p Bundler.default_gemfile while we're at it
<jhass>
explicit require "activerecord" works too?
<gingray>
jhass: you mean if just use require 'active-record' ?
<jhass>
it's require "activerecord" (that's the require bundler will attempt), but yes
<gingray>
jhass: if use require construction everything works fine
<gingray>
jhass: but if use bundler seems nothing to work but it works some time ago
<jhass>
you're on latest bundler? 1.10.6?
<gingray>
jhass: yes
<jhass>
well, I can't see any issue with bundler or your setup there. Unless you can upload a testcase to reproduce I'm not sure what anybody can do from here
<gingray>
jhass: i can send you whole solution (its about couple of files)
<gingray>
jhass: if you have time of course to check this out
<gingray>
jhass: i'll be really appreciated if you have
<jhass>
it would be good to have a github repo if it indeed is a bug with bundler, so we can report a proper issue
<gingray>
jhass: can you plz explain what was the issue ?
<gingray>
jhass: yes i toggle this lines and everything star working
<jhass>
the first issue was that the gem activerecord still doesn't provide a activerecord.rb, Bundler.require uses require "gemname" by default
<gingray>
jhass: thanks a lot
<gingray>
jhass: thats mean that i need explicitly use require yes ?
<jhass>
we tell it the working filename explicitly with the require: "active_record" option
<jhass>
gingray: well, yes and no. No for inside spec_helper where you have Bundler.require
<jhass>
gingray: but a good citizen gem should explicitly require its dependencies in the main code, so yes
<jhass>
which leads us to the second issue, activerecord-import is a bad citizen and doesn't do so, so we need to make sure active_record is required before it
<gingray>
jhass: resume this things i need explicitly require active_record in Gemfile and put it before active-import which assume that active record already required
<gingray>
jhass: am i right ?
<jhass>
I don't follow
<jhass>
you should have the Gemfile like I've shown with my diff
<jhass>
that'll work for running the specs
<gingray>
jhass: thanks 100 stars for you sorry for my bad english
<jhass>
you should have require "active_record"; require "activerecord/import" in your gems entry point nonetheless
<gingray>
jhass: lets remove my shame code from github
<jhass>
require "activerecord-import" actually since that one fucked up on conventions fully
<gingray>
jhass: seems its a reason for pull request for them