apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
petey_ has joined #ruby
Sauvin has joined #ruby
perlphil has quit [Quit: perlphil]
dmiller has joined #ruby
Sauvin has quit [Max SendQ exceeded]
xk_id has quit [Quit:
DanKnox is now known as DanKnox_away
CorpusCallosum has quit [Ping timeout: 245 seconds]
Sauvin has joined #ruby
dangerousdave has quit [Ping timeout: 245 seconds]
Sauvin has quit [Max SendQ exceeded]
zz_tsykoduk is now known as tsykoduk
kirun has quit [Quit: Client exiting]
DouweM has quit [Quit: Leaving...]
petey_ has quit [Ping timeout: 245 seconds]
dmiller has quit [Ping timeout: 240 seconds]
randomnick_ has quit [Quit: Leaving]
Aryasam has quit [Ping timeout: 272 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
jalcine has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
newbiehacker has quit [Ping timeout: 240 seconds]
Aryasam has joined #ruby
aspires has joined #ruby
mmcdaris has quit [Quit: mmcdaris]
smathieu has joined #ruby
capnmalarkey has quit [Quit: capnmalarkey]
keen_ has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
inokios has joined #ruby
keen_ has joined #ruby
serp` has quit [Quit: serp`]
Sauvin has joined #ruby
Aryasam has quit [Ping timeout: 245 seconds]
petey_ has joined #ruby
Sauvin has quit [Max SendQ exceeded]
thepumpkin has joined #ruby
Aryasam has joined #ruby
mary5030 has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
smathieu has quit [Ping timeout: 246 seconds]
pu22l3r has quit [Remote host closed the connection]
serp` has joined #ruby
pu22l3r has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
zigomir_ has quit [Ping timeout: 240 seconds]
Aryasam has quit [Ping timeout: 245 seconds]
coderhs has joined #ruby
thepumpkin has quit [Ping timeout: 248 seconds]
Sauvin has joined #ruby
Aryasam has joined #ruby
Sauvin has quit [Max SendQ exceeded]
tsykoduk is now known as zz_tsykoduk
pu22l3r has quit [Ping timeout: 268 seconds]
zipper has quit [Ping timeout: 272 seconds]
Davey has joined #ruby
petey_ has quit []
nateberkopec has joined #ruby
am3n has joined #ruby
danielfriedman has joined #ruby
xk_id has joined #ruby
hiyosi has joined #ruby
danielfriedman is now known as capnmalarkey
<Freeaqingme> hi; I've been desperately trying to install therubyracer, but without much success as of yet. Does anyone have any clue on how to install it? http://pastebin.com/pY4Qhw4J
<Freeaqingme> without it I cant use the Rails Assets bundle :(
am3n has quit [Ping timeout: 256 seconds]
ismlages has quit [Remote host closed the connection]
capnmalarkey has quit [Client Quit]
timonv has joined #ruby
Xeago has joined #ruby
asfafaf has joined #ruby
asfafaf has quit [Max SendQ exceeded]
ecksit has joined #ruby
<volty> #rubyonrails !
<Freeaqingme> moving on. Thanks! ;)
asfafaf has joined #ruby
timonv has quit [Read error: Operation timed out]
asfafaf has quit [Client Quit]
lucazi has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
<ecksit> hey, i am writing some tests around my gem that interacts with an API but the requests and responses contain sensitive data that i wouldn't want to store as a VCR cassette or stored string in the fixtures. how can i achieve the tests without needing to hardcode in sensitive data?
Seich has quit [Quit: Computer has gone to sleep.]
danielfriedman has joined #ruby
DanBoy has joined #ruby
danielfriedman has quit [Client Quit]
apeiros_ has quit [Remote host closed the connection]
robert_ has quit [Read error: Connection reset by peer]
Seich has joined #ruby
Notte has joined #ruby
InFlames has joined #ruby
zz_michael_mbp is now known as michael_mbp
bradhe has quit [Remote host closed the connection]
TingPing__ has joined #ruby
timeout has quit [Quit: leaving]
bradhe has joined #ruby
Notte has quit [Client Quit]
zipper has joined #ruby
Aryasam has quit [Ping timeout: 245 seconds]
Aryasam has joined #ruby
<irated> hey guys...
michael_mbp is now known as zz_michael_mbp
Ripp__ has quit []
TingPing__ has quit [Client Quit]
bradhe has quit [Ping timeout: 248 seconds]
<ecksit> hey irated
marcdel has joined #ruby
drag00n has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
Aryasam has joined #ruby
am3n has joined #ruby
bradhe has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
Tearan has quit [Ping timeout: 272 seconds]
am3n has quit [Read error: Connection reset by peer]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
am3n has joined #ruby
rickruby_ has joined #ruby
aspires has joined #ruby
ner0x has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
rickruby has quit [Read error: Connection reset by peer]
CreativeEmbassy has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
pabloh has quit [Quit: Saliendo]
VTLob has quit [Quit: VTLob]
postmodern has joined #ruby
am3n has quit [Ping timeout: 256 seconds]
Astral_ has quit [Ping timeout: 272 seconds]
predator217 has joined #ruby
zipper has quit [Quit: leaving]
Aryasam has quit [Ping timeout: 260 seconds]
wpaulson has joined #ruby
capnmalarkey has joined #ruby
Aryasam has joined #ruby
inokios has quit [K-Lined]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
predator117 has quit [Ping timeout: 260 seconds]
CreativeEmbassy has joined #ruby
atmosx has quit [Quit: Lost in trance]
dmiller has joined #ruby
zipper has joined #ruby
bugsinlights has joined #ruby
carif has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
lnemo has quit [Quit: Leaving.]
brennanMKE has quit [Read error: Connection reset by peer]
matchaw has quit [Read error: Operation timed out]
jeffdb has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
dmiller has quit [Ping timeout: 260 seconds]
matchaw has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
Aryasam has quit [Ping timeout: 260 seconds]
zipper has quit [Quit: leaving]
Aryasam has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
zipper has joined #ruby
zipper has quit [Client Quit]
Sauvin has joined #ruby
zipper has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
zipper is now known as Guest50041
bradhe has quit [Remote host closed the connection]
Seich has joined #ruby
zarubin has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
nateberkopec has quit [Quit: Leaving...]
clemmo has joined #ruby
Guest50041 has quit [Client Quit]
smathieu has joined #ruby
zipper_ has joined #ruby
robonerd has joined #ruby
<irated> ezkl: you around
zipper_ has quit [Client Quit]
freerobby has joined #ruby
Sauvin has quit [Max SendQ exceeded]
hiyosi has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
zipper_ has joined #ruby
kil0byte has quit [Remote host closed the connection]
zipper_ has quit [Client Quit]
kil0byte has joined #ruby
crus has quit [Ping timeout: 260 seconds]
CreativeEmbassy has joined #ruby
Bry8Star{T2_ has joined #ruby
smathieu has quit [Ping timeout: 272 seconds]
ecksit has quit [Quit: Computer has gone to sleep.]
hiyosi has quit [Ping timeout: 245 seconds]
zipper_ has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
xk_id has quit [Quit:
zipper_ has quit [Client Quit]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
kil0byte has quit [Ping timeout: 272 seconds]
jkhwan has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
DonRichie has quit [Ping timeout: 240 seconds]
jlast has quit [Remote host closed the connection]
Aryasam has joined #ruby
mary5030 has quit [Remote host closed the connection]
DonRichie has joined #ruby
jlast has joined #ruby
kazuuu has joined #ruby
zipper_ has joined #ruby
pu22l3r has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
lnormous has quit [Ping timeout: 240 seconds]
hiroyuki has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 246 seconds]
zipper_ has quit [Client Quit]
<kazuuu> Hi guys!
<kazuuu> I have an issue.
<kazuuu> What would be the best way to generate a random unique number beetween 1 to 99999 from a model attribute.
<kazuuu> I did a loop in the before_save, but i'm afraid in this way the loop would take so long.
zipper_ has joined #ruby
Nilium has quit [Read error: Connection reset by peer]
<irated> If i remove a gem from the Gemfile.lock, but install it manually
<irated> is it bad
<irated> ?
zipper_ has quit [Client Quit]
zipper_ has joined #ruby
zipper_ has quit [Client Quit]
rkmetzl has joined #ruby
zipper_ has joined #ruby
Nilium has joined #ruby
zipper_ is now known as zipper
brtdv has joined #ruby
dmiller has joined #ruby
zipper has quit [Client Quit]
crus has joined #ruby
zipper has joined #ruby
lnormous has joined #ruby
lnormous has quit [Remote host closed the connection]
eka has joined #ruby
platypine has quit [Ping timeout: 245 seconds]
zipper has quit [Client Quit]
nateberkopec has joined #ruby
rickruby_ has quit [Ping timeout: 248 seconds]
am3n has joined #ruby
<shevy> irated dunno. I manage gems without Gemfile.lock
<shevy> kazuuu why not rand(99999)
<shevy> kazuuu hmm no ... rand(99998)+1 I think
<shevy> as rand may return 0
jeffdb has quit [Quit: jeffdb]
brtdv has quit []
am3n has quit [Ping timeout: 256 seconds]
nateberkopec has quit [Ping timeout: 260 seconds]
nstdloop has joined #ruby
<nstdloop> Are there any widely-used style guides for Ruby similar to PEP8 for Python?
matchaw_ has joined #ruby
rickruby has joined #ruby
<nstdloop> There seem to be many ways to accomplish the same thing, e.g. do/end or {}, requiring or not requiring () with functions, etc.
axl_ has joined #ruby
matchaw has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
<nstdloop> Which is a little confusing for someone coming from Python, so a style guide that points me in the right direction would be nice.
<volty> the guide of freedom
thyagobr has quit [Ping timeout: 272 seconds]
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
<volty> seems similar to the «cathedral vs bazaar»
jlast has joined #ruby
lucazi has quit [Quit: Textual IRC Client: www.textualapp.com]
<volty> shevy: give light to nstdloop
<DanBoy> nstdloop, you'll get used to it
<nstdloop> So I just choose what I want in my relative inexperience
<DanBoy> i still haven't used a completely strict convention for when to use () with a function or what not
<DanBoy> { } blocks are used for one liners
<DanBoy> do and end for longer blocks
<volty> I use {} always
drag00n has quit [Ping timeout: 245 seconds]
<DanBoy> that and the 2 space indentation
havenwood has joined #ruby
<DanBoy> if you don't use 2 space indents you'll be murdered
<volty> aesthetics, to me it seems much more elegant with braces
<DanBoy> you use braces with multi line blocks?
<volty> absolutely!
<DanBoy> never really seen that before
<DanBoy> to each his own tho
<volty> i hate the mouse and the begin end pair
<DanBoy> thats ruby
<havenwood> DanBoy: With stabby lambdas, otherwise no.
jkhwan has quit [Ping timeout: 272 seconds]
<DanBoy> ya makes sense
<DanBoy> do you generally use a lambda vs a proc object?
<havenwood> I do, but the opposite is also widely prescribed.
<DanBoy> lambdas behave more like functions right in a way
hsps_ has joined #ruby
<DanBoy> been awhile since i compared the two
<havenwood> DanBoy: Arity and locality if the return.
<DanBoy> woops not functions :P
<DanBoy> methodz
aspires has joined #ruby
<volty> procs iare lighter than lambdas?
<havenwood> volty: not larger, just every-so-slightly different
<DanBoy> theres some differences but i totally forgot
coderhs has quit [Ping timeout: 272 seconds]
<DanBoy> minor diffs
<havenwood> Wycatz did a great talk on the diff.
matchaw has joined #ruby
matchaw_ has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 240 seconds]
<DanBoy> when you pass a method a block anyway isn't it a proc by default
<DanBoy> then use yield
hiyosi has joined #ruby
nooodl has quit [Read error: No route to host]
bradhe has joined #ruby
<DanBoy> not using an argument for the block
axl_ has quit [Quit: axl_]
misutowolf has quit [Remote host closed the connection]
jkhwan has joined #ruby
jkhwan has quit [Remote host closed the connection]
keen__ has joined #ruby
axl_ has joined #ruby
myth17 has joined #ruby
kobain has quit [Remote host closed the connection]
keen_ has quit [Ping timeout: 245 seconds]
myth17 has quit [Remote host closed the connection]
kobain has joined #ruby
myth17 has joined #ruby
myth17 has quit [Changing host]
myth17 has joined #ruby
BraddBitt is now known as BraddPitt
platypine has joined #ruby
platypine has joined #ruby
platypine has quit [Changing host]
ZenGuy311 has quit [Ping timeout: 248 seconds]
ph8 has quit [Read error: Operation timed out]
ZenGuy311 has joined #ruby
freerobby has joined #ruby
smathieu has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
nateberkopec has joined #ruby
rkmetzl has quit [Quit: rkmetzl]
aspires has quit [Quit: sudo making a sandwich]
thepumpkin has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robert_ has joined #ruby
Hanmac has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 272 seconds]
ZenGuy311 has quit [Ping timeout: 248 seconds]
axl_ has quit [Quit: axl_]
ZenGuy311 has joined #ruby
Hanmac1 has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
nateberkopec has quit [Ping timeout: 246 seconds]
wald0 has quit [Quit: Lost terminal]
thepumpkin has quit [Ping timeout: 245 seconds]
hsps_ has quit [Ping timeout: 272 seconds]
jeffdb has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
bolt_ has joined #ruby
<bolt_> hi, where to start learning Ruby and Rails?
nateberkopec has joined #ruby
<shevy> nstdloop well, do/end and {} is a whole different thing from using () or not
<havenwood> bolt_: Some good Ruby resources here: https://www.ruby-lang.org/en/documentation/
<shevy> nstdloop the problem with style guides would be that the ruby parser does not care either way, for the most part (minor differences... {} bind stronger than do/end)
rickruby has quit [Ping timeout: 272 seconds]
frustrum has quit [Ping timeout: 272 seconds]
<shevy> nstdloop if you are fine using () all the time you can do so, same with do/end and {}
Briareos1 has quit [Remote host closed the connection]
<bolt_> havenwood: Thank you. What about Rails?
<nstdloop> shevy: I get it, it's just a bit weird for someone new to the language to have so much choice in basic syntax
<havenwood> bolt_: #rubyonrails is the Rails channel
<shevy> nstdloop yeah
<shevy> nstdloop I have the same thing when I look at other people's code
<shevy> nstdloop I go like "wtf are they doing here..."
<bolt_> havenwood: it's locked, i can't go there
<havenwood> bolt_: you likely need to reg your nic
<nstdloop> shevy: I'm still getting that looking at my own code
<shevy> nstdloop haha
Nanuq has quit [Ping timeout: 245 seconds]
<shevy> hmm that reminds me
<havenwood> bolt_: I don't know, RailsCasts, Rails for Zombies
Nanuq has joined #ruby
<shevy> for a reason that surprised me too, I found that the more consistent and strict I am when writing ruby code, the better in the long run
<volty> zombies sounds nice
<bolt_> havenwood: Rails for Zombies seems to be for older versions of Rails? i don't know if it's still OK for Rails 4
<volty> shevy: that is valid for any language -- spoken ones too
<shevy> volty yeah but ruby is rather flexible
<shevy> if you have a million ways to do things
<havenwood> bolt_: good point, i dunno if they've updated but i don't think applicable parts changed
<volty> english too :)
<shevy> volty I have old code, a module, in where I used only define_method() to add methods
<shevy> years later, I hated this code
<volty> noooo
<shevy> there was 0 metaprogramming in it! I used it only to replace def blaa things
<shevy> and I hated the {}
<shevy> define_method(:foo) {
<havenwood> shevy: FREEDOM PATCH ALL THE THINGS \o/
<shevy> puts 'hi from foo'
<shevy> }
<volty> ahah
<shevy> can you imagine a .rb file with 100 methods like that
<bolt_> havenwood: What do you use for web development, if you're not using Rails?
<volty> no -- cannot imagine -- i'm not that pervert :)
<havenwood> bolt_: I do like Sinatra. Rails has its place.
serp` has quit [Quit: serp`]
<shevy> volty well, it can happen when you explore new things
brennanMKE has joined #ruby
<volty> shevy: it has probably to do more with masochism than with language ? :)
<shevy> when you try out something
<shevy> like:
<shevy> def foo a,b,c,d
<shevy> nstdloop you should never omit the () when defining a method
<volty> yes, I know, I'm joking, me too had been writing weird things, but erased afterwards - to cancel all the proofs :)
<nstdloop> shevy: so def foo(a, b, c, d) is better than def foo a, b, c, d
<shevy> nstdloop yes!
<nstdloop> what about calling functions?
<shevy> although you need one char more
<volty> MUCH better
<shevy> nstdloop well
<nstdloop> is foo(a, b, c, d) also preferable to foo a b c d
<shevy> nstdloop yes!
<shevy> nstdloop but what about foo alone
<shevy> without arguments
<volty> calling is another thing, a question of style, preference, complexity of the call etc etc etc
<havenwood> nstdloop: style choice, indeed
<shevy> nstdloop my favourite example is this
am3n has joined #ruby
earthquake has joined #ruby
<shevy> cat = Cat.new; cat.meow()
<shevy> or!
<shevy> cat = Cat.new; cat.meow
<havenwood> eww
<nstdloop> is there a use case for the no-() syntax?
<shevy> nstdloop it looks nicer!
<havenwood> no parens whatsoever except to prevent parser error is oft referred to as Seattle style
<nstdloop> I like the Haskell-ness of it
<havenwood> i fairly often do that
<havenwood> less is better?
<volty> i use almost always (), even with no params -- to distinguish accessing attributes from that of calling a method (that does other things)
Nanuq has quit [Ping timeout: 245 seconds]
<shevy> there are quite many who omit the (), fowlmouth is one guy
<shevy> yeah volty! we are like brothers!
brennanMKE has quit [Ping timeout: 260 seconds]
<shevy> oh wait
<shevy> except for the no params part
<shevy> nstdloop see? where there is choice there is difference. 3 people, 3 different styles. it's rather awful if you look at other people's code, but it's cool when being able to choose what to use and how to use it for your own code
<shevy> volty do you use code comments in italian language too?
<nstdloop> shevy: ya, it makes sense
<volty> no no, after I have to go back and look if it is an ivar or (other) method call -- I prefer to forget about the implementation
<shevy> this I can understand
<volty> i comment always in english
<volty> but i comment rarely :)
brennanMKE has joined #ruby
<shevy> but volty... consider this
<shevy> @config.use_colours = true
<shevy> hmmm damn
<shevy> bad example... I wanted an example with @config.use_colours()
am3n has quit [Ping timeout: 256 seconds]
<volty> if it is an attribute I use @config.use_colours, if a method that does other things I add ()
danshultz has joined #ruby
<shevy> hey
danshultz has quit [Remote host closed the connection]
Nanuq has joined #ruby
DonRichie has quit [Quit: Verlassend]
<shevy> @config.use_colours is always a method or?
<shevy> but it was a bad example, I wanted to ponder about:
<shevy> @config.use_colours() = true
<shevy> but this wouldn't work
<volty> yes, but I really meant if it is a just a method that returns an ivar
<volty> (attr)
danshultz has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
mikesplain has joined #ruby
bradhe has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
ixti has quit [Ping timeout: 245 seconds]
<volty> I set up an auto replacement for rdoc links, e.g. http://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-select
Nanuq has joined #ruby
bdnelson has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest48067 has quit [Remote host closed the connection]
mikesplain has quit [Ping timeout: 245 seconds]
<volty> gn
volty has quit [Quit: too fare the night went on]
bolt_ has quit [Quit: Page closed]
bradhe has quit [Ping timeout: 240 seconds]
psyl0n has joined #ruby
thams has joined #ruby
zz_michael_mbp is now known as michael_mbp
fgo has joined #ruby
s3itz has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
Nanuq has joined #ruby
mary5030 has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
kitak has quit [Ping timeout: 246 seconds]
earthquake has quit [Quit: earthquake]
Hanmac1 has joined #ruby
endash has quit [Quit: endash]
havenwood has joined #ruby
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
baroquebobcat has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
Nanuq has quit [Ping timeout: 245 seconds]
patricklamoreux has joined #ruby
earthquake has joined #ruby
serp` has joined #ruby
danshultz has quit [Remote host closed the connection]
Nanuq has joined #ruby
danshultz has joined #ruby
Nanuq has quit [Remote host closed the connection]
danshult_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
Nanuq has joined #ruby
freerobby has joined #ruby
smathieu has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
Nanuq has quit [Ping timeout: 245 seconds]
tjad has joined #ruby
smathieu has quit [Ping timeout: 272 seconds]
danshult_ has quit [Remote host closed the connection]
Nanuq has joined #ruby
danshultz has joined #ruby
pwh has quit []
danshultz has quit [Ping timeout: 245 seconds]
nisstyre has joined #ruby
nateberkopec has quit [Quit: Leaving...]
dmiller has quit [Remote host closed the connection]
bugsinlights has quit [Remote host closed the connection]
dmiller has joined #ruby
[Rickmasta] has quit [Quit: Be back later]
rickmasta has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
rickmasta has quit [Client Quit]
TheShaun has joined #ruby
Nanuq has joined #ruby
dma_ has joined #ruby
decoponio has joined #ruby
am3n has joined #ruby
myth17 has quit [Quit: Bye Bye...]
dmiller has quit [Ping timeout: 272 seconds]
<patricklamoreux> anyone use rdbi?
<patricklamoreux> looking for thoughts on using it versus dbi or other
styped has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
<robonerd> is it possible to serve both a REST and HTML 'version' of some web app on the same port (say, 8080) at the same time?
am3n has quit [Ping timeout: 256 seconds]
MrPot4to has joined #ruby
mrpot4to_ has joined #ruby
dv__ has joined #ruby
dv_ has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 272 seconds]
kitak has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
freerobby has joined #ruby
s3itz has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
Seich has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
earthquake has quit [Quit: earthquake]
bigmac_ has joined #ruby
bigmac_ is now known as i8igmac
i8igmac has left #ruby [#ruby]
IcyDragon has quit [Quit: Space~~~]
taternuts has joined #ruby
dmiller has joined #ruby
nateberkopec has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
am3n has joined #ruby
nateberkopec has quit [Ping timeout: 272 seconds]
aapzak has quit [Ping timeout: 240 seconds]
dorei has quit []
mrsolo has joined #ruby
pwh has joined #ruby
jonahR has joined #ruby
aapzak has joined #ruby
bradhe has joined #ruby
Bry8Star{T2_ is now known as Bry8Star{T2
astrobunny has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Hanmac has joined #ruby
zachrab has joined #ruby
rickruby has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
rickruby has quit [Remote host closed the connection]
timonv has joined #ruby
ulik has quit [Ping timeout: 245 seconds]
astrobun_ has quit [Ping timeout: 260 seconds]
rickruby has joined #ruby
yfeldblum has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
xk_id has joined #ruby
<robonerd> any rest conceptual gurus in? i'm curious about a scenario: if i wanted to run slashdot.org as both a web site and rest web app, could do i that on the same port (8) simultaneously?
bradhe has quit [Ping timeout: 272 seconds]
dmiller has quit [Remote host closed the connection]
pr0ggie has quit [Read error: Operation timed out]
<robonerd> and if so, how is the distinction made in this for the server to know to dish out text/html (web site) or text/json (web app)?
pdimitrov has quit [Ping timeout: 245 seconds]
am3n has quit [Remote host closed the connection]
mlpinit has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
freerobby has joined #ruby
ananthakumaran has joined #ruby
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
amacgregor has joined #ruby
jetblack has joined #ruby
smathieu has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
madb055 has joined #ruby
thepumpkin has joined #ruby
<bnagy> you might be better of in #rubyonrails, tbh
freerobby has quit [Ping timeout: 240 seconds]
<bnagy> but I would have thought you can just look at the request and do different stuff
jkhwan has joined #ruby
<bnagy> but the port seems pretty irrelevant
mlpinit has quit [Ping timeout: 240 seconds]
pwh has quit []
smathieu has quit [Ping timeout: 240 seconds]
<bnagy> having said all that I am not a web guy, like, at all
thepumpkin has quit [Ping timeout: 245 seconds]
jkhwan has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
pr0ggie has joined #ruby
pdimitrov has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
rickruby has quit [Remote host closed the connection]
nateberkopec has joined #ruby
jetblack has quit [Remote host closed the connection]
jalcine has quit [Excess Flood]
rickruby has joined #ruby
psyl0n has quit [Quit: psyl0n]
zachrab has quit []
mrpot4to_ has quit [Read error: Connection reset by peer]
MrPot4to has quit [Read error: Connection reset by peer]
MrPot4to has joined #ruby
danshultz has joined #ruby
mrpot4to_ has joined #ruby
havenwood has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
tjbarber has quit [Quit: Textual IRC Client: www.textualapp.com]
Tearan has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
jonahR has quit [Quit: jonahR]
mlpinit has joined #ruby
earthquake has joined #ruby
Tearan has quit [Ping timeout: 245 seconds]
mlpinit has quit [Ping timeout: 272 seconds]
CaptainJet has joined #ruby
am3n has joined #ruby
serp` has quit [Quit: serp`]
am3n has quit [Ping timeout: 256 seconds]
nateberkopec has joined #ruby
<Seich> robonerd: You can take a look at the request headers to see what response type they are asking for
<Seich> otherwise I'd probably put out an api endpoint like: slashdot.org/api/v2/stuff.json
<robonerd> but how would i know to serve the api endpoint vs the html end point?
<robonerd> if i wanted 2 different interfaces to my web app, 1 rest/json the other text/html, would i run 2 different servers on 2 different ports?
nateberkopec has quit [Ping timeout: 245 seconds]
mmcdaris has joined #ruby
freerobby has joined #ruby
ecksit has joined #ruby
capnmalarkey has quit []
earthquake has quit [Quit: earthquake]
<Seich> it all depends, the same server can handle both cases
jeffdb has quit [Quit: jeffdb]
smathieu has joined #ruby
taternuts has quit [Ping timeout: 240 seconds]
<robonerd> well how do i know when i want to use a new port?
freerobby has quit [Ping timeout: 240 seconds]
<Seich> I'd probably never go with a different port it makes it harder for the end user to use
<Seich> using a different endpoint would probably be the best solution most of the time
i_s has joined #ruby
<robonerd> different uri end point you mean?
<Seich> yep
smathieu has quit [Ping timeout: 272 seconds]
baroquebobcat has joined #ruby
brtdv has joined #ruby
xk_id has quit [Quit:
<robonerd> rod.hard.com/thing.html rod.hard.com/thing.json ?
jalcine has joined #ruby
tomzx_mac has quit [Ping timeout: 272 seconds]
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
brtdv has quit [Client Quit]
CaptainJet has quit [Ping timeout: 272 seconds]
mrsolo has joined #ruby
kazuuu has quit []
tomzx_mac has joined #ruby
i_s has quit [Ping timeout: 260 seconds]
alienone has joined #ruby
Croesus_ has joined #ruby
Seventoes has joined #ruby
Croesus has quit [Ping timeout: 272 seconds]
Croesus has joined #ruby
styped has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Croesus_ has quit [Ping timeout: 272 seconds]
InFlames has quit [Remote host closed the connection]
MrPot4to has quit [Read error: Connection reset by peer]
mrpot4to_ has quit [Read error: Connection reset by peer]
MrPot4to has joined #ruby
lyanchih has joined #ruby
nateberkopec has joined #ruby
mrpot4to_ has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
wallerdev has quit [Quit: wallerdev]
tomzx_mac has joined #ruby
Methylated has joined #ruby
neo__ has joined #ruby
neo__ has quit [Client Quit]
guns has joined #ruby
nateberkopec has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
amacgregor_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
amacgregor has quit [Ping timeout: 240 seconds]
<Seich> yeah, that's probably the best way
Seventoes has quit [Quit: Leaving]
alienone has quit [Remote host closed the connection]
havenwood has joined #ruby
am3n has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
am3n has quit [Ping timeout: 256 seconds]
mrsolo has joined #ruby
mmcdaris has quit [Quit: mmcdaris]
s2013 has joined #ruby
timonv has joined #ruby
Methylated has quit [Quit: Leaving.]
baroquebobcat has quit [Quit: baroquebobcat]
dma_ has quit [Remote host closed the connection]
dma_ has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
timonv has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
dma_ has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
jeffree has quit [Quit: Leaving]
ph8 has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
kizzx2 has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
jeffdb has joined #ruby
nateberkopec has joined #ruby
s2013 has quit [Remote host closed the connection]
nari has joined #ruby
astrobunny has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
Seventoes has joined #ruby
clemmo has quit [Remote host closed the connection]
ph8 has quit [Ping timeout: 246 seconds]
guns has quit [Quit: guns]
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
smathieu has joined #ruby
thepumpkin has joined #ruby
havenwood has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
kobain has quit []
ingy1 has joined #ruby
ingy1 has quit [Client Quit]
dmiller has quit [Remote host closed the connection]
kizzx2 has joined #ruby
smathieu has quit [Ping timeout: 246 seconds]
bartkiewi has joined #ruby
dmiller has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
thepumpkin has quit [Ping timeout: 272 seconds]
s2013 has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
kitak has quit [Ping timeout: 246 seconds]
Croesus has quit [Ping timeout: 240 seconds]
nari has quit [Ping timeout: 245 seconds]
cfi30 has quit [Quit: WeeChat 0.4.2]
Da|wo has joined #ruby
<Da|wo> Question about Private vs Public SVN hosting service (codeplex, sourceforge, cloudforge etc..): what exactly means Public .. does that means that anyone have read/write access to the project (website in my cas) ??
braincra- has joined #ruby
brennanMKE has joined #ruby
nateberkopec has joined #ruby
braincrash has quit [Ping timeout: 246 seconds]
yacks has quit [Read error: Connection reset by peer]
<bnagy> normally public is just read
eeriegeek has joined #ruby
<bnagy> by default, you usually add comitters etc via some interface
sayan has joined #ruby
nisstyre has quit [Quit: Leaving]
brennanMKE has quit [Ping timeout: 272 seconds]
tomzx_mac has quit [Ping timeout: 246 seconds]
am3n has joined #ruby
<Da|wo> I wonder if a personal website is appropriate on such public svn host
nateberkopec has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
<Da|wo> you ever heard of open source personal website .. ? lol
bradhe has joined #ruby
<robonerd> nah
mmcdaris has joined #ruby
<robonerd> i'd keep that closed
<robonerd> you don't want someone putting pics up of you where they superimposed a big black dong
<robonerd> or a small one, either way
kitak has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
<Da|wo> well the personal site is a resume..
<Da|wo> so the target viewer are employeer
am3n has quit [Ping timeout: 256 seconds]
mlpinit has joined #ruby
<robonerd> yea but still, they might be into putting dongs on your pics
<Da|wo> but I have a php login form so that they can login and get a personalized version of my cv (crafted for the exact job asked)
<robonerd> ahh nice
<robonerd> great feature
<robonerd> scammer :)
braincra- has quit [Ping timeout: 245 seconds]
<Da|wo> what you mean scammer ?
<Da|wo> lol
<Da|wo> kinda
<Da|wo> :P
<Ivo> what versions are allowed by "~> 0.6.0"
<robonerd> smart tho :D
<Ivo> ?
patricklamoreux has quit [Ping timeout: 245 seconds]
<ezkl> Da|wo: github handles SVN and has a very nice web publishing system: http://pages.github.com/
bradhe has quit [Ping timeout: 272 seconds]
astrobunny has joined #ruby
<Da|wo> yea, but im on windows ... and all those silverlight microsoft addinn bugs me
<Da|wo> thanks though
<Da|wo> do people use github for website developpment too ?
popl has quit [Ping timeout: 246 seconds]
<Ivo> Da|wo: yes
<Da|wo> I know its commonly used for open source application projects.. but just never heard of website dev project being open source..
<Da|wo> ok
<ezkl> Da|wo: My blog http://zeke.templ.in/ is hosted on github -> https://github.com/ezkl/ezkl.github.com
<Da|wo> ah great just what I needed
<Da|wo> exemples
edin has quit [Ping timeout: 264 seconds]
<Da|wo> can I set some privacy setting (ie no google indexing of my project)
<Da|wo> ?
<Ivo> if you set your project private'
<Da|wo> I know its kinda contradictory for the type of site github is
mlpinit has quit [Ping timeout: 245 seconds]
yfeldblu_ has joined #ruby
<Ivo> bitbucket has free private repositories
<Da|wo> I can set my project private on github ?
<Ivo> not for free
<Da|wo> ok
<Da|wo> ok so now I know that im looking for free private svn host
yfeldblum has quit [Read error: Connection reset by peer]
<Da|wo> thanks bout bitbucker
<Ivo> use bitbucket with hg or git
jlast has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
<Da|wo> its weird that http://www.svnhostingcomparison.com/ does even have a Private/Public category
Biohazard has quit [Ping timeout: 245 seconds]
mmcdaris has quit [Quit: mmcdaris]
bio has joined #ruby
yfeldblu_ has quit [Ping timeout: 272 seconds]
nari has joined #ruby
astrobunny has joined #ruby
pagios has quit [Ping timeout: 272 seconds]
fswitalski has joined #ruby
fswitalski has left #ruby [#ruby]
nism has joined #ruby
ner0x has joined #ruby
havenwood has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
krz has joined #ruby
dmiller has quit [Remote host closed the connection]
bartkiewi has quit [Remote host closed the connection]
pagios has joined #ruby
mcgibbone has joined #ruby
freerobby has joined #ruby
astrobunny has quit [Ping timeout: 248 seconds]
WillAmes has quit [Remote host closed the connection]
smathieu has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
WillAmes has joined #ruby
edin has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
mcgibbone has quit [Remote host closed the connection]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
astrobunny has joined #ruby
mikesplain has joined #ruby
skaflem has joined #ruby
huebner has joined #ruby
smathieu has quit [Ping timeout: 272 seconds]
JohnBat26 has joined #ruby
mikesplain has quit [Ping timeout: 245 seconds]
OdNairy has joined #ruby
sparq_ has joined #ruby
sparq_ has quit [Read error: Connection reset by peer]
pranny has joined #ruby
s2013 has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
hiroyuki has quit [Ping timeout: 245 seconds]
kitak has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
am3n has joined #ruby
dmiller has joined #ruby
hiroyuki has joined #ruby
dmiller has quit [Read error: Connection reset by peer]
bradhe_ has quit [Ping timeout: 272 seconds]
dmiller has joined #ruby
bradhe has joined #ruby
brennanMKE has quit [Ping timeout: 246 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
dmiller has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
dmiller has joined #ruby
am3n has quit [Ping timeout: 256 seconds]
rickruby has quit [Remote host closed the connection]
scottstamp has quit [Quit: I just need some time to think...]
timonv has joined #ruby
neo__ has joined #ruby
neo__ has quit [Client Quit]
dmiller has quit [Ping timeout: 240 seconds]
nstdloop has quit [Remote host closed the connection]
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Ping timeout: 260 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
hiroyuki has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
rickruby has joined #ruby
JeanMertz has joined #ruby
Hooman has joined #ruby
Ripp__ has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
jeffdb has quit [Quit: jeffdb]
relix has joined #ruby
mlpinit has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
pranny has quit [Quit: Leaving.]
Socket- has quit [Ping timeout: 272 seconds]
astrobunny has quit [Ping timeout: 245 seconds]
bassclef has quit [Ping timeout: 272 seconds]
astrobunny has joined #ruby
am3n has joined #ruby
krz has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
crus has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
smathieu has joined #ruby
thepumpkin has joined #ruby
nateberkopec has quit [Read error: No route to host]
am3n has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 245 seconds]
smathieu has quit [Ping timeout: 245 seconds]
zigomir has joined #ruby
monkegjinni has joined #ruby
crus has joined #ruby
bradhe has quit [Remote host closed the connection]
drumusician has joined #ruby
bradhe has joined #ruby
Hooman has quit [Ping timeout: 248 seconds]
krz has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
Hooman has joined #ruby
MrZYX|off is now known as MrZYX
bradhe has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
brennanMKE has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
brtdv has joined #ruby
ehaliewicz has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
Da|wo has quit [Quit: —I-n-v-i-s-i-o-n— 3.3 (November '11)]
fntzr has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegji_ has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
dmiller has joined #ruby
ecksit has quit [Quit: Computer has gone to sleep.]
ner0x has quit [Quit: Leaving]
mrsolo has joined #ruby
drumusician has quit [Ping timeout: 240 seconds]
dmiller has quit [Ping timeout: 260 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mmcdaris has joined #ruby
SilverKey has quit [Quit: Sleep now]
vlad_starkov has joined #ruby
nari has joined #ruby
krz has quit [Read error: Connection reset by peer]
ph8 has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
Astralum has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Czupa has joined #ruby
d45h has joined #ruby
astrobunny has joined #ruby
mrpot4to_ has quit [Remote host closed the connection]
MrPot4to has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
am3n has joined #ruby
Czupa has quit [Remote host closed the connection]
havenwood has joined #ruby
bradhe has joined #ruby
am3n has quit [Ping timeout: 256 seconds]
bradhe has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 272 seconds]
Jetchisel has joined #ruby
freerobby has joined #ruby
Xeago has joined #ruby
krz has joined #ruby
vlad_starkov has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
smathieu has joined #ruby
claymore has joined #ruby
mikesplain has joined #ruby
drumusician has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 246 seconds]
Guest85414___ has quit [Read error: Connection reset by peer]
Guest85414___ has joined #ruby
fgo has quit [Remote host closed the connection]
nism has quit [Ping timeout: 250 seconds]
astrobunny has quit [Ping timeout: 272 seconds]
platypine has quit [Ping timeout: 240 seconds]
Vivekananda has quit [Remote host closed the connection]
bradhe has joined #ruby
vince_prignano has joined #ruby
amacgregor_ has quit [Ping timeout: 240 seconds]
amacgregor has joined #ruby
astrobunny has joined #ruby
robertjpayne has joined #ruby
stnly has quit [Quit: leaving]
bradhe has quit [Ping timeout: 245 seconds]
mmcdaris has quit [Quit: mmcdaris]
brennanMKE has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
brtdv has quit []
brennanMKE has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
hiall has joined #ruby
brennanMKE has joined #ruby
dmiller has joined #ruby
krz has quit [Quit: krz]
jbpros has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
dmiller has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
jbpros has quit [Quit: jbpros]
jbpros has joined #ruby
adambeynon has joined #ruby
timonv has joined #ruby
mengu has joined #ruby
pyrac has quit [Quit: pyrac]
banisterfiend has joined #ruby
rickruby has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 248 seconds]
am3n has joined #ruby
blackmesa has joined #ruby
vlad_starkov has joined #ruby
jbpros has quit [Quit: jbpros]
amacgregor_ has joined #ruby
am3n has quit [Ping timeout: 256 seconds]
dangerousdave has joined #ruby
amacgregor__ has joined #ruby
pyrac has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
DouweM has joined #ruby
godd2 has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
predator217 has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
thepumpkin has joined #ruby
danshultz has joined #ruby
smathieu has joined #ruby
Hooman has quit [Ping timeout: 272 seconds]
thepumpkin has quit [Ping timeout: 246 seconds]
predator117 has joined #ruby
smathieu has quit [Ping timeout: 272 seconds]
rickruby has joined #ruby
wallerdev has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
bradhe has joined #ruby
rickruby has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 240 seconds]
monkegji_ has quit [Remote host closed the connection]
monkegjinni has joined #ruby
ph8 has quit [Ping timeout: 246 seconds]
high_fiver has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Ping timeout: 246 seconds]
jibi has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
dmiller has joined #ruby
brennanMKE has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
rickruby has joined #ruby
dmiller has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
monkegjinni has joined #ruby
ph8 has joined #ruby
Tuxist has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
dmiller has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
DouweM has quit [Ping timeout: 245 seconds]
crus has quit [Ping timeout: 246 seconds]
am3n has joined #ruby
drumusician has quit [Ping timeout: 260 seconds]
pyrac has quit [Quit: pyrac]
skaflem2 has joined #ruby
alexherbo2 has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
crus has joined #ruby
zipper has joined #ruby
zipper is now known as Guest83544
VTLob has joined #ruby
skaflem has quit [Read error: Operation timed out]
Guest83544 has quit [Client Quit]
zarul has quit [Ping timeout: 260 seconds]
zipper_ has joined #ruby
high_fiver has joined #ruby
am3n has quit [Ping timeout: 256 seconds]
Soda has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
zipper_ is now known as zipper
Linux_Extremist has joined #ruby
noop has joined #ruby
fgo has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
m8 has joined #ruby
Seich has joined #ruby
DonRichie has joined #ruby
Seich has quit [Read error: Connection reset by peer]
Seich has joined #ruby
bio is now known as Biohazard
freerobby has joined #ruby
Seich has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
kaldrenon has joined #ruby
mengu has joined #ruby
sayan has joined #ruby
lkba has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
krz has joined #ruby
Guest25835 has joined #ruby
kaldrenon has quit [Ping timeout: 260 seconds]
adjo has joined #ruby
adjo_ has joined #ruby
smathieu has joined #ruby
high_fiver has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
OdNairy has joined #ruby
smathieu has quit [Ping timeout: 260 seconds]
spider-mario has joined #ruby
ismlages has joined #ruby
robertjpayne has quit []
ozzloy has quit [Ping timeout: 245 seconds]
rickruby has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
fridim_ has joined #ruby
weeb1e has quit [Read error: Operation timed out]
neo__ has joined #ruby
kidoz has joined #ruby
neo__ has quit [Client Quit]
Seich has joined #ruby
weeb1e has joined #ruby
dmiller has joined #ruby
fntzr has quit [Quit: Leaving]
brennanMKE has joined #ruby
rickruby has joined #ruby
Seich has quit [Ping timeout: 246 seconds]
dmiller has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
Seich has joined #ruby
am3n has joined #ruby
sepp2k has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
d45h has quit [Ping timeout: 260 seconds]
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 246 seconds]
Seich has quit [Ping timeout: 272 seconds]
kirun has joined #ruby
jbpros has joined #ruby
am3n has quit [Ping timeout: 256 seconds]
madb055 has quit [Remote host closed the connection]
madb055 has joined #ruby
platzhirsch has joined #ruby
SeySayux has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
atmosx has joined #ruby
AndChat| has joined #ruby
platzhirsch has quit [Quit: Leaving.]
apeiros has joined #ruby
fgo has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 272 seconds]
wildroman has joined #ruby
noop has quit [Ping timeout: 245 seconds]
Aryasam has joined #ruby
carraroj has joined #ruby
Briareos1 has joined #ruby
amacgregor__ is now known as amacgregor
jbpros has quit [Quit: jbpros]
cina has joined #ruby
afarsang has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
mixel has joined #ruby
SHyx0rmZ has joined #ruby
freerobby has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
judd7 has joined #ruby
Skelz0r_ is now known as Skelz0r
rickruby has quit [Remote host closed the connection]
timonv has joined #ruby
bradhe has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
Naoe-Kanno has joined #ruby
SHyx0rmZ has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
Beoran__ has joined #ruby
astrobunny has joined #ruby
thepumpkin has joined #ruby
neo__ has joined #ruby
jbpros has joined #ruby
flops has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 245 seconds]
carraroj has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
drumusician has joined #ruby
Beoran_ has quit [Ping timeout: 272 seconds]
huebner has quit [Ping timeout: 260 seconds]
Seich has joined #ruby
timonv has joined #ruby
Naoe-Kanno has quit [Ping timeout: 248 seconds]
thepumpkin has quit [Ping timeout: 260 seconds]
pyrac has joined #ruby
SHyx0rmZ has joined #ruby
SHyx0rmZ has quit [Client Quit]
smathieu has quit [Ping timeout: 272 seconds]
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
jbpros has quit [Quit: jbpros]
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
madb055 has quit [Remote host closed the connection]
madb055 has joined #ruby
Aryasam has quit [Ping timeout: 245 seconds]
AndChat- has joined #ruby
AndChat| has quit [Ping timeout: 272 seconds]
Aryasam has joined #ruby
knigitz has joined #ruby
madb055 has quit [Remote host closed the connection]
madb055 has joined #ruby
danshultz has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
danshultz has joined #ruby
wildroman has quit [Remote host closed the connection]
calmyournerves is now known as luxflux___
Banistergalaxy has joined #ruby
dextrey has joined #ruby
mrfoto has joined #ruby
aa47f8 has joined #ruby
luxflux___ is now known as calmyournerves
danshultz has quit [Ping timeout: 272 seconds]
AndChat- has quit [Ping timeout: 240 seconds]
dmiller has joined #ruby
alexherbo2 has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
am3n has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
dmiller has quit [Ping timeout: 246 seconds]
Banistergalaxy has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Ping timeout: 245 seconds]
am3n has quit [Ping timeout: 256 seconds]
Guedes0 has joined #ruby
Guedes0 has left #ruby [#ruby]
Banistergalaxy has joined #ruby
timonv has joined #ruby
timonv has quit [Remote host closed the connection]
asuka has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
mengu has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
DouweM has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mrsolo has quit [Quit: This computer has gone to sleep]
Banistergalaxy has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
platzhirsch has joined #ruby
mrsolo has joined #ruby
AndChat| has joined #ruby
mrsolo has quit [Remote host closed the connection]
banisterfiend has joined #ruby
mrsolo has joined #ruby
OdNairy has quit [Ping timeout: 246 seconds]
mrsolo has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 272 seconds]
platzhirsch has left #ruby [#ruby]
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
asuka has joined #ruby
niklasb has joined #ruby
alexherbo2 has joined #ruby
Czupa has joined #ruby
mrsolo has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
mrsolo has quit [Remote host closed the connection]
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
ixti has joined #ruby
bradhe has joined #ruby
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
bassclef has joined #ruby
bassclef is now known as Guest43893
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
mrsolo has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
mrsolo has quit [Remote host closed the connection]
rickruby has joined #ruby
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mrsolo has joined #ruby
timonv has quit [Remote host closed the connection]
mrsolo has quit [Remote host closed the connection]
Ripp__ has quit []
Croesus has joined #ruby
timonv has joined #ruby
freerobby has joined #ruby
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
Seich_ has joined #ruby
zarubin has joined #ruby
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
Guest43893 is now known as fluffheadsr
Technodrome has joined #ruby
Seich has quit [Ping timeout: 272 seconds]
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
mengu has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
hiroyuki has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
asuka has quit [Ping timeout: 245 seconds]
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
<Technodrome> do a lot of people use pry as an irb replacement?
mrsolo has joined #ruby
<sam113101> yes
mrsolo has quit [Remote host closed the connection]
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
<Skelz0r> yes
smathieu has joined #ruby
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
polaco_zZz has quit [Quit: HTTP/1.1 410 Gone]
<sam113101> mrsolo is annoying
mrsolo has joined #ruby
<sam113101> can someone ban him and tell him to fix his connection?
timonv has joined #ruby
mrsolo has quit [Remote host closed the connection]
asuka has joined #ruby
<MrZYX> apeiros: ^
sepp2k1 has quit [Ping timeout: 246 seconds]
<banisterfiend> Mon_Ouie that's the most violent act i've ever seen you perform
<banisterfiend> Mon_Ouie is hanging with the rough crowd at college
smathieu has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
jbpros has joined #ruby
timonv has joined #ruby
sepp2k has joined #ruby
SeySayux has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
HeYi has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
<Technodrome> why are 2 string equal to one another? "something == "something" when in reality they are 2 different objects?
<HeYi> I get nothing when I type ri command in windows , why?
<banisterfiend> Technodrome use .equal? to check for identity
chinychinchin has joined #ruby
rickruby has quit [Remote host closed the connection]
polaco_zZz has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
<Technodrome> banisterfiend: many languages have it the other way around there
<banisterfiend> Technodrome yeah
<Technodrome> method to check for value truthfulness
Targen has quit [Ping timeout: 246 seconds]
am3n has joined #ruby
<MrZYX> Technodrome: == is a method call, "something".==("something"). String#== is implemented such that it compares the strings and not the object ids
<godd2> Of course, if you just care that two string contain the same characters, use .eql? to test for equality
amacgregor has quit [Ping timeout: 272 seconds]
<Technodrome> by default it compares the string contents with == correct MrZYX ?
<Technodrome> "something" == "something" is true
<DouweM> Technodrome: there's no "by default". x == y is exactly the same thing as x.==(y), it's just the == method call
astrobunny has joined #ruby
<Technodrome> yes
<DouweM> if you want to call that "by default", be my guest
<Technodrome> godd2: Of course, if you just care that two string contain the same characters, use .eql? to test for equality
<Technodrome> this implied the opposite to me
amacgregor has joined #ruby
<Technodrome> i was unaware that eql? and equal? were different, now I see
<MrZYX> http://rubydoc.info/stdlib/core/String#%3D%3D%3D-instance_method
<godd2> String#eql?, String#==, and String#equal? are all worth knowing fairly precisely
<Technodrome> but why would you use eql? over just == or .== ?
<Technodrome> any benefit?
dmiller has joined #ruby
JohnBat26 has quit [Ping timeout: 245 seconds]
am3n has quit [Ping timeout: 256 seconds]
hiroyuki has quit [Remote host closed the connection]
<tobiasvl> well, they check different things …
hiroyuki has joined #ruby
<godd2> Technodrome: == will allow you to do "Hello"== 7
brennanMKE has joined #ruby
<Mon_Ouie> Because you can't do "hello".eql? 7
<Mon_Ouie> ?
<tobiasvl> yes you can.
<godd2> wait no, yea, you can do "hello".eql? 7
<tobiasvl> == uses <=> to compare, says "
<tobiasvl> Two strings are equal if they have the same length and content.
<tobiasvl> for String this isn't very relevant. that's correct. but other classes can implement this in different ways
<Technodrome> for == and .== and eql? i get the same result
<Technodrome> true in this case
<Mon_Ouie> It is indeed the same for Strings. For example 7 == 7.0 but 7.eql? 7.0 is false
<Technodrome> it's not a big deal guys, just a small little detail that had me wondering :)
<Mon_Ouie> eql? is hash-equality. If two objects are eql?, then they are equivalent hash keys, meaning a_hash[a] or a_hash[b] will return the same element
dmiller has quit [Ping timeout: 272 seconds]
<Mon_Ouie> (At least if eql? and hash have been implemented properly)
danshultz has joined #ruby
aryaching has joined #ruby
<DouweM> the practical difference is that String#== calls #to_str on other if other isn't a String also, while String#eql? immediately returns false in this case
brennanMKE has quit [Ping timeout: 246 seconds]
Seich_ has quit [Quit: Computer has gone to sleep.]
Seich_ has joined #ruby
misutowolf has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
Czupa has quit [Remote host closed the connection]
Czupa has joined #ruby
<godd2> == calls respond_to, so if you have an object that doesnt have that defined (which you've done very much on purpose), then it will throw an error
danshultz has quit [Ping timeout: 260 seconds]
pushpak has joined #ruby
Seich__ has joined #ruby
schickung has joined #ruby
Banistergalaxy has joined #ruby
mengu has quit [Remote host closed the connection]
<godd2> I should clarify, it calls respond_to on the argument, not the string on which it was called
mengu has joined #ruby
Seich_ has quit [Ping timeout: 246 seconds]
<Mon_Ouie> Also see the Hash Keys section of 'ri Hash'
vlad_starkov has joined #ruby
atmosx has quit [Quit: computer went to sleep...]
AndChat| has quit [Ping timeout: 240 seconds]
mengu has quit [Ping timeout: 272 seconds]
wildroman has joined #ruby
zarubin has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
raphaelivan has joined #ruby
vlad_starkov has joined #ruby
freerobby has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
ixti has quit [Ping timeout: 260 seconds]
astrobunny has quit [Ping timeout: 272 seconds]
carraroj has joined #ruby
bradhe_ has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
cina has quit [Remote host closed the connection]
astrobunny has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
zipper has quit [Quit: leaving]
bradhe_ has quit [Ping timeout: 245 seconds]
cads has joined #ruby
pagios has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Remote host closed the connection]
randomnick_ has joined #ruby
banisterfiend has joined #ruby
monkegjinni has joined #ruby
danshultz has joined #ruby
pyrac has quit [Quit: pyrac]
PragCypher has joined #ruby
monkegjinni has quit [Ping timeout: 272 seconds]
pyrac has joined #ruby
bugsinlights has joined #ruby
thepumpkin has joined #ruby
zipper has joined #ruby
Aryasam has quit [Ping timeout: 272 seconds]
Aryasam has joined #ruby
mikesplain has joined #ruby
smathieu has joined #ruby
Nowaker has joined #ruby
thepumpkin has quit [Ping timeout: 245 seconds]
Croesus_ has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
<Nowaker> Howdy. Is there any date/datetime gem for ruby 1.8 that brings the features available in ruby 1.9+? I'm going crazy with this crap now. I tried googling but get unrelevant results.
aryaching has joined #ruby
k610 has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
<MrZYX> hm, there's no chance you can port the app to 1.9 instead? 1.8 is past end of life
workmad3 has joined #ruby
Croesus has quit [Ping timeout: 240 seconds]
wildroman has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
Croesus_ has quit [Ping timeout: 245 seconds]
bugsinlights has quit [Quit: No Ping reply in 180 seconds.]
ringtiny has joined #ruby
k610 has quit [Client Quit]
bugsinlights has joined #ruby
jhaals has joined #ruby
zipper has quit [Ping timeout: 245 seconds]
am3n has joined #ruby
pagios_ has joined #ruby
pdimitrov has quit [Ping timeout: 248 seconds]
pr0ggie has quit [Ping timeout: 245 seconds]
pr0ggie has joined #ruby
pdimitrov has joined #ruby
yhsgw has joined #ruby
am3n has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
jonathanwallace has joined #ruby
Guest25835 has quit [Read error: Connection reset by peer]
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
Briareos1 has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
tvw has joined #ruby
anderson has quit [Quit: Leaving]
timonv has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
dma_ has joined #ruby
brennanMKE has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmiller has quit [Ping timeout: 245 seconds]
pr0ggie has quit [Ping timeout: 248 seconds]
pdimitrov has quit [Ping timeout: 246 seconds]
HeYi has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]]
pr0ggie has joined #ruby
pdimitrov has joined #ruby
sevenseacat has joined #ruby
sevenseacat has left #ruby [#ruby]
jhaals has joined #ruby
dma_ has quit [Read error: Operation timed out]
forced_request has quit [Read error: Connection reset by peer]
brennanMKE has quit [Ping timeout: 272 seconds]
tomzx_mac has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
Aryasam has joined #ruby
wildroman has quit [Remote host closed the connection]
Seich__ has quit [Quit: Computer has gone to sleep.]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildroman has joined #ruby
aspires has joined #ruby
madb055 has quit [Ping timeout: 245 seconds]
scottstamp has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran1 has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
jonathanwallace1 has joined #ruby
Nanuq has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
wildroman has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
judd7 has quit [Quit: judd7]
instinkt has quit [Ping timeout: 272 seconds]
bugsinlights_ has joined #ruby
SilverKey has joined #ruby
bugsinlights has quit [Ping timeout: 248 seconds]
<krz> is there a way to repeat this character * 20 times?
<krz> so something like '*'.20.times
neo__ has quit [Quit: This computer has gone to sleep]
<krz> output: **************************
blackmesa has joined #ruby
<ezkl> krz: '*' * 20
bradhe has quit [Ping timeout: 272 seconds]
<krz> thanks
bradhe has joined #ruby
eka has joined #ruby
ringtiny has quit [Quit: Leaving]
axl_ has joined #ruby
psyl0n has joined #ruby
afarsang has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 272 seconds]
Zeeraw has quit [Quit: Computer has gone to sleep.]
heftig has quit [Quit: Quitting]
heftig has joined #ruby
rehat has joined #ruby
Tuxist has quit [Read error: Connection reset by peer]
dma_ has joined #ruby
enebo has joined #ruby
jetblack has joined #ruby
axl_ has quit [Quit: axl_]
ryanRT_ has joined #ruby
ryanRT_ has quit [Read error: Connection reset by peer]
ryanRT has quit [Read error: Connection reset by peer]
ryanRT_ has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
sayan has quit [Ping timeout: 272 seconds]
kobain has joined #ruby
smathieu has joined #ruby
Seich__ has joined #ruby
heftig has quit [Quit: Quitting]
heftig has joined #ruby
Seich__ has quit [Read error: Connection reset by peer]
Seich__ has joined #ruby
am3n has joined #ruby
neo__ has joined #ruby
plotter has quit [Remote host closed the connection]
sayan has joined #ruby
Sami345 has joined #ruby
mlpinit has joined #ruby
astrobunny has joined #ruby
timonv has quit [Remote host closed the connection]
<Sami345> I need to override all method calls that end in _field in a sub class, what is the best way to do this?
taternuts has joined #ruby
mixel has quit [Quit: mixel]
kobain has quit []
smathieu has quit [Ping timeout: 248 seconds]
<banisterfiend> Sami345 instance_methods.select { } then iterate through that and decorate them
<banisterfiend> u'll need to define your decorator as a class method (or write it in the class body)
<banisterfiend> ask Mon_Ouie for more info
taternuts has quit [Client Quit]
Seich__ has quit [Ping timeout: 245 seconds]
am3n has quit [Ping timeout: 256 seconds]
Seich__ has joined #ruby
IceDragon has joined #ruby
Aryasam has quit [Ping timeout: 248 seconds]
lyanchih has quit [Quit: lyanchih]
Aryasam has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
<Sami345> banisterfiend, where should I do the decorating? In the constructor?
<banisterfiend> Sami345 at the bottom of the class body
<banisterfiend> or in the constructor if u want
rdnsget has joined #ruby
rdnsget has left #ruby [#ruby]
<banisterfiend> but then u have to use methods(false) instead of instance_method(false)
neo__ has quit [Ping timeout: 272 seconds]
spider-mario has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
Davey has joined #ruby
jonahR has joined #ruby
schickung has quit [Quit: schickung]
bugsinlights_ has quit [Ping timeout: 272 seconds]
<godd2> Sami345: small example: https://gist.github.com/anonymous/7291532
xk_id has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.2]
volty has joined #ruby
axl_ has joined #ruby
jonathanwallace1 has quit [Ping timeout: 260 seconds]
srajan has joined #ruby
drumusician has joined #ruby
yhsgw has quit [Quit: Leaving.]
<krz> given: https://gist.github.com/7291591 how can i make it so it calls the right method depending on the size?
<krz> i could use if conditions. but is there a way to dynamically assign and call the method?
aryaching_ has joined #ruby
aryaching_ has quit [Client Quit]
<krz> something like pseudo code: eval(size)_thumbnail_path
aryaching_ has joined #ruby
<DouweM> krz: if size is one of [:small, :medium, :large]: send("#{size}_thumbnail_path")
Aryasam has quit [Read error: Connection timed out]
aryaching has quit [Ping timeout: 272 seconds]
|jemc| has joined #ruby
drumusician has quit [Ping timeout: 260 seconds]
Aryasam has joined #ruby
aspires has joined #ruby
fluffheadsr is now known as bassclef
<krz> DouweM: what if i needed to concatenate. via something like : send("#{size}_thumbnail_path #{size}_thumnail_name")
<DouweM> send just calls a method by a name. you'd need two send calls
zz_tsykoduk is now known as tsykoduk
<shevy> krz just put them into an array, then iterate over that array and use .send on each member
wildroman has joined #ruby
<krz> both x_thumbnail_path and x_thumbnail_name return strings
<krz> so i need to combine the two
wildroman has quit [Remote host closed the connection]
<MrZYX> I'd also consider making variants that take the size as argument
<volty> paths = [...] ; sizes = [10_000, 1_000, 100]; paths[sizes.detect { |sz| sz > size }
<volty> ops. reverse
wildroman has joined #ruby
<krz> something like: https://gist.github.com/7291591 ?
<krz> any way to write this better?
d45h has joined #ruby
dextrey has quit [Quit: Page closed]
<volty> what do you have in size parameter ?
<MrZYX> not really
bean__ has joined #ruby
dmiller has joined #ruby
<krz> volty: it can be 'small', 'medium' or 'large'
<volty> ahhh
<volty> too simple then
<MrZYX> but as said I'd rethink about defining x_thumbnail_path/name in the first place and do something like thumbnail_path(size) instead
bradhe has joined #ruby
<krz> MrZYX: thats what this method is. check the update on the gist
aspires has quit [Quit: sudo making a sandwich]
<MrZYX> but where do those x_thumbnail_path methods come from in the first place?
<krz> those are db columns
<krz> AR shanannigans
<krz> active record
<MrZYX> check ARs #[] method then
<krz> they just return strings
zz_michael_mbp is now known as michael_mbp
psyl0n has quit [Quit: psyl0n]
<krz> MrZYX: has nothing to do with AR actually
<krz> im just pointing out that x_thumbnail_y returns strings
<MrZYX> def thumbnail(size='medium'); "#{self[size+'_thumbnail_path']}#{self[size+'_thumbnail_name']}"
<MrZYX> ; end
benwoody has joined #ruby
benwoody has quit [Client Quit]
bradhe has quit [Ping timeout: 272 seconds]
Seich__ has quit [Ping timeout: 272 seconds]
<krz> MrZYX: isnt that the same thing?
<krz> your using self, instead of send
bradhe has joined #ruby
<MrZYX> which is documented API
<banisterfiend> haha wtf is puffing-billy
<krz> but still evaluating size
taion809 is now known as zzz_taion809
yfeldblum has joined #ruby
astrobun_ has joined #ruby
<DouweM> krz: yeah, self[field] is nicer than send(field) in this case
<MrZYX> can't really argue, send is just something I stare irritated at when I encounter in the codebase
aspires has joined #ruby
<DouweM> agreed
<MrZYX> thinking if there wasn't a nicer way
<Sami345> Is there a common practice in the ruby community about tabs?
<volty> 2 spaces
<DouweM> 2 spaces
<canton7> use spaces, and two of them
<DouweM> :)
Seich__ has joined #ruby
<DouweM> Sami345: that's what consensus looks like ;)
timonv has joined #ruby
srajan has quit [Ping timeout: 246 seconds]
aspiers has joined #ruby
danshultz has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 245 seconds]
astrobunny has quit [Ping timeout: 245 seconds]
danshultz has joined #ruby
schickung has joined #ruby
<Sami345> https://gist.github.com/anonymous/91864d229d62388238bd Took a lot of trouble but got it done :D Code review?
rickruby has joined #ruby
<volty> #rubyonrails
<Sami345> What Ruby other uses that Ruby on Rails? :P
Guest94162 has joined #ruby
<canton7> quite a lot
<Sami345> Umm, that bad English xD
<canton7> apart from half a ton of other web frameworks, there're thousands of non-rails tools written in ruby
dmiller has quit [Remote host closed the connection]
<volty> i mean somebody could answer you here but you'd be better (btw i set up auto replace for this redirection)
<volty> there
<DouweM> Sami345: the Array#compact#join thing is a little slower than your if/else statement, but I think this looks nicer
<DouweM> Sami345: I also added () around method arguments, and renamed kwargs to options
danshultz has quit [Ping timeout: 245 seconds]
<volty> anybody played with prolog in ruby?
rickruby has quit [Ping timeout: 245 seconds]
<DouweM> you may also win on performance by using class_eval once instead of define_method many times. I think that way you'd clear the Ruby method cache only once, for the entire class_eval instead of multiple times, for every define_method
_md has joined #ruby
Aryasam has quit [Ping timeout: 272 seconds]
p8952 has quit [Read error: Connection reset by peer]
Zeeraw has joined #ruby
Xeago_ has joined #ruby
thams has quit [Quit: thams]
am3n has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
Aryasam has joined #ruby
thepumpkin has joined #ruby
d45h has quit [Ping timeout: 272 seconds]
timonv has quit [Remote host closed the connection]
jetblack has quit [Quit: leaving]
timonv has joined #ruby
am3n has quit [Ping timeout: 256 seconds]
smathieu has joined #ruby
wallerdev has joined #ruby
styped has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 245 seconds]
merica has joined #ruby
smathieu has quit [Ping timeout: 272 seconds]
aspires has quit [Quit: sudo making a sandwich]
Mon_Ouie has quit [Ping timeout: 245 seconds]
aspiers has quit [Ping timeout: 240 seconds]
srajan has joined #ruby
srajan has quit [Max SendQ exceeded]
srajan has joined #ruby
srajan has quit [Max SendQ exceeded]
Zeeraw has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 240 seconds]
voidbottle has joined #ruby
danshultz has joined #ruby
jbpros has quit [Quit: jbpros]
Aryasam has quit [Ping timeout: 246 seconds]
Czupa has quit [Remote host closed the connection]
styped has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
axl_ has quit [Quit: axl_]
roblak has joined #ruby
aryaching has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby
aryaching_ has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
chuk has joined #ruby
pagios_ has quit [Quit: Leaving]
havv has quit [Quit: Leaving]
IceDragon has quit [Ping timeout: 272 seconds]
IceDragon has joined #ruby
forced_request has joined #ruby
amacgregor has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
kil0byte has joined #ruby
pkondzior___ has quit []
Seich__ has quit [Ping timeout: 245 seconds]
pkondzior___ has joined #ruby
Deele has joined #ruby
Seich__ has joined #ruby
Czupa has joined #ruby
Linux_Extremist has quit [Ping timeout: 245 seconds]
denysonique_ has joined #ruby
styped has joined #ruby
finnomenon has quit [Remote host closed the connection]
bradhe has joined #ruby
axl_ has quit [Ping timeout: 272 seconds]
kobain has joined #ruby
ShellFu has joined #ruby
hiroyuki_ has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
jonathanwallace1 has joined #ruby
hiroyuki has quit [Ping timeout: 240 seconds]
lstefani has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
amacgregor has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
lstefani has joined #ruby
gemmy has joined #ruby
s2013 has joined #ruby
Targen has joined #ruby
rehat has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 245 seconds]
MrHacks has joined #ruby
Heero has quit [Ping timeout: 260 seconds]
denysonique has quit []
mlpinit_ has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
mlpinit_ has quit [Client Quit]
am3n has joined #ruby
banisterfiend has joined #ruby
gemmy is now known as sipe
sipe is now known as gemmy
<MrHacks> how to I set the jruby I installed with RVM as the default jruby instead of the one I installed with Ubuntu?
polaco_zZz is now known as polaco
<shevy> there are two specific channels #rvm and #jruby
<shevy> personally I would get rid of the ubuntu ruby
mlpinit has quit [Ping timeout: 272 seconds]
Heero has joined #ruby
earthquake has joined #ruby
Technodrome has quit [Quit: Technodrome]
Heero has quit [Client Quit]
am3n has quit [Ping timeout: 256 seconds]
<MrHacks> Yeah, but there are so many other things that ubuntu uses for it's ruby. I finally figured out how to get RVM's ruby to work in both xterm (which most terminal programs use) and screen (which tmux uses). So that part is good. I'm fired up and read to go with ruby and rails. But jruby is worth using if it impresses employers who like Java
Czupa has quit [Ping timeout: 246 seconds]
goganchic has joined #ruby
KenDhia has joined #ruby
s2013 has quit [Remote host closed the connection]
havenwood has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
karls0n has joined #ruby
atmosx has joined #ruby
smathieu has joined #ruby
vlad_starkov has joined #ruby
jibi has quit [Quit: .]
CaptainJet has joined #ruby
Seich__ has quit [Ping timeout: 245 seconds]
jkhwan has joined #ruby
chuk has quit [Quit: Leaving]
neo__ has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
neo__ has quit [Client Quit]
jonahR has quit [Ping timeout: 248 seconds]
jonahR_ has joined #ruby
voidbottle has quit [Quit: Ухожу я от вас]
Seich__ has joined #ruby
wallerdev has quit [Quit: wallerdev]
xk_id has quit [Quit:
einarj has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
einarj has quit [Remote host closed the connection]
dangerousdave has joined #ruby
s2013 has joined #ruby
jonathanwallace1 has quit [Ping timeout: 245 seconds]
schickung has quit [Quit: schickung]
TheMoonMaster has quit [Excess Flood]
TheMoonMaster has joined #ruby
aapzak has quit [Read error: Connection reset by peer]
Technodrome has joined #ruby
paolooo has joined #ruby
MrHacks has quit [Quit: leaving]
danshultz has joined #ruby
Czupa has joined #ruby
Czupa has quit [Remote host closed the connection]
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
atmosx has quit [Ping timeout: 245 seconds]
aapzak has joined #ruby
JZTech101 has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
newbiehacker has joined #ruby
teddyp1cker has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
KenDhia has quit [Ping timeout: 240 seconds]
sayan has quit [Quit: Leaving]
Bry8Star{T2 has joined #ruby
Davey has joined #ruby
unstable has left #ruby [#ruby]
roblak has quit [Quit: roblak]
einarj has joined #ruby
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
byprdct has joined #ruby
hiroyuki_ has quit [Remote host closed the connection]
paolooo has quit [Quit: Page closed]
Zeeraw has joined #ruby
hiroyuki has joined #ruby
blackmesa has joined #ruby
MrZYX is now known as MrZYX|off
jkhwan has quit [Remote host closed the connection]
xk_id has joined #ruby
adambeynon has joined #ruby
misutowolf has quit [Ping timeout: 240 seconds]
styped has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jacobat has quit [Quit: WeeChat 0.4.0]
bradhe has joined #ruby
fgo has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
e-jambon has joined #ruby
bluOxigen has joined #ruby
hiroyuki has joined #ruby
ce_afk is now known as cescalante
iaj has quit [Ping timeout: 240 seconds]
iaj has joined #ruby
fgo has quit [Remote host closed the connection]
Monie has joined #ruby
chinychinchin has quit [Quit: Konversation terminated!]
bradhe has quit [Ping timeout: 272 seconds]
chinychinchin has joined #ruby
mixel has joined #ruby
cescalante is now known as ce_afk
bradhe has joined #ruby
am3n has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
jeffdb has joined #ruby
Bry8Star{T2_ has joined #ruby
Astralum has quit [Ping timeout: 245 seconds]
MrZYX|off is now known as MrZYX
banisterfiend has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
einarj has quit [Remote host closed the connection]
chinychinchin has quit [Read error: Operation timed out]
goganchic has quit []
bradhe has quit [Ping timeout: 240 seconds]
am3n has quit [Ping timeout: 256 seconds]
byprdct has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
zipper has joined #ruby
rickruby has joined #ruby
earthquake has quit [Quit: earthquake]
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
timonv has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
Technodrome has quit [Quit: Technodrome]
rickruby has quit [Ping timeout: 240 seconds]
p8952 has joined #ruby
OdNairy has joined #ruby
wildroman has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
polaco is now known as polaco_zZz
timonv has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
polaco_zZz is now known as polaco
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
lewis has joined #ruby
pyrac has quit [Quit: pyrac]
newbiehacker has quit [Ping timeout: 272 seconds]
osvico has quit [Ping timeout: 272 seconds]
byprdct has joined #ruby
rtgg has joined #ruby
e-jambon has quit [Quit: Quitte]
jlast has joined #ruby
pyrac has joined #ruby
Mitchellvanw has joined #ruby
thepumpkin has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
ninegrid has quit [Ping timeout: 268 seconds]
kidoz has quit [Quit: Ухожу я от вас]
gen0cide_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
jlast has quit [Ping timeout: 240 seconds]
vlad_sta_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
marcdel has joined #ruby
smathieu has joined #ruby
barratt has joined #ruby
bradhe has joined #ruby
pdimitrov has quit [Ping timeout: 272 seconds]
pr0ggie has quit [Ping timeout: 272 seconds]
thepumpkin has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
pr0ggie has joined #ruby
nisstyre has joined #ruby
volty has quit [Quit: Konversation terminated!]
vlad_starkov has quit [Ping timeout: 240 seconds]
pdimitrov has joined #ruby
mrfoto has quit []
styped has joined #ruby
zipper has quit [Quit: Lost terminal]
smathieu has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
DropsOfSerenity has joined #ruby
eregon has quit [Remote host closed the connection]
eregon has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
yellow5 has quit [Quit: time to go!]
jonathanwallace1 has joined #ruby
merica has quit [Remote host closed the connection]
oneandahalfnerd has joined #ruby
Technodrome has joined #ruby
yellow5 has joined #ruby
Technodrome has quit [Changing host]
Technodrome has joined #ruby
am3n has joined #ruby
wzbyte has quit [Remote host closed the connection]
wzbyte has joined #ruby
danshultz has joined #ruby
sivoais has quit [Ping timeout: 245 seconds]
tj` has quit [Quit: EOT]
sivoais has joined #ruby
oddraisin has quit [Quit: leaving]
danshultz has quit [Ping timeout: 245 seconds]
spider-mario has joined #ruby
tsykoduk is now known as zz_tsykoduk
zz_tsykoduk is now known as tsykoduk
zipper has joined #ruby
timonv has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
polaco is now known as polaco_zZz
bradhe has joined #ruby
shevy has quit [Read error: Operation timed out]
Ripp__ has joined #ruby
am3n has quit [Remote host closed the connection]
Seich__ has quit [Quit: Computer has gone to sleep.]
Seich__ has joined #ruby
gemmy has quit [Quit: leaving]
Biohazard has quit [Ping timeout: 245 seconds]
1JTAA7GHM has joined #ruby
92AAARJ60 has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
Hanmac1 has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
bio has joined #ruby
carraroj has joined #ruby
Banistergalaxy has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
oneandahalfnerd has left #ruby [#ruby]
Seich__ has quit [Ping timeout: 245 seconds]
Hanmac has quit [Ping timeout: 241 seconds]
tsykoduk is now known as zz_tsykoduk
yfeldblum has joined #ruby
danshultz has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
danshultz has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
danshultz has joined #ruby
DropsOfSerenity has quit [Quit: Peace.]
SHyx0rmZ has joined #ruby
pu22l3r has joined #ruby
vlad_starkov has joined #ruby
Xeago_ has joined #ruby
shevy has joined #ruby
danshultz has quit [Ping timeout: 246 seconds]
bio is now known as Biohazard
Vivekananda has joined #ruby
Mon_Ouie has joined #ruby
banisterfiend has joined #ruby
axl_ has joined #ruby
wallerdev_ has joined #ruby
wallerdev has quit [Read error: Connection reset by peer]
wallerdev_ is now known as wallerdev
bradhe has joined #ruby
baroquebobcat has joined #ruby
drag00n has joined #ruby
CaptainJet has quit []
yfeldblum has quit [Ping timeout: 246 seconds]
CaptainJet has joined #ruby
yfeldblum has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ew has joined #ruby
Bry8Star{T2_ is now known as Bry8Star{T2
pyrac has quit [Quit: pyrac]
vlad_starkov has joined #ruby
hakunin has joined #ruby
timonv has joined #ruby
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
einarj has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
drag00n has quit [Ping timeout: 260 seconds]
wildroman has joined #ruby
styped has quit [Quit: Textual IRC Client: www.textualapp.com]
ShellFu has quit [Quit: Leaving]
allsystemsarego has joined #ruby
wallerdev has quit [Quit: wallerdev]
baroquebobcat has quit [Quit: baroquebobcat]
einarj has quit [Ping timeout: 272 seconds]
zarul has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
jonathanwallace1 has quit [Ping timeout: 272 seconds]
JeanMertz has quit []
smathieu has joined #ruby
freerobby has joined #ruby
momomomomo has quit [Quit: momomomomo]
jonathanwallace1 has joined #ruby
pyrac has joined #ruby
smathieu has quit [Ping timeout: 260 seconds]
am3n has joined #ruby
dancinllama has joined #ruby
<dancinllama> having issues getting my first rubymotion app to run. I get the following error: Rakefile:7:in `<top (required)>' when running rake for my app, any ideas what would cause this? It coincides with "Bundler.require" in my Rakefile
drag00n has joined #ruby
marr has joined #ruby
am3n has quit [Ping timeout: 256 seconds]
ihme-TTilus is now known as TTilus
saarinen has joined #ruby
Seich__ has joined #ruby
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
diegoviola has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
pyrac has quit [Quit: pyrac]
robustus has quit [Ping timeout: 245 seconds]
peregrine81 has joined #ruby
DouweM has quit [Ping timeout: 272 seconds]
robustus has joined #ruby
Soda has joined #ruby
allaire has joined #ruby
Tearan has joined #ruby
nisstyre has quit [Ping timeout: 246 seconds]
stayarrr has joined #ruby
nisstyre has joined #ruby
altivec has joined #ruby
ew has quit [Ping timeout: 241 seconds]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
droptone^ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
newbiehacker has joined #ruby
newbiehacker has quit [Read error: Connection reset by peer]
<droptone^> I have a rails-specific question, but no one is talking in #rails. Is it acceptable to ask the odd rails question in here or is that strictly taboo?
newbiehacker has joined #ruby
jonathanwallace1 has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
unstable has joined #ruby
<unstable> I have a method that is outputting an array of file names. The list is very specific, there should and should not be certain items on the list. How can I write an rspec unit test for this method? (I'm new to rspec, I'm looking for a link in the rspec docs talking about this)
mixel has quit [Quit: mixel]
allaire has quit []
Tuxist has joined #ruby
CreativeEmbassy has joined #ruby
<Hanmac1> droptone^: #rubyonrails
Hanmac1 is now known as Hanmac
barratt has quit [Quit: Leaving...]
danshultz has joined #ruby
stkowski has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
droptone^ is now known as droptone
fijimunkii has joined #ruby
OdNairy has joined #ruby
pu22l3r has quit [Remote host closed the connection]
altivec has quit [Quit: Textual IRC Client: www.textualapp.com]
pu22l3r has joined #ruby
ew has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
zarubin has joined #ruby
mengu has quit [Remote host closed the connection]
OdNairy has quit [Client Quit]
taternuts has joined #ruby
atmosx has joined #ruby
<zipper> Which is easier to use on arch? RVM or Rbenv?
pu22l3r has quit [Ping timeout: 268 seconds]
drumusician has joined #ruby
<diegoviola> zipper: chruby
drag00n has quit [Ping timeout: 246 seconds]
azerton has joined #ruby
astomp has joined #ruby
krz has quit [Quit: krz]
cricri has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
astomp has left #ruby [#ruby]
astomp has joined #ruby
atmosx has quit [Ping timeout: 248 seconds]
thepumpkin has joined #ruby
saarinen has quit [Quit: saarinen]
chuk has joined #ruby
<astomp> hi. Does anyone have experience with mongoid without any framework?
zarubin has quit [Ping timeout: 245 seconds]
<zipper> diegoviola: uh can I get some docs on using it before I actually install it?
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<zipper> diegoviola: why do you think that chruby is easier to use? I want one that I can get/understand quick and easy. Maybe even easy to get help on irc.
azerton has left #ruby [#ruby]
<diegoviola> zipper: sure, look here: https://github.com/postmodern/chruby#readme
kaleworsley has joined #ruby
kaleworsley has left #ruby [#ruby]
Croesus has joined #ruby
am3n has joined #ruby
cricri has quit [Remote host closed the connection]
smathieu has joined #ruby
Vivekananda has joined #ruby
<unstable> astomp: #mongoid
mary5030 has joined #ruby
baroquebobcat has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
s2013 has quit [Ping timeout: 272 seconds]
iliketurtles has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
am3n has quit [Ping timeout: 256 seconds]
smathieu has quit [Ping timeout: 240 seconds]
ZenGuy311 has quit [Ping timeout: 272 seconds]
ew has quit [Quit: Leaving]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ZenGuy311 has joined #ruby
<diegoviola> zipper: there's also a #chruby channel here, just fyi
baroquebobcat has quit [Quit: baroquebobcat]
timonv has quit [Ping timeout: 245 seconds]
IceDragon has quit [Read error: Connection reset by peer]
m4rcu5 has quit [Ping timeout: 260 seconds]
Technodrome has left #ruby [#ruby]
mmcdaris has joined #ruby
CreativeEmbassy has joined #ruby
bradhe has quit [Remote host closed the connection]
m4rcu5 has joined #ruby
CaptainJet has quit []
ixti has joined #ruby
jonathanwallace1 has joined #ruby
barratt has joined #ruby
CaptainJet has joined #ruby
Shidash has quit [Ping timeout: 272 seconds]
peregrine81 has quit []
chuk has quit [Quit: Leaving]
<shevy> hmm on unix
coderhs has joined #ruby
<shevy> "cat foo.txt" is the same as "cat < foo.txt" right?
<shevy> I want to clone the shell behaviour into a set of ruby sripts, is why I am asking
tony78 has joined #ruby
Croesus has quit []
workmad3 has joined #ruby
CaptainJet has quit []
Croesus has joined #ruby
<Xeago_> shevy: kinda
<Xeago_> the way it is read is different
<Xeago_> cat foo.txt is cat reading from foo.txt
<Xeago_> cat < foo.txt is cat reading from stdin
jeffdb has quit [Quit: jeffdb]
jonahR_ has quit [Ping timeout: 240 seconds]
<shevy> hmm
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Olipro has joined #ruby
<Xeago_> in stdin mode, cat puts whatever is on stdin to stdout
vlad_sta_ has joined #ruby
rockets has joined #ruby
CaptainJet has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
vlad_starkov has quit [Ping timeout: 248 seconds]
<unstable> [7] pry(main)> MockFS.file_utils.mkpath('/tmp/testing123/')
<unstable> NameError: uninitialized constant MockFS
<unstable> I'm trying to play with MockFS, I did 'gem install mockfs', though I'm not sure how to run it.
IceDragon has joined #ruby
<Xeago_> did you require it?
s3itz has joined #ruby
filipe__ has joined #ruby
<unstable> Xeago_: http://pastie.org/8453009
<unstable> I'm getting errors when I require it.
jonahR has joined #ruby
popl has joined #ruby
popl has joined #ruby
<Xeago_> sorry, no clue then :'(
jalcine has quit [Excess Flood]
tony78 has quit []
1JTAA7GHM has quit [Remote host closed the connection]
92AAARJ60 has quit [Read error: Connection reset by peer]
cads has quit [Ping timeout: 272 seconds]
aryaching_ has joined #ruby
Al_ has joined #ruby
Lewix has quit [Remote host closed the connection]
lewis has quit [Remote host closed the connection]
jalcine_ has joined #ruby
Jetchisel has joined #ruby
lewis has joined #ruby
lewis has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
lewis has joined #ruby
aryaching has quit [Ping timeout: 248 seconds]
jalcine_ has quit [Client Quit]
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
Al_ has quit [Client Quit]
wildroman has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
filipe__ has quit [Quit: Leaving]
magbeat_ is now known as magbeat
mary5030 has quit [Remote host closed the connection]
wildroman has joined #ruby
lethjakman has joined #ruby
timonv has joined #ruby
Seich__ has quit [Quit: Lingo - http://www.lingoirc.com]
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Ripp__ has quit []
OdNairy has joined #ruby
einarj has joined #ruby
diegoviola has quit [Ping timeout: 248 seconds]
obs has joined #ruby
cads has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
skaflem2 has quit [Quit: Leaving]
vlad_starkov has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
SilverKey has quit [Quit: Sleep now]
vlad_starkov has quit [Remote host closed the connection]
colonolGron has joined #ruby
Davey has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
am3n has joined #ruby
Jeticus has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
CaptainJet has quit [Ping timeout: 272 seconds]
am3n has quit [Ping timeout: 256 seconds]
allaire has joined #ruby
fuhgeddaboudit has joined #ruby
havenwood has joined #ruby
wildroman has quit [Remote host closed the connection]
SilverKey has joined #ruby
smathieu has joined #ruby
atmosx has joined #ruby
colonolGron has quit [Ping timeout: 240 seconds]
SilverKey has quit [Client Quit]
astrobun_ has quit [Ping timeout: 260 seconds]
|jemc| has quit [Ping timeout: 260 seconds]
SilverKey has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
yfeldblu_ has quit [Ping timeout: 248 seconds]
Mitchellvanw has quit [Quit: Dozing off...]
flops has quit [Quit: leaving]
wildroman has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
atmosx has quit [Ping timeout: 240 seconds]
wildroman has quit [Remote host closed the connection]
temple3188 has joined #ruby
chinychinchin has joined #ruby
wildroman has joined #ruby
stayarrr has quit [Quit: Leaving...]
lkba has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
_main_ has joined #ruby
Shidash has joined #ruby
<Morrolan> Heh, RVM is raising funds to 'convert 20k lines of shell script into ruby'.
jbpros has joined #ruby
__main__ has quit [Ping timeout: 268 seconds]
_main_ is now known as __main__
am3n has joined #ruby
colonolGron has joined #ruby
ghr has joined #ruby
CreativeEmbassy has joined #ruby
s3itz has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
banghouse has quit [Remote host closed the connection]
AndChat| has quit [Quit: Bye]
i_s has joined #ruby
lkba has joined #ruby
baroquebobcat has joined #ruby
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
am3n has quit [Remote host closed the connection]
psyl0n has joined #ruby
yfeldblum has joined #ruby
monkegjinni has joined #ruby
s3itz has joined #ruby
temple3188 has quit [Remote host closed the connection]
wallerdev has joined #ruby
michael_mbp is now known as zz_michael_mbp
mengu__ has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
voidbottle has joined #ruby
<voidbottle> hi guys, can i ask you check my code? i feel it's pretty shitty.
<popl> voidbottle: There's a pastebin URL in the topic.
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
drag00n has joined #ruby
<popl> reading comprehension fail
<popl> -1 to Gryffindor
mary5030 has joined #ruby
cina has joined #ruby
mikesplain has joined #ruby
<voidbottle> :)
<voidbottle> i am noob.
decoponio has quit [Read error: Connection reset by peer]
<popl> voidbottle: You just learned to read?
raphaelivan has quit [Quit: Leaving.]
jaimef has quit [Excess Flood]
decoponio has joined #ruby
<voidbottle> popl, if i correctly understand you. no, i can read.
<popl> :P
<voidbottle> :)
zigomir has quit [Ping timeout: 245 seconds]
<voidbottle> so, no one want check this shit, right? and i need to completely rewrite it?
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
Tuxist has quit [Remote host closed the connection]
mmcdaris has quit [Quit: mmcdaris]
Andrevan has joined #ruby
<voidbottle> popl, ?)
jaimef has joined #ruby
aa47f8 has quit [Quit: aa47f8]
pushpak has quit [Read error: Connection reset by peer]
i_s has quit [Ping timeout: 272 seconds]
ehaliewicz has joined #ruby
pu22l3r has joined #ruby
coderhs has quit [Ping timeout: 272 seconds]
allsystemsarego has quit [Quit: Leaving]
thams has joined #ruby
am3n has joined #ruby
Bosox20051 has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
tsykoduk is now known as zz_tsykoduk
Deele has quit [Ping timeout: 260 seconds]
osvico has joined #ruby
KTMBoi88 has joined #ruby
mercwithamouth has joined #ruby
platypine has joined #ruby
zipper has quit [Ping timeout: 245 seconds]
Bosox20051 has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
jerius has joined #ruby
jbpros has quit [Quit: jbpros]
vlad_starkov has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
yacks has joined #ruby
am3n has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
atmosx has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
thepumpkin has joined #ruby
astomp has quit [Quit: Computer has gone to sleep.]
coderhs has joined #ruby
volty has joined #ruby
hiroyuki_ has joined #ruby
thepumpkin has quit [Ping timeout: 246 seconds]
zz_tsykoduk is now known as tsykoduk
psyl0n has quit [Quit: psyl0n]
sorbo_ has joined #ruby
mengu__ has quit [Remote host closed the connection]
smathieu has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
RichardBaker has joined #ruby
hiroyuki has quit [Ping timeout: 245 seconds]
mikesplain has quit [Ping timeout: 245 seconds]
<jblack> voidbottle: store that in json and use the json gem to populate an hash
<jblack> as for the rest of it... it's honestly terrible
colonolGron has quit [Quit: peace]
smathieu has quit [Ping timeout: 272 seconds]
mengu has quit [Ping timeout: 240 seconds]
Croesus has quit []
markalanevans has joined #ruby
<markalanevans> Hey folks, if i can access an objects record.upc
einarj has quit [Remote host closed the connection]
<markalanevans> why would i get nil if i did record.instance_variable_get('@'+'upc')
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
einarj has joined #ruby
volty has quit [Quit: Konversation terminated!]
<Xeago_> markalanevans: the object might have a method upc, but no instance variable
<Xeago_> it might be fetched from db for example
drumusician has quit [Ping timeout: 240 seconds]
<Xeago_> >> class Foo; def bar; :bar; end; end; Foo.new.bar
claymore has quit [Quit: Leaving]
<eval-in> Xeago_ => :bar (https://eval.in/60115)
salientknight has joined #ruby
<Xeago_> >> class Foo; def bar; :bar; end; end; Foo.new.instance_variable_get("@bar")
<eval-in> Xeago_ => nil (https://eval.in/60116)
salientknight has quit [Remote host closed the connection]
<markalanevans> Xeago_: Its an instance of a RecursiveOpenStruct
<Xeago_> or it might be lazily initialized:
<Xeago_> >> class Foo; def bar; @bar||=:bar; end; end; Foo.new.instance_variable_get("@bar")
<eval-in> Xeago_ => nil (https://eval.in/60117)
<markalanevans> Xeago_: if i do a to_s
<Xeago_> >> class Foo; def bar; @bar||=:bar; end; end; foo = Foo.new; foo.bar; foo.instance_variable_get("@bar")
<eval-in> Xeago_ => :bar (https://eval.in/60118)
<Xeago_> sorry I am not going to read that paste at 23:40
kirun has quit [Quit: Client exiting]
<Xeago_> that is eviscerating my eye
<markalanevans> :(
<markalanevans> the point being that if you search for something like 'name' in that paste, there is data there
einarj has quit [Ping timeout: 240 seconds]
<Xeago_> format it properly then
dma_ has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
dma_ has joined #ruby
Azulinho has quit [Ping timeout: 272 seconds]
<apeiros> markalanevans: to_s does not say "it has ivar X"
<havenwood> markalanevans: Take a look at Ruby's OpenStruct class: http://www.ruby-doc.org/stdlib-2.0/libdoc/ostruct/rdoc/OpenStruct.html
<apeiros> it just returns a string representation of your object
<markalanevans> Hmm.
<apeiros> if you want to know what ivars exist in your object: Object#instance_variables
<markalanevans> ok.
<markalanevans> Ill check that.
<apeiros> markalanevans: also the output not using @ in the "keys" somewhat implies it's not ivars.
jonr22 has joined #ruby
barratt has quit [Quit: Linkinus - http://linkinus.com]
MrZYX is now known as MrZYX|off
<havenwood> markalanevans: An OpenStruct key isn't an ivar.
<markalanevans> I'm using a 3rd party gem, and i need the data as hashes but its being given to me as open struct objects
<markalanevans> ok.
<havenwood> markalanevans: Read OpenStruct docs before proceeding. :P
havenwood has quit [Remote host closed the connection]
mmcdaris has joined #ruby
<markalanevans> Yea. Looks like that is part of the problem.
<markalanevans> Lame, wish they hadn't used that. Would have been better to just use a hash.
iliketurtles has quit [Quit: zzzzz…..]
<markalanevans> Thanks guys
allaire has quit [Ping timeout: 272 seconds]
<voidbottle> jblack, how can i make it better? json - ok. what else?
fixl has joined #ruby
nstdloop has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
lewis has quit [Remote host closed the connection]
lewis has joined #ruby
yvemath has quit [Ping timeout: 245 seconds]
petey__ has joined #ruby
Azulinho has joined #ruby
markalanevans has quit [Quit: markalanevans]
thams has quit [Quit: thams]
dangerousdave has quit [Quit: Leaving...]
Flashmasterson has joined #ruby
Flashmasterson has left #ruby [#ruby]
hiyosi has quit [Read error: Connection reset by peer]
lewis has quit [Ping timeout: 260 seconds]
hiyosi has joined #ruby
adjo has quit [Ping timeout: 245 seconds]
adjo_ has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
havenwood has joined #ruby
timonv has joined #ruby
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
am3n has joined #ruby
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
timonv has quit [Ping timeout: 240 seconds]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
jalcine has joined #ruby
CreativeEmbassy has joined #ruby
PragCypher has quit [Quit: Leaving]
Xeago_ has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 245 seconds]
thams has joined #ruby
jonr22 has quit [Remote host closed the connection]
am3n has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
psyl0n has joined #ruby
cina has quit [Remote host closed the connection]
iliketurtles has joined #ruby
tvw has quit []
hiall has quit [Quit: hiall]
yfeldblu_ has quit [Ping timeout: 245 seconds]
havenn has joined #ruby
vlad_starkov has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
havenwood has quit [Ping timeout: 272 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 248 seconds]
volty has joined #ruby
drag00n has quit [Ping timeout: 248 seconds]
aspires has joined #ruby
capicue has joined #ruby
thams has quit [Quit: thams]
notworthy has joined #ruby
notworthy has left #ruby [#ruby]
yvemath has joined #ruby
yvemath is now known as Guest799
notworthy has joined #ruby
Rocksurf70 has joined #ruby
thams has joined #ruby
Monie has joined #ruby
petey__ has quit [Remote host closed the connection]
petey__ has joined #ruby
smathieu has joined #ruby
fijimunkii has quit [Ping timeout: 248 seconds]
<jblack> void: Honestly?
mmcdaris has quit [Quit: mmcdaris]
CreativeEmbassy has joined #ruby
Azulinho has quit [Ping timeout: 272 seconds]
<jblack> Your code is far more complicated than it should be. Try breaking your code down into a pile of functions that are < 10 lines each (some say 5!). That'll get your nesting structures down and will simplify your code quite a bit.
petey__ has quit [Ping timeout: 272 seconds]
Xeago has quit [Remote host closed the connection]
<voidbottle> jblack, ok, thanks i'l try.
Xeago has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
<jblack> It'll also make the code more self-documenting. Method names work well to describe what individual chunks of code do. =)
allaire has joined #ruby
<jblack> For example, lines 219-223. Easy to break out into a method, and it'll make your code slightly more readable. do that a couple dozen times, and you'll have something much easier to read.
spacebug_ has joined #ruby
<voidbottle> jblack, oook.
<jblack> Your goal as a coder is to keep your code in small simple pieces.
Mattias has quit [Ping timeout: 272 seconds]
anekos_ has quit [Ping timeout: 272 seconds]
zz_michael_mbp is now known as michael_mbp
robbyoconnor has quit [Read error: No route to host]
r0bby_ has joined #ruby
<voidbottle> jblack, the problem is i am not coder :)
anekos_ has joined #ruby
nemesit|znc has quit [Ping timeout: 272 seconds]
<jblack> Apparently you are. You're not not a good one. Yet.
spacebug has quit [Ping timeout: 272 seconds]
<voidbottle> so, i'l try to clean code, thanks for advice.
<jblack> You're welcome
aryaching_ has quit [Ping timeout: 260 seconds]
Mattias has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
nemesit|znc has joined #ruby
earthquake has joined #ruby
cburyta has joined #ruby
petey__ has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
michael_mbp is now known as zz_michael_mbp
dmiller has joined #ruby
monkegjinni has quit [Remote host closed the connection]
newbiehacker has quit [Ping timeout: 272 seconds]
monkegjinni has joined #ruby
Rocksurf70 has left #ruby ["Palaver http://palaverapp.com/"]
r0bby_ has quit [Excess Flood]
r0bby_ has joined #ruby
einarj has joined #ruby
<atmosx> I'm doing this like this in sinatra: post '/update/:id' do
<atmosx> 62 id = params['id'].split(':')[1]
<atmosx> I wonder is there's a cleaner way to get id as an integer
monkegjinni has quit [Ping timeout: 245 seconds]
hiroyuki_ has quit [Read error: Connection reset by peer]
rockets has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
<jblack> Give: params[:id].to_i a shot
matchaw_ has joined #ruby
osvico has quit [Read error: Connection reset by peer]
einarj has quit [Ping timeout: 272 seconds]
matchaw has quit [Ping timeout: 248 seconds]
mmcdaris has joined #ruby
<atmosx> jblack: no, it's a string going something like ':7' I don't see how can that be turned into an i
aspires has quit [Quit: sudo making a sandwich]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
voidbottle has quit [Quit: Ухожу я от вас]
jacktrick has quit []
aspires has joined #ruby