<ari-_-e>
I'm experiencing a problem which I think I know the cause of, but I'm not sure what the best way to fix it would be
<ari-_-e>
first of all, I have a few versions of rake installed on my system
<ari-_-e>
a project that I'm working on has a dependency on rake (in its Gemfile), and refers to a version of rake in its Gemfile.lock which is NOT the most recent version that I have installed
<ari-_-e>
additionally, it has a :path dependency on something in its vendor subdirectory
<ari-_-e>
that thing in the vendor subdirectory has a gemspec which requires 'rake'
<ari-_-e>
so when I run "bundle exec rake", what seems to happen is that bundler evals the gemspec, which winds up requiring the newest version of rake installed on my system, and then when it tries to require the version of rake specified in the Gemfile.lock, it fails because rake has already been imported
<ari-_-e>
err... required
<ari-_-e>
I get this error:
<ari-_-e>
/home/atrigent/.gem/ruby/2.1.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:34:in `block in setup': You have already activated rake 10.3.1, but your Gemfile requires rake 10.2.2. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
<ari-_-e>
removing the require 'rake' in the gemspec fixes the issue, but I'm wondering if there's some change that could be made to bundler that would make this work
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
happytux has quit [Remote host closed the connection]
x1337807x has joined #bundler
Cidan is now known as zz_Cidan
orolo has joined #bundler
<ari-_-e>
turns out that I can basically just replace FileList with Dir in this case, which is probably better anyways, but I'm still curious
<orolo>
bundle is erring out because the gem 'celluloid' requires a newer version of Ruby than i'm using in a rails project. how do i find out which gem is requiring celluloid?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<orolo>
thanks havenwood. No gems found matching celluloid (>= 0)
<havenwood>
orolo: bundle exec gem ...
woollyams has quit [Ping timeout: 252 seconds]
<orolo>
havenwood, well, commented out gems until i found the offender; it was pulling from a git repo so that may have been why i couldn't find it.
<havenwood>
orolo: aha
mdub has joined #bundler
<ari-_-e>
I've gotta go, but I'll check the channel log later, so if anyone knows the answer I'm still interested in hearing it
ari-_-e has quit [Quit: Leaving]
thedeeno1 has quit [Quit: Leaving.]
x1337807x has joined #bundler
orolo has quit [Quit: This computer has gone to sleep]
havenwood has quit [Remote host closed the connection]
mdub has quit [Ping timeout: 252 seconds]
havenn has joined #bundler
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenn is now known as havenwood
woollyams has joined #bundler
havenwood has quit [Remote host closed the connection]
havenwood has joined #bundler
cha1tanya has joined #bundler
x1337807x has joined #bundler
charypar has joined #bundler
woollyams has quit [Ping timeout: 252 seconds]
x1337807x has quit [Ping timeout: 276 seconds]
robbyoconnor has joined #bundler
charypar has quit [Remote host closed the connection]
woollyams has joined #bundler
cha1tanya has quit [Ping timeout: 252 seconds]
cha1tanya has joined #bundler
x1337807x has joined #bundler
ak5 has joined #bundler
<ak5>
hi everyone, I am trying to install a ruby app (gitlab) - actually update from an old version. Since I am in China, I have modified my gem sources (removed the original gem source, added a chinese mirror). However, when I do bundle install, it still seems to want to fetch the index at https://rubygems.org/
<ak5>
any way to workaround this? it basically hangs there forever
samphippen has joined #bundler
woollyams has quit [Ping timeout: 252 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charypar has joined #bundler
ak5 has quit [Ping timeout: 252 seconds]
samphippen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #bundler
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #bundler
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #bundler
<indirect>
future ari-_-e: you can't require gems in gemspecs, that fucks everything up :)
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jlecour>
i have an issue with Bundler : in a Rails 4.1 app (migrated from 3.0, then 3.2), deployed with Capistrano 2.15, I have a current/.bundle/config file regenerated during each deploy
<jlecour>
it is not versioned in Git, I didn"t find any Capistrano task that generates it
<jlecour>
The content of this file is problematic, that's why I want to change it
<tmoore>
ak5: can you post a gist of your Gemfile and Gemfile.lock?
<tmoore>
(if you have a Gemfile.lock)
<tmoore>
jlecour: it is generated by running 'bundle install' with command line flags
<jlecour>
OK, I've found : I was invoking Bundler with "--binstubs" in my Capistrano task
<jlecour>
tmoore: exactly, thanks
<tmoore>
OK cool :-)
dwradcliffe has quit [Quit: Bye]
ixti has joined #bundler
stevenharman has joined #bundler
stevenharman has quit [Quit: Leaving...]
stevenharman has joined #bundler
stevenharman has quit [Ping timeout: 265 seconds]
dwradcliffe has joined #bundler
g0bl1n has joined #bundler
axl_ has joined #bundler
axl_ has quit [Client Quit]
ixti has quit [Ping timeout: 240 seconds]
orolo has joined #bundler
axl_ has joined #bundler
axl_ has quit [Quit: axl_]
tttttttttttttttt has quit [Ping timeout: 276 seconds]
retro|cz has quit [Ping timeout: 252 seconds]
ixti has joined #bundler
stevenharman has joined #bundler
stevenharman has quit [Remote host closed the connection]
stevenharman has joined #bundler
axl_ has joined #bundler
thedeeno has joined #bundler
zz_Cidan is now known as Cidan
samphippen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has quit [Quit: axl_]
retro|cz has joined #bundler
axl_ has joined #bundler
charypar has quit [Ping timeout: 252 seconds]
axl_ has quit [Quit: axl_]
axl_ has joined #bundler
orolo has quit [Quit: This computer has gone to sleep]
axl_ has quit [Client Quit]
axl_ has joined #bundler
allaire has joined #bundler
ak5 has quit [Ping timeout: 255 seconds]
jplussier has joined #bundler
axl_ has quit [Quit: axl_]
_whitelogger has joined #bundler
axl_ has joined #bundler
axl_ has quit [Client Quit]
samphippen has joined #bundler
samphippen has quit [Max SendQ exceeded]
samphippen has joined #bundler
samphippen has quit [Max SendQ exceeded]
samphippen has joined #bundler
g0bl1n has quit [Ping timeout: 264 seconds]
jplussier is now known as t4nkd
robbyoconnor has joined #bundler
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #bundler
axl_ has joined #bundler
robbyoconnor has quit [Ping timeout: 255 seconds]
axl_ has quit [Ping timeout: 240 seconds]
ari-_-e has joined #bundler
t4nkd has quit [Quit: Leaving...]
<ari-_-e>
indirect: is that true of gemspecs in general or only when they're used with bundler?
<ari-_-e>
I've seen a few instances of FileList being used in gemspecs (even if it is unnecessary)
<ari-_-e>
hmm I guess FileList also creates nonexistent files