<chrisseaton>
If I'm using semantic versioning for a gem, then writing "~> 0.1" in an application using that gem is wrong isn't it? Because it would allow 0.2 and I can't guarantee the interface for that. Or does RubyGems already know about that?
Rickmasta has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
nobitanobi has quit [Remote host closed the connection]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
minor is said to be backwards compatible but 0. says anything goes anywhere, not sure which you're referring to
<jhass>
~> 1.0 is good, ~> 0.1 is depends on the author
<chrisseaton>
Right so if I say ~> 0.1, does RubyGems knows that since anything goes, it can't use 0.2 for that dependency?
<jhass>
no
<chrisseaton>
ok thanks
marr has quit [Read error: Connection reset by peer]
<jhass>
would be a bit counterproductive anyway, given there are authors that make the normal promises for 0. versions already
mjuszczak has quit []
sdwrage has quit [Quit: This computer has gone to sleep]
pawnbox has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ext0 has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
sdothum has joined #ruby
matp has quit [Remote host closed the connection]
matp_ has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 276 seconds]
rbennacer has quit [Ping timeout: 246 seconds]
quazimodo has joined #ruby
rbennacer has joined #ruby
skolman_ has quit [Remote host closed the connection]
quazimodo has quit [Client Quit]
skolman has joined #ruby
smathy is now known as smathy_afk
skolman has quit [Remote host closed the connection]
skolman_ has joined #ruby
axl_ has joined #ruby
mnrmnaugh is now known as ketpewp
frem_ has quit [Quit: Connection closed for inactivity]
centrx has quit [Quit: centrx]
youch has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 260 seconds]
skolman_ has quit [Ping timeout: 252 seconds]
axl_ has quit [Client Quit]
ur5us has quit [Remote host closed the connection]
sneakerhax has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
grassass has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
ixti has quit [Quit: WeeChat 1.5]
diegoviola has quit [Quit: WeeChat 1.5]
sumobob has quit [Ping timeout: 276 seconds]
Eiam_ has joined #ruby
ruurd has joined #ruby
ruurd is now known as Guest92849
nankyokusei has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
youch has joined #ruby
benlieb has quit [Quit: benlieb]
nankyokusei has quit [Ping timeout: 244 seconds]
UserInNeed has quit [Quit: Goodbye suckas]
beauby has joined #ruby
curses has joined #ruby
mistermocha has joined #ruby
Mr0rris0 has joined #ruby
ledestin has joined #ruby
jaguarmagenta has joined #ruby
der-landgraf has quit [Quit: WeeChat 1.5]
n_blownapart has quit []
beauby has quit [Ping timeout: 260 seconds]
der-landgraf has joined #ruby
beauby has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
webus has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
opus_ has joined #ruby
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
sepp2k has joined #ruby
Devalo has joined #ruby
zyzioziom has quit [Ping timeout: 260 seconds]
PaulCape_ has joined #ruby
PaulCapestany has quit [Ping timeout: 276 seconds]
merqlove has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #ruby
Devalo has quit [Ping timeout: 260 seconds]
janebootydoe has quit [Quit: Leaving]
tomphp has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
tungd has quit [Ping timeout: 240 seconds]
<soud>
what book/resource do you guys recommend to learn ruby for someone with prior programming knowledge?
zyzioziom has joined #ruby
<Zarthus>
soud: I learnt it by basically just doing it, it's a bit weird to wrap your head around initially but the docs are, well, *good enough* to get you started. There's also a very basic learn ruby thing on the site
<Zarthus>
it'll get you familiar with some of the immediate differences (puts over println, blocks are a thing, symbols)
tungd has joined #ruby
<Zarthus>
now just to add some irony, I have a question about how I'm having trouble navigating the docs ;) I'm currently navigating the YAML/Store page of the docs, and #initialize supports yaml_opts - I however see no indication of what options are valid. Is there a magic trick I'm missing here, or is it "go dive in the source code"? http://ruby-doc.org/stdlib-2.2.3/libdoc/yaml/rdoc/YAML/Store.html
glytchbinary has joined #ruby
<soud>
Zarthus: hehe alright, thanks
<Zarthus>
soud: if you don't learn by doing, I think !books may be a command, but there's only one way to find out and it might make me look like a fool
<Zarthus>
!books
<Zarthus>
Guess that's a not
<soud>
docs and google will do then :)
<Zarthus>
definitely stick round, i'm sure other people have good feedback on the matter
duderonomy has joined #ruby
terlar has quit [Ping timeout: 276 seconds]
blackgoat has quit [Ping timeout: 260 seconds]
<soud>
sure, I always like to stick around even to see other people's questions answered
<Zarthus>
oh yeah, this channel has done me plenty good too
glytchbinary has left #ruby [#ruby]
glytchbinary has joined #ruby
<Zarthus>
so to answer my own question: YAML aint YAML]
<awer>
after compiling how do you set the compliled ruby version to be the default globally?
zyzioziom has joined #ruby
<jhass>
rbenv global is pretty much the way afaik
<jhass>
do a dozen rbenv rehash for good measure
<awer>
jhass: ok thanks ill try that
blackmesa has joined #ruby
eL_bamba has quit [Remote host closed the connection]
<awer>
jhass: thanks that worked
<awer>
moss: thanks for your help
blackmesa has quit [Ping timeout: 240 seconds]
<awer>
shevy: thanks too
<moss>
no worries
<shevy>
awer just what comes first on $PATH should work fine
kareeoleez has joined #ruby
<shevy>
does the wordpress scan work too? :D
<awer>
imi using zsh so i might need to update my PATH
<moss>
that scanner should detect wordpress installs and rm -rf them
<shevy>
haha
<moss>
:)
<awer>
it gets worse....
<awer>
they have joomla too!
<awer>
and coldfusion :-)
zapata has quit [Ping timeout: 260 seconds]
kareeoleez has quit [Ping timeout: 246 seconds]
<shevy>
as long as it is not drupal
<shevy>
they are using that for university structure here - in the bioinformatics department :\
<moss>
drupal...
<moss>
why did they name a cms after something that sounds like an std
<moss>
'i got drupal from this chick on friday'
zyzioziom1 has joined #ruby
CROOKED^HILLARY^ has quit [Ping timeout: 252 seconds]
kareeoleez has joined #ruby
lxsameer has joined #ruby
zyzioziom has quit [Ping timeout: 260 seconds]
zyzioziom has joined #ruby
zyzioziom1 has quit [Ping timeout: 276 seconds]
PaulCape_ has joined #ruby
aswen has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<adaedra>
<jhass> do a dozen rbenv rehash for good measure — :D
nankyokusei has joined #ruby
xcesariox has joined #ruby
zapata has joined #ruby
<jhass>
if I learned anything from religion than that mindless repetition is supposed to be good
<moss>
hahah
PaulCapestany has quit [Ping timeout: 260 seconds]
CROOKED^HILLARY^ has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
xcesariox has quit [Read error: Connection reset by peer]
Vingador has quit [Ping timeout: 260 seconds]
krobzaur has joined #ruby
banister has joined #ruby
krobzaur has quit [Ping timeout: 260 seconds]
<shevy>
lol
stannard has joined #ruby
allcentury has joined #ruby
bronson has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
dsea has quit [Ping timeout: 250 seconds]
flughafen_ has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PaulCapestany has joined #ruby
PaulCape_ has quit [Ping timeout: 244 seconds]
jaguarmagenta has joined #ruby
dmr8 has joined #ruby
bluOxigen has joined #ruby
m_antis has joined #ruby
GarethAdams has joined #ruby
jaguarmagenta has quit [Ping timeout: 250 seconds]
lxsameer has quit [Ping timeout: 276 seconds]
roamingdog has joined #ruby
banister has joined #ruby
ruby783 has joined #ruby
mjuszczak has joined #ruby
chouhoulis has joined #ruby
craigp has joined #ruby
blackmesa has joined #ruby
Devalo has joined #ruby
<ruby783>
I have a quick noob question. In "Eloquent Ruby" i read that it is more advisable to write for example >var = var.upcase< as opposed to >var.upcase!<. Can someone explain in laymens terms why that is? Cheers :)
<jhass>
ruby783: you do know the difference?
swills has quit [Remote host closed the connection]
<ruby783>
Not really :(
chouhoulis has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 240 seconds]
<ruby783>
I mean in know the difference between upcase and upcase! in a sense that the one with the bang will alter the variable while the first doesnt
<jhass>
ruby783: the difference is that .upcase returns a new string with the changes, while .upcase! modifies the existing string in place
<jhass>
cool, I wanted
<jhass>
so, say someone gave you the value of var. They still may hold a reference to it themselves, with the latter now you modified the value not only for yourself but also for them.
chouhoulis has joined #ruby
roamingdog has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<ruby783>
Hmm i think I'm getting closer to understanding it, thank you for your answer. Just to clarify, wouldn't var = var.upcase also alter the assignment of var and thus the value someone else is still holding?
pawnbox has quit [Remote host closed the connection]
tk__ has joined #ruby
pawnbox has joined #ruby
<elementaru>
you mean var=var.upcase will only hold true inside that method, whereas var.upcase! will change var's value outside method as well?
swills has joined #ruby
<jhass>
ruby783: no, a local variable is a reference to an object, other people can only hand you the object, not the "variable" so to speak
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
<jhass>
you update what the variable points to, not the object you've been given and assigned to it initially
PaulCape_ has joined #ruby
crazydiamond has joined #ruby
<jhass>
elementaru: yes, kinda
zyzioziom has quit [Ping timeout: 244 seconds]
<jhass>
ruby783: you need to separate what a variable and an object is. A variable points to an object, it's not the object itself
PaulCapestany has quit [Ping timeout: 250 seconds]
dopie has quit [Ping timeout: 252 seconds]
<ruby783>
Ok, i think i got it :) Thanks a lot. Awesome community
hack_fish has quit [Quit: Lost terminal]
|2701 has joined #ruby
<jhass>
yw
stardiviner has quit [Ping timeout: 246 seconds]
flughafen_ has quit [Ping timeout: 276 seconds]
imperator has joined #ruby
flughafen_ has joined #ruby
ur5us has quit [Remote host closed the connection]
boboc has quit [Remote host closed the connection]
ruby783 has quit [Ping timeout: 250 seconds]
boboc has joined #ruby
krobzaur has joined #ruby
tomphp has joined #ruby
flughafen_ has quit [Ping timeout: 260 seconds]
I has joined #ruby
I is now known as Guest38297
boboc has quit [Ping timeout: 240 seconds]
platzhirsch has joined #ruby
aswen has quit [Ping timeout: 276 seconds]
krobzaur has quit [Ping timeout: 276 seconds]
noService has quit [Read error: Connection reset by peer]
j3r0 has joined #ruby
noService has joined #ruby
nando293921 has joined #ruby
krobzaur has joined #ruby
zenlot has quit [Ping timeout: 252 seconds]
bollullera has joined #ruby
jancel has joined #ruby
<imperator>
does Process.uid= actually do anything on OSX?
Gasher has quit [Ping timeout: 276 seconds]
zenlot has joined #ruby
bollullera has left #ruby [#ruby]
flughafen_ has joined #ruby
PaulCapestany has joined #ruby
jancel has quit [Remote host closed the connection]
jancel has joined #ruby
krobzaur has quit [Ping timeout: 260 seconds]
j3r0 has quit [Quit: Leaving]
PaulCape_ has quit [Ping timeout: 276 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
saneax_AFK is now known as saneax
matp has joined #ruby
idle_task has joined #ruby
idletask has quit [Ping timeout: 276 seconds]
allcentury has quit [Ping timeout: 276 seconds]
awer has quit [Quit: Lost terminal]
flughafen_ has quit [Ping timeout: 244 seconds]
griffindy has joined #ruby
troulouliou_dev has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
dangerousdave has joined #ruby
kgrz has joined #ruby
hutch34_ has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chopin has joined #ruby
Biopandemic2 has joined #ruby
nettoweb has joined #ruby
k3rn31 has joined #ruby
Biopandemic has quit [Ping timeout: 252 seconds]
PaulCape_ has joined #ruby
beauby has joined #ruby
PaulCapestany has quit [Ping timeout: 276 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jancel has quit [Remote host closed the connection]
zyzioziom has joined #ruby
curses has quit []
zast has joined #ruby
gareth_ has joined #ruby
GarethAdams has quit [Disconnected by services]
JakFrist has joined #ruby
mjuszczak has quit []
gareth_ has quit [Client Quit]
GarethAdams has joined #ruby
zyzioziom has quit [Ping timeout: 276 seconds]
chopin has quit [Remote host closed the connection]
Madplatypus has joined #ruby
Vingador has joined #ruby
lukec has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rippa has joined #ruby
aswen has joined #ruby
Nimonas has joined #ruby
platzhirsch has quit [Ping timeout: 276 seconds]
tomphp has joined #ruby
Vingador has quit [Ping timeout: 252 seconds]
elementaru has quit [Ping timeout: 272 seconds]
Nimonas is now known as elemenn
platzhirsch has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has joined #ruby
aswen has quit [Ping timeout: 276 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
CROOKED^HILLARY^ has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
PaulCapestany has joined #ruby
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
k3rn31 has quit [Quit: Computer has gone to sleep.]
jancel has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 252 seconds]
kirun has joined #ruby
stardiviner has joined #ruby
LoneHerm_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terlar has quit [Ping timeout: 260 seconds]
aegis3121 has joined #ruby
LoneHerm_ has quit [Ping timeout: 240 seconds]
jaguarmagenta has joined #ruby
sk_0 has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
craigp has quit [Ping timeout: 246 seconds]
jaguarmagenta has quit [Ping timeout: 276 seconds]
troulouliou_dev has joined #ruby
wigust_ has joined #ruby
matp has quit [Remote host closed the connection]
aegis3121 has quit [Ping timeout: 276 seconds]
jhack has joined #ruby
PaulCape_ has joined #ruby
wigust has quit [Ping timeout: 252 seconds]
jhack_ has joined #ruby
PaulCapestany has quit [Ping timeout: 276 seconds]
j3r0 has joined #ruby
jhack has quit [Ping timeout: 240 seconds]
jhack_ is now known as jhack
Devalo has joined #ruby
nanoz has joined #ruby
terlar has joined #ruby
Cohedrin has joined #ruby
wigust_ has quit [Remote host closed the connection]
ptx0 has joined #ruby
dangerousdave has joined #ruby
imperator has quit [Quit: Leaving]
ptx0 has left #ruby [#ruby]
Es0teric has joined #ruby
warreng_ has quit [Quit: Page closed]
Devalo has quit [Ping timeout: 244 seconds]
banister has joined #ruby
tk__ has quit [Quit: ばいばい]
Alazoral has joined #ruby
warreng__ has quit [Quit: Page closed]
chipotle has quit [Ping timeout: 276 seconds]
elementaru has joined #ruby
elemenn has quit [Ping timeout: 272 seconds]
matp has joined #ruby
matp has quit [Client Quit]
ptx0 has joined #ruby
matp has joined #ruby
CROOKED^HILLARY^ has joined #ruby
Alazoral has quit [Ping timeout: 244 seconds]
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
nettoweb has joined #ruby
hutch34_ has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
davedev24 has quit [Remote host closed the connection]
DanKnox_ has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
boboc has quit []
firstdayonthejob has joined #ruby
PaulCapestany has joined #ruby
sandroqz has joined #ruby
reaVer has quit [Remote host closed the connection]
PaulCape_ has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
reaVer has joined #ruby
kgrz has quit [Ping timeout: 250 seconds]
moeabdol has quit [Quit: WeeChat 1.4]
LoneHerm_ has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tyrant_ has joined #ruby
moeabdol has joined #ruby
gtsai has joined #ruby
m4rCsi_ has joined #ruby
m4rCsi has quit [Ping timeout: 252 seconds]
sandroqz is now known as sandroqz_
CROOKED^HILLARY^ has quit [Ping timeout: 240 seconds]
sandroqz_ is now known as sandroqz
sandroqz has quit [Quit: Leaving the channel...]
sandroqz has joined #ruby
tildes has joined #ruby
cjbottaro has joined #ruby
pawnbox has quit [Remote host closed the connection]
dmr8 has left #ruby ["Leaving"]
troulouliou_dev has quit [Quit: Leaving]
pawnbox has joined #ruby
chipotle has joined #ruby
cjbottaro has quit [Client Quit]
PaulCape_ has joined #ruby
cjbottaro has joined #ruby
chopin has joined #ruby
roamingdog has joined #ruby
nando293921 has quit [Ping timeout: 276 seconds]
sandroqz has quit [Quit: Leaving the channel...]
PaulCapestany has quit [Ping timeout: 252 seconds]
sandroqz has joined #ruby
sandroqz has quit [Remote host closed the connection]
sandroqz has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chopin_ has joined #ruby
CROOKED^HILLARY^ has joined #ruby
sandroqz has quit [Client Quit]
hutch34 has joined #ruby
sandroqz has joined #ruby
davedev24 has joined #ruby
sandroqz has quit [Client Quit]
gtsai has quit [Remote host closed the connection]
LaT0rtue has joined #ruby
gtsai has joined #ruby
chopin has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
kareeoleez has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
gtsai has quit [Ping timeout: 246 seconds]
m_antis has quit [Ping timeout: 240 seconds]
nickjj_ has joined #ruby
rdark has joined #ruby
rdark has quit [Changing host]
rdark has joined #ruby
roamingdog has quit [Remote host closed the connection]
nickjj has quit [Ping timeout: 252 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
sepp2k1 has joined #ruby
hutch34 has quit [Ping timeout: 244 seconds]
kareeoleez has joined #ruby
sepp2k has quit [Ping timeout: 276 seconds]
roamingdog has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
roamingdog has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
roamingdog has joined #ruby
PaulCapestany has joined #ruby
PaulCape_ has quit [Ping timeout: 276 seconds]
ctp__ has joined #ruby
hutch34 has joined #ruby
kareeoleez has joined #ruby
mikeric has joined #ruby
nankyokusei has joined #ruby
m_antis has joined #ruby
JakFrist has joined #ruby
ctp__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeoleez has quit [Ping timeout: 240 seconds]
CROOKED^HILLARY^ has quit [Ping timeout: 276 seconds]
benlieb has joined #ruby
platzhirsch has quit [Ping timeout: 252 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
Oclair_ has joined #ruby
rubyaw has joined #ruby
rbennacer has quit [Remote host closed the connection]
Oclair has quit [Ping timeout: 252 seconds]
PaulCape_ has joined #ruby
Regulati_ has joined #ruby
sfmk has joined #ruby
kareeoleez has joined #ruby
PaulCapestany has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 260 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
KantonKid has quit [Ping timeout: 260 seconds]
zenlot6 has joined #ruby
zenlot has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
antgel has joined #ruby
rubyaw has quit [Quit: Leaving...]
jhack has quit [Quit: jhack]
firstdayonthejob has quit [Quit: WeeChat 1.5]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sumobob has joined #ruby
jaguarmagenta has quit [Ping timeout: 276 seconds]
jancel has joined #ruby
Mia has joined #ruby
helpa has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
helpa has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
staticfox has quit [Read error: Connection reset by peer]
Sean_ has joined #ruby
staticfox has joined #ruby
jancel has quit [Remote host closed the connection]
jancel has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
<Sean_>
Hello! I have a question. If I am using Array#include? and I have a custom #== implemented on the objects in my array, is my custom #== method supposed to be called?
firstdayonthejob has joined #ruby
benlieb has quit [Quit: benlieb]
Devalo has joined #ruby
<jhass>
yes
hutch34 has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
c355e3b has joined #ruby
PaulCapestany has joined #ruby
PaulCape_ has quit [Ping timeout: 276 seconds]
arlek_ has joined #ruby
ramfjord has joined #ruby
KantonKid has joined #ruby
sdwrage has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Sean_>
jhass Interesting. I will dig deeper. Thanks
zyzioziom has joined #ruby
jancel has quit [Remote host closed the connection]
<jhass>
habitullence: I don't see how, no
kareeoleez has quit [Ping timeout: 252 seconds]
<jhass>
I think it's a little non-obvious though, I'd make sure it's inside def place_upstream_in_front or so
<jhass>
also not sure it still makes semantically sense then?
<habitullence>
jhass: thanks. Yeah, it's a snippet from inside a method.
<habitullence>
How do you mean?
<jhass>
say we start with [a, b, c] a is the client, b received the request, handed it to c which is your upstream, then you'll get [c, a, b], reading backwards a didn't pass the request to c
nickjj_ has quit [Quit: Leaving]
nickjj_ has joined #ruby
<jhass>
or is this just a list of alternatives?
davedev2_ has joined #ruby
<habitullence>
Yes, so there's an lb you don't see here and this is a list of upstream app servers
davedev24 has quit [Ping timeout: 250 seconds]
<jhass>
okay then
<habitullence>
I guess what I was wondering is if there's a way of magically combining these two lines so I'm not referring to the same variable three times, just define it once.
<jhass>
well since you don't care about order you could [response.headers['X-Upstream-Addr'], '10.0.15.20:8484', '10.0.15.21:8484'].uniq, given you trust the header
KantonKid has quit [Ping timeout: 276 seconds]
<habitullence>
That would mean having a method like rotate that took the IP header instead
<jhass>
I mean order of the rest of the elements given there's more than one
sdwrage has joined #ruby
<habitullence>
it's proxying round robin though so for the test I'd have to go through in order
nando293921 has joined #ruby
<habitullence>
i.e., I need the current proxy to be at the start
hutch34 has joined #ruby
<habitullence>
jhass: am I explaining properly
<habitullence>
?
<jhass>
yeah I think so
<jhass>
I'd say put a good name on it and stop worrying
nickjj_ is now known as nickjj
<habitullence>
Thanks, I get caught up on the little things a lot.
PaulCape_ has joined #ruby
PaulCapestany has quit [Ping timeout: 276 seconds]
kareeoleez has joined #ruby
rkazak has joined #ruby
imperator has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
AnoHito_ has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Ping timeout: 260 seconds]
AnoHito has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
kareeoleez has joined #ruby
pat_ has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 244 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
sdwrage has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
_aeris_ has quit [Ping timeout: 276 seconds]
aswen has quit [Ping timeout: 276 seconds]
PaulCapestany has joined #ruby
_aeris_ has joined #ruby
Dimik has joined #ruby
PaulCape_ has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
cdg has joined #ruby
roamingdog has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
jaguarmagenta has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
|ifei5good has joined #ruby
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
blaxter has quit [Read error: Connection reset by peer]
|ifei5g00d has quit [Ping timeout: 250 seconds]
aries_liuxueyang has joined #ruby
LoneHermit has joined #ruby
chopin_ has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 252 seconds]
phredus has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
cyclonis has quit [Ping timeout: 260 seconds]
noService has quit [Quit: Lost terminal]
kareeoleez has joined #ruby
nankyokusei has joined #ruby
PaulCape_ has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
PaulCapestany has quit [Ping timeout: 252 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
flughafen_ has joined #ruby
nando293921 has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
roamingdog has joined #ruby
craigp has joined #ruby
jbird00 has joined #ruby
KantonKid has joined #ruby
nando293921 has joined #ruby
zyzioziom has quit [Ping timeout: 252 seconds]
zyzioziom has joined #ruby
gregf has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
aswen has joined #ruby
stannard has quit [Remote host closed the connection]
roamingdog has joined #ruby
djbkd has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
KantonKid has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
kareeoleez has joined #ruby
<jbird00>
I have a person class and a number of lines the person should wait in, but they're not sure which line they're supposed to be in, only the lines know. Is the correct approach to make an array of Line classes and methods like Line::for?(some_person) and just loop until it's true and return that class?
k3rn31 has joined #ruby
Regulati_ has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
Azure has joined #ruby
roamingdog has joined #ruby
shinnya has quit [Ping timeout: 276 seconds]
kareeoleez has quit [Ping timeout: 276 seconds]
idefine has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
Sean_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sean_ has joined #ruby
kgrz has joined #ruby
<shevy>
so convoluted
flughafen_ has quit [Ping timeout: 276 seconds]
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
beauby has quit [Ping timeout: 260 seconds]
idefine has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
blackmesa has joined #ruby
stannard has joined #ruby
PaulCape_ has quit [Ping timeout: 260 seconds]
imperator has quit [Quit: Leaving]
Azure has quit [Remote host closed the connection]
snguyen has joined #ruby
vdamewood has joined #ruby
idle_task has quit [Quit: .]
kareeoleez has joined #ruby
rrichardsr3 has joined #ruby
Devalo has joined #ruby
tomphp has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
aswen has quit [Ping timeout: 276 seconds]
mikeric has quit []
Devalo has quit [Ping timeout: 250 seconds]
kgrz has quit [Ping timeout: 240 seconds]
tomphp has quit [Excess Flood]
kareeoleez has quit [Ping timeout: 250 seconds]
|2701 has quit [Quit: Connection closed for inactivity]
tomphp has joined #ruby
blackmesa has joined #ruby
arlek_ has quit [Ping timeout: 240 seconds]
Devalo has joined #ruby
tomphp has quit [Client Quit]
kareeoleez has joined #ruby
vinleod has joined #ruby
eL_bamba has joined #ruby
vdamewood has quit [Ping timeout: 260 seconds]
vinleod is now known as vdamewood
jaguarmagenta has quit [Remote host closed the connection]
tomphp has joined #ruby
tristanp has quit [Remote host closed the connection]
rrichardsr3 has quit [Quit: He who dares .... wins.]
zyzioziom has joined #ruby
tildes has quit [Ping timeout: 252 seconds]
ico has quit [Ping timeout: 250 seconds]
tildes has joined #ruby
Coldblackice has quit [Ping timeout: 276 seconds]
moeabdol has quit [Quit: WeeChat 1.4]
tomphp has joined #ruby
roamingdog has quit [Remote host closed the connection]
mikeric has joined #ruby
tildes has quit [Ping timeout: 246 seconds]
KnownSyntax has joined #ruby
vdamewood has quit [Quit: Life beckons.]
kareeoleez has joined #ruby
rrichardsr3 has joined #ruby
elemenn has joined #ruby
|2701 has joined #ruby
elementaru has quit [Ping timeout: 272 seconds]
KantonKid has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Puffball has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
aswen has quit [Ping timeout: 276 seconds]
<dreinull>
uh, whats the preferred way to assign key foo and value bar if h is nil or {}?
<dreinull>
in one line
PaulCapestany has joined #ruby
ged_ has quit [Read error: Connection reset by peer]
ged_ has joined #ruby
Es0teric has quit [Ping timeout: 240 seconds]
<jhass>
(h ||= {})[key] = value but I'd just write it in two lines really
hightower2 has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
<dreinull>
jhass so I'm not missing some basic knowledge, it just doesn't exist. I was wondering.
<jhass>
it does, I just showed
flughafen_ has quit [Ping timeout: 260 seconds]
PaulCape_ has quit [Ping timeout: 260 seconds]
<jhass>
it's just ugly
<dreinull>
yes, but nothing pretty
<dreinull>
that's ok.
flopsec has quit [Remote host closed the connection]
Guest74612 has quit [Remote host closed the connection]
alxgsv has quit [Remote host closed the connection]
rrichardsr3 has quit [Quit: He who dares .... wins.]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
KantonKid has quit [Ping timeout: 276 seconds]
kareeoleez has joined #ruby
henrydangprg has joined #ruby
<henrydangprg>
hello
<jhass>
hi
nanoz has quit [Ping timeout: 260 seconds]
A5101 has joined #ruby
wldcordeiro has quit [Ping timeout: 260 seconds]
kareeoleez has quit [Ping timeout: 240 seconds]
alxgsv has joined #ruby
<henrydangprg>
I'm a complete beginner at Ruby, and I'm a bit confused. Can anyone help me out a bit?
diegoaguilar has quit [Remote host closed the connection]
<jhass>
?anyone
<ruby[bot]>
Just ask your question, if anyone has or can, they will respond.
<elemenn>
there has to be some simple way for this, I just can't google it
<elemenn>
I have abc, and I have string, and I want to check if every char of string is in the abc
<henrydangprg>
So in this code snippet (http://pastebin.com/dAftcr7j), In line 15, the block is called on the ruby_tree instance, but why isn't the entire tree printed out? (because of line 24)
<elemenn>
if I attach $ to every var it works fine
<elemenn>
but I understand that global vars should be for extreme cases
<elemenn>
so.. what's the best practice in this example?
<elemenn>
I mean what confuses me that 'tikrinam' method doesn't recognize vars defined in its parent method
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy>
global vars can be bad because they leak in and out over everywhere
<adaedra>
A good replacements for global vars are class instance variables.
<shevy>
I also would not define a method in a method
<shevy>
for abecele, you can use @abecele
<shevy>
is this spanish? :D
<elemenn>
lithuanian
<adaedra>
yeah, don't nest methods, I'm not sure it does what you think it does.
<adaedra>
for abecele, you can just do ('A'..'Z').to_a
borodin has joined #ruby
<elemenn>
thanks ^^
<shevy>
cool, looked like spanish to me on a first glance
kareeoleez has quit [Ping timeout: 260 seconds]
<elemenn>
ok, so let's say I have those two methods defined seperately
<elemenn>
what kind of vars do I use to communicate between them?
<borodin>
anybody know anything about nokogiri? I'm trying to read an html document - the docs about noko are very helpful for parent/child relationships, but not for sibling relationships
<shevy>
those with a leading @
<adaedra>
elemenn: you could pass them as parameters, or, if you're in a class, instance variables
kirun has quit [Remote host closed the connection]
<adaedra>
you can also declare tikrinam as a lambda and close other the parent scope
<adaedra>
`tikrinam = -> (x)`, the use `tikrinam.call(x)` below
TomyLobo has quit [Ping timeout: 244 seconds]
<borodin>
like, my document has <dl><dt>...</dt><dd>...<dd><dt>...</dt><dd>...</dd></dl> so I need to associate the first dt.text with the following dd.text, then the next dt.text with the next dd.text
|ifei5g00d has joined #ruby
<borodin>
unclear how ot do that
<elemenn>
ok thanks, I have some reading to do :) interesting stuff tho
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
borodin: should be rather easy to target through xpath, I think
<borodin>
yeah I found it, using next_element... Thanks adaedra
<adaedra>
cool
|ifei5good has quit [Ping timeout: 260 seconds]
wldcordeiro has quit [Ping timeout: 260 seconds]
PaulCapestany has joined #ruby
swein has joined #ruby
mleung has quit [Quit: mleung]
PaulCape_ has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
roamingdog has quit [Remote host closed the connection]
kareeoleez has joined #ruby
roamingdog has joined #ruby
swein has quit [Client Quit]
symm- has quit [Quit: Leaving...]
roamingd_ has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
mleung has joined #ruby
roamingd_ has quit [Remote host closed the connection]
kareeoleez has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
tristanp has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
k3rn31 has quit [Quit: Leaving...]
Azure has joined #ruby
jancel has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
Yzguy has joined #ruby
jancel has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
PaulCape_ has joined #ruby
stannard has joined #ruby
PaulCapestany has quit [Ping timeout: 246 seconds]