ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
ootoovak has joined #ruby-lang
lsegal has joined #ruby-lang
bryancp has joined #ruby-lang
qpingu has quit [Quit: Leaving.]
headius has quit [Quit: headius]
saxy has quit [Remote host closed the connection]
SiliconDon has joined #ruby-lang
MrPunkin has quit [Quit: MrPunkin]
saxy has joined #ruby-lang
headius has joined #ruby-lang
saxy has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
BigFatFatty has left #ruby-lang [#ruby-lang]
lcdhoffman has joined #ruby-lang
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
lightcap has quit [Quit: Computer has gone to sleep.]
<zenspider> def AccumulatedChangesInFairValueOfLoanOrReceivableAttributableToChangesInCreditRiskOfFinancialAssets
<zenspider> def InterestsContinuedToBeHeldByTransferorInFinancialAssetsThatItHasSecuritizedOrServicingAssetsOrLiabilitiesRelatingToAssetsThatItHasSecuritizedAbstract
t95341 has quit [Remote host closed the connection]
t42369 has joined #ruby-lang
totallymike has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
lightcap has joined #ruby-lang
bfreeman has joined #ruby-lang
saxy has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
heftig has joined #ruby-lang
rwilcox has quit [Ping timeout: 244 seconds]
BigFatFatty has joined #ruby-lang
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
m3nd3s has quit [Remote host closed the connection]
ootoovak has quit [Quit: ootoovak]
Leeky_afk is now known as Leeky
saxy has quit [Remote host closed the connection]
savage- has quit [Ping timeout: 244 seconds]
m3nd3s has joined #ruby-lang
saxy has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
Leeky is now known as Leeky_afk
tonni has joined #ruby-lang
m3nd3s has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
saxy has quit [Remote host closed the connection]
t42369 has quit [Remote host closed the connection]
t1977 has joined #ruby-lang
wallerdev has joined #ruby-lang
lightcap has quit [Quit: Computer has gone to sleep.]
wmoxam has quit [Ping timeout: 244 seconds]
tonni has quit [Ping timeout: 246 seconds]
macmartine has joined #ruby-lang
wmoxam has joined #ruby-lang
andoyasushi has joined #ruby-lang
SiliconDon has quit [Quit: SiliconDon]
brianpWins has quit [Quit: brianpWins]
wpaulson has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
BigFatFatty has left #ruby-lang [#ruby-lang]
yankov has quit [Quit: yankov]
alvaro_o has quit [Quit: Ex-Chat]
chendo has quit [Ping timeout: 252 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
towski has quit [Remote host closed the connection]
lightcap has joined #ruby-lang
lightcap has quit [Ping timeout: 246 seconds]
g0bl1n has quit [Quit: g0bl1n]
brianpWins has joined #ruby-lang
Brainix has quit [Quit: Brainix]
daidoji has joined #ruby-lang
icooba_ has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
icooba has quit [Ping timeout: 240 seconds]
icooba_ is now known as icooba
dous has quit [Remote host closed the connection]
erichmenge has joined #ruby-lang
ryanf has joined #ruby-lang
tenderlove has quit [Ping timeout: 245 seconds]
naz has joined #ruby-lang
yankov has joined #ruby-lang
t1977 has quit [Remote host closed the connection]
t41092 has joined #ruby-lang
mrsolo has quit [Quit: This computer has gone to sleep]
saxy has joined #ruby-lang
<deryl> oh yeah lovin them method names
saxy has quit [Ping timeout: 245 seconds]
saxy has joined #ruby-lang
ilyam has joined #ruby-lang
krz has quit [Quit: krz]
g0bl1n has joined #ruby-lang
CarlB_the_great has joined #ruby-lang
t41092 has quit [Remote host closed the connection]
CarlB_the_great has quit [Remote host closed the connection]
t23010 has joined #ruby-lang
g0bl1n has quit [Quit: g0bl1n]
laszlokorte_ has joined #ruby-lang
laszlokorte_ has quit [Client Quit]
laszlokorte has quit [Ping timeout: 264 seconds]
chimkan_ has left #ruby-lang [#ruby-lang]
Leeky_afk is now known as Leeky
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
titaniumNoob has quit [Ping timeout: 244 seconds]
laszlokorte has joined #ruby-lang
Leeky is now known as Leeky_afk
savage- has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
fgomez has joined #ruby-lang
AnarchoTroll has joined #ruby-lang
dmotz has joined #ruby-lang
stanzgy has joined #ruby-lang
dmotz has left #ruby-lang [#ruby-lang]
areil has joined #ruby-lang
glasswax has joined #ruby-lang
<glasswax> hello, ruby novice here. i have a quick question about ruby version management if anyone has a moment.
diegoviola has quit [Ping timeout: 245 seconds]
daidoji has quit []
<wallerdev> feel free to just ask your q glasswax
<glasswax> i use osx, but i installed ruby 1.9.3 with brew. when i run bundle install on a project, it returns a syntax error related to the gemfile using a : for hashes
<glasswax> which i know is a feature of 1.9.3
<glasswax> when i run ruby -v
<glasswax> it says i have ruby 1.9.3
<glasswax> `which ruby` points to the brew version
joshw701 has joined #ruby-lang
<glasswax> everything on google points to it being an issue with ruby 1.8 hitting the : hashes, but it would seem i have ruby 1.9
<glasswax> wondering if anyone has an idea
<glasswax> thanks
titaniumNoob has joined #ruby-lang
<bnagy> use rbenv
<bnagy> I normally replace / rename the system ruby stuff on osx, just in case
<bnagy> although in theory you should never hit it
<glasswax> `rbenv global` spits back 1.9.3-p125
wmoxam has quit [Ping timeout: 268 seconds]
<bnagy> then check your shell, check your path, remove / rename the system ruby (or symlink it)
<bnagy> and then go looking for bundler bugs if none of that works I guess
<bnagy> I know 0 about bundler, sry
<glasswax> alright i'll give it a shot
<glasswax> thanks
<glasswax> gem seems to be using /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby according to the logs
<glasswax> haven't encountered that before
wmoxam has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
<bnagy> are you running something as root?
<bnagy> and do you get a correct 'which gem' as yourself?
<glasswax> which gem tells me `/usr/local/bin/gem`
totallymike has quit [Ping timeout: 245 seconds]
<glasswax> not running it as root
<bnagy> ok well that's wrong
<bnagy> you must not have rbenv set up correctly
<glasswax> hm ok
savage- has quit [Remote host closed the connection]
<glasswax> what should it say?
<bnagy> ensure that your path is correct and that you did rbenv rehash etc
<bnagy> /Users/whoever/.rbenv/shims/gem or something
<glasswax> gotcha
<glasswax> does rbenv conflict with brew?
<glasswax> brew-installed ruby that is
<bnagy> shouldn't
<glasswax> ok thanks
<bnagy> but your ~/.rbenv should be ahead of system dirs in your path
titaniumNoob has quit [Ping timeout: 264 seconds]
savage- has joined #ruby-lang
titaniumNoob has joined #ruby-lang
ilyam has quit [Quit: ilyam]
titaniumNoob has quit [Read error: Connection reset by peer]
Doug__ has joined #ruby-lang
Doug__ has quit [Remote host closed the connection]
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
banisterfiend` has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
AnarchoTroll has quit [Quit: Leaving]
tenderlove has joined #ruby-lang
headius has quit [Quit: headius]
ricardovaleriano has joined #ruby-lang
macmartine has joined #ruby-lang
andoyasushi has quit [Ping timeout: 252 seconds]
brianpWins has joined #ruby-lang
ilyam has joined #ruby-lang
ilyam has quit [Client Quit]
laszlokorte has quit [Remote host closed the connection]
laszlokorte has joined #ruby-lang
Leeky_afk is now known as Leeky
tenderlove has quit [Remote host closed the connection]
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Leeky is now known as Leeky_afk
burgestrand has quit [Quit: Leaving.]
tonni has joined #ruby-lang
mistym has quit [Remote host closed the connection]
saxy has quit [Remote host closed the connection]
saxy has joined #ruby-lang
mistym has joined #ruby-lang
saxy has quit [Remote host closed the connection]
sailias has joined #ruby-lang
glasswax has quit [Quit: Leaving.]
deryl has quit [Quit: deryl]
mistym has quit [Remote host closed the connection]
saxy has joined #ruby-lang
CapnKernul has joined #ruby-lang
saxy has quit [Remote host closed the connection]
malev has quit [Ping timeout: 246 seconds]
sailias has quit [Ping timeout: 264 seconds]
saxy has joined #ruby-lang
neocoin has joined #ruby-lang
banisterfiend` has quit [Remote host closed the connection]
SuperTaz has quit [Remote host closed the connection]
SuperTaz has joined #ruby-lang
gsav has quit [Quit: Lost terminal]
AlHafoudh has joined #ruby-lang
gsav has joined #ruby-lang
kain has quit [Quit: exit]
gsav has quit [Client Quit]
gsav has joined #ruby-lang
gsav has quit [Client Quit]
gsav has joined #ruby-lang
AlHafoudh has quit [Client Quit]
saxy has quit [Remote host closed the connection]
agile has quit [Quit: Ex-Chat]
tenderlove has joined #ruby-lang
ricardovaleriano has quit [Remote host closed the connection]
joshw778 has joined #ruby-lang
tenderlove has quit [Ping timeout: 244 seconds]
yxhuvud has joined #ruby-lang
joshw778 has quit [Ping timeout: 268 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
runlevel1 has joined #ruby-lang
EvilJStoker has quit [Excess Flood]
joshw957 has joined #ruby-lang
zmack has joined #ruby-lang
runlevel1 has quit [Quit: runlevel1]
machuga has quit [Remote host closed the connection]
wubofeng has joined #ruby-lang
wubofeng has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 268 seconds]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
d3vic3 has joined #ruby-lang
andoyasushi has joined #ruby-lang
charliesome has joined #ruby-lang
Leeky_afk is now known as Leeky
EvilJStoker has joined #ruby-lang
<lake> i have a CSV document with an empty column. How can I use the csv library to remove that empty column?
Leeky is now known as Leeky_afk
vlad_starkov has joined #ruby-lang
<bnagy> lake: can't you just delete it?
t23010 has quit [Remote host closed the connection]
t20669 has joined #ruby-lang
ryanf has quit [Quit: leaving]
burgestrand has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
<lake> bnagy: i dunno, this csv is fucking massive, 33000 lines, not well formatted. :(
<lake> but it does consistantly have columns that are empty
<lake> which i am hoping to get rid of
<bnagy> how does the size of it make any difference to deleting a column?
nXqd has joined #ruby-lang
<bnagy> csv_table.by_col!.delete 4
<bnagy> or csv_table.delete 'unused_col'
yats has joined #ruby-lang
andoyasushi_ has joined #ruby-lang
saxy has joined #ruby-lang
andoyasushi has quit [Ping timeout: 240 seconds]
andoyasushi has joined #ruby-lang
<lake> bnagy: hmm. how do i instanciate a CSV::Table?
saxy has quit [Ping timeout: 245 seconds]
<bnagy> it's what you should get when you use csv
<mfn> Darn. Why does Ruby on Windows generate file and path names with forward slashes which other Windows application may not consume O_o
<bnagy> via parse or new or whatever
tjadc has joined #ruby-lang
andoyasushi_ has quit [Ping timeout: 265 seconds]
joshw701 has quit [Remote host closed the connection]
josh^ has quit [Remote host closed the connection]
JoshWines has quit [Remote host closed the connection]
<Mon_Ouie> mfn: What applications can't use forward slashes in paths?
<bnagy> mfn well most can, but yeah it's not ideal
<Mon_Ouie> Because Windows *does* support them
<bnagy> Mon_Ouie: not everywhere
<bnagy> and definitely not in most of the win32api
<mfn> Mon_Ouie: I used ruby to find me files I pass over to another shell script; which uses commands like "del" which does not accept path names with forward slashes
<mfn> so, del "C:/foo.txt" does not work, but del "C:\foo.txt" does
rue|w has joined #ruby-lang
<bnagy> File.split(fn).join "\\"
joshw957 has quit [Remote host closed the connection]
<bnagy> or just rewrite the whole thing in ruby \o/
ryanf has joined #ruby-lang
<Mon_Ouie> The problem with file split is that it always returns only two elements
<Mon_Ouie> (the dirname and the basename)
JoshWines has joined #ruby-lang
<mfn> The "other end" is under my jurisdiction, so to say. I find it weird to work with a language under an environment which does generate filenames which are basically not generally consumable on the OS. :/
<lake> bnagy: meh, i just get undefined method `encode' for nil:NilClass
<bnagy> Mon_Ouie: ugh good point
<mfn> s/is under/is not under/
<bnagy> mfn: they're definitely consumable to the OS
<bnagy> just not all the apps / DLLs :)
<mfn> bnagy: well, minor nit on the term
<bnagy> but yeah I have often wondered why you would have things like File.join, designed for OS independence and then never redefine the separator
<mfn> I usually don't do Ruby stuff on Windows, so I'll just walk away from this. But it feels just so weird.
<bnagy> I am betting bits of ruby / gems would break
<bnagy> mfn: just split and join
<bnagy> or tr
<mfn> bnagy: its not like I couldn't solve it ;) its that the developer has to take extra care because of this behaviour
<bnagy> patches welcome
<mfn> Well, on to more interesting topic :) Any idea, what the difference in Nokogiri of node methods #content #text and #inner_text is supposed to be? Documentation is sparse (== empty for some of them) and get the feeling the do the same ... but I'm unsure
<lake> bnagy: looks like i have to pass in headers.
<mfn> bnagy: hehe, not for all the money in the world :p
<bnagy> lake: did you try to delete an index without setting by_col! ?
workmad3 has joined #ruby-lang
burgestrand1 has joined #ruby-lang
tenderlove has joined #ruby-lang
banisterfiend` has joined #ruby-lang
kitallis has joined #ruby-lang
burgestrand has quit [Ping timeout: 245 seconds]
burgestrand has joined #ruby-lang
cantonic has quit [Quit: cantonic]
burgestrand1 has quit [Read error: Connection reset by peer]
tenderlove has quit [Remote host closed the connection]
solars has joined #ruby-lang
vlad_starkov has joined #ruby-lang
t20669 has quit [Remote host closed the connection]
t78008 has joined #ruby-lang
Criztian has joined #ruby-lang
dc5ala has joined #ruby-lang
<mfn> sources say, alias :text :content and alias :inner_text :content ; well, that explains it
IPGlider has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby-lang
ghanima has quit [Ping timeout: 244 seconds]
<yorickpeterse> Morning
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
stepnem has quit [Quit: ZNC - http://znc.sourceforge.net]
saxy has joined #ruby-lang
stayarrr has joined #ruby-lang
thone has joined #ruby-lang
saxy has quit [Ping timeout: 245 seconds]
thone_ has quit [Ping timeout: 246 seconds]
banisterfiend` is now known as banisterfiend_
qwerxy has joined #ruby-lang
banisterfiend_ is now known as banisterfiend
toretore has joined #ruby-lang
t78008 has quit [Remote host closed the connection]
t92376 has joined #ruby-lang
Leeky_afk is now known as Leeky
yankov has quit [Quit: yankov]
banisterfiend has quit [Ping timeout: 245 seconds]
banisterfiend has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
stayarrr has quit [Quit: Linkinus - http://linkinus.com]
Leeky is now known as Leeky_afk
jmcphers has quit [Quit: Leaving]
tenderlove has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
<lake> bnagy: yeah, nothing is working for. i have reduced to problem set to an easy csv: "Header,Header2,Header3,\nFoo,Bar,Baz,". I expect my new csv to be written as "Header,Header2,Header3\nFoo,Bar,Baz"
<lake> the last column should be deleted.
<lake> i have yet to find a simple way to achieve this...
qwerxy has quit [Quit: offski]
mytrile has joined #ruby-lang
tenderlove has quit [Ping timeout: 265 seconds]
ddfreyne has quit [Excess Flood]
ddfreyne has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby-lang
t92376 has quit [Remote host closed the connection]
t44656 has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby-lang
robotmay has joined #ruby-lang
ryanf has quit [Quit: leaving]
<bnagy> lake: well you need to operate on a table
<bnagy> on a quick skim I can only see an easy method for reading from a file CSV.table, but it must be possible
ramonmaruko has quit [Remote host closed the connection]
cdt has joined #ruby-lang
ramonmaruko has joined #ruby-lang
<lake> bnagy: this hackery is working. it makes me sick though
<lake> CSV.parse(x).transpose.delete_if {|x| x.all?(&:nil?) }.transpose.each {|x| file.puts x.join(',') unless x.all?(&:nil?) }
<bnagy> :<
<lake> deletes all columns that are empty and all rows that are empty
<bnagy> that's just working on an array or arrays
<bnagy> may as well not use CSV :(
<bnagy> but I can definitely see your point.. I can't find an obvious way to get a CSV::Table from a string
<lake> yeah, it's way faster than loading it up in csv objects. 65000 lines takes a long time like that. this works unforutnately
<bnagy> although I haven't searched very hard
<lake> i have and it has driven to the point of doing the above.
<lake> lol
<lake> sick i know, but faster to type that than find the correct CSV/FasterCSV incantation.
CapnKernul has quit [Quit: Leaving...]
schroedinbug has quit [Ping timeout: 244 seconds]
solars has joined #ruby-lang
rue|w has joined #ruby-lang
<lake> bnagy: that's not to say i didn't try. i spent the last hour screwing with it and started to want to smash things so i tried something else that "just worked"
gnufied has joined #ruby-lang
zmack has quit [Remote host closed the connection]
zmack_ has joined #ruby-lang
saxy has joined #ruby-lang
rue|w has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby-lang
saxy has quit [Ping timeout: 245 seconds]
Quatrerwin has quit [Ping timeout: 260 seconds]
<mfn> can I create a new scoped variable with pry-debugger which will be available when I 'next'?
<banisterfiend> mfn: what do u mean
<banisterfiend> like a global?
<mfn> banisterfiend: I wrote "foo = node.parent" in pry; then "foo" inspects the variable; then I entered 'next' and "foo" wasn't available anymore
savage- has quit [Ping timeout: 246 seconds]
<banisterfiend> mfn: use globals instead $foo = node.parent
SuperTaz has quit [Ping timeout: 268 seconds]
andoyasushi_ has joined #ruby-lang
<mfn> banisterfiend: awesome!
<erikh> w/ 4
andoyasushi has quit [Ping timeout: 256 seconds]
Musfuut has quit [Read error: Operation timed out]
goshakkk has joined #ruby-lang
cschneid has quit [Ping timeout: 246 seconds]
<matti> ;]
yats has quit [Quit: Leaving]
mytrile has quit [Remote host closed the connection]
yats has joined #ruby-lang
andoyasushi_ has quit [Ping timeout: 244 seconds]
qwerxy has joined #ruby-lang
schroedinbug has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
t44656 has quit [Remote host closed the connection]
stayarrr has joined #ruby-lang
t46947 has joined #ruby-lang
gentz_ has joined #ruby-lang
injekt_ has joined #ruby-lang
bluemonk_ has joined #ruby-lang
agib has quit [Ping timeout: 240 seconds]
imajes has quit [Ping timeout: 240 seconds]
mrodrigues has quit [Ping timeout: 240 seconds]
injekt has quit [Ping timeout: 240 seconds]
spuk has quit [Ping timeout: 240 seconds]
kuja has quit [Ping timeout: 240 seconds]
gentz has quit [Ping timeout: 240 seconds]
dvorak has quit [Ping timeout: 240 seconds]
threedaymonk has quit [Ping timeout: 240 seconds]
bfreeman has quit [Ping timeout: 240 seconds]
manuw has quit [Ping timeout: 240 seconds]
bluemonk has quit [Ping timeout: 240 seconds]
rhizmoe has quit [Ping timeout: 240 seconds]
ahf has quit [Ping timeout: 240 seconds]
manuw has joined #ruby-lang
Guest26352 has quit [Excess Flood]
DEac- has quit [Ping timeout: 240 seconds]
ironcamel has quit [Ping timeout: 240 seconds]
Guedes0 has joined #ruby-lang
ironcamel has joined #ruby-lang
agib has joined #ruby-lang
rhizmoe has joined #ruby-lang
ahf has joined #ruby-lang
ahf has quit [Changing host]
ahf has joined #ruby-lang
threedaymonk has joined #ruby-lang
dvorak has joined #ruby-lang
mrodrigues has joined #ruby-lang
DEac- has joined #ruby-lang
spuk has joined #ruby-lang
imajes has joined #ruby-lang
kuja has joined #ruby-lang
runeb has joined #ruby-lang
rohit has joined #ruby-lang
Quatrerwin has joined #ruby-lang
Quatrerwin has quit [Changing host]
Quatrerwin has joined #ruby-lang
floyd2 has joined #ruby-lang
t46947 has quit [Remote host closed the connection]
t55075 has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 244 seconds]
mytrile has joined #ruby-lang
rohit has quit [Ping timeout: 264 seconds]
andoyasushi has joined #ruby-lang
saxy has joined #ruby-lang
Leeky_afk is now known as Leeky
dhruvasa1ar has quit [Ping timeout: 244 seconds]
saxy has quit [Ping timeout: 264 seconds]
SuperTaz has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
dhruvasagar has joined #ruby-lang
bytephilia has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
cschneid has joined #ruby-lang
andoyasushi has quit [Ping timeout: 265 seconds]
Musfuut has joined #ruby-lang
Musfuut is now known as Guest24624
Leeky is now known as Leeky_afk
injekt_ has left #ruby-lang [#ruby-lang]
injekt has joined #ruby-lang
s1n4 has joined #ruby-lang
s1n4 has quit [Client Quit]
Guest24624 is now known as Musfuut
bytephilia has quit [Quit: Computer has gone to sleep.]
goshakkk has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tenderlove has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby-lang
tenderlove has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby-lang
x0F_ has joined #ruby-lang
x0F_ has quit [Changing host]
x0F_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ is now known as x0F
savage- has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
zenspider has quit [Ping timeout: 256 seconds]
t55075 has quit [Remote host closed the connection]
t85234 has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
rue|w has joined #ruby-lang
gnufied has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
Guedes0 has quit [Quit: Saindo]
Guedes0 has joined #ruby-lang
saxy has joined #ruby-lang
wpaulson has joined #ruby-lang
wpaulson has quit [Client Quit]
saxy has quit [Ping timeout: 245 seconds]
Fullmoon has joined #ruby-lang
JohnBat26 has joined #ruby-lang
Guedes0 has quit [Quit: Saindo]
RegEchse has joined #ruby-lang
justinmcp has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby-lang
m3nd3s has joined #ruby-lang
deryl has joined #ruby-lang
m3nd3s has quit [Ping timeout: 264 seconds]
saxy has joined #ruby-lang
vlad_starkov has joined #ruby-lang
s1n4 has joined #ruby-lang
saxy has quit [Remote host closed the connection]
qwerxy has quit [Read error: Connection reset by peer]
Leeky_afk is now known as Leeky
qwerxy has joined #ruby-lang
m3nd3s has joined #ruby-lang
lcdhoffman has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
<zzak> good morning!
<deryl> morning
setmeaway2 has joined #ruby-lang
totallymike has joined #ruby-lang
<matti> Hi hi zzak
areil has quit [Remote host closed the connection]
setmeaway has quit [Read error: Connection reset by peer]
Leeky is now known as Leeky_afk
saxy has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
Criztian has quit [Remote host closed the connection]
voker57 has quit [Remote host closed the connection]
IPGlider has quit []
heftig has joined #ruby-lang
relix has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
qwerxy has quit [Read error: No route to host]
qwerxy has joined #ruby-lang
relix has quit [Client Quit]
fromhet has quit [Quit: fromhet]
wmoxam_ has joined #ruby-lang
postmodern has quit [Quit: Leaving]
davidbalbert has quit [Ping timeout: 256 seconds]
davidbalbert has joined #ruby-lang
jxie has quit [Quit: leaving]
m3nd3s has quit [Remote host closed the connection]
ltd- has quit [Ping timeout: 256 seconds]
ltd- has joined #ruby-lang
m3nd3s has joined #ruby-lang
t85234 has quit [Remote host closed the connection]
t15366 has joined #ruby-lang
sailias has joined #ruby-lang
workmad3 has joined #ruby-lang
saxy has quit [Remote host closed the connection]
bytephilia has joined #ruby-lang
laszlokorte_ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
laszlokorte has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
mistym has joined #ruby-lang
erichmenge has joined #ruby-lang
carloslopes has joined #ruby-lang
<mfn> Is there a more idiomatic way to write if foo and foo.bar and foo.bar.baz ? Kotlin allows something like if foo?.bar?.baz ..
runeb has quit [Remote host closed the connection]
stayarrr has quit [Quit: Linkinus - http://linkinus.com]
<GeekOnCoffee> mfn: foo.try(:bar).try(:baz)
<banisterfiend> GeekOnCoffee: too bad that's not ruby ;)
<yxhuvud> GeekOnCoffee: that requires activesupport
<GeekOnCoffee> oof really?
<banisterfiend> mfn: you could also google for the andand gem
<GeekOnCoffee> sure enough
<mfn> Can a method be name '?' So I could make it liek try, but write foo.?(:bar).?(:baz) ... :)
<gnufied> I guess not.
mistym has quit [Remote host closed the connection]
<yxhuvud> I hope not.
stayarrr has joined #ruby-lang
<zzak> I will not.
<mfn> banisterfiend: thanks
<mfn> aye you can't, 'def ?' gives syntax error, unexpected tCHAR :p
<banisterfiend> it's ok
sailias has quit []
<deryl> is the activesupport non-use because its a gem from rails, or because the desire is to implement the capabilities it provides using the core/stdlib of ruby *only* (as in yeah you can extend with this gem, but lets see if we can do it using *just* ruby core and stdlib)
<deryl> the last i understand, the first i don't so just wondering
t15366 has quit [Remote host closed the connection]
t74575 has joined #ruby-lang
<zzak> Object.try is a fairly straight forward implementation: https://app.asana.com/0/547644880861/1550661593888
<banisterfiend> zzak: Object#try
<zzak> mt
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<zzak> yeah
<gnufied> deryl: I think a lot of bad blood is because, earlier when you used to require activesupport, suddenly you had zillions of new methods on ruby core classes.
<gnufied> now of course, they have made more granular requiring possible.
<gnufied> so, I think it is not so bad
<deryl> gnufied: i believe thats called monkey patching correct?
<gnufied> I never patched a money sir. ask dhh.
<mfn> deryl: yes, it is
<deryl> (i didn't hear that term until i got into ruby and still not sure of its usage pattern)
<deryl> ok, so i did surmise its usage correctly.
thisirs has joined #ruby-lang
<mfn> jup
<banisterfiend> it just means to add/remove/modify methods on a class defined by another library
<mfn> In ruby 2.0.0 they introduced refinements; a way to limit the scope of monkey patching because sometimes it can be problematic
<mfn> but currently it's unknown if they will stay
<deryl> yeah remember reading an article on Refinement
<deryl> think it was in Ruby Weekly iirc
CarlB_the_great has joined #ruby-lang
totallymike has quit [Quit: WeeChat 0.3.7]
bytephilia has quit [Quit: Computer has gone to sleep.]
mytrile has quit [Remote host closed the connection]
statbit has joined #ruby-lang
yats has quit [Read error: Connection reset by peer]
stayarrr has quit [Quit: Leaving...]
yats has joined #ruby-lang
ioga_wrk has quit [Ping timeout: 252 seconds]
ioga_wrk has joined #ruby-lang
tenderlove has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<mfn> Is rubys -w meant to be used? In practive it seems useless to me
tenderlove has quit [Ping timeout: 265 seconds]
<gnufied> it is quite useful and highly recommended at least when you are running ruby apps locally etc
KINGSABRI has joined #ruby-lang
<gnufied> why do you think, it is useless?
<mfn> I cannot remember writing anything without libraries; it seems I've hundreds of warning lines because of external libraries
t74575 has quit [Remote host closed the connection]
<mfn> gnufied: because once I activate it hundreds if not thousands of warning from libraries I use scroll over my screen; can't even properly see my own output :(
t81847 has joined #ruby-lang
yats has quit [Read error: Connection reset by peer]
<mfn> See http://pastie.org/4616293 for a sample; and this is just from the terminal, without scrolling back
Leeky_afk is now known as Leeky
bryancp has quit [Remote host closed the connection]
saxy has joined #ruby-lang
<KINGSABRI> Hello everybody
<KINGSABRI> I found a solution for keeping pty + channel open then change directories here :: http://pastebin.com/BR0mYijd
<KINGSABRI> the main issue now is ,, script keep repeat sending the commands to stdin of remote host without existing
<KINGSABRI> of course that should happen because nothing tilling channel to exist but when I use ".close" it execute nothing !!
JoshWines has quit [Ping timeout: 245 seconds]
<KINGSABRI> also I tried with eof! ,, it shows error
bytephilia has joined #ruby-lang
bytephilia has quit [Client Quit]
JoshWines has joined #ruby-lang
Leeky is now known as Leeky_afk
<mfn> gnufied: couldn't agree more ("why are these modes mixed")
dous has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
yats has joined #ruby-lang
<gnufied> however some of the examples mislav is proposing is not very correct
<gnufied> and code is indeed problematic
<gnufied> take rspec defining == for example, IIRC even rspec is moving away from that style of monkey patching ruby classes too much (http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax)
<gnufied> and what is that, attr_accessor and then trying to use undef, lol
<gnufied> not sure, how much you will agree there
CarlB_the_great has quit [Ping timeout: 244 seconds]
CarlB_th_ has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
stardiviner has joined #ruby-lang
nochaman_ has joined #ruby-lang
<TTilus> mislav.uniqpath.com seems to be down for me, going for google cache
wmoxam_ has quit [Ping timeout: 244 seconds]
dous_ has joined #ruby-lang
dous has quit [Ping timeout: 240 seconds]
slyphon has joined #ruby-lang
Fullmoon has quit [Ping timeout: 264 seconds]
Fullmoon_ has joined #ruby-lang
codewrangler has joined #ruby-lang
Fullmoon_ has quit [Client Quit]
yats has quit [Ping timeout: 248 seconds]
Fullmoon has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
CarlB_th_ has quit [Ping timeout: 265 seconds]
bytephilia has joined #ruby-lang
mistym has quit [Remote host closed the connection]
nochaman_ has left #ruby-lang [#ruby-lang]
kitallis has quit [Quit: Computer has gone to sleep.]
yats has joined #ruby-lang
runeb has joined #ruby-lang
outoftime has joined #ruby-lang
jmeeuwen has quit [Read error: Connection reset by peer]
t81847 has quit [Remote host closed the connection]
jmeeuwen has joined #ruby-lang
t98789 has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
rippa has joined #ruby-lang
bryancp has joined #ruby-lang
Fullmoon_ has joined #ruby-lang
Fullmoon_ has quit [Client Quit]
deryl has quit [Quit: Time To Go, Too Bad, So Sad!]
Fullmoon has quit [Ping timeout: 264 seconds]
Fullmoon has joined #ruby-lang
Hakon has joined #ruby-lang
JoshWines has quit [Remote host closed the connection]
yats has quit [Ping timeout: 264 seconds]
slyphon has quit [Ping timeout: 245 seconds]
nochamani has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
Virunga has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
sailias has joined #ruby-lang
<lzhz> what is the cause of this !/not oddity? https://gist.github.com/3529476
nochaman_ has joined #ruby-lang
wmoxam_ has joined #ruby-lang
ltd- has quit [Ping timeout: 265 seconds]
deryl has joined #ruby-lang
ltd- has joined #ruby-lang
<banisterfiend> lzhz: my guess is it somehow thinks u're defining a flip flop
toertore has joined #ruby-lang
nochamani has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
kvirani has joined #ruby-lang
ricardovaleriano has joined #ruby-lang
t98789 has quit [Remote host closed the connection]
<lzhz> banisterfiend: ah, that makes some kind of sense
t62190 has joined #ruby-lang
toretore has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby-lang
bytephilia has quit [Quit: Computer has gone to sleep.]
rue|w has quit [Remote host closed the connection]
ryez has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
stayarrr has joined #ruby-lang
rue|w has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
ryez has quit [Ping timeout: 245 seconds]
Austin__ has joined #ruby-lang
ricardovaleriano has quit [Read error: Connection reset by peer]
ricardovaleriano has joined #ruby-lang
wyhaines has joined #ruby-lang
yankov has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
solars has quit [Ping timeout: 264 seconds]
Virunga has quit [Read error: Connection reset by peer]
t62190 has quit [Remote host closed the connection]
t70485 has joined #ruby-lang
Virunga has joined #ruby-lang
kith_ has joined #ruby-lang
Caius has quit [Ping timeout: 252 seconds]
kith has quit [Read error: Connection reset by peer]
sj26 has quit [Quit: Rainbows!]
sj26 has joined #ruby-lang
slyphon has joined #ruby-lang
Caius has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
Leeky_afk is now known as Leeky
cantonic has joined #ruby-lang
|Vargas| has quit [Quit: ...]
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
tenderlove has joined #ruby-lang
jxie has joined #ruby-lang
kitallis has joined #ruby-lang
zmack_ has quit [Remote host closed the connection]
t70485 has quit [Remote host closed the connection]
t68500 has joined #ruby-lang
tenderlove has quit [Ping timeout: 244 seconds]
Leeky is now known as Leeky_afk
bytephilia has joined #ruby-lang
nXqd has quit [Ping timeout: 244 seconds]
nochaman_ has left #ruby-lang [#ruby-lang]
NemesisD has joined #ruby-lang
nXqd has joined #ruby-lang
wmoxam_ has quit [Quit: leaving]
ricardovaleriano has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 260 seconds]
macmartine has joined #ruby-lang
Asher1 has joined #ruby-lang
jxie has quit [Ping timeout: 265 seconds]
mtkd has joined #ruby-lang
retro|cz has quit [Ping timeout: 265 seconds]
stardiviner has joined #ruby-lang
m3nd3s has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
naz has quit [Read error: Connection reset by peer]
naz has joined #ruby-lang
dous_ has quit [Ping timeout: 245 seconds]
tenderlove has joined #ruby-lang
NemesisD has quit [*.net *.split]
Caius has quit [*.net *.split]
stayarrr has quit [*.net *.split]
gnufied has quit [*.net *.split]
gsav has quit [*.net *.split]
countdigi has quit [*.net *.split]
Asher has quit [*.net *.split]
nibbo has quit [*.net *.split]
ruskie has quit [*.net *.split]
meisterT has quit [*.net *.split]
mortice has quit [*.net *.split]
ammar has quit [*.net *.split]
cldwalker has quit [*.net *.split]
lzhz has quit [*.net *.split]
wycats has quit [*.net *.split]
Stereoki1sune has quit [*.net *.split]
FiXato has quit [*.net *.split]
th_ has quit [*.net *.split]
matti has quit [*.net *.split]
jaimef has quit [*.net *.split]
valeri_ufo has quit [*.net *.split]
mtkd_ has quit [*.net *.split]
blowmage has quit [*.net *.split]
yeltzooo7 has quit [*.net *.split]
jamo has quit [*.net *.split]
t68500 has quit [Write error: Broken pipe]
t3327 has joined #ruby-lang
diegoviola has joined #ruby-lang
NemesisD has joined #ruby-lang
stayarrr has joined #ruby-lang
Caius has joined #ruby-lang
gsav has joined #ruby-lang
countdigi has joined #ruby-lang
nibbo has joined #ruby-lang
meisterT has joined #ruby-lang
ruskie has joined #ruby-lang
ammar has joined #ruby-lang
lzhz has joined #ruby-lang
cldwalker has joined #ruby-lang
mortice has joined #ruby-lang
wycats has joined #ruby-lang
th_ has joined #ruby-lang
matti has joined #ruby-lang
Stereoki1sune has joined #ruby-lang
valeri_ufo has joined #ruby-lang
blowmage has joined #ruby-lang
FiXato has joined #ruby-lang
yeltzooo7 has joined #ruby-lang
jamo has joined #ruby-lang
jaimef has joined #ruby-lang
alvaro_o has joined #ruby-lang
headius has joined #ruby-lang
ryez has joined #ruby-lang
bytephilia has quit [Quit: Computer has gone to sleep.]
savage- has quit [Remote host closed the connection]
t3327 has quit [Remote host closed the connection]
t36824 has joined #ruby-lang
KINGSABRI has quit [Quit: Leaving]
gnufied has joined #ruby-lang
gsav has quit [Quit: Lost terminal]
gsav has joined #ruby-lang
gsav has quit [Client Quit]
gsav has joined #ruby-lang
gsav has quit [Client Quit]
gsav has joined #ruby-lang
ddfreyne has quit [Excess Flood]
ddfreyne has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
gsav has quit [Client Quit]
nXqd has quit [Ping timeout: 244 seconds]
gsav has joined #ruby-lang
thisirs has quit [Remote host closed the connection]
robotmay has quit [Remote host closed the connection]
stayarrr has quit [Quit: Leaving...]
gsav has quit [Client Quit]
gsav has joined #ruby-lang
gix- has quit [Quit: Client exiting]
gsav has quit [Client Quit]
gsav has joined #ruby-lang
nXqd has joined #ruby-lang
Virunga has quit [Quit: Sto andando via]
bytephilia has joined #ruby-lang
savage- has joined #ruby-lang
t36824 has quit [Remote host closed the connection]
t93507 has joined #ruby-lang
runeb has quit [Remote host closed the connection]
totallymike has joined #ruby-lang
burgestrand has joined #ruby-lang
gix has joined #ruby-lang
carloslopes has quit [Quit: Leaving.]
laszlokorte_ has quit [Quit: laszlokorte_]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
laszlokorte has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
havenn has joined #ruby-lang
yankov has quit [Quit: yankov]
ttilley has joined #ruby-lang
kain has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 264 seconds]
bytephilia has quit [Quit: Computer has gone to sleep.]
ramonmaruko has quit [Ping timeout: 265 seconds]
brianpWins has quit [Quit: brianpWins]
t93507 has quit [Remote host closed the connection]
t9829 has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
gnufied has joined #ruby-lang
gnufied has quit [Client Quit]
tjadc has quit [Ping timeout: 248 seconds]
Leeky_afk is now known as Leeky
ricardovaleriano has joined #ruby-lang
havenn has quit [Remote host closed the connection]
cdt has quit [Quit: Ex-Chat]
towski has joined #ruby-lang
s1n4 has quit [Quit: leaving]
jstemmer has joined #ruby-lang
rwilcox has joined #ruby-lang
Leeky is now known as Leeky_afk
brianpWins has joined #ruby-lang
ricardovaleriano has quit [Read error: Connection reset by peer]
ricardovaleriano has joined #ruby-lang
butchanton has joined #ruby-lang
gix has quit [Quit: Client exiting]
yankov has joined #ruby-lang
qwerxy has quit [Read error: No route to host]
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
qwerxy has joined #ruby-lang
gix has joined #ruby-lang
kain has quit [Remote host closed the connection]
kain has joined #ruby-lang
ricardovaleriano has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
macmartine has joined #ruby-lang
t9829 has quit [Remote host closed the connection]
diegoviola has quit [Quit: Reconnecting]
t58753 has joined #ruby-lang
diegoviola has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
elux has joined #ruby-lang
ricardovaleriano has joined #ruby-lang
Leeky_afk is now known as Leeky
Leeky is now known as Leeky_afk
Leeky_afk is now known as Leeky
ramonmaruko has joined #ruby-lang
Guest77283 has joined #ruby-lang
ricardovaleriano has quit [Remote host closed the connection]
Guest77283 has quit [Read error: Connection reset by peer]
Guedes0 has joined #ruby-lang
Virunga has joined #ruby-lang
stayarrr has joined #ruby-lang
stayarrr has quit [Client Quit]
deryldoucette has joined #ruby-lang
gix has quit [Quit: Client exiting]
JustinCampbell has joined #ruby-lang
deryl has quit [Ping timeout: 245 seconds]
deryldoucette is now known as deryl
gix has joined #ruby-lang
tjadc has joined #ruby-lang
t58753 has quit [Remote host closed the connection]
t83945 has joined #ruby-lang
jxie has joined #ruby-lang
qpingu has joined #ruby-lang
alvaro_o_ has joined #ruby-lang
kvirani has joined #ruby-lang
ricardovaleriano has joined #ruby-lang
ricardovaleriano has quit [Remote host closed the connection]
alvaro_o has quit [Ping timeout: 260 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
nXqd has quit [Ping timeout: 240 seconds]
vlad_sta_ has quit [Remote host closed the connection]
totallymike has quit [Quit: WeeChat 0.3.7]
alex_kira has quit [Remote host closed the connection]
alex_kira has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
JustinCampbell has quit [Remote host closed the connection]
JustinCampbell has joined #ruby-lang
JustinCampbell has quit [Remote host closed the connection]
s1n4 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
abuiles has joined #ruby-lang
alex_kir_ has joined #ruby-lang
erichmenge has joined #ruby-lang
alex_kira has quit [Ping timeout: 264 seconds]
havenn has joined #ruby-lang
kith_ is now known as kith
m3nd3s_ has joined #ruby-lang
havenn has quit [Ping timeout: 246 seconds]
m3nd3s has quit [Ping timeout: 246 seconds]
t83945 has quit [Remote host closed the connection]
t87451 has joined #ruby-lang
qwerxy has quit [Ping timeout: 244 seconds]
naz has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 244 seconds]
rippa has joined #ruby-lang
<eam> I have a bit of code which defines a sort function such that if the input array contains Hashes it does something, if it contains Symbols it does something else, and so on
<eam> if it doesn't recognize the class of objects being sorted, it falls back to a <=> b
<eam> it does NOT recognize Array, and this falls through, so you end up comparing two array objects with <=>, which should fail. However, when I execute this in a larger body of ruby code, it succeeds
<eam> where can I start digging, to figure out what was done so that Array can be used with <=> ?
rue_XIV has left #ruby-lang [#ruby-lang]
t87451 has quit [Remote host closed the connection]
rue has joined #ruby-lang
<rue> Why should Array#<=> fail?
t45342 has joined #ruby-lang
<eam> hm, that's a good question. What I see is: -:17:in `<=>': undefined method `<=>' for :type:Symbol (NoMethodError)
<eam> but, they are Array
<Defusal_> Does anyone know of a gem that can convert unicode to the UTF-8 equivalent? such as converting “ and ” to "
<eam> rue: here's the code: https://gist.github.com/3536925
benanne has joined #ruby-lang
<injekt> Defusal_: Iconv?
<matti> OT: BBC in London is looking for Ruby dude.
<rue> Is this 1.8? I don’t remember if it has Symbol#<=>
Quatrerwin has quit [Ping timeout: 248 seconds]
<rue> The Beeeeeeeeeb
<matti> ;D
Quatrerwin has joined #ruby-lang
Quatrerwin has quit [Changing host]
Quatrerwin has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
CoverSlide has joined #ruby-lang
JohnBat26 has joined #ruby-lang
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby-lang
<Defusal_> injekt, i guess i don't know what im doing, as usual when it comes to encoding
<Defusal_> :/
voker57 has quit [Remote host closed the connection]
<Defusal_> it must not be unicode, or something
havenn has joined #ruby-lang
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
<Defusal_> does anyone know what \x93 and \x94 is?
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
zommi has joined #ruby-lang
<Defusal_> because i assumed they were the unicode equivalent of open " and close ", which is what they are visually, but they sure don't convert from unicode
Dreamer3 has quit [Ping timeout: 245 seconds]
<eam> rue: yes 1.8 unfortunately. The app has a particular ruby which I cannot change easily
t45342 has quit [Remote host closed the connection]
<eam> rue: but, I'm not having the trouble with Symbol -- it's with Array
t899 has joined #ruby-lang
<rue> eam: So, your problem is that Array#<=> ends up using the same on its elements
<eam> ah!
<eam> so my arrays contain symbols
<eam> rue: so here's the real question: how the heck is this working when run inside the application?
<eam> it must define <=> for Symbol, right?
<injekt> what application?
<eam> puppet
<injekt> ah I've never used it thankfully
<eam> lucky you!
<injekt> anyway ruby defines <=> for symbol
<eam> injekt: in 1.8?
Dreamer3__ has joined #ruby-lang
<injekt> ah no, who uses 1.8 jeez
stepnem has joined #ruby-lang
<injekt> 1.8 symbols have very little functionality, 1.9 adds a load of string esque methods
<eam> pretty much every distro, and the puppet rpms :(
<eam> yeah I have learned how terrible 1.8 is
<injekt> so define it yourself?
diegoviola has quit [Quit: leaving]
<eam> injekt: so the context is that I need to understand the behavior of this function and replicate it (for integration testing)
<eam> what I'd like to do is figure out where in the puppet codebase it is defining Symbol#<=>
<rue> I’m not sure I really see the entire point of that sort anyway.
lcdhoffman has quit [Quit: lcdhoffman]
<eam> rue: it's bad code
<eam> not my code
CoverSlide has quit [Read error: Operation timed out]
naz has joined #ruby-lang
<eam> but, I am tasked with testing it
<eam> (as a first step towards replacing it)
<injekt> def <=>(one, two); one.to_s <=> two.to_s; end probably
<injekt> well
<injekt> self
<injekt> etc
<injekt> you get the point
<eam> yeah I'm grepping around or def <=>
<injekt> doesn't puppet have docs?
<eam> found it
<eam> injekt: not for internals it seems
<eam> buried in facter/util/plist/generator.rb
<injekt> so why not just convert them to strings
<eam> injekt: apparently that's what this does, so I can do the same
slyphon has quit [Quit: WeeChat 0.3.7]
<eam> but I have to ensure identical behavior
<injekt> heh
<injekt> your job sounds fun :D
slyphon has joined #ruby-lang
Dreamer3__ has quit [Ping timeout: 268 seconds]
diegoviola has joined #ruby-lang
<eam> it's rewarding throwing away bad implementations, the problem is I'm not super great with ruby
headius has quit [Quit: headius]
burgestrand has quit [Quit: Leaving.]
<eam> yet
<injekt> :)
<injekt> me either, ruby sux python ftw!
Leeky is now known as Leeky_afk
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tenderlove has quit [Remote host closed the connection]
* matti stabs injekt
Dreamer3 has joined #ruby-lang
Austin__ has quit [Quit: Leaving.]
<injekt> :D
<matti> ;]
t899 has quit [Remote host closed the connection]
<rue> ->(inject) {}
t29088 has joined #ruby-lang
<matti> ;p
<rue> And that’s how C became K
<matti> Hehe
havenn has quit [Remote host closed the connection]
<epitron> hey, does anyone know if there's a gem that does generic before/after/around hooks for plain old ruby classes?
krz has joined #ruby-lang
alex_kir_ has quit [Remote host closed the connection]
<erikh> def hook(before, after); before.call(); yield; after.call(); end
<epitron> well, it also needs a mechanism for storing the hooks on the class
<epitron> and dealing with inheritance
<epitron> and allowing many hooks on the same method
<erikh> you want to hook the whole class, like every method on the class gets hooked?
<epitron> no... like the way rails before/after hooks work
<epitron> but a general ruby-wide extension
<epitron> for plugins
<epitron> and ideally, with the ability to remove them when the plugin is unloaded :)
<erikh> hmmmmmmm
<epitron> (which i think could be accomplsihed using some stack introspection magic)
<epitron> i was mostly curious if this exists already
<erikh> eh
<erikh> foot, meet gun
<epitron> hahah
<erikh> regardless, I'd probably look at how rails implements that.
<epitron> i've looked at it before.. it's pretty simple, if i recall
<erikh> I've done some similar things to that but nothing general.
<erikh> yeah, it's not a hard problem.
<epitron> and destructive... and not intersted in inheritance
<epitron> i wonder if rails just uses alias_method_chain for that :)
<erikh> i'd be surprised if what you need isn't in active support
lcdhoffman has joined #ruby-lang
<erikh> but I'm not pulling that apart for you :) I actually shouldn't even be at the computer atm
<epitron> ugh
<epitron> i'm already down the rabbithole on this before_filter method
Dreamer3 has quit [Ping timeout: 265 seconds]
<epitron> rails is nutty
<epitron> every method must be one line
<epitron> yeah, this is pretty messed up the way they're doing it... i wouldn't follow this as a guide :)
<erikh> heh.
wallerdev has joined #ruby-lang
<steveklabnik> :p
<epitron> oic, it's been rewritten in rails 3.2
<epitron> now it's a big code generator with some parameters
<erikh> compile time? we don't need no stinking compile time
<yxhuvud> erikh: actually, I'd guess it is to be found in activemodel.
<epitron> it's also way way shorter :)
<steveklabnik> before_filter only exists for controllers
<steveklabnik> so it wouldnt be in activemodel
<erikh> it's a pattern
<erikh> it'll be in activesupport
<steveklabnik> for some discussion
<erikh> rails is ugly, but rarely illogical
<epitron> there's alias_method_chain in activesupport
<epitron> the before/around/after stuff is in actioncontroller
<yxhuvud> steveklabnik: sure, but it is possible to create pre and post hooks that does similar things in activemodel.
bryancp has quit [Remote host closed the connection]
<steveklabnik> right, and alias_method_chain is basically univerally declared tob e a terrible idea :p
<steveklabnik> yxhuvud: it is possible or it already exists?
<steveklabnik> right, that's for AR lifecycle stuff
<steveklabnik> not for general method calls
<steveklabnik> right?
<steveklabnik> huh, apparently not
<steveklabnik> TIL!
<steveklabnik> you still have to declare which methods it works for.
<epitron> steveklabnik: well, a_m_c has its uses... like when you don't want to dig into a nest of objects to inject a new subclassed object :)
headius has joined #ruby-lang
<epitron> you can just monkeypatch in an amc
<epitron> but yes, inheritance is The Right Way(tm) :)
havenn has joined #ruby-lang
<epitron> so, AR callbacks are actually generic method pre/post hooks underneath?
t29088 has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby-lang
t37875 has joined #ruby-lang
<yxhuvud> steveklabnik: it has to be general to be useful in activemodel. otherwise it would have stayed in AR.
lcdhoffman has quit [Quit: lcdhoffman]
<epitron> this is definitely a pattern
<epitron> this activesupport callback code looks a lot like nokogiri's filter chian
<epitron> *chain
<epitron> anyhow, thanks for the feedback!
<epitron> erikh's instincts were right
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
codewrangler has joined #ruby-lang
havenn has quit [Remote host closed the connection]
CarlB_th_ has joined #ruby-lang
havenn has joined #ruby-lang
nXqd has joined #ruby-lang
CarlB_t__ has joined #ruby-lang
CarlB_the_great has quit [Ping timeout: 246 seconds]
CarlB_the_great has joined #ruby-lang
CarlB_th_ has quit [Ping timeout: 260 seconds]
havenn has quit [Ping timeout: 245 seconds]
Axsuul has quit [Ping timeout: 244 seconds]
bryancp has joined #ruby-lang
CarlB_t__ has quit [Ping timeout: 252 seconds]
butchanton has quit [Quit: Leaving.]
yxhuvud has quit [Ping timeout: 268 seconds]
JohnBat26 has quit [Remote host closed the connection]
Dreamer3 has joined #ruby-lang
Leeky_afk is now known as Leeky
spectra has quit [Read error: Operation timed out]
alex_kira has joined #ruby-lang
lightcap has joined #ruby-lang
lcdhoffman has joined #ruby-lang
spectra has joined #ruby-lang
saxy has quit [Remote host closed the connection]
krzkrzkrz has joined #ruby-lang
sj26 has quit [Ping timeout: 245 seconds]
Leeky is now known as Leeky_afk
krz has quit [Ping timeout: 256 seconds]
krzkrzkrz is now known as krz
ReinH has quit [Ping timeout: 245 seconds]
headius has quit [Quit: headius]
amerine has quit [Ping timeout: 248 seconds]
amerine has joined #ruby-lang
sj26 has joined #ruby-lang
lightcap has quit [Ping timeout: 245 seconds]
ReinH has joined #ruby-lang
lightcap has joined #ruby-lang
havenn has joined #ruby-lang
t37875 has quit [Remote host closed the connection]
t80488 has joined #ruby-lang
qwerxy has joined #ruby-lang
havenn has quit [Ping timeout: 244 seconds]
bryancp has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 260 seconds]
deryl has quit [Quit: deryl]
bryancp has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
dhruvasagar has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
CapnKernul has joined #ruby-lang
workmad3 has joined #ruby-lang
CarlB_the_great has quit [Ping timeout: 245 seconds]
zmack has joined #ruby-lang
mistym has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zmack has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 252 seconds]
bryancp has joined #ruby-lang
CarlB_th_ has joined #ruby-lang
CarlB_the_great has quit [Ping timeout: 245 seconds]
Virunga is now known as LennyLinux
zommi has quit [Remote host closed the connection]
CapnKernul has quit [Quit: Linkinus - http://linkinus.com]
cczona has joined #ruby-lang
solars has joined #ruby-lang
cczona has left #ruby-lang [#ruby-lang]
lcdhoffman has quit [Quit: lcdhoffman]
Rikkit has joined #ruby-lang
NemesisD has quit [Read error: Connection reset by peer]
lcdhoffman has joined #ruby-lang
Quatrerwin has quit [Ping timeout: 244 seconds]
alex_kira has quit [Remote host closed the connection]
Quatrerwin has joined #ruby-lang
Quatrerwin has quit [Changing host]
Quatrerwin has joined #ruby-lang
Fullmoon has quit [Quit: Fullmoon]
Rikkit has quit [Remote host closed the connection]
CarlB_th_ has quit [Remote host closed the connection]
elux has quit [Quit: Bye!]
LennyLinux is now known as virunga
virunga is now known as LennyLinux
statbit has left #ruby-lang [#ruby-lang]
Fullmoon has joined #ruby-lang
Fullmoon has quit [Client Quit]
CarlB_the_great has joined #ruby-lang
saxy has joined #ruby-lang
alex_kira has joined #ruby-lang
LennyLinux is now known as Virunga
qwerxy has quit [Quit: offski]
rippa has quit [Ping timeout: 265 seconds]
saxy has quit [Remote host closed the connection]
Virunga is now known as LennyLinux
workmad3 has quit [Ping timeout: 252 seconds]
LennyLinux is now known as LesterTheMoleste
deryl has joined #ruby-lang
LesterTheMoleste is now known as LennyLinux
stepnem has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
CarlB_the_great has quit [Read error: Connection reset by peer]
t80488 has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
t27661 has joined #ruby-lang
CarlB_the_great has quit [Read error: Connection reset by peer]
CarlB_the_great has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
CarlB_the_great has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby-lang
LennyLinux is now known as Virunga
miah has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
diegoviola has quit [Ping timeout: 245 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
sailias has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.7]
slyphon has joined #ruby-lang
erichmenge has joined #ruby-lang
s1n4 has left #ruby-lang ["leaving"]
cantonic has quit [Quit: cantonic]
Virunga has quit [Quit: Sto andando via]
cantonic has joined #ruby-lang
JoelMcCracken has quit [Ping timeout: 246 seconds]
sailias has quit []
tenderlove has joined #ruby-lang
erics has joined #ruby-lang
carloslopes has quit [Quit: Leaving.]
CarlB_the_great has quit [Remote host closed the connection]
Skif has quit [Ping timeout: 240 seconds]
Leeky_afk is now known as Leeky
slyphon has quit [Quit: WeeChat 0.3.7]
Carnage\ has joined #ruby-lang
workmad3 has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
Leeky is now known as Leeky_afk
CarlB_the_great has joined #ruby-lang
ivanoats has joined #ruby-lang
sustainableweb has joined #ruby-lang
rins has quit [Ping timeout: 268 seconds]
ivanoats has quit [Ping timeout: 264 seconds]
Fullmoon has joined #ruby-lang
m3nd3s_ has quit [Remote host closed the connection]
sandbags has quit [Ping timeout: 252 seconds]
CarlB_the_great has quit [Remote host closed the connection]
gsav_ has joined #ruby-lang
just4dos has quit [Ping timeout: 245 seconds]
qwerxy has joined #ruby-lang
postmodern has joined #ruby-lang
gsav has quit [Ping timeout: 245 seconds]
sustainableweb has quit [Remote host closed the connection]
erichmenge has quit [Quit: Be back later]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
erichmenge has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
erichmenge has quit [Client Quit]
tenderlove has quit [Ping timeout: 245 seconds]
tenderlo_ has joined #ruby-lang
gsav_ has quit [Ping timeout: 252 seconds]
Hakon has quit [Quit: Leaving...]
just4dos has joined #ruby-lang
t27661 has quit [Remote host closed the connection]
t18397 has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
Carnage\ has quit []
sepp2k1 has quit [Remote host closed the connection]
ryez has quit [Ping timeout: 245 seconds]
redgetan has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 244 seconds]
bryancp has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby-lang
mrodrigues has quit [Quit: Lost terminal]
ryanf has joined #ruby-lang
saxy has joined #ruby-lang
Madis has joined #ruby-lang
slyphon has joined #ruby-lang
solars has quit [Ping timeout: 256 seconds]
seanstickle has joined #ruby-lang
saxy has quit [Ping timeout: 245 seconds]
CarlB_the_great has quit [Remote host closed the connection]
toertore has quit [Quit: This computer has gone to sleep]
t18397 has quit [Remote host closed the connection]
saxy has joined #ruby-lang
t14787 has joined #ruby-lang
outoftime has quit [Quit: Leaving]
macmartine has joined #ruby-lang
<andrewvos> Why is there not a "List of languages that have a Sinatra clone"?
<andrewvos> On Wikipedia
<seanstickle> The APL guys always delete it
<zzak> andrewvos: because practically every language has one
solars has joined #ruby-lang
<andrewvos> bdumtish
<andrewvos> .com
<andrewvos> imdrunk.com
tenderlo_ has quit [Remote host closed the connection]
saxy has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby-lang
<andrewvos> There it is: badum-tish.com
ivanoats has joined #ruby-lang
<erikh> imdrunk.com just has a bunch of ads for russian brides
<erikh> how apropos
<andrewvos> erikh: I see something different!
<andrewvos> Like a touchpad device, and a search box.
saxy has joined #ruby-lang
<andrewvos> With graphs and shit.
<andrewvos> And cash in the top left.
banisterfiend has quit [Remote host closed the connection]
slyphon has quit [Quit: WeeChat 0.3.7]
<andrewvos> masterkorp: That gif is great.
<masterkorp> andrewvos: http://i.imgur.com/r2YnT.gif
sailias has joined #ruby-lang
<andrewvos> That's shit's like 1 million internet years old.
josh^ has joined #ruby-lang
bytephilia has joined #ruby-lang
tenderlove has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
<masterkorp> still funny
erichmenge has joined #ruby-lang
erichmenge has quit [Client Quit]
erics has quit [Remote host closed the connection]
redgetan has left #ruby-lang ["Leaving"]
Skif has joined #ruby-lang
slyphon has joined #ruby-lang
rins has joined #ruby-lang
sailias has quit [Ping timeout: 264 seconds]
Madis has quit [Quit: ChatZilla 0.9.88.2 [Firefox 11.0/20120313180949]]
A124 has joined #ruby-lang
benanne has quit [Quit: kbai]
Leeky_afk is now known as Leeky
m3nd3s has joined #ruby-lang
Leeky is now known as Leeky_afk
qwerxy has quit [Quit: offski]