bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
oPaxa has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
IRLeif_AFK has quit [Quit: I'm away at the moment.]
sarkyniin has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
toretore has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
skade has joined #ruby-lang
drbrain has joined #ruby-lang
qba73 has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
kgrz_ has joined #ruby-lang
chussenot has quit [Quit: chussenot]
kgrz_ has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 246 seconds]
kgrz has joined #ruby-lang
czetter has joined #ruby-lang
banister has joined #ruby-lang
oPaxa has quit [Ping timeout: 244 seconds]
bsvineeth has quit [Remote host closed the connection]
stamina has joined #ruby-lang
ianmcshane has joined #ruby-lang
robmiller has joined #ruby-lang
IRLeif has joined #ruby-lang
chussenot has joined #ruby-lang
sMecKs has quit [Read error: Connection reset by peer]
enkristoffer has joined #ruby-lang
mfmfmfmfmfmf has quit [Remote host closed the connection]
ianmcshane has quit [Read error: Connection reset by peer]
Benstr___ has joined #ruby-lang
Benstr___ has quit [Ping timeout: 240 seconds]
Johz has joined #ruby-lang
chussenot has quit [Quit: chussenot]
skade has quit [Quit: Computer has gone to sleep.]
whitequa1k is now known as whitequark
hellangel7 has joined #ruby-lang
IRLeif is now known as IRLeif_AFK
IRLeif_AFK is now known as IRLeif
stamina has quit [Quit: WeeChat 0.4.3]
mikecmpbll has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
skade has joined #ruby-lang
IRLeif is now known as IRLeif_AFK
IRLeif_AFK is now known as IRLeif
amerine has joined #ruby-lang
Benstr___ has joined #ruby-lang
amerine has quit [Ping timeout: 240 seconds]
Benstr___ has quit [Ping timeout: 240 seconds]
symm- has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
thomasxie has quit [Ping timeout: 260 seconds]
skade has joined #ruby-lang
mikecmpbll has quit [Remote host closed the connection]
mikecmpbll has joined #ruby-lang
btiefert2 has joined #ruby-lang
face has joined #ruby-lang
rue_XIV has joined #ruby-lang
pabs_ has joined #ruby-lang
IRLeif is now known as IRLeif_AFK
michael_mbp has joined #ruby-lang
rhizome_ has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
yorickpeterse1 has joined #ruby-lang
bougytoo has joined #ruby-lang
TheMoonMaster_ has joined #ruby-lang
vereteran has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
stef_204 has joined #ruby-lang
mahlon_ has joined #ruby-lang
vondruch_ has joined #ruby-lang
pipecloud has joined #ruby-lang
pipecloud has quit [Changing host]
pipecloud has joined #ruby-lang
kaiza_ has joined #ruby-lang
IRLeif_AFK has quit [Quit: I'm away at the moment.]
TheMoonMaster has quit [Ping timeout: 260 seconds]
kaiza has quit [Ping timeout: 260 seconds]
pipework has quit [Ping timeout: 260 seconds]
faces has quit [Ping timeout: 260 seconds]
btiefert has quit [Ping timeout: 260 seconds]
pabs has quit [Ping timeout: 260 seconds]
michael_imac has quit [Ping timeout: 260 seconds]
naquad has quit [Ping timeout: 260 seconds]
rue has quit [Ping timeout: 260 seconds]
go|dfish has quit [Ping timeout: 260 seconds]
yorickpeterse has quit [Ping timeout: 260 seconds]
bougyman has quit [Ping timeout: 260 seconds]
rhizome has quit [Ping timeout: 260 seconds]
mahlon has quit [Ping timeout: 260 seconds]
`micro_ has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 260 seconds]
Raynes has quit [Ping timeout: 260 seconds]
pipecloud is now known as pipework
`micro has joined #ruby-lang
Raynes has joined #ruby-lang
`micro is now known as Guest77540
go|dfish has joined #ruby-lang
czetter has quit [Quit: Connection closed for inactivity]
IRLeif has joined #ruby-lang
s1kx_ has joined #ruby-lang
flgr_ has joined #ruby-lang
kylo_ has joined #ruby-lang
lele|2 has joined #ruby-lang
Raynes_ has joined #ruby-lang
kylo has quit [Ping timeout: 250 seconds]
flgr has quit [Ping timeout: 250 seconds]
Raynes has quit [Excess Flood]
stef_204 has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Ping timeout: 250 seconds]
gregf_ has quit [Ping timeout: 250 seconds]
Silex has quit [Ping timeout: 250 seconds]
s1kx has quit [Ping timeout: 250 seconds]
mfn has quit [Ping timeout: 250 seconds]
lele|w has quit [Ping timeout: 250 seconds]
rhizome_ has quit [Ping timeout: 250 seconds]
kaiza_ has quit [Ping timeout: 250 seconds]
Silex^^ has joined #ruby-lang
deg- has quit [Ping timeout: 250 seconds]
deg- has joined #ruby-lang
gregf_ has joined #ruby-lang
Raynes_ is now known as Raynes
rhizome has joined #ruby-lang
Raynes is now known as Guest40614
yorickpeterse1 has quit [Quit: The NSA took my baby]
yorickpeterse has joined #ruby-lang
th2389___ has quit [Ping timeout: 250 seconds]
kaiza has joined #ruby-lang
th2389___ has joined #ruby-lang
jlpeters has quit [Ping timeout: 250 seconds]
ianmcshane has joined #ruby-lang
stef_204 has joined #ruby-lang
mfn has joined #ruby-lang
lupine has quit [Ping timeout: 250 seconds]
IRLeif is now known as IRLeif_AFK
IRLeif_AFK has quit [Quit: I'm away at the moment.]
lupine has joined #ruby-lang
jlpeters has joined #ruby-lang
michael_mbp has joined #ruby-lang
pskosinski has joined #ruby-lang
ItSANgo__ has joined #ruby-lang
symm-_ has joined #ruby-lang
`micro_ has joined #ruby-lang
zenspider_ has joined #ruby-lang
aef_ has quit [Ping timeout: 246 seconds]
gix has quit [Ping timeout: 246 seconds]
dvorak has quit [Ping timeout: 246 seconds]
spuk_ has joined #ruby-lang
gix has joined #ruby-lang
dvorak has joined #ruby-lang
aef has joined #ruby-lang
Benstr___ has joined #ruby-lang
_ko10 has joined #ruby-lang
zenspide- has joined #ruby-lang
kgrz_ has joined #ruby-lang
Abuh_ has joined #ruby-lang
Guest77540 has quit [*.net *.split]
vereteran has quit [*.net *.split]
bougytoo has quit [*.net *.split]
symm- has quit [*.net *.split]
jayne has quit [*.net *.split]
_ko1 has quit [*.net *.split]
ohsix has quit [*.net *.split]
spuk has quit [*.net *.split]
Rylee has quit [*.net *.split]
zenspider has quit [*.net *.split]
ItSANgo has quit [*.net *.split]
naquad has joined #ruby-lang
Benstr___ has quit [Ping timeout: 240 seconds]
toertore has joined #ruby-lang
ironcame1 has joined #ruby-lang
shinnya_ has joined #ruby-lang
skade_ has joined #ruby-lang
raggedjack1 has joined #ruby-lang
zenspider_ has quit [Ping timeout: 246 seconds]
tpope has quit [Ping timeout: 246 seconds]
kgrz has quit [Ping timeout: 246 seconds]
Abuh has quit [Ping timeout: 246 seconds]
verto_ has quit [Ping timeout: 246 seconds]
toretore has quit [Ping timeout: 246 seconds]
shinnya has quit [Ping timeout: 246 seconds]
ironcamel has quit [Ping timeout: 246 seconds]
webhat has quit [Ping timeout: 246 seconds]
ohsix_ has joined #ruby-lang
verto has joined #ruby-lang
wmoxam has quit [Ping timeout: 246 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
symm- has joined #ruby-lang
wmoxam has joined #ruby-lang
banister has joined #ruby-lang
kgrz has joined #ruby-lang
tpope has joined #ruby-lang
yliu_ has joined #ruby-lang
enkristo_ has joined #ruby-lang
Rylee has joined #ruby-lang
bougyman has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kylo has joined #ruby-lang
kgrz_ has quit [*.net *.split]
symm-_ has quit [*.net *.split]
kylo_ has quit [*.net *.split]
skade has quit [*.net *.split]
Johz has quit [*.net *.split]
enkristoffer has quit [*.net *.split]
_rgn has quit [*.net *.split]
vlad_sta- has quit [*.net *.split]
yliu has quit [*.net *.split]
pskosinski has quit [*.net *.split]
earthquake has joined #ruby-lang
isale-eko has joined #ruby-lang
Johz has joined #ruby-lang
_rgn has joined #ruby-lang
webhat has joined #ruby-lang
_ko10 has quit [Quit: Quit Nadoka 0.8.4+git(v0.8.3-5-g0ae819a-dt)]
isale-eko has quit [Client Quit]
_ko1 has joined #ruby-lang
ohsix_ is now known as ohsix
tbuehlmann has quit [Remote host closed the connection]
ohsix has quit [Quit: Reconnecting]
rsl has quit [Ping timeout: 260 seconds]
ohsix has joined #ruby-lang
jayne has joined #ruby-lang
rsl has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gjaldon has joined #ruby-lang
rsl has quit [Ping timeout: 240 seconds]
Sphynx has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
symm-_ has joined #ruby-lang
vondruch__ has joined #ruby-lang
flashingfreethro has joined #ruby-lang
aef_ has joined #ruby-lang
_ko10 has joined #ruby-lang
fusillicode1 has quit [Quit: Leaving.]
`micro__ has joined #ruby-lang
webhat_ has joined #ruby-lang
mikecmpb_ has joined #ruby-lang
<enkristo_>
Hey, I'm trying to split strings of comma separated regular expressions. Since these regular expressions can be anything I can't split at the comma. I tried with split(/\/.+?\//) but as you can see at http://rubular.com/r/JXKWaCcrkO it doesn't work. Any help?
enkristo_ is now known as enkristoffer
enkristoffer has quit [Changing host]
enkristoffer has joined #ruby-lang
jlpeters_ has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
<micka>
yeah, that was because I saw new people connecting. I'm trying to find a better place than stackoverflow, like on the ruby dev issues or something
yfeldblum has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
<waxjar>
have you checked the log?
Lewix has quit [Remote host closed the connection]
<micka>
what log?
<waxjar>
the log the error message refers to
<jhass>
also post your `env` (/topic)
<micka>
if you mean 'gem_make.out' it contains the exact same message.
ianmcshane has joined #ruby-lang
<waxjar>
that's unfortunate
floyd2_ has joined #ruby-lang
eam_ has joined #ruby-lang
ianmcshane has quit [Read error: Connection reset by peer]
floyd2 has quit [Ping timeout: 272 seconds]
eam has quit [Ping timeout: 272 seconds]
benlakey has quit [Ping timeout: 272 seconds]
benlakey has joined #ruby-lang
<micka>
I added my env
kramsee has quit [Ping timeout: 272 seconds]
kith_ has joined #ruby-lang
<jhass>
what's your gem --version ?
<micka>
2.2.2
<jhass>
try updating that: gem update --system or whatever the rvm command was
skade has joined #ruby-lang
bhaak has quit [Ping timeout: 272 seconds]
kith has quit [Ping timeout: 272 seconds]
jasiek has quit [Ping timeout: 272 seconds]
TTilus has quit [Ping timeout: 272 seconds]
rtl has quit [Ping timeout: 272 seconds]
xybre has quit [Ping timeout: 272 seconds]
jasiek has joined #ruby-lang
rtl has joined #ruby-lang
earthquake has quit [Quit: earthquake]
<micka>
I now have gem-2.4.1. however I still get the same error
bhaak has joined #ruby-lang
toertore is now known as toretore
skade has quit [Quit: Computer has gone to sleep.]
kramsee has joined #ruby-lang
bsvineet_ has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
banister has joined #ruby-lang
bsvineet_ has joined #ruby-lang
<jhass>
mmh
<jhass>
what does ruby -e "RbConfig::CONFIG['INSTALL_PROGRAM']" say?
xybre has joined #ruby-lang
bsvineeth has quit [Ping timeout: 240 seconds]
<jhass>
and ruby -e "RbConfig::MAKEFILE_CONFIG['INSTALL_PROGRAM']"
<jhass>
and which install
<micka>
ruby -e "RbConfig::CONFIG['INSTALL_PROGRAM']" says nothing. howether in irb i get ".//install"
<jhass>
er, yeah, missed the p's
<jhass>
now that's weird
<micka>
ruby -e "RbConfig::MAKEFILE_CONFIG['INSTALL_PROGRAM']" says nothing (again) but in irb I get "$(INSTALL)"
<micka>
I understand that you are trying to fix the RbConfig::CONFIG['INSTALL_PROGRAM'] => ".//install"
<micka>
Am I right ?
amerine has joined #ruby-lang
<jhass>
Pretty much
dabradley has joined #ruby-lang
<jhass>
though I expected it to actually write $(INSTALL) into the Makefile which should've been overwritten by the environment variable
<jhass>
but it didn't, oh well
ledestin_ has joined #ruby-lang
<jhass>
so for some reason it is set to that weird value (mine is properly at /usr/bin/install)
<jhass>
since it's in RbConfig::CONFIG that happened at Ruby compile time
<micka>
oh ok
<jhass>
whether that's RVM's, Ubuntu's or your systems fault I don#t know
<micka>
then reinstalling ruby could fix it ?
<jhass>
maybe
avdi_ is now known as avdi
<jhass>
updating RVM and rvm reinstall is definitely worth a try
ledestin has quit [Ping timeout: 246 seconds]
ledestin_ is now known as ledestin
Benstr___ has joined #ruby-lang
<micka>
Ok I will try updating rvm, then reinstall ruby2.1.2 without having INSTALL set in my env, if it doesn't work I will try again by setting INSTALL in my env first.
<jhass>
sounds like a plan
amerine has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby-lang
Benstr___ has quit [Ping timeout: 240 seconds]
bsvineet_ has quit [Remote host closed the connection]
<matti>
jhass: I immediately thought about the A-Team after you've said that.
<matti>
;D
<jhass>
sadly not my generation ;)
bsvineeth has joined #ruby-lang
<matti>
jhass: No? How old are you? ;]
<jhass>
23
* matti
feels old now
<matti>
Oh boy oh boy
<matti>
jhass: I am a tiny wee bit older ;]
<matti>
Indeed.
<apeiros>
I love it when a plan comes together
<matti>
apeiros: :)
* apeiros
always found it funny how much gunning happens in A-Team, but nobody ever dies…
<matti>
apeiros: Same with Airwolf and Knightrider ;]
<apeiros>
never liked airwolf :-/
<apeiros>
though, still not as bad as that other series with the boat. because every problem can be solved with a boat!
brixen has quit [Excess Flood]
<micka>
It works! I just reinstalled ruby2.1.2 now my RbConfig::CONFIG['INSTALL_PROGRAM'] is set to "/usr/bin/install" and the native extensions compile! Thanks jhass!
<apeiros>
hm, digitalocean has issues? o0
<jhass>
micka: great! mkmf is such a mess...
bsvineeth has quit [Ping timeout: 255 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brixen has joined #ruby-lang
<matti>
apeiros: Boat? The one with some weird turbo thing?
<toretore>
the love boat
yfeldblum has joined #ruby-lang
Benstr___ has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
<apeiros>
matti: I barely remember. thundersomething
<jhass>
also name your files something.rb so we get syntax highlighting ;)
<necro_>
yes line #s correspond
<jhass>
and yeah, at least the end for the case is missing
<necro_>
oh ok, thanks
<jhass>
then I see an else without an if
<toretore>
it's there, just wonrgly indented
<jhass>
oh, that's the case else wrongly indented
kirin` has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
<necro_>
where should it be indented to?
<jhass>
line 28 has a missing .
kirin` has joined #ruby-lang
<toretore>
if movies[title.to_sym]nil?
<jhass>
]nil? -> ].nil?
kek has quit [Ping timeout: 250 seconds]
<necro_>
oh wow thank you
<jhass>
necro_: the same level as the when's
<necro_>
that fixed it...
<necro_>
thanks jhass
<jhass>
necro_: a few suggestions if you don't mind: don't store the movie titles as symbols, keep them as strings
<necro_>
I don't mind, thank you
<necro_>
why shouldn't they be symbols?
<jhass>
if foo.nil? -> unless foo or swap the if / else altogether
Lewix has joined #ruby-lang
<jhass>
Symbols are used as identifying values, your movie titles are actual data
<necro_>
oh right
<necro_>
I'm not following your foo.nil comment
<jhass>
in general if you to_sym something, especially user input it's a clear sign you should be using strings instead
<necro_>
oh interesting thank you
<jhass>
the only falsey values in ruby are false and nil, so if nil and if false will both cause the else branch to be executed
<necro_>
right
<toretore>
necro_: if in doubt, don't use symbols
<jhass>
so most people tend to prefer writing if foo instead of if !foo.nil? or unless foo instead of if foo.nil?
<jhass>
basically you should only need nil? if you need to differentiate between nil and false
<necro_>
but how could if foo replace foo.nil?
<jhass>
unless foo an
<jhass>
c
<jhass>
bah
<jhass>
*can
<necro_>
right
<jhass>
unless is basically if !
<necro_>
ah...thank you
<jhass>
or you simply swap the contents of the if and else branches
<jhass>
in your particular example we can get even more clear though: unless movies.has_key? title
lucas has left #ruby-lang [#ruby-lang]
<necro_>
oh interesting
<necro_>
thank you for your help, very much appreciated...
kirin` has quit [Read error: Connection reset by peer]
kirin` has joined #ruby-lang
vintik has joined #ruby-lang
ledestin has joined #ruby-lang
<necro_>
@jhass
<necro_>
uhm
<necro_>
I understand that my symbols in the hash ought to be strings, but the exercise I am working has directed me to do symbols, so for the sake of the exercise I am keeping that format - however, I am unsure why, but there is still an issue with my code, the error now tells me I am not properly assigning the new data in 'update' to the hash
microdex has quit [Remote host closed the connection]
kirin` has quit [Ping timeout: 250 seconds]
<necro_>
this is my code to assign it back to the hash: movies[title.to_sym] = rating.to_i
kirin` has joined #ruby-lang
<jhass>
what's the error?
necro_ has quit [Quit: Page closed]
necro has joined #ruby-lang
kirin` has quit [Read error: Connection reset by peer]
_lexjm has joined #ruby-lang
kirin` has joined #ruby-lang
imkmf has joined #ruby-lang
saarinen has joined #ruby-lang
nofxx has quit [Ping timeout: 240 seconds]
kirin` has quit [Ping timeout: 255 seconds]
kirin` has joined #ruby-lang
yatish27 has joined #ruby-lang
kgrz has joined #ruby-lang
yfeldblum has joined #ruby-lang
emmesswhy has joined #ruby-lang
kirin` has quit [Ping timeout: 245 seconds]
yatish27 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
kirin` has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
yatish27 has quit [Ping timeout: 250 seconds]
Sphynx has joined #ruby-lang
gjaldon has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kirin` has quit [Ping timeout: 240 seconds]
kirin` has joined #ruby-lang
sMecKs has joined #ruby-lang
kirin` has quit [Ping timeout: 240 seconds]
kek has joined #ruby-lang
saarinen has quit [Quit: saarinen]
djbkd has joined #ruby-lang
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kirin` has joined #ruby-lang
gjaldon has joined #ruby-lang
oPaxa has quit [Quit: oPaxa]
kek has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 255 seconds]
vintik has quit [Remote host closed the connection]
kirin` has quit [Ping timeout: 245 seconds]
kirin` has joined #ruby-lang
_lexjm has joined #ruby-lang
Sphynx has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
FarlaTux has quit [Quit: Leaving [Bye Everybody]]
PHP4Ever has quit [Quit: Leaving [Bye Everybody]]
Dev-Gitter has quit [Quit: Leaving [Bye Everybody]]
marr has quit []
kirin` has quit [Ping timeout: 245 seconds]
kirin` has joined #ruby-lang
l0l0 has joined #ruby-lang
l0l0 has quit [Quit: Lost terminal]
<heftig-android>
You should be using strings because symbols are never garbage collected
<heftig-android>
It's not just an issue of semantics