<jhass>
_Poet_: mh, that code should say "undefined variable or method s"
<_Poet_>
yeah, it does
<jhass>
>> 's' != s
<eval-in>
jhass => undefined local variable or method `s' for main:Object (NameError) ... (https://eval.in/308688)
<_Poet_>
I added quotes around the s and now it’s
rikkipitt has joined #ruby-lang
<_Poet_>
ah got it!
[H]unt3r has joined #ruby-lang
_Poet_ has left #ruby-lang [#ruby-lang]
bruno- has joined #ruby-lang
|jemc| has joined #ruby-lang
<nofxx>
Anyone getting 'undefined method `add_builtin_type'' with Psych? need to uninstall v2.0.13 everytime .. =/
bruno- has quit [Ping timeout: 246 seconds]
piotrj has joined #ruby-lang
bruno- has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
lytol has joined #ruby-lang
odious has joined #ruby-lang
<odious>
hi... my ruby and homebrew are both borked and I can't figure out how to fix one when the other is broken... can someone point me in the right direction?
<odious>
Essentially, what do I do when I have nothing that works correctly?
<odious>
I'm on OS X Yosemite
havenwood has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
Vivex_ has joined #ruby-lang
<jhass>
I have no experience with OS X or homebrew, but how is your Ruby broken?
piotrj has joined #ruby-lang
<nofxx>
odious, rm -rf Cellar and start again with homebrew, easier
<nofxx>
just forgot where it is... /usr/Cellar ?
<havenwood>
/usr/local/Cellar
lytol has quit [Ping timeout: 256 seconds]
Vivex has quit [Ping timeout: 244 seconds]
KINGSABRI has joined #ruby-lang
<KINGSABRI>
Good day!
<odious>
Do you mean /usr/bin/Library?
wicope has joined #ruby-lang
amclain has joined #ruby-lang
<havenwood>
odious: What's the issue you're running into?
<odious>
I can tell you now that I'm not going to be able to reinstall homebrew because homebrew uses ruby to install and when I just type "ruby" into the terminal I get "<internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)"
<odious>
its a really borked installation
intinig has joined #ruby-lang
<havenwood>
odious: What do you get for?: which ruby
<KINGSABRI>
Is there any real difference between net/dns gem and resolv std lib ?
<odious>
I get /usr/bin/ruby
<havenwood>
odious: Homebrew uses your system Ruby. So the `ruby` command not working from Terminal doesn't necessary mean brew won't work.
<odious>
but the command is "ruby -e ${some stuff}"
<jhass>
odious: and: which gem
<odious>
how can that possibly work if "ruby" doesn't?
<odious>
I get /usr/bin/gem
<havenwood>
odious: How about?: gem which rubygems
<odious>
havenwood: I get "-sh: /usr/bin/gem: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory"
<odious>
like I said, there is no working part of this environment
<odious>
I would reinstall my OS but its a work computer
<odious>
fortunately ruby/rails is just a side thing for me, my work stuff is in Java and that's working correctly
intinig has quit [Ping timeout: 245 seconds]
semperfried76 has joined #ruby-lang
<havenwood>
odious: So it's possible someone went around deleting parts of system Ruby? :O
<odious>
yeah my friend did that
<odious>
I told her, "If you want me to use RoR for this project with you you need to install it cause I don't want to deal with that"
<odious>
and now everything's broken
<odious>
I told her after that "well good luck on this project on your own cause apparently I'll never have RoR on this computer"
<odious>
sorry, I'm a bit pissed at her
<odious>
but anyway, if the system ruby is borked is there a way to recover? or will this computer simply never run anything ruby related?
shazaum has quit [Quit: This computer has gone to sleep]
chouhoulis has joined #ruby-lang
lytol has joined #ruby-lang
<havenwood>
odious: You could repair system Ruby from the OS X package but you can use any other Ruby you want to install without doing that.
rikkipitt has quit [Remote host closed the connection]
<jhass>
why would you randomly delete stuff to "fix something" oO
<havenwood>
odious: It looks like just gem was deleted, so you can also use: --disable-gems
<havenwood>
It looked like a Mavericks path you showed. If so... update to Yosimite for an easy fix for you system Ruby!
<odious>
okay homebrew installed okay but I still get "/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby: bad interpreter: No such file or directory" on brew commands
<odious>
havenwood: yosemite
<odious>
no I'm already on yosemite
<havenwood>
Aha.
<odious>
I had a working homebrew before the upgrade
<havenwood>
odious: It runs on system ruby and someone nuked part of that package from orbit.
<havenwood>
odious: I'd probably open up the Yosimite install package with Pacifist and reinstall Ruby.framework.
Respek has quit [Quit: gone to sleep. ZZZzzz…]
<havenwood>
odious: Homebrew likely isn't going to work properly if system Ruby is trashed. You could install another Ruby and point Homebrew at it, but I'd personally just fix the system.
<odious>
so is there a way to get any of these parts to work again?
<odious>
at this point I'd rather just say that ruby is not the langauge for me
<odious>
the #1 thing I can't stand about programming is getting the environment set up
<odious>
that why I like javascript, as terrible a language as it is
<jhass>
because somebody thought it's a good idea to delete some core libraries?
<havenwood>
odious: We can help you get Ruby setup really quickly. But a system package has been screwed up, so things depending on it will also be screwed up.
<havenwood>
odious: This would be the same in any language.
hahuang65 has joined #ruby-lang
<jhass>
yeah, blaming the language for not working when parts of got deleted is not very logical tbh
<havenwood>
odious: Though cherry picking just Ruby.framework would be really quick, I'd worry other things were deleted and would suggest you roll back before the mayhem or boot in recovery mode and reinstall Yosemite if you have some time.
<nofxx>
odious, not to mention you'll need that homebrew to install node or something js
<havenwood>
odious: It's really not fair to blame Ruby for someone trampling over system files. Don't give folk who'll do that root!
<nofxx>
odious, another thing: problably a lot of other stuff is going to happen as you don't know what was deleted. Save your files, reinstall yosemite, won't take more than 30 minutes.
odious has quit [Ping timeout: 246 seconds]
b_hoffman has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby-lang
rikkipitt has quit [Remote host closed the connection]
yxhuvvd has quit [Ping timeout: 272 seconds]
yxhuvvd has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby-lang
zekriad has joined #ruby-lang
stef204 has quit [Remote host closed the connection]
stef204 has joined #ruby-lang
zekriad has quit [Client Quit]
intinig has joined #ruby-lang
[H]unt3r has quit [Quit: Leaving]
ledestin has joined #ruby-lang
intinig has quit [Ping timeout: 250 seconds]
jolg42 has joined #ruby-lang
tsujp has quit [Quit: tsujp is outta here]
roamingdog has quit [Remote host closed the connection]
LMity has joined #ruby-lang
djbkd has joined #ruby-lang
lytol has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
enebo has quit [Quit: enebo]
charliesome has quit [Quit: zzz]
loincloth has joined #ruby-lang
piotrj has quit [Ping timeout: 256 seconds]
loincloth has quit [Read error: Connection reset by peer]
KINGSABRI has quit [Quit: Konversation terminated!]
iliketurtles has joined #ruby-lang
roamingdog has joined #ruby-lang
lytol has joined #ruby-lang
piotrj has joined #ruby-lang
roamingdog has quit [Ping timeout: 264 seconds]
lytol has quit [Ping timeout: 255 seconds]
roamingdog has joined #ruby-lang
sarahdashdashp has joined #ruby-lang
Respek has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
roamingdog has quit [Read error: No route to host]
roamingdog has joined #ruby-lang
fusillicode has joined #ruby-lang
symm- has quit [Ping timeout: 272 seconds]
Missphoenix has joined #ruby-lang
LMity has joined #ruby-lang
Miphix has quit [Ping timeout: 264 seconds]
benanne has joined #ruby-lang
lapide_viridi has joined #ruby-lang
|jemc| has quit [Remote host closed the connection]
sarahdashdashp has quit [Quit: sarahdashdashp]
iliketurtles has joined #ruby-lang
apt-get_ has quit [Remote host closed the connection]
lytol has joined #ruby-lang
mattyohe has joined #ruby-lang
lapide_viridi has quit [Client Quit]
havenwood has quit []
LMity has quit [Ping timeout: 246 seconds]
intinig has joined #ruby-lang
b_hoffman has joined #ruby-lang
intinig has quit [Ping timeout: 250 seconds]
riotjones has joined #ruby-lang
LMity has joined #ruby-lang
caseydri_ has joined #ruby-lang
caseydriscoll has quit [Read error: Connection reset by peer]
Iskarlar has joined #ruby-lang
riotjones has quit [Ping timeout: 246 seconds]
vladgh has quit [Remote host closed the connection]
dellavg_ has quit [Ping timeout: 264 seconds]
leat has quit [Ping timeout: 248 seconds]
tomaz_b has joined #ruby-lang
relix has joined #ruby-lang
rikkipitt has joined #ruby-lang
rikkipitt has quit [Ping timeout: 264 seconds]
LMity has quit [Ping timeout: 245 seconds]
Respek has quit [Quit: gone to sleep. ZZZzzz…]
b_hoffman has quit [Quit: b_hoffman]
red_menace has quit [Quit: leaving...]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
LMity has joined #ruby-lang
benanne has quit [Quit: kbai]
iamninja has quit [Read error: Connection reset by peer]
Iskarlar has quit [Read error: Connection reset by peer]
Iskarlar has joined #ruby-lang
iamninja has joined #ruby-lang
fusillicode has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby-lang
hahuang65 has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
hahuang65 has quit [Ping timeout: 246 seconds]
bruno- has quit [Quit: Lost terminal]
Iskarlar_ has joined #ruby-lang
bruno- has joined #ruby-lang
Iskarlar has quit [Ping timeout: 272 seconds]
intinig has joined #ruby-lang
iliketurtles has joined #ruby-lang
tomaz_b has quit [Quit: Leaving]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lytol has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
intinig has quit [Ping timeout: 252 seconds]
lele has joined #ruby-lang
lytol has joined #ruby-lang
lele is now known as Guest24
LMity has quit [Ping timeout: 255 seconds]
jolg42 has quit [Quit: ZZZzzz…]
workmad3 has quit [Ping timeout: 255 seconds]
Musashi007 has quit [Quit: Musashi007]
shinnya has quit [Ping timeout: 264 seconds]
wicope has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
jolg42 has joined #ruby-lang
thelastinuit has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
existensil has quit [Quit: WeeChat 0.4.2]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
existensil has joined #ruby-lang
caseydri_ has quit [Remote host closed the connection]
funnel has quit [Ping timeout: 265 seconds]
momomomomo has quit [Quit: momomomomo]
ur5us has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
riotjones has joined #ruby-lang
DLSteve has joined #ruby-lang
riotjones has quit [Ping timeout: 256 seconds]
iliketurtles has quit [Quit: zzzzz…..]
pico-pete has quit [Ping timeout: 245 seconds]
pico-pete has joined #ruby-lang
intinig has joined #ruby-lang
funnel has joined #ruby-lang
caseydriscoll has joined #ruby-lang
caseydriscoll has quit [Ping timeout: 256 seconds]
intinig has quit [Ping timeout: 264 seconds]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby-lang
roamingdog has joined #ruby-lang
tockitj has quit [Changing host]
tockitj has joined #ruby-lang
roamingdog has quit [Ping timeout: 250 seconds]
hahuang65 has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 1.1.1]
|jemc| has joined #ruby-lang
hahuang65 has quit [Ping timeout: 264 seconds]
lytol has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benanne has joined #ruby-lang
sankaber has joined #ruby-lang
loincloth has joined #ruby-lang
sankaber has quit [Ping timeout: 254 seconds]
loincloth has quit [Read error: Connection reset by peer]
jefus_ has joined #ruby-lang
jefus__ has quit [Ping timeout: 244 seconds]
benanne has quit [Quit: kbai]
jolg42 has quit [Quit: ZZZzzz…]
caseydriscoll has joined #ruby-lang
ruby-lang665 has joined #ruby-lang
<ruby-lang665>
Hello
intinig has joined #ruby-lang
<ruby-lang665>
I had some questions regarding exception handling. Could someone help me?
<zenspider>
ask, don't ask to ask.
AlexAltea has quit [Ping timeout: 272 seconds]
<ruby-lang665>
Okay- I initially had a piece of code that was supposed to check if my server recieved a connection, and if it didn't, it would send an error message.
<ruby-lang665>
So it was basically a begin...rescue...end snippet
<ruby-lang665>
Now, I want it to handle only specific exceptions.
havenwood has joined #ruby-lang
<zenspider>
kk
<zenspider>
and?
<ruby-lang665>
So instead of using 'rescue => exception', I'm using 'rescue Timeout::Error' followed by 'rescue Net::LDAP::LdapError'
caseydriscoll has quit [Ping timeout: 250 seconds]
<zenspider>
... and?
<ruby-lang665>
But that gives me the error: Empty string passed to getElementById().
<ruby-lang665>
zenspider : Thanks so much! It worked :)
<zenspider>
what was the problem?
<ruby-lang665>
I was rescuing Net::LDAP::LdapError, when the correct thing was Net::LDAP::Error
<ruby-lang665>
The blank rescue helped figure that out.
<ruby-lang665>
All thanks to you.
lytol has joined #ruby-lang
<zenspider>
glad you're up and running.
<zenspider>
you might want to track down whatever it is that hid the problem from you
<ruby-lang665>
I also looked at the quick reference guide whose link you gave. Being new to Rails, I had been looking for something like this for a while now.
<ruby-lang665>
It's now on my bookmarks!
bruno- has quit [Read error: Connection reset by peer]