<warlock>
So my version installed is ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux]. I see on the ruby language site 2.0.0-p195 is released. Noob to the language, is there any reason not to upgrade my implementation?
viszu has joined #ruby
dmiller has joined #ruby
<havenwood>
warlock: I'd suggest going ahead to 2.0.0-p195. It is latest stable release, and most anything that runs in 1.9.3 just runs better in 2.0. :)
<warlock>
havenwood: Ok, thanks. :)
vlad_starkov has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
estating56 has joined #ruby
havenwood has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
sambao21 has quit [Quit: Computer has gone to sleep.]
nuck has quit [Ping timeout: 264 seconds]
dmiller has quit [Remote host closed the connection]
deception has quit [Quit: Goodbye]
orien has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
[[mandrix]] has joined #ruby
feedbackloop_ has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
feedbackloop has joined #ruby
nuck has joined #ruby
kil0byte has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
niklasb has quit [Read error: Operation timed out]
Xeago has quit [Remote host closed the connection]
freeayu has quit [Read error: Connection reset by peer]
ybart has quit [Quit: ybart]
freeayu has joined #ruby
pitzips has quit [Read error: Operation timed out]
bigkm has joined #ruby
jimg has quit [Remote host closed the connection]
<Inside>
well I was looking for testing to see if strings were also integers
Mattx has quit [Ping timeout: 246 seconds]
Retistic has quit [Quit: Retistic]
justsee has quit [Ping timeout: 248 seconds]
agent_white has joined #ruby
NimeshNeema has joined #ruby
threesome has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
<sebastianb>
Inside: you can always check if "string".to_i does not return 0
lewix has joined #ruby
<sebastianb>
(there would be a problem with actual "0" string, but well)
takeru has quit [Remote host closed the connection]
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cHarNe2 has joined #ruby
bionhart has quit [Remote host closed the connection]
Ortuna has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
callmeivan has quit [Ping timeout: 264 seconds]
druonysus has quit [Ping timeout: 264 seconds]
takeru has joined #ruby
Ortuna has joined #ruby
bionhart has joined #ruby
Hanmac1 has joined #ruby
fwaokda has quit [Ping timeout: 256 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
bigkm has joined #ruby
Michael__ has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
Targen has joined #ruby
lewix has quit [Remote host closed the connection]
jurbat has joined #ruby
callmeivan has joined #ruby
Michael__ has quit [Remote host closed the connection]
yashshah has joined #ruby
Michael__ has joined #ruby
callmeivan has quit [Client Quit]
pkrnj has joined #ruby
t_p has joined #ruby
brianherman has joined #ruby
Michael__ has quit [Remote host closed the connection]
jrajav has quit [Quit: I tend to be neutral about apples]
Cyrus has joined #ruby
huoxito has joined #ruby
tjbiddle has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
takeru has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
jonathanwallace has quit [Read error: Operation timed out]
Dummies_freelanc has quit [Read error: Connection reset by peer]
Z_Mass has joined #ruby
freakazoid0223 has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 248 seconds]
jjbohn has joined #ruby
Dummies_freelanc has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
huoxito has quit [Quit: Leaving]
jjbohn has quit [Client Quit]
ariedler has joined #ruby
takeru has joined #ruby
<k-man>
i have an array of hashes [{:customer_code=>"ABDE",:order_amt=>100},{:customer_code=>"TEST123",:order_amt=>1000}] how can i change the key customer_code to just "label"?
madb055 has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
cHarNe2 has quit [Read error: Operation timed out]
Banistergalaxy has quit [Ping timeout: 260 seconds]
<cHarNe2>
damn, went from 30min to 1min and 20 sec when movinig from mysql to mongodb for my log-dump :P
banjara has quit [Client Quit]
phipes has joined #ruby
banjara has joined #ruby
<bnagy>
musl: I don't see where you're ever trying to modify the resources?
<bnagy>
that just looks like code for a deep fatch
DanKnox is now known as DanKnox_away
<bnagy>
*fetch
timkohrumel has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
<musl>
Yeah, I was naively hoping that obj = ... (line 14) would modify @resources...
mansi has joined #ruby
banjara has quit [Client Quit]
momomomomo has joined #ruby
<bnagy>
no obj is just the last value
<bnagy>
calling your accumulator hash was probably a bad idea
<musl>
ah
<bnagy>
because it's not a hash anymore after the first pass of inject
<bnagy>
reduce, whatever (same )
<musl>
sure
phipes has quit [Client Quit]
atno has quit [Ping timeout: 240 seconds]
<bnagy>
obj = block.call is weird as well. Normally it would be obj = block.call obj
<bnagy>
but whatever
<musl>
I figured I'd never need access to the object within the block. Why pass it?
banjara has joined #ruby
speakingcode has quit [Ping timeout: 248 seconds]
<bnagy>
if obj were something like a String you could probably still mess with it, but not via assignment
lewix has joined #ruby
<musl>
ah
<bnagy>
like you could do obj.replace "NEWTHING" and you should see different results
banjara has quit [Client Quit]
<musl>
ok
<bnagy>
cause it should be, at that stage, a ref to the deep fetched thing
<bnagy>
but immediates like true false nil 4 whatever can't be replaced in that manner
banjara has joined #ruby
spider-mario has quit [Remote host closed the connection]
banjara has quit [Client Quit]
timonv has joined #ruby
kandinski has quit [Remote host closed the connection]
banjara has joined #ruby
DanKnox_away is now known as DanKnox
Inside has quit [Ping timeout: 276 seconds]
banjara has quit [Client Quit]
<bnagy>
if you passed obj you could have deep_hsh.deep_fetch( :a, :b, :c ) {|elem| p elem, elem.upcase!}
<bnagy>
so you could use it for get or set, kind of
<musl>
sure
banjara has joined #ruby
<bnagy>
although deep_fetch and deep_set would be better in that model iho
<musl>
something to get a reference, and something to set it?
<musl>
r/something/a metho/
<bnagy>
I think Rails people do crap like this all the time
banjara has quit [Client Quit]
Retistic has joined #ruby
<bnagy>
personally I'm against it, tbh
osvico has quit [Ping timeout: 245 seconds]
<bnagy>
implicitly existing keys and magically created keys during deep fetch and missing keys not raising and wah wah wah
banjara has joined #ruby
Retistic has quit [Client Quit]
banjara has quit [Client Quit]
banjara has joined #ruby
areil has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
banjara has quit [Client Quit]
banjara has joined #ruby
Al_ has joined #ruby
banjara has quit [Client Quit]
bionhart has quit [Remote host closed the connection]
banjara has joined #ruby
<musl>
Is there a pattern or better way for maintaining a big ol' deeply nested hash, when I don't know what the keys will be or how deep things will be nested?
banjara has quit [Client Quit]
bionhart has joined #ruby
<bnagy>
I don't mind the nested hash, I just don't like the magic
<bnagy>
like, I model graphs and trees like that all the time
banjara has joined #ruby
wesside has joined #ruby
slainer68 has joined #ruby
codecop has joined #ruby
banjara has quit [Client Quit]
<bnagy>
normally I'd use a DelegateClass( Hash ) and add methods that looked semantically appropriate for whatever I'm modelling
icole has joined #ruby
<bnagy>
so it's a hash internally but the API is appropriate for the thing
banjara has joined #ruby
<musl>
Right. And the API handles the nesting, not the hash.
timkohrumel has quit [Remote host closed the connection]
<bnagy>
yeah like a tree would have :left and :right maybe which were other instances of BTree etc
<musl>
Cool. Yeah, that sounds better.
banjara has quit [Client Quit]
<bnagy>
just be careful with deep deep recursion, it has bitten me a few times
<musl>
How so?
banjara has joined #ruby
<bnagy>
the good thing about using a DelegateClass( Hash ) is that you can still access it directly via all the Hash methods ( unless you overload any )
<bnagy>
as a fallback kinda thing
<bnagy>
oh, deep recursion can cause stack exhaustion
banjara has quit [Client Quit]
bionhart has quit [Ping timeout: 264 seconds]
bigkm_ has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
mklappstuhl has joined #ruby
banjara has joined #ruby
<musl>
How do you keep an eye on the stack? (Curiosity, mostly.)
banjara has quit [Client Quit]
<bnagy>
you can tune it, but it's safest to convert to iteration if you think you might blow it up
banjara has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
banjara has quit [Client Quit]
<musl>
DelegateClass is neat! I can already think of a couple places where that would have helped.
<musl>
(And places where I want to go re-write things now.)
banjara has joined #ruby
<musl>
Thanks for the advice. :)
<bnagy>
no probs
sambao21 has quit [Quit: Computer has gone to sleep.]
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
slainer68 has quit [Ping timeout: 264 seconds]
ttt has quit [Read error: Connection reset by peer]
banjara has joined #ruby
ttt has joined #ruby
banjara has quit [Client Quit]
adramalech has joined #ruby
banjara has joined #ruby
adramalech has quit [Client Quit]
DanKnox is now known as DanKnox_away
banjara has quit [Client Quit]
diadara has quit [Ping timeout: 252 seconds]
banjara has joined #ruby
Al_ has quit [Read error: Connection reset by peer]
Al_ has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
ppppaul has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
icco has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
seitensei has quit [Quit: Leaving...]
pbertain has quit [Quit: pbertain]
ntus1017 has quit [Remote host closed the connection]
arya has joined #ruby
marsLantern has joined #ruby
mafolz has joined #ruby
nightfly has quit [Quit: WeeChat 0.4.0]
ARCADIVS has quit [Quit: WeeChat 0.3.8]
wsterling has quit [Remote host closed the connection]
danslo has quit [Quit: danslo]
benlieb has joined #ruby
akells` has joined #ruby
_rookie_ has joined #ruby
nari has quit [Quit: Ex-Chat]
_rookie_ is now known as rooks
rooks is now known as jmurphyuk
banjara has quit [Quit: Leaving.]
cHarNe2 has quit [Ping timeout: 276 seconds]
banjara has joined #ruby
banjara has quit [Client Quit]
akells` has quit [Read error: Operation timed out]
banjara has joined #ruby
fuleo has quit [Remote host closed the connection]
fuleo has joined #ruby
Elico has quit [Ping timeout: 264 seconds]
slainer68 has joined #ruby
becom33 has joined #ruby
becom33 has joined #ruby
Elico has joined #ruby
ayaz has joined #ruby
krainboltgreene has quit [Quit: krainboltgreene]
icco has quit [Ping timeout: 256 seconds]
persand has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
icco has joined #ruby
pduin has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
banjara has quit [Client Quit]
banjara has joined #ruby
jimg has joined #ruby
vlad_starkov has joined #ruby
bionhart has joined #ruby
banjara has quit [Client Quit]
ntus1017 has joined #ruby
banjara has joined #ruby
nari has joined #ruby
workmad3 has joined #ruby
jimg has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
nomenkun has joined #ruby
dfdf has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
chriskk has joined #ruby
snorkdude has quit [Quit: snorkdude]
agent_white has quit [Quit: leaving]
timkohrumel has joined #ruby
ehaliewicz has quit [Ping timeout: 264 seconds]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
bigkevmcd has joined #ruby
cherrypeel has joined #ruby
_bart has joined #ruby
rickruby has joined #ruby
timkohrumel has quit [Read error: Operation timed out]
ehaliewicz has joined #ruby
Elico has quit [Ping timeout: 248 seconds]
ybart has joined #ruby
dmiller has joined #ruby
banjara has quit [Client Quit]
Al_ has joined #ruby
freeayu__ has quit [Ping timeout: 240 seconds]
banjara has joined #ruby
Al_ has quit [Client Quit]
Retistic has joined #ruby
jeka-91 has joined #ruby
ctp has quit [Quit: Leaving...]
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
freeayu has joined #ruby
dawkirst has quit [Read error: Operation timed out]
noop_ has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
niklasb has joined #ruby
cherrypeel has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 260 seconds]
corehook_ has joined #ruby
vlad_starkov has joined #ruby
monkegjinni has joined #ruby
andikr has joined #ruby
t_p has quit [Ping timeout: 264 seconds]
banjara has quit [Quit: Leaving.]
icole has quit [Remote host closed the connection]
banjara has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
corehook has quit [Ping timeout: 264 seconds]
unstable has quit [Read error: Operation timed out]
awwaiid has quit [Read error: Operation timed out]
DomKM1 has quit [Quit: Leaving.]
ybart has quit [Quit: ybart]
Senjai has quit [Ping timeout: 248 seconds]
zigomir has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Remote host closed the connection]
banjara has quit [Client Quit]
monkegjinni has joined #ruby
banjara has joined #ruby
monkegjinni has quit [Remote host closed the connection]
banjara has quit [Client Quit]
quest88 has quit [Quit: quest88]
ayaz has quit [Quit: Bye!]
banjara has joined #ruby
banjara has quit [Client Quit]
tonini has joined #ruby
banjara has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
cyong has quit [Quit: Leaving.]
jds_ has quit [Remote host closed the connection]
jds_ has joined #ruby
banjara has quit [Client Quit]
dmiller has quit [Remote host closed the connection]
ayaz has joined #ruby
banjara has joined #ruby
jmurphyuk has quit [Quit: jmurphyuk]
dr_bob has joined #ruby
kil0byte has joined #ruby
jmurphyuk has joined #ruby
banjara has quit [Client Quit]
jprovazn has joined #ruby
banjara has joined #ruby
jarjar_prime has joined #ruby
monkegjinni has joined #ruby
JohnBat26 has joined #ruby
ctp has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
zigomir has left #ruby [#ruby]
yashshah has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
jbpros has joined #ruby
Jackneill has joined #ruby
corehook_ has quit [Quit: Leaving]
_bart has quit [Quit: _bart]
zigomir has joined #ruby
tonini has quit [Quit: Lost terminal]
tonini has joined #ruby
leonid_ has joined #ruby
nightfly has joined #ruby
afd__ has joined #ruby
danslo has joined #ruby
becom33 has quit [Quit: Leaving]
freeayu__ has joined #ruby
dawkirst has joined #ruby
Elico has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
tms has joined #ruby
momomomomo has quit [Quit: momomomomo]
sayan has joined #ruby
Cultofmetatron has joined #ruby
rickruby has quit [Ping timeout: 248 seconds]
BryanWB has joined #ruby
sideshowcoder has quit [Ping timeout: 264 seconds]
Cultofmetatron has quit [Remote host closed the connection]
zigomir has quit [Quit: zigomir]
monkegjinni has quit [Read error: Connection reset by peer]
<BryanWB>
can anyone point me to rspec example w/ a very complex setup? i currently have all my setup in rake tasks, the last of which invokes the spec
dawkirst has quit [Ping timeout: 264 seconds]
monkegjinni has joined #ruby
<BryanWB>
i imagine that all the setup should be in my spec file rather than my Thorfile
takeru_ has quit [Remote host closed the connection]
grzywacz has joined #ruby
swex has joined #ruby
swex_ has quit [Read error: Connection reset by peer]
icole has joined #ruby
ctp_ has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
ybart has joined #ruby
yashshah has quit [Ping timeout: 264 seconds]
skattyadz has quit [Quit: skattyadz]
robscomputer has joined #ruby
ctp has quit [Ping timeout: 264 seconds]
robscomputer has quit [Remote host closed the connection]
poga has quit [Ping timeout: 256 seconds]
banjara has quit [Client Quit]
robscomputer has joined #ruby
HecAtic has joined #ruby
banjara has joined #ruby
ctp has joined #ruby
JohnBat26 has joined #ruby
ctp- has joined #ruby
dawkirst has quit [Ping timeout: 276 seconds]
rodrigo has joined #ruby
charliesome has joined #ruby
ctp-_ has joined #ruby
ctp-_ has quit [Client Quit]
banjara has quit [Client Quit]
ctp has quit [Read error: Connection reset by peer]
fphilipe has joined #ruby
banjara has joined #ruby
therod has quit [Ping timeout: 252 seconds]
ctp_ has quit [Ping timeout: 252 seconds]
tjbiddle has quit [Quit: tjbiddle]
wallerdev has quit [Quit: wallerdev]
skattyadz has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
ctp- has quit [Ping timeout: 248 seconds]
troessner has joined #ruby
persand has joined #ruby
unstable has joined #ruby
<BryanWB>
dward: i don't, but i do have an opinion on celluloid, it's very easy to use
Al_ has joined #ruby
ferdev has joined #ruby
awwaiid has joined #ruby
poga has joined #ruby
clocKwize has joined #ruby
banjara has quit [Quit: Leaving.]
alexmreis has joined #ruby
rodrigo has quit [Quit: Leaving...]
<bnagy>
dward: it's very good for some things, it can be hard to write for, and it's not as popular as it was once which means the community is a little less cool than a few years ago
banjara has joined #ruby
iMe has joined #ruby
clocKwize has quit [Client Quit]
aspiers has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
dawkirst has joined #ruby
shoru has joined #ruby
byprdct has joined #ruby
banjara has quit [Client Quit]
niceguyjames has joined #ruby
clocKwize has joined #ruby
banjara has joined #ruby
slainer68 has joined #ruby
r0bgleeson has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
arya has quit [Ping timeout: 248 seconds]
slainer6_ has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
arya has joined #ruby
nfk has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexmreis has left #ruby [#ruby]
stonevil has quit [Ping timeout: 246 seconds]
banjara has quit [Quit: Leaving.]
msuszczy has joined #ruby
eccstartup has quit [Quit: 离开]
banjara has joined #ruby
eccstartup has joined #ruby
byprdct has joined #ruby
byprdct has quit [Client Quit]
byprdct has joined #ruby
Axsuul has quit [Ping timeout: 264 seconds]
staafl has joined #ruby
<byprdct>
Hi
poga has quit [Read error: Connection reset by peer]
tvw has quit []
timmow has joined #ruby
staafl_alt has joined #ruby
poga has joined #ruby
ghr has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<lewix>
how does bundler and the gemfile work exactly, I'm trying to run a ruby file; and i get the following msg gem 'json', '~> 1.7.7' . The directory has no gemfile (I usually use gemfile for my rails projects)
jarileskinen has joined #ruby
arya has joined #ruby
Shrink has quit [Ping timeout: 245 seconds]
banjara has quit [Quit: Leaving.]
niklasb has joined #ruby
banjara has joined #ruby
slainer6_ has joined #ruby
poseid has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
Shrink has joined #ruby
monkegjinni has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
slainer68 has quit [Ping timeout: 264 seconds]
cj3kim has quit [Remote host closed the connection]
fixl has joined #ruby
dhruvasa1ar has joined #ruby
banjara has quit [Client Quit]
ananthakumaran1 has joined #ruby
banjara has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
slainer6_ has quit [Read error: Connection reset by peer]
<Zelest>
ruby is red.. it should enjoy working!
<Zelest>
communist interpeter!
<Mon_Ouie>
Also, I think there's a limit to how many arguments a function can accept, isn't there?
<r0bgleeson>
i usually do something like foo += [1,2,3] which might be worse :)
alexmreis has joined #ruby
<r0bgleeson>
Mon_Ouie: it seems to handle 10k arguments fine :P
<r0bgleeson>
(as def foo(*args); end)
<r0bgleeson>
Mon_Ouie: did you go to ireland yet?
emergion has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
<Mon_Ouie>
At 1 million, it errors with stack level to deep, while concat handles that fine :p
<apeiros>
r0bgleeson: not much worse, no
<apeiros>
it creates a new object, concat & push don't
<Mon_Ouie>
Nope, going in early september
banjara has joined #ruby
takeru_ has quit [Remote host closed the connection]
adambeynon has joined #ruby
<r0bgleeson>
concat is definitely the superior choice then
Azulinho has joined #ruby
<r0bgleeson>
Mon_Ouie: cool, what for?
monkegjinni has joined #ruby
<Mon_Ouie>
English class with a few other students. The university pays for pretty much everything.
nomenkun has joined #ruby
clocKwize has quit [Quit: clocKwize]
<r0bgleeson>
Mon_Ouie: cool, will you attend uni there too?
clocKwize has joined #ruby
<Mon_Ouie>
I don't know how the classes are organized. They didn't tell us much really :p
<Mon_Ouie>
I don't think so though, unless classes start earlier there
slash_nick has quit [Ping timeout: 252 seconds]
pkondzior___ has quit [Quit: Connection closed for inactivity]
Al_ has quit [Quit: Al_]
<r0bgleeson>
Mon_Ouie: cool, too bad i won't be there, but dublin is a cool city. hopefully they put you on the good side of the city :) (south)
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
ntus1017 has quit [Ping timeout: 246 seconds]
<Mon_Ouie>
Hah, what's wrong with the northern part of it?
<r0bgleeson>
it can be a little rough, but it has its good spots too
<r0bgleeson>
generally the south is thought of as the 'posher' side of the city
<apeiros>
Mon_Ouie: lol @ 1mio. arguments
caraconan has joined #ruby
<Mon_Ouie>
Well, there is a limit! :p (it might just be stack space, though)
HecAtic has quit [Quit: Àá¼ö]
<caraconan>
Hi all. I'm using puppet and I've got a question regarding hashes. Hi there. There's a way to check if a hash as a certain key? http://paste.debian.net/8202/ Thanks
<r0bgleeson>
is that even ruby?
Al_ has joined #ruby
<caraconan>
Not sure to be honest
banjara has quit [Quit: Leaving.]
<apeiros>
caraconan: Hash#key?, Hash#include? etc.
<apeiros>
puppet iirc uses some bastard language of its own design
tk_ has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Spami_ has joined #ruby
Spami_ has left #ruby [#ruby]
<caraconan>
Thanks, I'll have a look
banjara has joined #ruby
<apeiros>
and the code in the paste is not ruby
tonini has quit [Ping timeout: 248 seconds]
LennyLinux has joined #ruby
banjara has quit [Client Quit]
razi has joined #ruby
[[mandrix]] has quit [Ping timeout: 248 seconds]
<bnagy>
apeiros: yeah but concat doesn't work the same as push *a
banjara has joined #ruby
<bnagy>
>> [].concat 2
<eval-in_>
bnagy => no implicit conversion of Fixnum into Array (TypeError) ... (http://eval.in/32560)
[[mandrix]] has joined #ruby
<apeiros>
bnagy: …
kil0byte has joined #ruby
<bnagy>
I mean I always use hash args for opts like that in any case
<bnagy>
it was just an example based on the specific code
<apeiros>
I'd say .push *2 is relatively stupid
<apeiros>
anyway, lunch time
<bnagy>
it's 'what do you do if a user can pass either a single item or an array of items'
Guedes has quit [Ping timeout: 240 seconds]
<bnagy>
the obvious answer being 'don't design your api like that'
banjara has quit [Client Quit]
<bnagy>
but if you have to, then splat
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
fermion has joined #ruby
fermion has quit [Client Quit]
sayan has quit [Quit: Leaving]
banjara has quit [Client Quit]
gyre007 has joined #ruby
F1skr has joined #ruby
banjara has joined #ruby
jimg has joined #ruby
jurbat has quit [Quit: Computer has gone to sleep.]
khushildep has joined #ruby
caraconan has quit [Quit: Leaving]
Neomex has joined #ruby
poga has quit [Read error: Connection reset by peer]
poga has joined #ruby
jimg has quit [Ping timeout: 252 seconds]
maz-dev_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 256 seconds]
ttt has quit [Read error: Connection reset by peer]
ttt has joined #ruby
nari has quit [Ping timeout: 240 seconds]
maz-dev has joined #ruby
takeru_ has joined #ruby
InFlames has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
Neomex has quit [Quit: Neomex]
<shevy>
splat the apple!
binw__ has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
cj3kim has quit [Remote host closed the connection]
<bnagy>
splatting the atom
banjara has joined #ruby
InFlames has joined #ruby
razi has quit [Ping timeout: 264 seconds]
niceguyjames has quit [Quit: Computer has gone to sleep.]
Astral__ has joined #ruby
greenarrow|2 has joined #ruby
hogeo has joined #ruby
nomenkun_ has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
includex has joined #ruby
rodasc has joined #ruby
beilabs has quit [Quit: Leaving]
lewix_ has joined #ruby
sethette1 has joined #ruby
aces1up23 has joined #ruby
includex has quit [Remote host closed the connection]
<apeiros>
11:47 bnagy: the obvious answer being 'don't design your api like that'
<apeiros>
totally
<apeiros>
I mean, you can, but you have the * in the def
<apeiros>
def foo(…, *blah)
<apeiros>
and then it's a non-issue again since blah is guaranteed to be an array.
benlieb has quit [Quit: benlieb]
threesome has quit [Read error: Operation timed out]
<r0bgleeson>
lessless: don't do [].push *fields, fields is already an array.
tonini has joined #ruby
<r0bgleeson>
you don't need to do that.
<lessless>
but in case of attributes(user, :fk), it's just a single symbol
<r0bgleeson>
then pass an array instead
<lessless>
or I do not understand how splats work? :)
<r0bgleeson>
:fk doesn't even need a splat :p
<lessless>
hmm... second argument for to_xml must be an array
mansi has quit [Ping timeout: 252 seconds]
<lessless>
apeiros, can you give an example, please?
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
tacahiroy has joined #ruby
atno has joined #ruby
Shrink has quit [Ping timeout: 240 seconds]
chase-work has joined #ruby
cHarNe2 has joined #ruby
Mattx has quit [Quit: Leaving]
dfdf has joined #ruby
tacahiroy has left #ruby [#ruby]
emergion has joined #ruby
robbyoconnor has joined #ruby
jmurphyuk has quit [Quit: jmurphyuk]
whowantstolivefo has joined #ruby
KRF_ is now known as KRF
atno has quit [Remote host closed the connection]
atno has joined #ruby
Criztian has joined #ruby
saurajeetd has joined #ruby
lele has quit [Ping timeout: 246 seconds]
threesome has joined #ruby
mercwithamouth has joined #ruby
ffio has joined #ruby
lele has joined #ruby
stonevil has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
takeru_ has quit [Remote host closed the connection]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
<BryanWB>
can anyone point me to rspec example w/ a very complex setup? i currently have all my setup in rake tasks, the last of which invokes the spec. seems pretty ugly to me
poga has quit [Read error: Connection reset by peer]
banjara has joined #ruby
poga has joined #ruby
rippa has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<saurajeetd>
Can somebody help me debug a scope problem in ruby. Problem definition in http://pastebin.com/hvCZJWxt
kirun_ has joined #ruby
GeissT has joined #ruby
cHarNe2 has quit [Ping timeout: 246 seconds]
lyanchih has quit [Quit: lyanchih]
monkegjinni has joined #ruby
razi has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
Shrink has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Michae___ has quit [Remote host closed the connection]
dfdf has quit [Remote host closed the connection]
kirun has quit [Ping timeout: 248 seconds]
tonini has joined #ruby
poga has quit [Remote host closed the connection]
Retistic has quit [Quit: Retistic]
camilasa_ has quit [Remote host closed the connection]
klaas_ is now known as klaas
banjara has quit [Quit: Leaving.]
kirun_ has quit [Quit: Client exiting]
rippa has quit [Ping timeout: 240 seconds]
[[mandrix]] has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 252 seconds]
jimg has joined #ruby
banjara has joined #ruby
mars__ has joined #ruby
banjara has quit [Client Quit]
monkegji_ has joined #ruby
banjara has joined #ruby
mklappstuhl has joined #ruby
arya has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
dr_bob has quit [Quit: Leaving.]
monkegjinni has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Remote host closed the connection]
davetherat has joined #ruby
lyanchih has joined #ruby
banjara has quit [Client Quit]
robbyoconnor has joined #ruby
therod has joined #ruby
vlad_starkov has joined #ruby
banjara has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
timeout has quit [Quit: leaving]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
telling has joined #ruby
telling has joined #ruby
telling has quit [Changing host]
dr_bob has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
Darkstar1 has joined #ruby
chuk has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<Darkstar1>
Hi all. Anyone here based in France? I'm looking for a France (pref paris) based expert for a day's training in Ruby basics.
monkegjinni has joined #ruby
mklappstuhl has joined #ruby
postmodern has quit [Quit: Leaving]
mklappstuhl has quit [Read error: Connection reset by peer]
dr_bob has quit [Ping timeout: 252 seconds]
camilasa_ has joined #ruby
manutter has joined #ruby
banjara has quit [Quit: Leaving.]
mklappstuhl has joined #ruby
brbcoding has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
banjara has joined #ruby
cj3kim has joined #ruby
<apeiros>
lessless: what? I didn't speak to you…
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
jmurphyuk has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
mars__ has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
poga has joined #ruby
jimg has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
Targen has quit [Ping timeout: 264 seconds]
yshh has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
cj3kim has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 252 seconds]
Guedes0 is now known as Guedes
Guedes has quit [Changing host]
Guedes has joined #ruby
ia___ has quit [Quit: ia___]
IrishGringo has quit [Ping timeout: 260 seconds]
poga has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 248 seconds]
drPoggs has quit [Quit: Goodbye]
machuga|away is now known as machuga
yashshah has joined #ruby
drPoggs has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
robustus has joined #ruby
diadara has quit [Read error: No route to host]
monkegjinni has joined #ruby
banjara has quit [Quit: Leaving.]
ffio_ has joined #ruby
<lessless>
sorry
banjara has joined #ruby
diadara has joined #ruby
mklappstuhl has joined #ruby
banjara has quit [Client Quit]
niceguyjames has quit [Quit: Computer has gone to sleep.]
mklappstuhl has quit [Read error: Connection reset by peer]
ffio has quit [Ping timeout: 260 seconds]
banjara has joined #ruby
eka has joined #ruby
Darkstar1 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Takehiro has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
kil0byte has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
banjara has quit [Client Quit]
supaiku has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
monkegjinni has joined #ruby
kevinykchan has joined #ruby
vlad_starkov has joined #ruby
akam-it has joined #ruby
banjara has joined #ruby
banjara has quit [Client Quit]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
banjara has joined #ruby
kil0byte has joined #ruby
banjara has quit [Client Quit]
vlad_sta_ has joined #ruby
banjara has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
ananthakumaran1 has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
mklappstuhl has joined #ruby
fwaokda has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
bhaak has quit [Ping timeout: 252 seconds]
orien has joined #ruby
sayan has joined #ruby
machuga has quit [Excess Flood]
machuga has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
InFlames has quit [Quit: This computer has gone to sleep]
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
poga has joined #ruby
poga has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
pduin has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
banjara has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
vlad_sta_ has quit [Read error: Connection reset by peer]
pduin has joined #ruby
vlad_starkov has joined #ruby
Ortuna has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
failshell has joined #ruby
monkegjinni has joined #ruby
bhaak has joined #ruby
Bry8Star{T2 has joined #ruby
D4T has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
atno has joined #ruby
jonathanwallace has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
jimg has joined #ruby
lewix_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
blaxter has quit [Remote host closed the connection]
krz has quit [Quit: krz]
blaxter_ has joined #ruby
tms has quit [Quit: Konversation terminated!]
mklappstuhl has joined #ruby
banjara has quit [Quit: Leaving.]
mklappstuhl has quit [Read error: Connection reset by peer]
therod has quit [Quit: Leaving...]
Ortuna has quit [Quit: Computer has gone to sleep.]
D4T has quit [Client Quit]
Spooner has joined #ruby
banjara has joined #ruby
viszu has joined #ruby
atno has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
apod has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
jimg has quit [Ping timeout: 252 seconds]
Nisstyre has joined #ruby
banjara has quit [Client Quit]
mklappstuhl has joined #ruby
atno has joined #ruby
banjara has joined #ruby
ziyadb has joined #ruby
banjara has quit [Client Quit]
cHarNe2 has joined #ruby
strax has joined #ruby
keyvan has joined #ruby
guilleiguaran_ has joined #ruby
karnowski has joined #ruby
banjara has joined #ruby
ntus1017 has joined #ruby
tvw has joined #ruby
akemrir has joined #ruby
Xeago has joined #ruby
sayan has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
niceguyjames has joined #ruby
mljsimone|bnc is now known as mljsimone
Darkstar1 has joined #ruby
sayan has joined #ruby
ayaz has quit [Ping timeout: 252 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
clocKwize has quit [Quit: clocKwize]
iamjarvo has quit [Quit: Leaving.]
takeru has joined #ruby
devoldmx3 has joined #ruby
atno has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
clocKwize has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
<poseid>
anyone here knows how to replace a sequence of characters, like " a - b ".gsub(" -","") ?
<poseid>
I would like to replace \s and -
<poseid>
with ""
emergion has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Read error: Connection reset by peer]
zeel_ has joined #ruby
monkegjinni has joined #ruby
<poseid>
ok, regex works: gsub(/[ -]/,"")
atno has joined #ruby
<Darkstar1>
Just repeating again for the new comers, I'm looking for Ruby dev trainers in France on brhalf of someone for a one day training course in the basics
diadara has quit [Ping timeout: 240 seconds]
<poseid>
france is large, where in france?
monkegjinni has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
atno has quit [Remote host closed the connection]
m8 has joined #ruby
niklasb has joined #ruby
atno has joined #ruby
atno has quit [Remote host closed the connection]
atno has joined #ruby
<Darkstar1>
Paris.
banjara has quit [Quit: Leaving.]
<Darkstar1>
Preferaably
hogeo has quit [Remote host closed the connection]
banjara has joined #ruby
atno has quit [Remote host closed the connection]
monkegjinni has joined #ruby
lewix has quit [Remote host closed the connection]
devoldmx3 has quit [Read error: Connection reset by peer]
lewix has joined #ruby
takeru has quit [Remote host closed the connection]
atno has joined #ruby
lewix has quit [Read error: Connection reset by peer]
yalue has joined #ruby
lewix has joined #ruby
<poseid>
hmm.. no, not anyone I know off, but if I hear someone I let you know
<poseid>
maybe checking lanyrd.com for speakers on Ruby in france might be nice to check
monkegjinni has quit [Read error: Connection reset by peer]
lkba has joined #ruby
monkegjinni has joined #ruby
freeayu__ has quit [Remote host closed the connection]
ananthakumaran1 has joined #ruby
TheDick has joined #ruby
Targen has joined #ruby
feniix has joined #ruby
TheDick_ has joined #ruby
TheDick has quit [Read error: Operation timed out]
TheDick_ is now known as TheDick
rudisimo has joined #ruby
ananthakumaran has quit [Ping timeout: 246 seconds]
geekbri has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
poseid has joined #ruby
banjara has quit [Client Quit]
cofin has joined #ruby
niklasb has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
jerius has joined #ruby
Proshot has joined #ruby
avsej has joined #ruby
v0n has joined #ruby
banjara has joined #ruby
avsej has left #ruby ["Ex-Chat"]
osvico has joined #ruby
monkegjinni has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
cmarques has joined #ruby
pskosinski has joined #ruby
niceguyjames has joined #ruby
wmoxam has joined #ruby
codecop has quit [Remote host closed the connection]
orien has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
devoldmx3 has joined #ruby
breakingthings has joined #ruby
pcarrie__ has quit [Read error: Operation timed out]
banjara has joined #ruby
wmoxam_ has joined #ruby
momomomomo has joined #ruby
jmurphyuk has joined #ruby
orien has joined #ruby
razi has quit [Quit: Leaving.]
DomKM has joined #ruby
devoldmx3 has quit [Client Quit]
devoldmx3 has joined #ruby
devoldmx3 has quit [Client Quit]
devoldmx3 has joined #ruby
agjacome has joined #ruby
vlad_sta_ has joined #ruby
sambao21 has joined #ruby
devoldmx3 has quit [Client Quit]
devoldmx has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
sambao21 has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 245 seconds]
wsterling has joined #ruby
adambeynon has joined #ruby
axl_ has joined #ruby
ariedler has joined #ruby
adac has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby
ayaz has joined #ruby
spike|spiegel has quit [Quit: WeeChat 0.4.1]
sambao21 has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
spike|spiegel has joined #ruby
Kricir has joined #ruby
yann_ck has joined #ruby
codecop has joined #ruby
banjara has quit [Quit: Leaving.]
emergion has quit [Quit: Computer has gone to sleep.]
generalissimo has joined #ruby
banjara has joined #ruby
Kricir has quit [Remote host closed the connection]
huoxito has joined #ruby
vlad_sta_ has joined #ruby
apod has quit [Quit: apod]
ananthakumaran1 has quit [Quit: Leaving.]
ttt_ has joined #ruby
tommyvyo has joined #ruby
momomomomo has quit [Quit: momomomomo]
codecop has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
vlad_sta_ has quit [Remote host closed the connection]
sethetter has joined #ruby
banjara has joined #ruby
<sethetter>
How can I get the referrer URL in a ruby cgi script?
TheDick has quit [Quit: TheDick]
burlyscudd has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
atno has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
ttt_ has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Read error: Operation timed out]
adac has joined #ruby
ayaz has quit [Ping timeout: 264 seconds]
interactionjaxsn has joined #ruby
lessless has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
Targen has quit [Ping timeout: 260 seconds]
splittingred has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
<apeiros>
sethetter: like in any other cgi script, it is in the ENV
<apeiros>
if there is a referrer
freerobby has joined #ruby
* apeiros
is surprised people still write CGI scripts, though
sayan has quit [Ping timeout: 245 seconds]
banjara has quit [Quit: Leaving.]
saurajeetd has quit [Read error: Operation timed out]
DomKM has quit [Quit: Leaving.]
bluenemo has quit [Remote host closed the connection]
banjara has joined #ruby
sleetdrop has joined #ruby
statarb3 has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
jeka-91 has quit [Ping timeout: 245 seconds]
gaahrdner has joined #ruby
adac has quit [Ping timeout: 248 seconds]
akells` has joined #ruby
Davey has joined #ruby
<sethetter>
apeiros: Yeah, I'm working with pretty old stuff here. The ruby part is an authentication layer, then the rest was written in shell. >_<
jtharris has joined #ruby
jtharris has quit [Client Quit]
jtharris has joined #ruby
kil0byte_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<apeiros>
oooh…hahaha
<apeiros>
I feel sorry for you :)
<apeiros>
have fun! :D
jmurphyuk has quit [Quit: jmurphyuk]
monkegjinni has joined #ruby
[m]adman has joined #ruby
teclator has quit [Read error: Operation timed out]
pcarrier_ has joined #ruby
[m]adman has quit [Max SendQ exceeded]
_nitti has quit [Remote host closed the connection]
[m]adman has joined #ruby
Godd2 has joined #ruby
kil0byte has quit [Ping timeout: 260 seconds]
pipework has joined #ruby
<sethetter>
apeiros: Thanks, I'm trying, lol.
osvico has quit [Ping timeout: 260 seconds]
<Godd2>
If I run file = File.open("file_with_stuff.txt", "r").read.split("\n"), does that close the file after it's done, or should I totally not do that?
johnmilton has joined #ruby
Bleah has joined #ruby
arya has quit []
_nitti has joined #ruby
wsterling has quit [Remote host closed the connection]
rhys has joined #ruby
pitzips has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
atno has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
atno has joined #ruby
adac has joined #ruby
bean has joined #ruby
MrZYX|off is now known as MrZYX
mansi has joined #ruby
arya has joined #ruby
tk_ has quit [Quit: ばいばい]
theRoUS has joined #ruby
MarioEIU has joined #ruby
ffranz has joined #ruby
octarine has quit [Read error: Operation timed out]
mikepack has joined #ruby
wolcanus has joined #ruby
octarine has joined #ruby
monkegji_ has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
cmarques has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
banjara has quit [Quit: Leaving.]
MarioEIU has left #ruby [#ruby]
braoru has quit [Quit: Leaving]
camilasa_ has quit [Remote host closed the connection]
banjara has joined #ruby
vlad_starkov has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
daniel_- has joined #ruby
daniel_- has joined #ruby
jmurphyuk has joined #ruby
alexwh has quit [Quit: Quitting]
pitzips has joined #ruby
ferdev has quit [Quit: ferdev]
girija has quit [Ping timeout: 264 seconds]
DrCode has quit [Remote host closed the connection]
lyanchih has joined #ruby
andikr has quit [Read error: Connection reset by peer]
apod has joined #ruby
icole has quit [Remote host closed the connection]
kofno has joined #ruby
alexwh has joined #ruby
rippa has joined #ruby
DrCode has joined #ruby
jrochkind has joined #ruby
kofno has quit [Remote host closed the connection]
takeru has joined #ruby
<jrochkind>
So... if I've got all the gems I need on my staging server, for my bundler-using Rails app... is there an easy way to deploy to production server(s) even when rubygems is down down down?
northelks has quit [Read error: Connection reset by peer]
_maes_ has joined #ruby
wesside_ has joined #ruby
ananthakumaran has joined #ruby
jmurphyuk has quit [Quit: jmurphyuk]
<zaargy>
bundler package, vendorise gems etc
kil0byte has joined #ruby
<zaargy>
probably not a good idea on rely on rubygems for deploys anyway!
banjara has quit [Quit: Leaving.]
<apeiros>
you should only rely on rubygems when you update your gems (or install one the first time)
ioNull has joined #ruby
takeru has quit [Ping timeout: 260 seconds]
banjara has joined #ruby
jimg has joined #ruby
ioNull has quit [Max SendQ exceeded]
camilasan has joined #ruby
kil0byte_ has quit [Ping timeout: 245 seconds]
banjara has quit [Client Quit]
banjara has joined #ruby
<jrochkind>
apeiros: right, I am installing a new version of the app on production server with new versions of some gems. zaargy: ah, bundle package maybe, thanks.
RORgasm_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
<apeiros>
you don't install the gems on the production server
tagrudev has quit [Remote host closed the connection]
ioNull has joined #ruby
<apeiros>
you ensure that your app contains everything. stage that. then deploy on production.
brtdv has joined #ruby
mikepack has quit [Remote host closed the connection]
<apeiros>
staging & deploying should not need to rely on network connectivity (other than from the deploying machine to the target server - of course)
krz has joined #ruby
suprbly has joined #ruby
<jrochkind>
apeiros: that certainly makes sense, but that is not what most of the bundler tutorials and standard cap recipes do. But sounds like bundle package is the way to do that, maybe?
timkohrumel has joined #ruby
<jrochkind>
looks like rubygems may be back at the moment too.
Criztian has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
<apeiros>
c[r]ap recipes :-p
interactionjaxsn has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
jimg has quit [Ping timeout: 276 seconds]
_nitti has quit [Ping timeout: 276 seconds]
kx has joined #ruby
<jrochkind>
apeiros: do you use bundler? Do you use `bundle package` to make sure rubygems is not a deploy dependency, is it as simple as that?
ner0x has joined #ruby
<apeiros>
yes, and yes
atyz has joined #ruby
<jrochkind>
apeiros: thanks!
Astralum has joined #ruby
<jrochkind>
apeiros: hmm, bundle package and actually check your vendor/cache into the repo?
interactionjaxsn has joined #ruby
brtdv has quit [Client Quit]
<apeiros>
that depends on your deployment procedure
wallerdev has joined #ruby
<apeiros>
if you clone the repo onto the stage/prod server, then yes
brtdv has joined #ruby
_nitti has joined #ruby
<jrochkind>
apeiros: yeah, capistrano. So I 'prepare' a new release on a dev and/or staging server, then cap deploy it to production. Looks like standard cap recipe already DOES do a bundle package on production. Problem is when there are new versions of the gem in hte new Gemfile.lock.... the vendor/cache on production doesn't have them yet, so deploy normally still goes to rubygems from production to fetch em.
<jrochkind>
apeiros: okay, so, yeah, standard cap recipe does clone a repo onto target server to deploy, so, yeah.
<jrochkind>
and looks like you need to combine bundle package with bundle --local to prevent bundler from contacting rubygems to check for platform-specific gems too. hmm, buncha things.
johnrlive has joined #ruby
momomomomo has quit [Quit: momomomomo]
k611 has joined #ruby
acrussell has joined #ruby
teclator has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
Banistergalaxy has quit [Ping timeout: 252 seconds]
abstrusenick has joined #ruby
k610 has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby
Takehiro has quit [Remote host closed the connection]
momomomomo has joined #ruby
banjara has quit [Quit: Leaving.]
northelks has joined #ruby
banjara has joined #ruby
jgarvey has joined #ruby
danslo has quit [Quit: danslo]
bionhart has quit [Remote host closed the connection]
jeka-91 has joined #ruby
dubdromic has joined #ruby
atno has quit [Remote host closed the connection]
timkohrumel has quit [Remote host closed the connection]
RORgasm_ is now known as RORgasm
Todd has joined #ruby
suporte85 has joined #ruby
suporte85 has quit [Max SendQ exceeded]
monkegjinni has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
atno has joined #ruby
suporte85 has joined #ruby
johnrlive has quit [Remote host closed the connection]
cmarques has joined #ruby
marwinism has joined #ruby
dr_bob has joined #ruby
cofin has quit [Quit: cofin]
mmitchell has joined #ruby
acrussell has left #ruby [#ruby]
johnrlive has joined #ruby
_Amaan has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
banjara has quit [Client Quit]
pduin has quit [Ping timeout: 252 seconds]
devdazed has quit [Quit: Bye]
banjara has joined #ruby
Villadelfia has quit [Ping timeout: 248 seconds]
razi has joined #ruby
SeySayux has quit [Ping timeout: 260 seconds]
niceguyjames has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Remote host closed the connection]
SeySayux has joined #ruby
Villadelfia has joined #ruby
ferdev has joined #ruby
robscomputer has joined #ruby
atno has quit [Remote host closed the connection]
razi has quit [Ping timeout: 252 seconds]
kil0byte has quit [Remote host closed the connection]
troessner has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 276 seconds]
mistawright has joined #ruby
cofin has joined #ruby
adac has quit [Quit: Leaving]
jprovazn has quit [Quit: Leaving]
jlast has joined #ruby
codecop has joined #ruby
riffraff169 has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 252 seconds]
quest88 has joined #ruby
dubdromic has quit [Ping timeout: 245 seconds]
ioNull has quit [Ping timeout: 246 seconds]
mikepack has joined #ruby
pcarrier_ has quit [Read error: Connection reset by peer]
ioNull has joined #ruby
pcarrier_ has joined #ruby
ioNull has quit [Max SendQ exceeded]
tjbiddle has joined #ruby
ioNull has joined #ruby
Hobogrammer has quit [Ping timeout: 248 seconds]
pu22l3r has joined #ruby
cmarques has quit [Ping timeout: 240 seconds]
freakazoid0223 has joined #ruby
dmiller has joined #ruby
feniix has quit [Ping timeout: 248 seconds]
Mattix has joined #ruby
Senjai has joined #ruby
Spooner has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
AlHafoudh has joined #ruby
Takehiro has quit [Ping timeout: 264 seconds]
AlHafoudh has quit [Client Quit]
<cr3>
I have a Rails ActiveRecord with a find_each method, so I try: find_each.filter... but I get "no block given". In Ruby, can't I just chain methods that take blocks?
riffraff169 has quit [Ping timeout: 248 seconds]
_nitti has joined #ruby
Darkstar1 has left #ruby [#ruby]
AlHafoudh has joined #ruby
atno has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
ckrailo has joined #ruby
tjbiddle has joined #ruby
<jrochkind>
cr3: in general, in ruby you can not just chain methods that take blocks, no. Some methods that take blocks look like they work that way because they've been written to do, but it's not automatic with any method that takes a block.
dubdromic has joined #ruby
buscon has quit [Quit: Leaving]
<apeiros>
cr3, jrochkind: yes, of course you can
<jrochkind>
apeiros: what?
<apeiros>
but you have to use proper syntax
<apeiros>
receiver.foo { block for foo }.bar { block for bar }.baz { block for baz }
wsterling has joined #ruby
<jrochkind>
well, right, sure. That is not the "just chain" that cr3 was asking about. But yes, of course you can manually do it.
<apeiros>
…
<jrochkind>
Some methods let you do what cr3 was asking when they are written to do so, for instance using Enumerator.
troessner has quit [Ping timeout: 248 seconds]
wolcanus has quit [Remote host closed the connection]
<cr3>
jrochkind: thanks, that's exactly what I was looking for
carloslopes has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
<apeiros>
you can turn any method into an enumerator using enum_for
wolcanus has joined #ruby
<apeiros>
but that doesn't relieve you from providing the block
<jrochkind>
yeah, I never completely understand Enumerator and enum_for, but there might be a way to use that to do what you want cr3.
<apeiros>
I doubt it. I think there's a more fundamental misunderstanding.
<apeiros>
but I got to catch my train. laters…
machuga is now known as machuga|away
Godd2 has quit [Quit: Page closed]
banjara has quit [Client Quit]
mikewintermute has joined #ruby
apeiros has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
banjara has joined #ruby
jurbat has joined #ruby
_bart has quit [Ping timeout: 246 seconds]
<jrochkind>
cr3: ActiveRecordModel.enum_for(:find_each).filter ? Oh yeah, that might work, but wont' do anything useful you want to do, I don't think. It'll end up reading EVERYTHING in before filtering it, maybe, defeating the find_each in the first place. UNLESS maybe in ruby 2.0, with lazy enumerators. This all gets very confusing to me.
jimg has joined #ruby
<jrochkind>
cr3: I'd just do what you want more explicitly with less magic.
rodasc is now known as crodas
hogeo has joined #ruby
atno__ has joined #ruby
banjara has quit [Client Quit]
wolcanus has quit [Ping timeout: 276 seconds]
Nisstyre has quit [Read error: Connection reset by peer]
banjara has joined #ruby
Nisstyre has joined #ruby
seejohnrun has joined #ruby
<cr3>
jrochkind: right, I'm doing: ActiveRecordModel.find_each { |model| models << model if model.param == param }
<cr3>
jrochkind: I've been trying to find a way to avoid iterating over each record but the where method that I've seen online doesn't seem to be defined
icole has joined #ruby
carloslopes has quit [Ping timeout: 252 seconds]
felixjet has quit [Read error: Connection reset by peer]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
wolcanus has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
takezawa has quit [Remote host closed the connection]
atno has quit [Read error: Connection reset by peer]
kofno has joined #ruby
kobain has joined #ruby
atno__ has quit [Read error: Connection reset by peer]
tommyvyo has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
johnrlive has quit [Remote host closed the connection]
takezawa has joined #ruby
ekarlso has quit [Ping timeout: 246 seconds]
kiri has quit [Read error: Operation timed out]
LennyLinux has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
Takehiro has joined #ruby
_nitti has joined #ruby
DonRichie has joined #ruby
ekarlso has joined #ruby
k611 has quit [Quit: Leaving]
timmow has quit [Ping timeout: 252 seconds]
mafolz has quit [Read error: Operation timed out]
TTilus has joined #ruby
ivanoats has joined #ruby
nhhagen has joined #ruby
<aedorn>
I know some people have done Ruby for C/C++/Python/etc programmers, but has anyone ever done the opposite to say C? C for Ruby Programmers, or C++ for Ruby Programmers? Just curious.
banjara has quit [Quit: Leaving.]
generalissimo has quit [Remote host closed the connection]
jrochkind has left #ruby [#ruby]
mikewintermute has quit [Quit: mikewintermute]
banjara has joined #ruby
Takehiro has quit [Ping timeout: 264 seconds]
tvw has quit []
mljsimone is now known as mljsimone|bnc
dhruvasagar has joined #ruby
cafk has joined #ruby
mistawright has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terrellt has quit [Read error: Connection reset by peer]
<cr3>
apeiros: I'm activerecord outside of rails though, I'm just using the rubygem-activerecord gem
gaahrdne_ has joined #ruby
<apeiros>
same question…
<r0bgleeson>
cr3: find :all, conditions: { foo: "bar" } in older APIs i believe.
Dummies_freelanc has joined #ruby
<kenneth>
this code seems to be failing sometimes for me… does anyone know how this could be? what could cause the lock to be released without the script exiting?
mercwithamouth has quit [Ping timeout: 248 seconds]
Dummies_freelan1 has joined #ruby
<cr3>
r0bgleeson: thanks, I'll give that a try!
<apeiros>
wow…
_nitti has joined #ruby
<apeiros>
cr3: you seriously prefer writing against an outdated API?
<Elico>
anyone familiar with Net::Ping::HTTP ?? I need some help with it. troubles are coming..
_nitti has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
krz has quit [Quit: krz]
Dummies_freelanc has left #ruby [#ruby]
<cr3>
apeiros: I thought I had the latest installed from gem, I'm not particularly fond of using an outdated API but I'd still like to just give r0bgleeson advice a try
banjara has quit [Client Quit]
gaahrdner has quit [Ping timeout: 264 seconds]
<r0bgleeson>
cr3: paste some code. so many things sound wrong.
<apeiros>
activerecord (3.2.13) - that's the current version and that one has where. if you don't have where, you do something wrong.
niceguyjames has quit [Quit: Computer has gone to sleep.]
<Elico>
r0bgleeson: can you take a look at my code please?
Voodoofish430 has joined #ruby
dubdromic has joined #ruby
banjara has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
<aedorn>
I sure do wish there was a way to wrap a method with a method inside of a block that gets called from a lambda from a method so I could make this method chain more complex.
<atmosx>
Can I send a an Array of elemnts using marshal?
banjara has joined #ruby
mrsolo has joined #ruby
<atmosx>
I'm extracting data from a MySQL server, forming an Array of elements and passing them from server to client using Marshal, but I get the client error client.rb:39:in `load': marshal data too short (ArgumentError)
<atmosx>
any ideas why?
<Spooner>
atmosx, Why don't you just try it in irb/pry? (Marshal will work for any object that has #_dump and #_load defined
<Spooner>
Including an array.
<Spooner>
atmosx, Check what the data you are getting is? Maybe it isn't Marshalled?
<atmosx>
it is
d2dchat has quit [Remote host closed the connection]
<Spooner>
Then print out the marshalled data at both ends to check that it is consistent.
khushildep has quit [Ping timeout: 246 seconds]
`MArceLL` has joined #ruby
<atmosx>
Spooner: in irb works fine
<atmosx>
Spooner: good idea
diadara has quit [Ping timeout: 252 seconds]
<apeiros>
it means your data is broken
Blaster has joined #ruby
<Spooner>
atmosx, e.g. Marshal.load(Marshal.dump([1, 2, 3])[0..-2]) #=> marshal data too short.
<seitensei>
Recommendations for a web host with Ruby? Pony doesn't seem to like dreamhost :/
pr0ton has quit [Ping timeout: 256 seconds]
mansi has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
mansi has joined #ruby
blaxter_ has quit [Ping timeout: 245 seconds]
akells` has quit [Remote host closed the connection]
bean has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
cofin has joined #ruby
banjara has quit [Quit: Leaving.]
brotatos has joined #ruby
jbpros has quit [Ping timeout: 252 seconds]
banjara has joined #ruby
<atmosx>
this marshal issue maybe is related with the way data is stored in mysql, varchat vs longtext
<atmosx>
hmm
phipes has joined #ruby
rangle has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
<shevy>
hey atmosx whatcha working on?
altamic has joined #ruby
altamic has left #ruby [#ruby]
<atmosx>
shevy: a client/server app.
pr0ton has joined #ruby
ahawkins has joined #ruby
billy_ran_away has joined #ruby
<ahawkins>
is there a shortcut for super(*args, &block)? I just want to call super without knowing what arguments are required for the constructor
workmad3 has joined #ruby
<apeiros>
super
<apeiros>
without parens
binaryplease has joined #ruby
<apeiros>
i.e., this is valid: def foo(*); super; end
danslo has quit [Read error: Connection reset by peer]
jbpros has joined #ruby
dr_neek has joined #ruby
danslo has joined #ruby
InFlames has joined #ruby
ArchBeOS has quit [Ping timeout: 260 seconds]
Zeeraw has joined #ruby
Z_Mass has joined #ruby
seitensei has left #ruby [#ruby]
gaahrdner has joined #ruby
pr0ton has quit [Ping timeout: 256 seconds]
Zeeraw has quit [Client Quit]
dawkirst has quit [Ping timeout: 252 seconds]
eldariof has joined #ruby
Xeago has joined #ruby
<atmosx>
blah I'll try YAML
ToApolytoXaos has joined #ruby
altivec has quit [Quit: Computer has gone to sleep.]
<peta_>
is it possible to let gem first download sources of a module and then (in a second step after modifying the source) tell it to compile/install it?
mocfive has quit [Remote host closed the connection]
alekst has quit [Quit: Leaving...]
stkowski has quit [Quit: stkowski]
Dummies_freelan1 has quit [Ping timeout: 264 seconds]
Z_Mass has quit [Ping timeout: 276 seconds]
<atmosx>
peta_: I don't know, but why not?
pr0ton has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
InFlames has quit [Quit: This computer has gone to sleep]
machuga is now known as machuga|away
<peta_>
atmosx: the question is how to do that
interactionjaxsn has joined #ruby
jbpros has quit [Ping timeout: 252 seconds]
_nitti has quit [Read error: Operation timed out]
cHarNe2 has joined #ruby
<peta_>
i think i got it
rdark has quit [Quit: leaving]
faulkner has joined #ruby
stkowski has joined #ruby
Z_Mass has joined #ruby
atyz has joined #ruby
mocfive has joined #ruby
jimg has joined #ruby
viszu has quit [Quit: Leaving.]
kil0byte has joined #ruby
<atmosx>
Okay I know what's happening
interactionjaxsn has quit [Ping timeout: 256 seconds]
<atmosx>
I use session.gets and for some reason the client closes the connection
<atmosx>
after receiving a newline char
cHarNe2 has quit [Ping timeout: 256 seconds]
<atmosx>
I receive only the first marshaled char...
jbpros has joined #ruby
dawkirst has joined #ruby
Elhu has joined #ruby
Z_Mass has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Remote host closed the connection]
Cultofmetatron has quit [Remote host closed the connection]
ArchBeOS has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
JZTech101 has joined #ruby
atyz has quit [Quit: Leaving...]
woolite64 has quit [Ping timeout: 276 seconds]
monkegjinni has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
jbpros has joined #ruby
pyrac has quit [Quit: pyrac]
harrymoreno has joined #ruby
Z_Mass has joined #ruby
Michael__ has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
brotatos has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
jbpros_ has joined #ruby
dmiller has joined #ruby
Michael__ has joined #ruby
<aedorn>
I am quite enjoying this Das keyboard
jbpros has quit [Ping timeout: 260 seconds]
jbpros_ is now known as jbpros
<musl>
aedorn: Nice! I'm also partial to an un-marked keyboard. I use a TypeMatrix 2030 with a blank black skin. :)
leonid_ has joined #ruby
<aedorn>
oh, didn't mention that, but yes, it is indeed the unmarked "pro" version. =)
<musl>
:)
jjasonclark has joined #ruby
Retistic has joined #ruby
hogeo_ has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
kuslwo has quit [Remote host closed the connection]
<aedorn>
I think the best part about it is that nobody in this office can actually use a keyboard without the markings, so I have no worries of anyone touching it. Sometimes obfuscation is good!
jdunck has joined #ruby
dmiller has quit [Ping timeout: 256 seconds]
<musl>
Oh yes, same here. Especially with the non-slanted keys & dvorak mapping.
havenwood has quit [Remote host closed the connection]
jdunck has quit [Client Quit]
<musl>
I keep another keyboard hooked up for pairing. :)
<sethetter>
I have a weird thing happening with the cgi library. I send my output and at the end of it appears "nil" everytime, and I can't figure out where it's coming from. I'm working in 1.8.7 btw.
<sethetter>
Any hints would be greatly appreciated.
<becom33>
/usr/lib/ruby/1.9.1/psych.rb:154:in `parse': (/var/lib/gems/1.9.1/gems/john-doe-0.1.9/lib/../default.yml): couldn't parse YAML at line 32 column 9 (Psych::SyntaxError)
benlieb has joined #ruby
workmad3 has joined #ruby
suporte85 has joined #ruby
suporte85 has quit [Max SendQ exceeded]
<atmosx>
Is it a good idea to store in the DB the time object as time = Time.now.utc instead of time = Time.now.utc.string ?
peta_ has quit [Quit: peta_]
poga has quit [Remote host closed the connection]
akells` has quit [Remote host closed the connection]
<atmosx>
becom33: try ruby2.0
sambao21 has quit [Quit: Computer has gone to sleep.]
<becom33>
oh
<atmosx>
Or use
<atmosx>
require 'yaml'
<atmosx>
YAML::ENGINE.yamler = 'syck'
<atmosx>
psych should be a new replacement for parsing yaml iirc, but in 1.9.1 you can use syck
<becom33>
atmosx, that works fine
woolite64_ has quit [Ping timeout: 260 seconds]
malkomalko has joined #ruby
mklappst_ has joined #ruby
mumblerit has quit [Ping timeout: 256 seconds]
brotatos has quit [Quit: WeeChat 0.4.1]
Iszak has quit [Quit: Computer has gone to sleep.]
mumblerit has joined #ruby
mumblerit is now known as Guest40708
mklappstuhl has quit [Ping timeout: 256 seconds]
carlyle has joined #ruby
Mattix has quit [Quit: Leaving]
mumblet has joined #ruby
ivanoats has quit [Remote host closed the connection]
Guest40708 has quit [Remote host closed the connection]
ybart has joined #ruby
saarinen has joined #ruby
tomsthumb has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
mklappst_ has quit [Remote host closed the connection]
becom33 has quit [Quit: Leaving]
rippa has quit [Ping timeout: 240 seconds]
aspiers has joined #ruby
devoldmx3 has joined #ruby
aedorn has quit [Ping timeout: 256 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
brbcoding has quit [Ping timeout: 264 seconds]
jurbat has quit [Quit: Computer has gone to sleep.]
Iszak has joined #ruby
Michae___ has joined #ruby
Michael__ has quit [Read error: Connection reset by peer]
aedorn has joined #ruby
yalue has quit [Quit: Leaving]
nomenkun has joined #ruby
Michae___ has quit [Remote host closed the connection]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
slash_nick is now known as slash_quit
redstar1_1 has joined #ruby
nomenkun_ has joined #ruby
atyz has joined #ruby
deception has quit [Quit: Goodbye]
nomenkun has quit [Read error: Connection reset by peer]
dr_neek has quit [Quit: dr_neek]
banjara has quit [Quit: Leaving.]
redstar1_ has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
banjara has joined #ruby
monkegjinni has joined #ruby
Takehiro has quit [Remote host closed the connection]
mityaz has quit [Quit: See ya!]
nomenkun has joined #ruby
ner0x has quit [Quit: Leaving]
ToApolytoXaos has quit [Quit: Leaving]
wesside_ has joined #ruby
Cultofmetatron has joined #ruby
nomenkun_ has quit [Ping timeout: 256 seconds]
<jjasonclark>
any devs of doorkeeper on or someone who has used it for password based api access?
<jjasonclark>
Doorkeeper error is : Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method.
pothibo has joined #ruby
pothibo has joined #ruby
akells` has joined #ruby
<shevy>
atmosx but they killed syck in ruby 2.0 :(
postmodern has joined #ruby
<atmosx>
in ruby 2 I never had issues with psych though :-P
mnaser has quit [Excess Flood]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
mocfive has joined #ruby
chrishough has quit [Quit: chrishough]
mnaser has joined #ruby
pyrac has quit [Quit: pyrac]
Evixion has joined #ruby
Michael__ has joined #ruby
pr0ton has quit [Ping timeout: 256 seconds]
chipotl__ has joined #ruby
carloslopes has quit [Remote host closed the connection]
chrishough has joined #ruby
saurajeetd has quit [Ping timeout: 256 seconds]
phipes has quit [Quit: phipes]
ArchBeOS has quit [Ping timeout: 260 seconds]
jztech101_ has joined #ruby
brotatos has joined #ruby
BryanWB has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
AlHafoudh has joined #ruby
jimg has joined #ruby
Michael__ has quit [Remote host closed the connection]
teddyp1cker has quit [Remote host closed the connection]
JZTech101 has quit [Ping timeout: 256 seconds]
snearch has joined #ruby
apod has quit [Quit: apod]
Squarepy has joined #ruby
brotatos has quit [Quit: WeeChat 0.4.1]
jimg has quit [Ping timeout: 252 seconds]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
mumblet is now known as mumblerit
gaahrdner has quit [Remote host closed the connection]
TousBientot has joined #ruby
Neomex has joined #ruby
sepp2k has quit [Quit: Leaving.]
gaahrdner has joined #ruby
brotatos has joined #ruby
ivanoats has joined #ruby
benlieb has joined #ruby
pipework has quit [Remote host closed the connection]
zommi has joined #ruby
jprovazn has quit [Ping timeout: 246 seconds]
daniel_-_ has joined #ruby
rismoney has quit [Remote host closed the connection]
JumpMast3r has joined #ruby
cHarNe2 has joined #ruby
rismoney has joined #ruby
daniel_- has quit [Ping timeout: 248 seconds]
gaahrdner has quit [Ping timeout: 256 seconds]
rismoney has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
F1skr has quit [Quit: WeeChat 0.4.1]
daniel_-_ has quit [Read error: Operation timed out]
JohnBat26 has joined #ruby
rismoney has joined #ruby
mklappstuhl has joined #ruby
krawchyk has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
daniel_-_ has joined #ruby
pr0ton has joined #ruby
zommi has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
sambao21 has joined #ruby
mixel has joined #ruby
viszu has joined #ruby
johnrlive has quit [Remote host closed the connection]
<aedorn>
I think my Python is improving ... depressing.
pu22l3r has quit [Ping timeout: 264 seconds]
txdv_ has joined #ruby
txdv has quit [Ping timeout: 252 seconds]
chrisseaton has joined #ruby
<chrisseaton>
Hi everyone. What does File::FNM_SYSCASE do? It's used in fileutils.rb, but I can't find it in the core documentation.
evenix has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
JohnBat26 has quit [Ping timeout: 246 seconds]
woolite64 has joined #ruby
malkomalko has quit [Remote host closed the connection]
jrajav has quit [Quit: I tend to be neutral about apples]
Guga_ has joined #ruby
k_89 has joined #ruby
Michael__ has joined #ruby
dmiller has quit [Remote host closed the connection]
Doc_X has quit [Ping timeout: 252 seconds]
ariedler has quit [Remote host closed the connection]
arya_ has joined #ruby
<aedorn>
chrisseaton: That's part of fnmatch.h sort of... it's defined in dir.c for Ruby (on POSIX systems it uses fnmatch FNM_CASEFOLD, but on Windows it will just define it as 0). Basically says case does or does not matter on the file system for matching purposes
c0rn has quit [Quit: Computer has gone to sleep.]
mljsimone|food is now known as mljsimone
Al_ has joined #ruby
<chrisseaton>
aedorn: OK thanks that makes sense. Strange that it doesn't appear in the documentation though. Where should I have been looking to RTFM?
Appineer has quit [Remote host closed the connection]
Kar- has quit []
brotatos has quit [Quit: WeeChat 0.4.1]
jztech101_ has quit [Ping timeout: 246 seconds]
atmosx has quit [Quit: And so the story goes…]
arya has quit [Ping timeout: 248 seconds]
ivanoats_ has joined #ruby
<aedorn>
chrisseaton: It's a bit unique to Ruby, but you can *kind* of get led to it by way of the "FNM_xxx matchers" in the File class doc: http://ruby-doc.org/core-2.0/File.html - unless you're familiar with the FNM_ prefix leading you to fnmatch.h, it's not exactly a clear path. =)
wesside_ has quit [Quit: Computer has gone to sleep.]
jimg has joined #ruby
jfelchne_ has joined #ruby
Takehiro has joined #ruby
geekbri has quit [Remote host closed the connection]
jdunck has joined #ruby
sepp2k has joined #ruby
woolite64 has quit [Ping timeout: 256 seconds]
<lectrick>
ruby-1.9.3-p429/lib/ruby/1.9.1/rake/dsl_definition.rb Look at the last few lines. Why the fuck is Rake, of all things, polluting the root Object namespace with a bunch of dynamically-defined methods and modules?
ivanoats has quit [Ping timeout: 256 seconds]
<lectrick>
self.extend Rake::DSL
<lectrick>
include Rake::DeprecatedObjectDSL
<lectrick>
(for *serious*?)
Criztian has joined #ruby
Squarepy has quit [Remote host closed the connection]
gdae has joined #ruby
<xibalba>
any SDRuby folks in here?
dmiller has joined #ruby
wsterling has quit [Read error: Connection reset by peer]
jimg has quit [Ping timeout: 276 seconds]
wsterling has joined #ruby
nuck has quit [Ping timeout: 264 seconds]
BadDesign has quit [Read error: Connection reset by peer]
pskosinski has quit [Ping timeout: 248 seconds]
v0n has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
h8R has quit [Quit: Leaving]
jmurphyuk has left #ruby [#ruby]
c0rn has joined #ruby
daniel_-_ has quit [Read error: Connection reset by peer]
Michael__ has quit [Remote host closed the connection]
pskosinski has joined #ruby
zastern has joined #ruby
Michael__ has joined #ruby
burlyscudd has quit [Quit: Leaving.]
mmitchell has quit [Read error: Operation timed out]
[m]adman has quit [Ping timeout: 246 seconds]
mumblerit has quit [Read error: Connection reset by peer]
Michael__ has quit [Read error: Connection reset by peer]
Michae___ has joined #ruby
pcarrier_ has joined #ruby
pskosinski has quit [Client Quit]
pskosinski has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
mumblerit has joined #ruby
mumblerit is now known as Guest91392
<kx>
is it true that when ruby creates an instance of a class thats inherited, then the object has first (perhaps for a fraction of a second) type of the parent class before it 'morphs' into the correct, inherited class?
guest2222222 has joined #ruby
guest2222222 has quit [Read error: Connection reset by peer]
sethetter has left #ruby [#ruby]
yann_ck has quit [Quit: Computer has gone to sleep.]
bricker`away is now known as bricker`work
mercwithamouth has quit [Ping timeout: 252 seconds]
Guest91392 has quit [Ping timeout: 256 seconds]
mljsimone is now known as mljsimone|bnc
jfelchne_ is now known as jfelchner
cj3kim has joined #ruby
chrishough has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
ivanoats_ has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
ivanoats has joined #ruby
nomenkun has quit [Remote host closed the connection]
<ravster>
hey all, I'm doing some JSON parsing. How do I test if a field's value is 'null'?
dash_ has quit [Quit: Time to beer :)]
chrishough has quit [Client Quit]
chipotl__ is now known as chipotle
chipotle has quit [Changing host]
chipotle has joined #ruby
johnmilton has quit [Remote host closed the connection]
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adambeynon has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
volume has joined #ruby
pskosinski has quit [Quit: pskosinski]
<r0bgleeson>
ravster: null is nil
jlast has quit [Remote host closed the connection]
<havenwood>
ravster: ^^ JSON.dump nil; #=> "null"
<ravster>
r0bgleeson: oh, okay. I'll try that. I was getting weird things with empty? and blank?
<ravster>
that worked great, thanks r0bgleeson, havenwood
<r0bgleeson>
bp
<r0bgleeson>
np
chrishough has joined #ruby
AlHafoudh has quit [Quit: Computer has gone to sleep.]
spider-mario has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
_Amaan has quit [Quit: _Amaan]
niklasb has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
<kx>
how can this line: @stringvar += (otherstringvar||'') return error: undefined method '+' for nil:NilClass?
<kx>
I thought the ||'' would prevent ruby from ever interpreting the right part as nil
<moshee>
+ is the method being called on @stringvar
<kx>
oh
<kx>
okay
arya_ has quit [Ping timeout: 248 seconds]
<kx>
thanks
monkegjinni has quit [Remote host closed the connection]
TousBientot has left #ruby [#ruby]
jerius has quit [Ping timeout: 252 seconds]
<r0bgleeson>
kx: NilClass#to_s returns ''
<r0bgleeson>
kx: you don't need that ||.
<kx>
cool, didn't know that, thanks
monkegjinni has joined #ruby
<r0bgleeson>
so, you could rewrite that as @stringvar ||= otherstringvar.to_s
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
c0rn has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
gaahrdner has quit [Remote host closed the connection]
nkts has joined #ruby
devoldmx3 has joined #ruby
mixel has quit [Quit: mixel]
arya has joined #ruby
gaahrdner has joined #ruby
rickhull has joined #ruby
rickhull has left #ruby [#ruby]
<Mon_Ouie>
They are different. %x{…} returns the output of the command, but you have to be careful with the way you insert arguments to avoid potential code injections, exec replaces the current process with a new one, and system just executes the command and waits for it to terminate
takeru has joined #ruby
JZTech101 has joined #ruby
<Mon_Ouie>
You may also want to use IO.popen or Process.spawn if you want to interact with the process as it is running
devoldmx has quit [Ping timeout: 256 seconds]
benlieb has joined #ruby
<Paradox>
Mon_Ouie, have you updated coolline? sorry to nag
samuel02 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
<alecdhuse>
Hello all, I'm new to Ruby and have a question: It there some type of two-way dictionary in ruby? Like a hashmap but where I can lookup either by the key or the value? Thanks
momomomomo has joined #ruby
freerobby has quit [Quit: Leaving.]
zeade has quit [Quit: Leaving.]
jdunck has quit [Quit: Computer has gone to sleep.]
takeru has joined #ruby
bigmac has joined #ruby
arya has joined #ruby
reset has joined #ruby
lewix has joined #ruby
jjasonclark has joined #ruby
ia___ has quit [Quit: ia___]
ckrailo has joined #ruby
zeade has joined #ruby
joast has joined #ruby
gaahrdner has joined #ruby
viszu has quit [Quit: Leaving.]
bean has quit [Quit: Computer has gone to sleep.]
x51339807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd has joined #ruby
jbpros has quit [Quit: jbpros]
krombr has joined #ruby
<havenwood>
alecdhuse: All values are unique?
terrellt has joined #ruby
lewix has quit [Ping timeout: 256 seconds]
moted has quit [Quit: moted]
<alecdhuse>
havenwood: yes
momomomomo has quit [Quit: momomomomo]
<alecdhuse>
both keys and values are unique
moted has joined #ruby
cj3kim has quit [Remote host closed the connection]
<havenwood>
alecdhuse: You can invert the hash when you want to lookup by value. #invert
Mon_Ouie has quit [Ping timeout: 256 seconds]
m8 has quit [Quit: Sto andando via]
acamargo has quit [Ping timeout: 256 seconds]
timkohrumel has quit [Remote host closed the connection]
<alecdhuse>
havenwood: thanks!
x1337807x has joined #ruby
Cultofmetatron has joined #ruby
gaahrdner has quit [Ping timeout: 264 seconds]
jfelchner has quit [Ping timeout: 252 seconds]
starscreamer has joined #ruby
dmiller has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]