indirect changed the topic of #bundler to: Docs! http://bundler.io | Problems? http://bit.ly/bundler-issues | How to help: http://bit.ly/bundler-development | API Dashboard http://cl.ly/SBoH | #bundler logs: http://bit.ly/bundler-logs | Questions will be answered eventually, so hang out for a while
samphippen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patcon has quit [Remote host closed the connection]
patcon has joined #bundler
patcon has quit [Ping timeout: 250 seconds]
axl_ has quit [Quit: axl_]
cwebber has quit []
opus has joined #bundler
cwebber has joined #bundler
cwebber has quit [Client Quit]
rjhunter has joined #bundler
jfoy has quit [Quit: jfoy]
opus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoul_ has joined #bundler
chouhoulis has quit [Ping timeout: 246 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #bundler
robbyoconnor has joined #bundler
cwebber has joined #bundler
patcon has joined #bundler
JordanFaust_ has joined #bundler
cwebber has quit []
patcon has quit [Ping timeout: 272 seconds]
samphippen has joined #bundler
samphippen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
opus has joined #bundler
samphippen has joined #bundler
retro|cz has joined #bundler
opus has quit [Quit: Textual IRC Client: www.textualapp.com]
JordanFaust_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmar has joined #bundler
chouhoul_ has joined #bundler
chouhoulis has quit [Ping timeout: 260 seconds]
chouhoulis has joined #bundler
chouhoul_ has quit [Ping timeout: 250 seconds]
patcon has joined #bundler
patcon has quit [Remote host closed the connection]
patcon has joined #bundler
patcon has quit [Ping timeout: 240 seconds]
cwebber has joined #bundler
cwebber_ has joined #bundler
cwebber has quit [Read error: Connection reset by peer]
cwebber_ has quit [Read error: Connection reset by peer]
patcon has joined #bundler
cwebber has joined #bundler
cwebber has quit [Ping timeout: 252 seconds]
havenwood has joined #bundler
mann3qu1n has joined #bundler
patcon has quit [Remote host closed the connection]
cwebber has joined #bundler
patcon has joined #bundler
^conner has joined #bundler
<^conner> howdy folks, I'm not very knowledgeable about bundler. Is there a hook so you can tell if your running under an environment that was setup by bundler exec ... ?
<^conner> I have a situation where system needs to be replaced with a call to Bundler#clean_system but there is some concern that this may cause odd issues for users not invoking the application with bundler exec
<^conner> that's #system
mann3qu1n has quit []
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #bundler
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #bundler
samphippen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jfoy has joined #bundler
jfoy has quit [Quit: jfoy]
cmar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmar has joined #bundler
cmar has quit [Client Quit]
cmar has joined #bundler
jfoy has joined #bundler
<indirect> ^conner: check to see if the Bundler constant is present?
<^conner> indirect, I didn't know there was a constant.
<indirect> defined?(Bundler)
<^conner> you mean the module
<indirect> modules are assigned to constants
<^conner> indirect, I understand that but won't the module name always be present if some dep gem is using bundler/setup?
samphippen has joined #bundler
<indirect> ^conner: gems are explicitly forbidden from using bundler setup
<indirect> that breaks everything
<^conner> indirect, ok - but how does this help me detect if the script was run under bundler exec ?
<^conner> does it do magic beyond setting up the env vars?
<^conner> oh, hmm, I bet there's an env var I can look for
<indirect> ^conner: now I'm not sure what you're asking any more
<indirect> because I just told you that you can check for the Bundler constant
<indirect> to see if Bundler is loaded
<^conner> indirect, so lets say I run `bundler exec mybashscript.sh`
<indirect> if you have a different concern than knowing if bundler is loaded, please explain :)
<indirect> ^conner: oh god why would you do that, lol
<^conner> I'm not
<^conner> just making the point
<^conner> my question was " Is there a hook so you can tell if your running under an environment that was setup by bundler exec ... ?"
<indirect> uhhh... I guess I would say that no one suggests that and the bundler documentation never says to do that?
<indirect> what do you mean by "hook"?
<^conner> generic phrase
<indirect> in bash, literally the only things that can be communicated across process are env vars
<indirect> so that's the only possible thing you could detect
<indirect> in ruby, loaded code creates constants
<indirect> so I would suggest checking that instead
<^conner> so your saying that bundler exec ruby -e "p 'hi'" causes the bundler module to be magically loaded?
<indirect> nothing even vaguely magical about it
<^conner> so the Module is loaded?
<indirect> bundle exec sets the RUBYOPT environment variable to "-rbundler/setup
<indirect> and then execs ruby
<^conner> aww
<^conner> that's exactly what I needed to know
<^conner> thank you
<indirect> np
<^conner> indirect++
cmar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
autojack has joined #bundler
hamiltop has joined #bundler
<hamiltop> What is the difference between: `require 'bundler/setup'` and `require './vendor/bundle/bundler/setup.rb' ? I have a cron job written in ruby and the first one failed to load the correct gems, the second one works though. Can anyone help me understand what the difference is?
<indirect> hamiltop: the second one means your application has been set up using `bundle install --standalone`
<indirect> I suggest you read the docs for standalone mode
<indirect> because they are very, very different
pnomolos_ has joined #bundler
pnomolos has quit [Ping timeout: 240 seconds]
pnomolos_ has quit [Ping timeout: 250 seconds]
retro|cz has quit [Ping timeout: 260 seconds]
pnomolos has joined #bundler
chouhoul_ has joined #bundler
chouhoulis has quit [Ping timeout: 250 seconds]
ddd_ has joined #bundler
ddd_ has quit [Client Quit]
ddd_ has joined #bundler
ddd_ is now known as ddd
havenwood has quit [Remote host closed the connection]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #bundler
humbleNewbie has joined #bundler
<humbleNewbie> Can someone tell me the easiest way to upgrade rails 3.2 using bundler without upgrading to rails 4? (I've RTMed but can't seem to figure this out)
<humbleNewbie> (doing a tiny version security update)
havenwood has joined #bundler
<ddd> gem 'rails', "~> 3.2" iirc
<ddd> should get you the most current 3.2 rails but not 3.3 or 4
<dwradcliffe> gem 'rails', '~> 3.2.0'
<ddd> can even "~> 3.2.0" and stick specifically to 3.2
<ddd> hehe what dwradcliffe said
<dwradcliffe> ddd: your first option would allow 3.3
<ddd> hmm, thought if you didn't add the last digit it stuck to all minor minors in that major.minor
<ddd> thanks for clarifying.
<ddd> or would that be major.minor.patchlevel ?
<dwradcliffe> pretty sure it allows updates the the last digit, whatever that is
<ddd> got it.
<dwradcliffe> also, in theory, since there's no 3.3 :)
<ddd> right. so if he did ~> 3.1 you're saying it would allow 3.2
<dwradcliffe> yep
<ddd> ok, thanks. thought it would allow all .minor.pl in the listed major.minor. shall have to remember that
<humbleNewbie> Cool. Thanks. Just did a little more reading, and i think I misunderstood how bundle update works. I thought it would check for newest versions, but now realize that it will follow the vresion info from Gemfile.
<dwradcliffe> humbleNewbie: it does both
<humbleNewbie> But also good to know about specifics of ~> notation. Thanks
<ddd> right, but if you don't list a version it will grab the latest, even if thats WAY newer than what you got installed
<humbleNewbie> Got it
havenwood has quit [Remote host closed the connection]
havenwood has joined #bundler
<ckrailo> humbleNewbie: so the gemfile sets some parameters (like rails ‘~> 3.2.16’, which means you want version 3.2.x where x >= 16)… and then the gems in the gemfile also have their own parameters (like rails depends on activemodel, for example), which can have their own permissions… and so on.
<ckrailo> that basically gives you a tree of permissions (that can change with each version of a gem, of course)
<ckrailo> and then bundler figures out what’s the latest set of permissible versions that’ll work for you.
<ckrailo> (just in case you wanted the long version, heh. :P)
<humbleNewbie> cool. thanks for the clear explanation. that's what I figured.
opus has joined #bundler
autojack has left #bundler [#bundler]
patcon has quit [Remote host closed the connection]
patcon has joined #bundler
patcon has quit [Ping timeout: 272 seconds]
patcon has joined #bundler
humbleNewbie has quit [Ping timeout: 250 seconds]
pnomolos has quit [Ping timeout: 246 seconds]
patcon has quit [Remote host closed the connection]
patcon has joined #bundler
pnomolos has joined #bundler
patcon has quit [Ping timeout: 250 seconds]
pnomolos has quit [Client Quit]
pnomolos has joined #bundler
pnomolos has joined #bundler
pnomolos has quit [Changing host]
mootpointer has joined #bundler
samphippen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamiltop has quit [Quit: hamiltop]
hamiltop has joined #bundler