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
<drbrain> jhuntwork: ok… I have all BSDish OSs so I think you should submit a bug on bugs.ruby-lang.org and point to this __syscall implementation in musl
<drbrain> since it explicitly forbids > 6 arguments
harmless has quit [Ping timeout: 248 seconds]
slyphon has joined #ruby-lang
kain has quit [Quit: Sto andando via]
QaDeS_ has joined #ruby-lang
fayimora has joined #ruby-lang
QaDeS has quit [Ping timeout: 245 seconds]
acyed has quit [Read error: Connection reset by peer]
acyed has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
acyed has quit [Read error: Connection reset by peer]
acyed has joined #ruby-lang
Sambalero has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambaler_ has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambaler_ has quit [Read error: Connection reset by peer]
Sambalero has quit [Remote host closed the connection]
fayimora_ has joined #ruby-lang
fayimora_ has quit [Read error: Connection reset by peer]
fayimora_ has joined #ruby-lang
fayimora_ has quit [Read error: Connection reset by peer]
fayimora_ has joined #ruby-lang
Sambaler_ has joined #ruby-lang
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
<apeiros_> aaaw, :foo =~ /o/, but not :foo === /o/ :(
<apeiros_> oh, wait
<apeiros_> /o/ === :foo - the world is rainbow and unicorns again :D
<lianj> :)
imperator has joined #ruby-lang
carter_ has joined #ruby-lang
wpaulson has joined #ruby-lang
VGoff is now known as VGoff_afk
<retro|cz> hello
<retro|cz> I'm using instance_eval to eval a block
s0ra_h is now known as sora_h
<retro|cz> That block is using method_missing magic.
<retro|cz> but another method_missing is triggered
<retro|cz> not instance class ones
Guest29213 has quit [Quit: WeeChat 0.3.8]
sailias has joined #ruby-lang
<retro|cz> Is there any way how two change this?
RickHull1 has joined #ruby-lang
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
cirenyc has quit [Quit: Leaving...]
cirenyc has joined #ruby-lang
cirenyc has quit [Client Quit]
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
misham has quit [Quit: Leaving]
fayimora has quit [Read error: Connection reset by peer]
tbuehlmann has quit []
fayimora has joined #ruby-lang
igotnolegs has joined #ruby-lang
Hakon|mbp has quit [Quit: Leaving...]
gix has quit [Ping timeout: 244 seconds]
jduan1981 has quit [Quit: jduan1981]
<jhuntwork> drbrain, ok, will do
Sambaler_ has quit [Remote host closed the connection]
gix has joined #ruby-lang
Sambalero has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
dalekurt has joined #ruby-lang
sailias has quit [Ping timeout: 246 seconds]
macmartine has joined #ruby-lang
headius has quit [Quit: headius]
savage- has quit [Read error: Operation timed out]
gsav has quit [Quit: Lost terminal]
<unixabg> burgestrand: on the webrick issu I found the problem by using strace. The issue was the way I was handling the launch of
<unixabg> the program with /etc/init.d
<unixabg> It was attempting to create a log file in a location that only root could write.
<unixabg> It was corrected by using the --chdir /tmp provided with start-stop-daemon
<unixabg> I just wanted to report back.
perryh_away is now known as perryh
gsav has joined #ruby-lang
gsav has quit [Client Quit]
postmodern has joined #ruby-lang
carloslopes has quit [Quit: Leaving.]
perryh is now known as perry
fayimora_ has joined #ruby-lang
wpaulson has joined #ruby-lang
imperator has quit [Quit: Leaving]
corsican has joined #ruby-lang
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
Z33K|Lux has joined #ruby-lang
stardiviner has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
VGoff_afk is now known as VGoff
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
QaDeS_ has quit [Quit: Ex-Chat]
sailias has joined #ruby-lang
veex has quit [Ping timeout: 246 seconds]
bfreeman has quit [Quit: bfreeman]
fayimora has quit [Ping timeout: 264 seconds]
fayimora has joined #ruby-lang
leafac has quit [Quit: leaving]
fayimora has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 246 seconds]
msaffitz has joined #ruby-lang
jperry2 has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
kain has joined #ruby-lang
jperry2 has quit [Quit: jperry2]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
fayimora has joined #ruby-lang
gnufied has joined #ruby-lang
codewrangler has quit [Quit: Computer has gone to sleep.]
andrewhl has joined #ruby-lang
sailias has joined #ruby-lang
fayimora has quit [Ping timeout: 264 seconds]
sailias has quit [Read error: Operation timed out]
dvorak has quit [Ping timeout: 246 seconds]
theoros is now known as fleoros
apeiros_ has quit [Remote host closed the connection]
sailias has joined #ruby-lang
sailias has quit [Client Quit]
fayimora has joined #ruby-lang
coryf has quit [Remote host closed the connection]
fayimora has quit [Client Quit]
neocoin has quit [Remote host closed the connection]
VegetableSpoon has joined #ruby-lang
flowerpot has joined #ruby-lang
bfreeman has joined #ruby-lang
crankharder has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Remote host closed the connection]
qpingu has quit [Quit: Leaving.]
seanstickle has joined #ruby-lang
andrewvos has quit [Ping timeout: 244 seconds]
zcdny has joined #ruby-lang
zcdny has left #ruby-lang [#ruby-lang]
postmodern has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby-lang
coryf has joined #ruby-lang
plen has joined #ruby-lang
savage- has joined #ruby-lang
pabs has quit [Ping timeout: 252 seconds]
lele|w has quit [Ping timeout: 272 seconds]
wpaulson has joined #ruby-lang
msaffitz has joined #ruby-lang
lele|w has joined #ruby-lang
rmascarenhas has quit [Quit: leaving]
<plen> hi there, i'm new to ruby. i hope someone can give me some guidance on this code i'm trying to understand.
<plen> i tried running the code at about the halfway point of this page (http://www.rubyquiz.com/quiz154.html), and i get an error saying that "sum" is an undefined method. can someone help me please?
<seanstickle> What version of Ruby are you running?
<seanstickle> I am suspecting some flavor of 1.8
<erikh> for those of you who use test.rubygems.org, we're being bitten by amazon ec2 atm
<plen> that's right. it's 1.8.7
<seanstickle> plen: 1.8.7 doesn't have the sum method on arrays
<plen> oh! thanks seanstickle. that was simple.
<seanstickle> plen: sure
<plen> i did a google search previously but this difference didn't turn up in the results page
msaffitz has quit [Quit: Computer has gone to sleep.]
msaffitz has joined #ruby-lang
ryanf has joined #ruby-lang
umttumt has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
imperator has joined #ruby-lang
imperator has left #ruby-lang [#ruby-lang]
slyphon_ has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
andrewhl has quit [Remote host closed the connection]
dalekurt has quit [Quit: Zzz...]
imperator has joined #ruby-lang
yugui_zzz is now known as yugui
wpaulson_ has joined #ruby-lang
ryanf has quit [Quit: leaving]
ryanf has joined #ruby-lang
wpaulson has quit [Ping timeout: 250 seconds]
wpaulson_ is now known as wpaulson
carter_ has quit [Quit: Konversation terminated!]
plen has left #ruby-lang [#ruby-lang]
cirwin has quit [Ping timeout: 240 seconds]
seanstickle has quit [Quit: seanstickle]
banisterfiend has joined #ruby-lang
<imperator> good evening
<banisterfiend> imperator: not really, it's freezing cold and there's a grey boredom that envelopes everything like mist
<imperator> where are you?
<banisterfiend> new zealand ;)
yannis has joined #ruby-lang
<banisterfiend> imperator: you?
ryanf has quit [Quit: broken pipes |||]
umttumt has quit [Remote host closed the connection]
<imperator> littleton colorado
<imperator> ah, nice and toasty warm with lots of sun today
jhuntwork has quit [Ping timeout: 246 seconds]
ryanf has joined #ruby-lang
<imperator> thought about visiting nz sometime, but it ain't cheap
<bnagy> it's great if you like sheep and rain
<bnagy> bit like Wales, but with a good rugby team
woollyams has joined #ruby-lang
<imperator> i suspect nz is a bit nicer on the visuals
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
<imperator> though cardiff is supposed to be highly significant in the universe or something
<bnagy> true, and at least in NZ they don't stuff up the scenery by having any, you know, people or cities and things
macmartine has quit [Quit: macmartine]
macmartine has joined #ruby-lang
rippa has joined #ruby-lang
cirwin has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ryanf has quit [Quit: broken pipes |||]
ryanf has joined #ruby-lang
umttumt has joined #ruby-lang
dabradley has quit [Ping timeout: 244 seconds]
havenn has joined #ruby-lang
neocoin has joined #ruby-lang
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
VegetableSpoon has quit [Remote host closed the connection]
yugui is now known as yugui_zzz
eban has quit [Quit: WeeChat 0.3.5]
eban has joined #ruby-lang
Torrieri has joined #ruby-lang
brianpWins has joined #ruby-lang
qpingu has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
NeVeR_ has joined #ruby-lang
dalekurt has joined #ruby-lang
arooni-mobile has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
dfr|mac has quit [Remote host closed the connection]
igotnolegs has quit [Quit: Computer has gone to sleep.]
selvakumaran has joined #ruby-lang
perry is now known as perryh_away
coryf has quit [Remote host closed the connection]
chendo_ has joined #ruby-lang
perryh_away is now known as perryh
perryh is now known as perry
flak has joined #ruby-lang
macmartine has quit [Read error: Connection reset by peer]
flak is now known as Guest50786
rippa has quit [Ping timeout: 240 seconds]
Torrieri has quit [Ping timeout: 248 seconds]
toretore has joined #ruby-lang
xtagon has quit [Read error: Operation timed out]
gouthamvel has joined #ruby-lang
solars has quit [Ping timeout: 248 seconds]
fgomez has quit [Ping timeout: 265 seconds]
dalekurt has quit [Quit: Zzz...]
Guest50786 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby-lang
selvakumaran has quit [Quit: Leaving]
selvakumaran has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
jerius has joined #ruby-lang
banisterfiend has joined #ruby-lang
jerius has quit [Client Quit]
sepp2k has joined #ruby-lang
Z33K|Lux has quit []
selvakumaran has quit [Remote host closed the connection]
yxhuvud has joined #ruby-lang
perry is now known as perryh_away
<rue> New Zealand is far
<bnagy> depends where from
<bnagy> ... ok not really, except like a few atolls
postmodern has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
kaspernj has joined #ruby-lang
savage- has quit [Remote host closed the connection]
dbck has joined #ruby-lang
<banisterfiend> rue: hey equus
tbuehlmann has joined #ruby-lang
<rue> Hy
wallerdev has quit [Quit: wallerdev]
kaspernj has quit [Read error: Operation timed out]
dhruvasagar has quit [Ping timeout: 246 seconds]
qwerxy has joined #ruby-lang
<ryanf> banisterfiend: did anyone ever tell you your nicknames are weird
<ryanf> I still don't know why asher is ruffles or whatever :)
<banisterfiend> raffles
<ryanf> ah
<banisterfiend> ryanf: asher --> ash --> ashraff (a muslim equivalent for asher) --> raff --> raffles
<banisterfiend> ryanf: have you seen prometheus yet?
<ryanf> no
<banisterfiend> I'm still waiting for someone else who's seen it, to explain it to me
<banisterfiend> sure
apeiros_ has joined #ruby-lang
agilob has quit [Remote host closed the connection]
Pip has joined #ruby-lang
Pip has quit [Changing host]
Pip has joined #ruby-lang
postmodern has joined #ruby-lang
qwerxy has quit [Quit: offski]
selvakumaran has joined #ruby-lang
plen has joined #ruby-lang
xanaru has joined #ruby-lang
<xanaru> hi can someone help me out with a small regex isssue i have? https://gist.github.com/fe171140a1c43e2487c2
unsymbol has left #ruby-lang [#ruby-lang]
<banisterfiend> xanaru: are you from america?
<xanaru> banisterfiend: no why?
<ryanf> xanaru: is that literally what your code is?
<xanaru> ryanf: not exactly
<ryanf> because I would expect that to raise a NoMethodError
selvakumaran has quit [Remote host closed the connection]
qwerxy has joined #ruby-lang
<ryanf> but ok I'll just look at the regex then
<ryanf> matches fine for me in 1.8 and 1.9. whatever probably you have is probably not with the regex
virunga has joined #ruby-lang
<ryanf> *problem
<xanaru> ryanf: so the method returns true?
<bnagy> the method is unterminated
<xanaru> bnagy: would you care to elaborate?
<bnagy> try def link?( str ); regex.match str; end
<bnagy> if blah do_something <-- needs an end
<bnagy> do_something if blah <-- ok
<ryanf> yeah bnagy this is fake code though
<ryanf> who knows what it actually looks like
cirwin has quit [Ping timeout: 246 seconds]
<bnagy> shouldn't URI or something have methods to validate URIs?
<xanaru> ryanf: bnagy: Ok my mistake. I know the regex is working, but I do not understand why the the method i wrapped it in returns false.
<ryanf> yes, but to diagnose that we need to see the actual method
<bnagy> xanaru: the method you pasted won't return anything, cause it's not a method
<ryanf> please paste your actual code instead of changing it
<bnagy> so either use mine, above, or paste your actual code
<xanaru> ryanf: ok...just a sec
<ryanf> there are at least two things about the code you pasted that would make it impossible for it to run
kaspernj has joined #ruby-lang
xanaru has quit [Read error: Connection reset by peer]
xanaru has joined #ruby-lang
<xanaru> hi guys here is the real code https://gist.github.com/a2c437959da16d109e76
<ryanf> thanks
qwerxy has quit [Quit: offski]
<ryanf> try "[@r1].any? { |rx| rx.match(link) }"
<ryanf> I don't see at first glance why it doesn't work though. I'd expect that return stuff to work
<ryanf> so maybe there's something else going on
<bnagy> having saif that, the method works for me
<bnagy> I didn't use the spec stuff
<xanaru> ryanf: i run 1.9.2p320
<bnagy> srsly though - URI doesn't have a parser in it?
<bnagy> xanaru: test in irb
<bnagy> if you define the ivar and define the method and call it
<bnagy> works fine for me
Pip has quit [Ping timeout: 255 seconds]
<xanaru> bnagy: hi someone in rubyonrails pointed that out: use URI::ABS_URI =~ 'http://foo.com', so yes URI has a parser
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<apeiros_> bnagy: hm? URI has a parser. it's even called URI.parse
<apeiros_> or did I misunderstand something?
<bnagy> apeiros_: yeah it was a subtle hint to maybe use it
<bnagy> instead of writing regexes
<apeiros_> oh, you were being sarcastic, pole waving…
<bnagy> not really sarcastic
<xanaru> bnagy: thank you for you suggestion, I still would like to understand why the code is not working.
<bnagy> something in your spec stuff I guess
<bnagy> cause, as I mentioned, the method and regex seem legit
<bnagy> although you should still use any? like ryanf said
agilob has joined #ruby-lang
justinmcp has joined #ruby-lang
xanaru has quit [Remote host closed the connection]
QaDeS has joined #ruby-lang
woollyams has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby-lang
woollyams has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
woollyams has quit [Ping timeout: 245 seconds]
tomb_ has quit [Quit: Computer has gone to sleep.]
Hakon|mbp has joined #ruby-lang
Hakon|mbp has quit [Client Quit]
Guest74504 has quit [Ping timeout: 248 seconds]
mksm has joined #ruby-lang
mksm is now known as Guest12946
jondot has joined #ruby-lang
asahi1 has joined #ruby-lang
jstemmer has quit [Quit: leaving]
asahi1 has quit [Read error: Operation timed out]
acyed has quit [Read error: Connection reset by peer]
acyed has joined #ruby-lang
asahi has quit [Ping timeout: 264 seconds]
flowerpot has quit [Quit: Ex-Chat]
Hakon|mbp has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
<apeiros_> anybody got an example of a gem where the require differs from the gem name?
<banisterfiend> apeiros_: active_record
<banisterfiend> apeiros_: active_controller
<banisterfiend> etc
<banisterfiend> etc
<banisterfiend> etc
<banisterfiend> et
<banisterfiend> et
<banisterfiend> etc
<banisterfiend> ewt
<banisterfiend> gq
<banisterfiend> sdfg
<banisterfiend> ag
<banisterfiend> as
<banisterfiend> gs
<apeiros_> spammer :-p
<banisterfiend> yeah, those two
<banisterfiend> they're really annoying
<banisterfiend> activerecord*
<banisterfiend> apeiros_: also, RubyInline
<banisterfiend> iirc the gem name is _actually_ RubyInline (with caps)
<banisterfiend> or something like that
<banisterfiend> yeah it is
<banisterfiend> just checked it
Hakon|mbp has quit [Quit: Leaving...]
thone_ has joined #ruby-lang
thone has quit [Ping timeout: 252 seconds]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
robotmay has joined #ruby-lang
KINGSABRI has joined #ruby-lang
umttumt has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
JustinCampbell has joined #ruby-lang
fayimora has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
jxie has quit [Quit: leaving]
fayimora_ has joined #ruby-lang
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
setmeaway has quit [Read error: Connection reset by peer]
setmeaway has joined #ruby-lang
fayimora has quit [Ping timeout: 246 seconds]
andrewhl has joined #ruby-lang
yugui_zzz is now known as yugui
Manhose has joined #ruby-lang
Manhose has quit [Client Quit]
kaspernj has quit [Ping timeout: 248 seconds]
andrewhl has quit [Remote host closed the connection]
gouthamvel has joined #ruby-lang
seanstickle has joined #ruby-lang
yugui is now known as yugui_zzz
gouthamvel has left #ruby-lang [#ruby-lang]
robotmay has quit [Remote host closed the connection]
KINGSABRI has quit [Remote host closed the connection]
tjadc has quit [Ping timeout: 252 seconds]
voker57 has quit [Ping timeout: 246 seconds]
fleoros is now known as theoros
Mon_Ouie has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby-lang
sailias has joined #ruby-lang
brunocoelho has joined #ruby-lang
carter has joined #ruby-lang
carter has quit [Quit: Konversation terminated!]
sailias has quit [Ping timeout: 246 seconds]
imperator has joined #ruby-lang
<imperator> good morning my pasty brethren
fgomez has joined #ruby-lang
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
<seanstickle> Greetings, lesser potentate!
postmodern has quit [Quit: Leaving]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
qwerxy has joined #ruby-lang
heftig has quit [Quit: leaving]
qwerxy has quit [Client Quit]
mssola has joined #ruby-lang
<banisterfiend> zenspider: what do you think of this? https://smf.sh/
t has joined #ruby-lang
<imperator> oops: failed to allocate memory: /^[^\0]*/ (RegexpError)
t is now known as Guest70047
seanstickle has quit [Quit: Nihil sub sole novum]
seanstickle has joined #ruby-lang
FiXato has quit [Remote host closed the connection]
seanstickle has quit [Client Quit]
FiXato has joined #ruby-lang
Guest70047 has quit [Remote host closed the connection]
crackity_jones has quit [Ping timeout: 255 seconds]
tomb___ has joined #ruby-lang
<imperator> what's the best way to strip 0.chr without stripping \n ?
<imperator> my regex there seems to be inefficient
<yxhuvud> tr?
_Setsuna_ has quit [Quit: ZNC - http://znc.sourceforge.net]
matti has quit [Ping timeout: 252 seconds]
<imperator> yeah, that's what i switched to, just wondered if there was a better/faster way
boobah has quit [Ping timeout: 252 seconds]
boobah has joined #ruby-lang
<rippa> tr doesn't ctrip chars though
matti has joined #ruby-lang
<imperator> it does if the second arg is ''
Kuukunen has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
akira989 has joined #ruby-lang
_Setsuna_ has joined #ruby-lang
dalekurt has joined #ruby-lang
Kuukunen has joined #ruby-lang
^sandbags^ has quit [Remote host closed the connection]
jxie has joined #ruby-lang
bglusman has joined #ruby-lang
umttumt has joined #ruby-lang
savage- has joined #ruby-lang
* imperator fixes his own garbage disposal, hah!
<rue> Trash it
<apeiros_> yxhuvud, imperator, rippa: if you use tr(string, ''), you can just as well use delete(string)
<apeiros_> it's IMO cleaner in its semantic
<rippa> sure is
<rippa> that would be my choice too
<apeiros_> (the mechanics are the same, it's too character based and it too accepts ranges and negations)
<imperator> ok, thanks
<imperator> rue, just a jammed impeller
<rue> Should have an impaler
dbck has quit [Ping timeout: 240 seconds]
<imperator> i impaled it with an allen wrench
<rue> Silly names
fayimora has joined #ruby-lang
<rippa> alien wrench
seanstickle has joined #ruby-lang
dbck has joined #ruby-lang
<imperator> inbus? unbrako?
neocoin has quit [Remote host closed the connection]
<apeiros_> incubus?
<seanstickle> iincunabula?
<seanstickle> Sorry, incunabula
<rue> Succubus would be a good trash disposal brand
<rippa> Succubus brand vacuum cleaner
<rippa> sucks like you wouldn't believe
Dreamer3 has joined #ruby-lang
andrewvos has joined #ruby-lang
kvirani has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
umttumt has quit [Remote host closed the connection]
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
davidbalbert has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
jperry2 has joined #ruby-lang
<apeiros_> where the hell does rubygems document the version specification?
jperry2 has quit [Client Quit]
<apeiros_> it says in Gem::Requirement, but there isn't anything…
<apeiros_> yeah, and where there do you see the different ways to specify the requirement as a string? maybe I'm blind…
<Mon_Ouie> There seem to be more in Gem::Version
<apeiros_> e.g. I can't see spermy even being mentioned…
<Mon_Ouie> Along with examples at the end
<apeiros_> yeah, Gem::Version looks useful. Going to reference that.
<apeiros_> (and probably just copying too)
jperry2 has joined #ruby-lang
fayimora has quit [Ping timeout: 250 seconds]
fayimora has joined #ruby-lang
<workmad3> apeiros_: I believe it's now called pessimistic locking, not spermy :)
<apeiros_> spermy kills pessimistic locking
<workmad3> heh
<apeiros_> also spermy is a much less depressing term
<workmad3> heh
<workmad3> don't shout at the messenger :P
<workmad3> I always thought it was called something like the twiddle operator or something :)
tomb___ has quit [Quit: Computer has gone to sleep.]
<workmad3> I'm just reporting what I heard on ruby rogues a while back :)
acyed has quit [Read error: Connection reset by peer]
acyed has joined #ruby-lang
* apeiros_ shoots workmad3
* apeiros_ then reads that he shouldn't shoot the messenger
<apeiros_> whoops.
<apeiros_> I stood my ground!
<workmad3> :)
<Mon_Ouie> Nobody said you shouldn't shoot the messenger. workmad3 just said you shouldn't shout at him.
<workmad3> if you are going to shoot the messenger, make sure you hit him
akira989 has quit [Remote host closed the connection]
<workmad3> you don't want a messenger with a grudge hanging around
qwerxy has joined #ruby-lang
brunocoelho has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
jperry2 has quit [Quit: jperry2]
fayimora has quit [Ping timeout: 264 seconds]
tomb___ has joined #ruby-lang
fayimora has joined #ruby-lang
msaffitz has joined #ruby-lang
fayimora has quit [Ping timeout: 245 seconds]
andrewhl has joined #ruby-lang
fayimora has joined #ruby-lang
lsegal has joined #ruby-lang
retro|cz has quit [Ping timeout: 265 seconds]
RomyRomy has joined #ruby-lang
fayimora has quit [Ping timeout: 264 seconds]
JustinCampbell has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
jstemmer has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
mistym has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
davidbalbert has quit [Quit: davidbalbert]
davidbalbert has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
gnufied1 has joined #ruby-lang
gnufied1 has quit [Client Quit]
savage- has quit [Remote host closed the connection]
<apeiros_> andrewvos: added docs to the Available gem/repo
gnufied has quit [Ping timeout: 252 seconds]
RomyRomy has quit [Quit: RomyRomy]
RomyRomy has joined #ruby-lang
RomyRomy has quit [Client Quit]
mssola has quit [Quit: Konversation terminated!]
wallerdev has joined #ruby-lang
RomyRomy has joined #ruby-lang
<rue> Hooray docs
Z33K|Lux has joined #ruby-lang
coryf has joined #ruby-lang
plen has quit [Quit: plen]
<apeiros_> rue: yeah, rare thing from me :) I hate writing docs. but I saw you forked the gem - so obligatory: feedback is welcome ;-)
<rue> I like docs
<apeiros_> I love docs. I just hate writing them :D
<apeiros_> tests coming up next.
<apeiros_> same thing there - love having them, hate writing them…
<rue> Heh
<rue> I like both
<rue> I’ll add some tests when you’ve got a couple committed, unless you have a pre-existing style guideline somewhere
<apeiros_> I don't
<apeiros_> but I greatly appreciate if you add tests :) I'm currently building the require/gem stubbing so I can actually do tests
qwerxy has quit [Quit: offski]
neocoin has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
jperry2 has joined #ruby-lang
yannis has quit [Ping timeout: 265 seconds]
qwerxy has joined #ruby-lang
neocoin has joined #ruby-lang
jperry2 has quit [Client Quit]
imperator has quit [Ping timeout: 252 seconds]
andrewhl has quit [Ping timeout: 264 seconds]
qwerxy has quit [Client Quit]
tbuehlmann has quit []
burgestrand has quit [Ping timeout: 244 seconds]
<apeiros_> rue: the basic test setup is done. I usually run my tests with `ruby test/runner.rb`. it's not really a requirement, but it does set up all the stuff. hope that's fine with you.
<apeiros_> the framework used is plain test/unit with some small additions.
<apeiros_> (I actually use `ruby -rturn test/runner.rb`)
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
agilob has quit [Ping timeout: 252 seconds]
agilob has joined #ruby-lang
Jade has quit [Read error: Connection reset by peer]
Hakon|mbp has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
neocoin has quit [Remote host closed the connection]
Guest17580 has joined #ruby-lang
coryf has quit [Remote host closed the connection]
fgomez has quit [Ping timeout: 244 seconds]
perryh_away is now known as perryh
fgomez has joined #ruby-lang
havenn has joined #ruby-lang
mistym has quit [Remote host closed the connection]
MrWGW has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
<MrWGW> how do I, using a block, create an array that consists of the values of another array, modified in some way?
<rippa> map
moxiemk1 has joined #ruby-lang
<rippa> array.map {|i| process(i)}
<MrWGW> so basically newarray = oldarray.map { |i| # et cetera
<MrWGW> it seems to work
<rippa> yes
<MrWGW> c = ar.map { |i| i + a }
<rippa> map! modifies array in place
<MrWGW> ok thats consistent enough
<MrWGW> so are blocks basically just glorified for loops?
<MrWGW> I've historically tried to avoid them as I've found them confusing and never have needed them much
<rue> MrWGW: No, they’re not
<rue> A block is more like an anonymous function
<rue> {|i| i + a } just says that it takes an object, and returns that + a
<rue> The case for #map, specifically, is that it (conceptually) uses Array#each — which does loop over the elements, and calls the block for each one
fayimora has joined #ruby-lang
fayimora has quit [Client Quit]
<MrWGW> ok
jarib has quit [Excess Flood]
imperator has joined #ruby-lang
RomyRomy_ has joined #ruby-lang
coryf has joined #ruby-lang
jarib has joined #ruby-lang
RomyRomy has quit [Ping timeout: 246 seconds]
<MrWGW> and the reason for using blocks is mainly due to the compactness they offer vs. doing it otherwise, with a named function or more conventional code?
igotnolegs has joined #ruby-lang
Hakon|mbp has quit [Quit: Leaving...]
<rippa> MrWGW: easyness
<rippa> why not use block if you can
<apeiros_> MrWGW: compare: people.sort_by { |person| [person.first_name, person.last_name] }; vs: people.sort_by(:people_sorter); def people_sorter(person); [person.first_name, person.last_name]; end
<apeiros_> first one is concise. easy to understand
<rue> (Although if you like, you *can* use Method#to_proc…)
<apeiros_> second one means you have some top-level method (bad, you could put it into a module, but still not that great), the stuff is in different places - just not that nice.
<apeiros_> if you *do* want to use a defined method, you can (as rue said, using Method#to_proc): people.sort_by(&method(:people_sorter)) is valid
perryh is now known as perryh_away
<yxhuvud> then there is the option of defining <=> and do a regular #sort instead.
<rue> Well, yes, but the #sort itself was a little incidental here
<rue> Nyt on aika sexy parta
<apeiros_> yxhuvud: that means you have one single way to sort your data
<apeiros_> what if you want to sort by last_name once and by first_name the other time?
<apeiros_> but yes
<apeiros_> implementing <=> for sortable data to have a default sort is a good idea. don't forget to include Comparable :)
<rue> The More You Know™
<imperator> apeiros_, guess you don't like bundler
<yxhuvud> I do, since I havn't seen a better solution to the problem bundler tries to solve.
Hakon|mbp has joined #ruby-lang
xtagon has joined #ruby-lang
skisulli has joined #ruby-lang
skisulli has left #ruby-lang [#ruby-lang]
SkramX has joined #ruby-lang
cirwin has joined #ruby-lang
tallship has quit [Remote host closed the connection]
<deryl> OK, I appear to have a severe misunderstanding of ActiveRecord association mechanicisms. https://gist.github.com/3024946 - I'm not getting a join table population (and thus association) unless I manually and specifically create an association I believe should be managed by AR. (This is for a PORA, not a rails app)
<deryl> first entry is with existing records (and shows how I found it), the 2nd is from start to finish for creation.
<deryl> my questions are at the very bottom after I show my work :)
<deryl> feels like high school math. "Be sure to show your work"
Hakon|mbp has quit [Quit: Leaving...]
<apeiros_> imperator: why do you think that?
<imperator> apeiros_, sorta felt like you're solving the same problem
<imperator> i dunno, maybe i'm off
RomyRomy_ has left #ruby-lang [#ruby-lang]
injekt has joined #ruby-lang
acyed has quit [Read error: Connection reset by peer]
acyed has joined #ruby-lang
<rue> deryl: #ror?
<deryl> rue but its not a rails app
<rue> It’s a Rails library
<deryl> its straight ruby app. i just use a few gems rails does
<deryl> so if you use any gems that rails depends on you have to ask in the rails channel even if you're not doing rails?
<injekt> deryl: what's your question?
<deryl> injekt: couple of them. A) WHY doesn't @vs.users get populated from @user.verification_suites.build since User is known at this point AND created THROUGH it? B) WHY doesn't the association get made once @vs has its attributes updated AND it is saved? (@vs.users is empty, and join table is empty) C) WHY do I have to MANUALLY add @user to @vs.users and THEN save for the association to be made, AND saved to the join table? WHAT am I missing in
<deryl> how ActiveRecord associations work?
<injekt> weird, I would expect @vs to be empty to start with, but once you save it it should contain the user you built it through
<apeiros_> imperator: not really
<injekt> deryl: can you show me the models and basic associations?
<apeiros_> bundler is for gems. test/runner.rb is about the "local" setup
<apeiros_> I'm not going to write a gem just for some classes I write only to be able to run a test
<deryl> injekt: yeah sec. got em in a github repo
<apeiros_> also I don't write a gem to add the lib path to $LOAD_PATH :)
<injekt> ^ +1
<injekt> hmm
<deryl> yeah yeah, i know. app/models like rails (because in the future this might have a rails frontend so I adopted some of the directory structure)
<injekt> im not one of those :P
<deryl> but its a gem. lives in lib/dtf.rb :)
<deryl> injekt: hehe cool
<deryl> injekt: what i'm not understanding is if I use @user.verification_suites.build to build @vs with, shouldn't it have associated with the user? if nothing else, shouldn;t it have done a behind-the-scenes @vs.users << @user ?
<deryl> and then on the save of @vs populated the join table?
<deryl> totally not getting why i have to manually @vs.users << @user and then @vs.save to hit the join table
<deryl> or, once @vs has an ID assigned that a @user.save doesn't cascade down the save chain and make it *that* way
<injekt> it's a little odd, I never use has_and_belongs_to_many though I always use join models
<deryl> though that chould be an artifact caused by the fact that @vs.users isn't having @user added to it
<injekt> not saying that would fix your issue, but I'm not sure if it's specific or not
wallerdev has quit [Quit: wallerdev]
<deryl> well i went with the habtm for the hmt so that i could work with either VerificationSuite (and still assoc to multiple users) or through @user.verification_suites.each and still be able to share. (The first allows me to assoc with a user AND still be able to @vs.analysis_cases.case_tests.each)
<apeiros_> hurray… people on blogs (well, answers to a blog post) thinking rails was a good source for role model code…
<Tasser> apeiros_, role model code?
<deryl> which is the way i'm thinking of this. my reasoning was to ensure sharing of VSs between multiple users (and thus associated ACs and CTs. ACs own CTs)
RomyRomy has joined #ruby-lang
RomyRomy has quit [Client Quit]
<apeiros_> Tasser: exemplary good code which you should follow in style etc.
wallerdev has joined #ruby-lang
<yxhuvud> well, it is better than it has been (though there are still plenty of cesspits)
workmad3 has joined #ruby-lang
<apeiros_> yxhuvud: agreed and agreed
<deryl> injekt: and not sure at all where to hunt down information to fix my knowledge if it is indeed a hole in MY thinking or understanding
<apeiros_> problem is, it takes an experienced coder to separate the good parts from the bad parts
heftig has joined #ruby-lang
<deryl> injekt: I mean, sure, the problem is solved by remembering to @vs.users << @user before doing any saving. I just have no clue why i *have* to
<deryl> especially having created vs by going *through* user to .build vs in the first place
imperator has quit [Quit: Leaving]
<deryl> at first i even thought that calling update_attributes before doing a .save was killing the association, but I even tried just doing it long form (vs = user.verification_suites.build ; vs.name ="" ; vs.description = ""; vs.save) but thats not it either
<yxhuvud> deryl: generally speaking, the backwards associations are not set up until after saving.
<yxhuvud> it is plenty annoying when you end up having to do multi model validations.
<deryl> yxhuvud: ok then that just feeds right into what i said. even if i long form setting attributes and saving, the join table doesn't get populated. I still have to manually vs.users << user
<deryl> once vs is saved (and an ID given) and then say i do user.save it doesn't make the assoc. still have to vs.users << user
<deryl> first
<deryl> absolutely positively not understanding why :/
<yxhuvud> that seems wrong though, since the association was set up when you built it.
<deryl> right. @vs = @user.verification_suites.build ; @vs.update_attributes(…) # sets the attributes and then saves it
<deryl> so @vs.users should have @user in the array
<yxhuvud> is vs defined as a has many through?
<deryl> yes
<deryl> vs AND user are habtm to each other
<apeiros_> "I'm habtm to you" sounds like a sexual innuendo…
<deryl> hehe
<yxhuvud> apeiros_: sounds kinda poly.
<apeiros_> yeah, it's so 69ish
<apeiros_> the year
<deryl> yxhuvud: actually its analysis_cases that has_many :users, :through => :verification_suites
<apeiros_> I mean
<deryl> all of tht works right. its the damned join table part (habtm) thats busted (or my understanding of its operation is)
<yxhuvud> you could try doing a has many through instead, though that would require a model for the join table.
<deryl> yeah i was trying to avoid the model because it shouldn't really be a need.
<deryl> but if i have to change it to get it to work right so be it, jus wish i understood why this doesn't work as i expect
<deryl> and I can't call BUG, because I haven't verified that its NOT a misunderstanding on my part
<deryl> google is my enemy today hehe. subverting my attempts at knowledge boosting :)
<deryl> idk, maybe rue is right. maybe i should hit the rails channel (#rails, not #rubyonrails)
raz has left #ruby-lang ["*fump*"]
<workmad3> heh, because #rails is the place to go for informative discussion (with yourself :P)
<deryl> yeah seems its #ror and they set it invite only
<workmad3> yeah, #ror is where the cool, big-boy contributors hang out
<deryl> hehe
<deryl> eons away from ever getting in *there* :)
<workmad3> ditto
<deryl> well my consolation so far is that its not something overtly my fault. starting to feel more like I'm assuming AR should be doing something that either its not meant to do, or just doesn't do.
arooni-mobile has joined #ruby-lang
<deryl> but no examples i've found show having to do that. they show the associations being made
<workmad3> I think I missed the initial problem description
<deryl> workmad3: https://gist.github.com/3024946 - See pry2.rb file (2nd one added)
<deryl> i put inline comments of what i expected and when. my overall questions end pry2.rb as #s
<workmad3> deryl: bleh, the 'joy' of an actual HABTM
<deryl> workmad3: the models I'm using are at https://github.com/dtf-gems/dtf/tree/master/app/models
<deryl> hehe yeah, not finding this fun at all ;)
<workmad3> deryl: the way it does the join table managment is hidden magic... I never managed to wrap my head around it... I don't even look at HABTM anymore, I only ever use hm:t
<deryl> driving me rather batty actually
<deryl> workmad3: well yxhuvud was saying to make a join MODEL and use that and get rid of HABTM entirely.
<workmad3> deryl: yes, that's using hm:t
<deryl> which as i said, would be fine except it adds a model i don't really need.
<deryl> i'm more just thoroughly confused on why HABTM doesn;'t work like i expect
<workmad3> because its HABTM? :P
<deryl> and so far can't find crapall about what is 'off' in my head on how it works, or even if it is
<workmad3> as I said, rails' HABTM is black magic
<deryl> hehehe. ok. i just don't want to abandon it if its really ME screwing up (other than using it in the first place) i'd rather learn what i'm goofing and fix my skillset
<workmad3> I'm not sure there *is* a sensible way of understanding how it works :)
<deryl> ok
<erikh> I was open source was more about collaboration and less about clubhouses.
<erikh> s/was/wish/
<workmad3> it could (probably is) something you're doing wrong somewhere... but it's not *just* you, it's pretty much everyone who attempts to use HABTM
<deryl> workmad3: ok, thats an acceptable salve to my pride :)
<deryl> "it aint just you"
<workmad3> deryl: as I said... I've never managed to get my head around how HABTM works myself ;)
<workmad3> deryl: I kinda ignore the fact it exists ;)
<workmad3> deryl: now, better stop talking rails in #ruby-lang before zenspider wakes up ;)
<deryl> got ya. ok, i'll rip it out and figure out how to replace it correctly. now to think of yet another model name applicable to this hehe
<deryl> ITS NOT RAILS DAMN IT!
* deryl runs
<workmad3> :)
diegoviola has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
voker57 has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
<rue> Too
<rue> Unless there’s an #activerecord, I guess
<deryl> just an empty 'owned' channel
sepp2k has joined #ruby-lang
savage- has joined #ruby-lang
mistym has joined #ruby-lang
cralor has joined #ruby-lang
agilob has quit [Ping timeout: 252 seconds]
<cralor> Howdy. I recently installed ruby on Debian Squeeze and want to execute a script. I'm getting 'bad interpreter: No such file or directory
<cralor> '
corundum has quit [Remote host closed the connection]
corundum has joined #ruby-lang
agilobable has joined #ruby-lang
<mistym> cralor: Is there any more detail in the message than that? What is the shebang? (That's the first line of the script.)
savage- has quit [Remote host closed the connection]
<cralor> shebang - #!/bin/env ruby
<erikh> that's because /bin/env doesn't exist
<cralor> full line - bash: ./manage-ice.rb: /bin/env: bad interpreter: No such file or directory
<cralor> right!
<erikh> you want /usr/bin/env or just #!ruby
<cralor> I don't know why :o)
<erikh> because env exists in /usr/bin on more system than it doesn't
<cralor> So just change the shebang?
<erikh> should work, yes.
<cralor> or maybe I can make a symlink so I don't have to? :P
<erikh> yeah, so in the annals of bad ideas...
<erikh> it's not going to work on the second system you use
<erikh> or the third
<erikh> or etc
<erikh> just change the file
<erikh> everything else is going to expect /usr/bin/env or at least #!ruby (which does more or less the same thing in this case)
<cralor> #!ruby is the default, e.g. /usr/bin/env ?
<erikh> neither are the default
<cralor> ohsix, alright
<erikh> there is no "default" really. gem binstubs have a default but that's because they're part of gems.
<erikh> should shed some light on the situation.
<erikh> (if you want to know what you're doing, that is)
qwerxy has joined #ruby-lang
moxiemk1 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 255 seconds]
VegetableSpoon has joined #ruby-lang
heftig has quit [Quit: leaving]
virunga has quit [Read error: Connection reset by peer]
virunga_ has joined #ruby-lang
Defusal_ has joined #ruby-lang
heftig has joined #ruby-lang
Defusal has quit [Ping timeout: 244 seconds]
msaffitz has joined #ruby-lang
krohrbaugh1 has quit [Quit: Leaving.]
sepp2k has quit [Remote host closed the connection]
agilob has joined #ruby-lang
SkramX has quit [Remote host closed the connection]
SkramX has joined #ruby-lang
fahadsadah has quit [Quit: ZNC - http://znc.sourceforge.net]
scientes has joined #ruby-lang
<scientes> does rdoc work with c++?
<scientes> c++ extensions i mean
<scientes> oh wait, i guess this is really c
QaDeS has quit [Quit: Ex-Chat]
havenn has quit [Remote host closed the connection]
wpaulson has joined #ruby-lang
rippa has quit [Ping timeout: 265 seconds]
havenn has joined #ruby-lang
postmodern has joined #ruby-lang
wpaulson has quit [Ping timeout: 245 seconds]
wpaulson has joined #ruby-lang
qwerxy has quit [Quit: offski]
havenn has quit [Remote host closed the connection]
qwerxy has joined #ruby-lang
davidbalbert_ has joined #ruby-lang
davidbalbert has quit [Read error: Connection reset by peer]
davidbalbert_ is now known as davidbalbert
JackNorris has quit [Ping timeout: 245 seconds]
havenn has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
Atharkz has joined #ruby-lang
<rue> Hooray
jondot has quit [Ping timeout: 255 seconds]
<rue> scientes: You’d normally export the entry methods anyway
<scientes> what do you mean?
Atharkz has left #ruby-lang [#ruby-lang]
davidbalbert has quit [Read error: Connection reset by peer]
<scientes> anyways, these docs i'm looking at were written by someone that doesn't really use ruby
<scientes> so i need to fix them up a bunch
JackNorris has joined #ruby-lang
<whitequark> scientes: ruby cannot directly import C++ classes/functions
<whitequark> so you'll need a C trampoline for each C++ function you'd want to see within Ruby
<whitequark> you can document these functions with rdoc, of course
<whitequark> (by "Ruby" I mean "MRI-compatible Rubies", of course)
Hakon|mbp has joined #ruby-lang
wpaulson has quit [Ping timeout: 250 seconds]
wpaulson has joined #ruby-lang
havenn has quit [Remote host closed the connection]
JackNorris has quit [Ping timeout: 252 seconds]
tonni has quit [Remote host closed the connection]
wpaulson has quit [Ping timeout: 264 seconds]
JackNorris has joined #ruby-lang
wpaulson has joined #ruby-lang
retro|cz has joined #ruby-lang
<apeiros_> drbrain: ping - maybe you can help me out writing a stubbing mechanism for gem activation…
fayimora has joined #ruby-lang
injekt has quit [Ping timeout: 264 seconds]
JustinCampbell has joined #ruby-lang
Hakon|mbp has quit [Read error: Connection reset by peer]
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
sailias has joined #ruby-lang
virunga_ has quit [Read error: Connection reset by peer]
apeiros_ has quit [Remote host closed the connection]
wpaulson has quit [Ping timeout: 265 seconds]
savage- has joined #ruby-lang
akira989 has joined #ruby-lang
zigidias has joined #ruby-lang
<whitequark> ruby-talk@ruby-lang.org: This email has violated the PROFANITY.
<whitequark> what
<whitequark> i'll give out $2.56 to anyone who could spot the "PROFANITY" the filter didn't like.
dbck has quit [Quit: Bye!]
msaffitz has joined #ruby-lang
umttumt has joined #ruby-lang
postmodern has quit [Ping timeout: 245 seconds]
<retro|cz> 1.9.3p125 :005 > StringScanner.new('您好')
<retro|cz> => #<StringScanner 0/6 @ "\xE6\x82\xA8\xE5\xA5...">
<cirwin> whitequark: "jerk"?
<retro|cz> StringScanner can't handle utf8?
<heftig> retro|cz: sure it can
<retro|cz> heftig, so can you explain to me how?
<heftig> StringScanner.new('您好').scan /[[:alpha:]]/
qwerxy has quit [Quit: offski]
<whitequark> cirwin: note that it's in the quoted part
<whitequark> so the original message has passed
<retro|cz> heftig, but when i need to use peek
<heftig> retro|cz: or just do .scan(/./) and note it scans one character, not one byte
<heftig> retro|cz: ah, indeed that doesn't work
<retro|cz> heftig, :'(
<retro|cz> that's really bad information for me :(
<retro|cz> Is there any another implementation?
msaffitz has quit [Read error: Connection reset by peer]
msaffitz has joined #ruby-lang
<heftig> oh, in rubinius it works properly
<heftig> StringScanner.new('您好').peek(1) # => "\xE6\x82\xA8"
postmodern has joined #ruby-lang
<retro|cz> heftig, I can't use Rubinius :(. I'w writing for non-rubinius stack.
<retro|cz> heftig, And is that bug or feature?
<heftig> the way MRI works seems like a bug to me
sailias has quit [Quit: Leaving.]
<heftig> docs say it should work like string[pos,len], but it obviously doesn't
sailias has joined #ruby-lang
msaffitz has quit [Client Quit]
<retro|cz> heftig, I'm using only peek, pos, scan, rest and getch
Asher has quit [Quit: Leaving.]
<retro|cz> Probably I will try own implementation around native String class.
<retro|cz> Or do you have any tip?
indeterminate has quit [Ping timeout: 265 seconds]
Asher has joined #ruby-lang
<Asher> string[pos, end_pos]
<Asher> string.slice( pos, len )
<retro|cz> Asher, yes I can probable handle this, Thanks.
<retro|cz> I'll try to write some own simple implementation?
<retro|cz> Is this good reason to fill a issue for ruby redmine?
<heftig> retro|cz: seems to me
umttumt has quit [Remote host closed the connection]
<retro|cz> heftig, Asher thanks guyd
<retro|cz> heftig, Asher thanks guys
heftig has quit [Quit: leaving]
sailias has quit [Quit: Leaving.]
heftig has joined #ruby-lang
savage- has quit [Remote host closed the connection]
seanstickle has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 255 seconds]
wpaulson has joined #ruby-lang
burgestrand has joined #ruby-lang
umttumt has joined #ruby-lang
jperry2 has joined #ruby-lang