<yfeldblum>
DeadlyKitty: process monitors (god, bluepill)
nari has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
<DouweM>
There's also RubyMotion if you want to build iOS/Mac apps
jamesaanderson has joined #ruby
tkuchiki has joined #ruby
<DeadlyKitty>
yfeldblum: oh cool. Thanks
jamesaanderson has quit [Max SendQ exceeded]
<guilund>
Whats the language to program for example, an automated drone, ruby can be used?
jamesaanderson has joined #ruby
culturel_ has joined #ruby
AlSquire has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
<DouweM>
guilund: you'd need an embedded language for those, where C is the most popular. There is work being done on an embedded version of Ruby though, mruby, so you might in the future
<LadyRainicorn>
In theory, but you would likely want to use something faster.
AlSquire has quit [Client Quit]
preller has joined #ruby
<guilund>
hmmm interesting
flubba has joined #ruby
<guilund>
i remember when i was 12 i programmed a small robot that never get stuck in anything using some homemade sensors (like antenas to short circuit) and change the direction
b00stfr3ak has quit [Ping timeout: 272 seconds]
<guilund>
but i programmed using wires
<guilund>
and short circuits
<guilund>
lol
<DouweM>
:D
sambao21 has joined #ruby
<guilund>
i dont even remember if it worked
DeProdigy has quit [Ping timeout: 240 seconds]
<guilund>
it was like, 17 years ago
<Delobox>
perhaps it became self aware and erased your memory of its success
Bira has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
<DouweM>
Delobox: Occam's Razor points in that direction
<guilund>
oh god, im so naive
<Delobox>
guilund: intel and contemporaries have been releasing some very nice embedded boards
<guilund>
lol
michaeldeol has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
<Delobox>
guilund: you dont "have" to use C if you dont want to
<Delobox>
Although there is a lot of existing work out there under the arduinocopter moniker
<Delobox>
gotta run, thanks for the help folks
Virtualize has joined #ruby
<Delobox>
made it to the koan where you start understanding passing blocks to methods
<DeadlyKitty>
DouweM: I see. Thank you for clearing that up for me.
ardian_ has joined #ruby
<Jamo>
is there a ruby project generator (like rails g ... for rails)
w4pm has joined #ruby
<Jamo>
or yeomen for angular.js and sudh
<Jamo>
*such
samsonasu has joined #ruby
|jemc| has joined #ruby
<ardian_>
Are you guys having problems with http://tryruby.org ? It's just not loading the output of the commands I type besides the firest one which is help, the other one just take forever to load
<guilund>
Jamo: jekyll
<guilund>
Jamo: oh, sorry
mercwithamouth has quit [Ping timeout: 246 seconds]
<mattyk>
It's a bit dismissive to say that HTML and CSS don't matter. They are machine-interpreted source files with specific syntax rules, and well-defined semantics; they're just extremely declarative, and lack most of the user input.
<DouweM>
Jamo: ruby is a programming language not a framework. you can build pretty much whatever you want with it. "a project generator" wouldn't make sense because there is no structure you need to adhere to or a base set of classes you always need
<DouweM>
mattyk: yeah, "don't matter" was a bit harsh. But I was mainly asking to get a sense of their imperative programming experience
<mattyk>
:)
Jetchisel has joined #ruby
<guilund>
DouweM: and actually, the front-end is the most, how can i say, code intensive, part of the web
<Jamo>
yep
<guilund>
DouweM: my company started with front-end coding, but then, the parallax era stopped, and the css frameworks started to appear, so we had to pivot :P
tharindu is now known as tharindu|away
ardian_ has quit [Client Quit]
<mattyk>
I /think/ javascript is a good jumping-off point to ruby, because the languages of both are pretty free and loose (so you can write what you want, how you want), and once you understand the difference between prototyped inheritance and ruby's tree-walking inheritance, they're actually quite similar.
<mattyk>
Or even before you know that there is a difference.
<guilund>
DouweM: actually we had a lot of work from Advertising agencys, and front-ending for software factories
<DouweM>
guilund: what's your company?
<mattyk>
In either you're free to write with as much procedural/OO/functional influence as you feel comfortable.
<Jamo>
Im starting to move from rails apps to basic ruby apps. For gems there are nice stuctures, but Im looking for something to help me create projects, (like lib ans spec) directories, easily create a spec for existing file etc
spirtista has joined #ruby
<guilund>
DouweM: its called Yeti, we are from Brazil. But now we are in stealth, working with regular clients
<Jamo>
those are partially features I would see in almost any IDE
<guilund>
DouweM: and basically im doiing everything, as my team decreased from 5 to 2
iliketur_ has joined #ruby
<DouweM>
guilund: :|
<mattyk>
guiland: have you ever written a http server? They can be pretty code intensive. I think front-end stuff is as heavy as it is because it's still very wild-west, with hot-shot coders and cowboys and ninjas, and lots of start-ups, and less boring old engineering.
<guilund>
DouweM: its normal, business born and dies everytime, when it dies, i start another
<DouweM>
guilund: fair enough
pen has quit []
<guilund>
mattyk: nope, i understand what you are saying, but we live in an open source age
nanoyak has quit [Ping timeout: 245 seconds]
<guilund>
mattyk: most of the stuff you need to do is already done, and the front-end is the part that changes everytime
kreisys has joined #ruby
<mattyk>
guilund: only up to a point. Unless you're being truly unique (and fewer people are doing that than they'd like to believe) there are only so many widgets, and only so many ways to arrange them.
okinomo has joined #ruby
tharindu|away is now known as tharindu
ewnd9 has joined #ruby
<guilund>
mattyk: we used to develop in php, it sucked EXTREME, when we discovered rails, we started doing things that took 1 week in one day
zeropx has joined #ruby
<DouweM>
guilund: were you using vanilla php or some framework?
nanoyak has joined #ruby
<guilund>
DouweM: codeigniter, sucks the same
<DouweM>
:)
<mattyk>
guiland: I don't doubt that, I find ruby much easier to develop, because matz did a good job of simplifying the language.
coca_rails has joined #ruby
<mattyk>
also you don't have to remember which parameter goes first in explode()
<DouweM>
lol
<guilund>
lol
<guilund>
DouweM: where do you work?
<mattyk>
At a previous company we switched from Tomcat/Glassfish to Ruby+Sinatra. That was an eye-opener for me.
<DouweM>
guilund: got my own company, we build Stinngo (stinngo.com)
eka has quit [Quit: Computer has gone to sleep.]
<guilund>
DouweM: some day i will have time to build my own product
<guilund>
DouweM: its my deam
<DouweM>
guilund: :)
<DouweM>
guilund: I can definitely recommend it
<guilund>
DouweM: looks awesome!
<DouweM>
guilund: :)
<mattyk>
The trick to building your own product is finding the need. So many times I've said "I want to make something, what would be good to make" instead of "I want one of these and there isn't one."
thams has joined #ruby
<mattyk>
One day I'll have a good idea. Until then I'll keep practicing my coding. ;)
<guilund>
I already have an idea, i have a domain
<guilund>
and i have a design
<guilund>
i just need time to develop and operate, its kind of operation intensive
DeadlyKitty has left #ruby [#ruby]
<guilund>
at first
danman has joined #ruby
<guilund>
then it will scalate smoothly, but the start will be punk
<guilund>
and i dont want any investor, i will invest my own money on it
nanoyak has quit [Quit: Computer has gone to sleep.]
<guilund>
mattyk: yes, the world is FULL of oportunities, especeally in a third world country, with good access to internet, like mine
mudmaster has quit [Ping timeout: 245 seconds]
RTG` has quit [Read error: Connection reset by peer]
<mattyk>
guiland: I was going to make a joke about how hard it is being a 30-something middle-class white male living in a 1st world western nation, but there's no way to make it not sound insulting.
<guilund>
mattyk: the key is to look for a niche where people have regular needs, for example, eating, we have to eat 3 times/day
aspires has quit []
<guilund>
mattyk: dont worry, im not a marxist son of a bitch
<guilund>
mattyk: im far from politically correct
RTG` has joined #ruby
coca_rails has quit [Remote host closed the connection]
Azure has joined #ruby
tharindu_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
iliketur_ has quit [Quit: zzzzz…..]
<mattyk>
guiland: there's some amount of perspective in that, though. Eating isn't even a concern for me or mine. It just happens, regularly, not something we have to think about.
d2dchat has quit [Remote host closed the connection]
<mattyk>
guilund: not to mention the plethora of options (sorry, I just realised I've been typing your nick wrong)
<guilund>
mattyk: yes, but for example, here in brazil, the services to provide food are not very techy, you know, we have a niche
mudmaster has joined #ruby
vlad_starkov has joined #ruby
<guilund>
mattyk: but its just an example of a thing that the needs keep renovating incessantly
<guilund>
mattyk: if you want something to make easy money, look for something people need everytime
okinomo has quit [Ping timeout: 248 seconds]
<mattyk>
video games?
<mattyk>
;)
<guilund>
mattyk: yeah, can be :)
tharindu has quit [Ping timeout: 252 seconds]
allaire has quit []
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
lewix has quit [Remote host closed the connection]
<guilund>
mattyk: busines for example, is something that people usually dont need, its a very restrict niche, and i only survive because i found partners, that sells software to the final customer
<guilund>
mattyk: *software business
lfox has quit [Quit: ZZZzzz…]
snath has quit [Read error: Connection reset by peer]
<mattyk>
guilund: yeah, I worked for a company that was trying to make a software development product to market software development to non-software developers. Not much of a niche there.
<guilund>
mattyk: as a service, tailoring and developing custom solutions, sure you can make some money with a few projects, but its hard
Virtualize has quit [Quit: Leaving...]
<guilund>
mattyk: thats why i want to change the focus, find a niche that i can use my software expertise, and improve it, it can be anything
jkhwan has quit [Remote host closed the connection]
<guilund>
mattyk: and oh, so much easier...
thams has quit [Quit: thams]
ssvo has quit [Ping timeout: 248 seconds]
jkhwan has joined #ruby
danman has quit [Quit: danman]
maletor has quit [Quit: Computer has gone to sleep.]
bogeyd6 has joined #ruby
subbyyy_ has quit [Ping timeout: 272 seconds]
Virtualize has joined #ruby
randomnick_ has quit [Quit: Leaving]
bogeyd6 has quit [Client Quit]
bogeyd6 has joined #ruby
fedesilv_ has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
fedesilva has quit [Ping timeout: 260 seconds]
Voodoofish430 has quit [Quit: Leaving.]
mmitchel_ has quit []
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
yfeldblum has quit [Remote host closed the connection]
freggles has quit [Remote host closed the connection]
ckinni has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
troyready has quit [Ping timeout: 264 seconds]
blandflakes has quit [Quit: Page closed]
diegoviola has joined #ruby
luckyruby has joined #ruby
fedesilv_ has quit [Read error: Connection reset by peer]
chulan has joined #ruby
fedesilva has joined #ruby
maletor has joined #ruby
mudmaster has quit [Ping timeout: 252 seconds]
ssvo has joined #ruby
maletor has quit [Client Quit]
timonv has joined #ruby
peregrine81 has quit []
_reset has joined #ruby
Virtualize has quit [Remote host closed the connection]
coda23 has quit [Quit: Leaving]
Virtualize has joined #ruby
gja has joined #ruby
huydx has joined #ruby
mudmaster has joined #ruby
danman has joined #ruby
reset has quit [Ping timeout: 246 seconds]
iliketur_ has joined #ruby
Guest50931 has quit [Quit: quit]
timonv has quit [Ping timeout: 245 seconds]
iliketur_ has quit [Client Quit]
typicalbender1 has quit [Quit: Leaving.]
_reset has quit [Ping timeout: 240 seconds]
xjiujiu has joined #ruby
nateberkopec has joined #ruby
vlad_starkov has quit [Read error: No buffer space available]
okinomo has joined #ruby
clamstar has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
luckyruby has quit [Remote host closed the connection]
lethjakman has quit [Ping timeout: 264 seconds]
jdjd has joined #ruby
jume_ has joined #ruby
fedesilv_ has joined #ruby
<jdjd>
I'm confused with a "puzzle" I'm working on to teach myself ruby. Its based off of Test driven development.
<jdjd>
Basically, its saying that result=reverser do
jume_ has quit [Remote host closed the connection]
<jdjd>
"hello dolly"
<jdjd>
end
fedesilva has quit [Ping timeout: 246 seconds]
<jdjd>
result.should=="yllod olleh"
<jdjd>
I'm honestly confused by this, because it doesn't appear to be a method at all.
<jdjd>
It would make sense if it was asking for an arguement..
<jdjd>
But that is the whole code.
<jdjd>
Can someone give me some idea of WTF is going on with the above test?
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
mbff_ is now known as mbff
xjiujiu has joined #ruby
ssvo has quit [Ping timeout: 250 seconds]
<jdjd>
hello?
<jdjd>
Is anyone here at all?
chomskiii has joined #ruby
<DouweM>
nah, mostly idlers
<DouweM>
and I'm taking a short break from studying to help you
<DouweM>
what part of that code are you confused by? the reverser method call or the test?
guilund has joined #ruby
jkhwan has quit [Read error: Connection reset by peer]
guilund has quit [Client Quit]
Brolen has quit [Quit: Brolen]
primenum has joined #ruby
varfoo has joined #ruby
peregrine81 has joined #ruby
xjiujiu has joined #ruby
xjiujiu has quit [Max SendQ exceeded]
<mattyk>
the important words in the code are 'do' and 'end'
<DouweM>
good, you can take it over from here. I'm going back to stuyding :P
<mattyk>
they mark a "block", which is one of ruby's anonymous function constructs.
<mattyk>
;)
xjiujiu has joined #ruby
yfeldblum has joined #ruby
<mattyk>
there are other ways to rewrite your sample code, for example: result=reverser{"hello dolly"}
<bnagy>
it's a pretty retarded prototype for the reverser method fwiw
huydx has quit [Ping timeout: 240 seconds]
chomskiii has quit [Read error: Connection reset by peer]
<jdjd>
Sorry, back.
<mattyk>
or more verbosely: my_func = ->{ return "hello dolly" }; result = reverser(&my_func)
<DouweM>
yay for stabby lambda
<jdjd>
I guess I'm confused as to how to make something to "do this". I'm used to methods that take arguements, like reverser(string)
<jdjd>
And you do something with the arguement
<bnagy>
that's how it should be prototyped here
<jdjd>
Not used to it just instantly doing something.
<bnagy>
all the block is doing is returning effectively a param, which is dumb
<jdjd>
Its not taking in one though.
<bnagy>
normally these examples use blocks to create polymorphic methods, like a method that mutates a string according to a block
<mattyk>
the inverse of do-end is the 'yield' instruction, which makes the block execute. Inside the 'reverse' function it probably calls 'yield.reverse'
<bnagy>
like mutator(input) {|s| s.reverse}
steve__ has joined #ruby
<jdjd>
mattyk: I tried that, and it works for one word
<jdjd>
mattyk: But not really for two.
<bnagy>
or reverser = Proc.new {|s| s.reverse}; mutator(input, &reverser)
<bnagy>
with the implementation of mutator left as an exercise, obviously
<jdjd>
bnagy, how could you make it work with mattyk example?
<jdjd>
aka, using yield?
danshultz has quit [Remote host closed the connection]
<jdjd>
I tried that, and it seemd on the right track.
<bnagy>
you need yield inside the mutator func
<jdjd>
However, it only seems to work with one word.
<bnagy>
which you need to write
<mattyk>
jdjd: def revereser; yield.reverse; end
<mattyk>
(modulo typos)
Hanmac1 has joined #ruby
danshultz has joined #ruby
<bnagy>
and also, it's still dumb to write it that way :)
mudmaster has quit [Ping timeout: 248 seconds]
bradhe has quit [Remote host closed the connection]
<mattyk>
bnagy: it passes the test, and that's what TDD is all about
<bnagy>
which is not mattyk's fault, it's the example you gave
Hanmac has quit [Ping timeout: 240 seconds]
<jdjd>
mattyk: I kind of agree with mattyk, the point of ttd is just pass the test with the minimal amount of work :P.
steve____ has quit [Ping timeout: 252 seconds]
mudmaster has joined #ruby
<jdjd>
bnagy: Although, I agree, this may be stupid example.
<jdjd>
or test.
<jdjd>
mattyk: I tried that, it doesn't work for a string with two words.
<dopie>
how do i tell ruby to only show the 3rd column in each row?
preller has joined #ruby
iamdoo2 has joined #ruby
dukz has joined #ruby
falood has quit [Remote host closed the connection]
falood has joined #ruby
mattyk has quit [Quit: quitting time]
troyready has quit [Ping timeout: 248 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Read error: No route to host]
fridim_ has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby
butblack has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
mengu has joined #ruby
phipes has quit [Remote host closed the connection]
mudmaster has quit [Ping timeout: 245 seconds]
<wang>
dopie: if the css selector library you are using supports :nth-child() you could do it with 'td:nth-child(3)' otherwise in ruby tr.search('td')[2] or tr.search('td').slice(2)
Barrin6 has quit [Quit: Leaving]
<dopie>
wang, ok... i got something like this
dayepa has quit [Ping timeout: 240 seconds]
preller has quit [Ping timeout: 248 seconds]
lyanchih has joined #ruby
wmoxam has quit [Ping timeout: 240 seconds]
wmoxam has joined #ruby
jrobeson has joined #ruby
primenum has joined #ruby
mmcdaris has quit [Quit: mmcdaris]
mudmaster has joined #ruby
dayepa has joined #ruby
<wang>
dopie: you can probably push more of it into the css selector if that works... e.g. doc.search('#tblResults tr td:nth-child(3)').map(&:text)
<dopie>
has tadoes nth selector work with old browsers?
<wang>
ok well presuming you're not doing something unusual here, that nokogiri code is running on the server... so browser support for nth-child is not a factor
ayaz_ has joined #ruby
jonahR has quit [Quit: jonahR]
ayaz_ has quit [Client Quit]
arietis has joined #ruby
ayaz_ has joined #ruby
<shastaky>
hello
dkamioka has quit [Ping timeout: 252 seconds]
nobitanobi has quit [Remote host closed the connection]
Guest53675 has joined #ruby
<iamdoo2>
shastaky: world
heidi has quit [Ping timeout: 252 seconds]
ahegyi has joined #ruby
brtdv has joined #ruby
tonni has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
TomRone has joined #ruby
dhruvasagar has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
gja has joined #ruby
timonv has quit [Remote host closed the connection]
dkamioka has joined #ruby
kevinykchan has joined #ruby
cbetta is now known as cbetta_afk
nvrch has joined #ruby
angusiguess has joined #ruby
heidi has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
dayepa has joined #ruby
Nanuq has joined #ruby
dkamioka has quit [Ping timeout: 246 seconds]
ahri has joined #ruby
<ahri>
hi, i'm having some trouble with rake and wondered if this is the correct room to seek help from?
<ahri>
(it's probably trivial, but i've come as far as i can in resolving it!)
charliesome has joined #ruby
angusiguess has quit [Ping timeout: 250 seconds]
shastaky_ has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
heidi has quit [Ping timeout: 245 seconds]
<ahri>
actually, scratch that; i'm being retarded :)
<ahri>
my favourite kind of problem...
voland has quit [Remote host closed the connection]
SeySayux has quit [Ping timeout: 272 seconds]
andikr has joined #ruby
marcgg_ has quit [Ping timeout: 252 seconds]
marcgg has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
xk_id has quit [Quit:
preller has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
OdNairy has joined #ruby
TaxmanBD has quit [Quit: Leaving]
SeySayux has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
shime has joined #ruby
culturel_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
culturel_ has joined #ruby
tonni has quit [Remote host closed the connection]
DouweM has quit [Ping timeout: 245 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
OdNairy has quit [Ping timeout: 240 seconds]
avril14th has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
TomRone has joined #ruby
Xeago has joined #ruby
rootshift has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
preller has joined #ruby
mudmaster has quit [Ping timeout: 246 seconds]
benlieb has quit [Quit: benlieb]
OdNairy has joined #ruby
dfranciosi has joined #ruby
dhruvasagar has joined #ruby
michaeldeol has quit [Remote host closed the connection]
mudmaster has joined #ruby
blaxter has joined #ruby
michaeldeol has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
roolo_ has joined #ruby
rootshift has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dayepa has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Ping timeout: 264 seconds]
dayepa has joined #ruby
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby
bradhe has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
ace_striker has joined #ruby
reset has joined #ruby
tziOm has joined #ruby
funburn has joined #ruby
dayepa has quit [Remote host closed the connection]
marcgg_ has joined #ruby
rootshift has joined #ruby
Al___ has joined #ruby
nari has quit [Ping timeout: 245 seconds]
TomRone has joined #ruby
tonni has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
dukz has joined #ruby
ace_striker has quit [Ping timeout: 272 seconds]
marcgg has quit [Ping timeout: 260 seconds]
jhaals has joined #ruby
d45h has joined #ruby
aryaching has joined #ruby
ckinni has joined #ruby
claymore has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
jhaals_ has joined #ruby
jhaals_ has quit [Remote host closed the connection]
ckinni has quit [Client Quit]
gja has quit [Quit: This computer has gone to sleep]
dayepa has joined #ruby
clamstar has joined #ruby
mmcdaris has quit [Quit: mmcdaris]
timonv has joined #ruby
jhaals has quit [Ping timeout: 248 seconds]
jhaals has joined #ruby
eka has joined #ruby
brtdv has quit []
d45h has quit []
brtdv has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
_Andres has joined #ruby
brtdv has quit [Client Quit]
vlad_starkov has joined #ruby
dawkirst_ has quit [Quit: Connection closed for inactivity]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
gja has joined #ruby
shime has quit [Ping timeout: 250 seconds]
sergicles has joined #ruby
brtdv has joined #ruby
Hanmac1 has joined #ruby
<bgy>
What should I use to do unit test in ruby?
kitak_ has quit [Remote host closed the connection]
clamstar has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby
gja has quit [Client Quit]
anomaly_ has quit [Read error: Connection reset by peer]
gasm has quit [Ping timeout: 248 seconds]
anomaly_ has joined #ruby
drumusician has joined #ruby
rjhunter has quit [Remote host closed the connection]
camilasan has joined #ruby
gasm has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
eka has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
dayepa has joined #ruby
Elhu has joined #ruby
mudmaster has quit [Ping timeout: 245 seconds]
d45h has joined #ruby
aspiers_ is now known as aspiers
olivier_bK has joined #ruby
chiel has quit [Ping timeout: 260 seconds]
TMM has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
barratt has joined #ruby
mudmaster has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
ckinni has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
TomRone has joined #ruby
nvrch has quit [Ping timeout: 250 seconds]
ckinni has quit [Client Quit]
mklappstuhl has joined #ruby
gja has joined #ruby
ahbrendan has quit [Ping timeout: 250 seconds]
dayepa has joined #ruby
nvrch has joined #ruby
gasm has quit [Read error: Connection reset by peer]
gja has quit [Client Quit]
kitak has joined #ruby
nopolitica has joined #ruby
angusiguess has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
Xeago has quit [Remote host closed the connection]
heidi has joined #ruby
gja has joined #ruby
lyanchih has quit [Quit: lyanchih]
vlad_starkov has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
vlad_starkov has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
dayepa has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
Rydekull_ is now known as Rydekull
heidi has quit [Ping timeout: 260 seconds]
mklappstuhl has quit [Remote host closed the connection]
Rydekull has quit [Changing host]
Rydekull has joined #ruby
zipper has joined #ruby
fella5s has joined #ruby
beardedninja has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
|jemc| has quit [Ping timeout: 252 seconds]
okinomo has joined #ruby
dayepa has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
sharms has quit [Ping timeout: 240 seconds]
psyl0n has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dangerousdave has quit [Ping timeout: 240 seconds]
madb055 has joined #ruby
nopolitica has quit [Quit: Lost terminal]
gja has quit [Quit: This computer has gone to sleep]
kitak has joined #ruby
w4pm has joined #ruby
sharms has joined #ruby
zipper has quit [Quit: leaving]
yfeldblum has joined #ruby
Criztian has joined #ruby
timonv has quit [Read error: Connection reset by peer]
troessner has joined #ruby
<ahri>
dep.gsub!(/\$\((?<varname>[^\)]+)\)/) { |m| ENV[m[:varname]] } # how come this doesn't work? i thought the matchdata could be addressed this way -- "m" seems to be a string though; so gsub only passes in the whole match as a string?
mudmaster has quit [Ping timeout: 250 seconds]
ckinni has joined #ruby
w4pm has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
fella5s has quit [Remote host closed the connection]
voland has joined #ruby
ckinni has quit [Client Quit]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
clamstar has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
mudmaster has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
GreatSUN has quit [Ping timeout: 272 seconds]
ckinni has joined #ruby
ckinni has quit [Max SendQ exceeded]
werdnativ has quit [Quit: werdnativ]
gja has joined #ruby
<Hanmac1>
ahri look at the type of m
ckinni has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
voland has quit [Ping timeout: 245 seconds]
xiphias has joined #ruby
paolooo has joined #ruby
klaut has joined #ruby
sharms has joined #ruby
TomRone has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Speed has joined #ruby
edin has joined #ruby
dogweather has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
obs has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
vlad_starkov has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
timonv has joined #ruby
p4d4w4n has joined #ruby
paolooo has quit [Quit: Page closed]
TomRone has quit [Ping timeout: 240 seconds]
shastaky has joined #ruby
nvrch_ has joined #ruby
workmad3 has joined #ruby
<ahri>
Hanmac1: yeah i did; i changed it to "{ |m| puts m.class }" -- got String! found i can reference it with $~ anyway, but that's not so pretty
psyprus has quit [Ping timeout: 240 seconds]
aagdbl has quit [Quit: Leaving.]
Duckily has quit [Quit: Duckily]
xiphias has quit [Ping timeout: 240 seconds]
psyprus has joined #ruby
shastaky has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
falood has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
ss_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
falood has joined #ruby
camilasan has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 246 seconds]
camilasan has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
ewnd9 has joined #ruby
<apeiros>
krainboltgreene: "immutable AND thread-safe"? :D
falood has quit [Ping timeout: 246 seconds]
preller has quit [Ping timeout: 250 seconds]
ace_striker has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
TomRone has joined #ruby
matheuscaceres has joined #ruby
raphaelivan has joined #ruby
skaflem has quit [Quit: Leaving]
sayan has joined #ruby
mudmaster has quit [Ping timeout: 246 seconds]
lyanchih has quit [Remote host closed the connection]
reset has joined #ruby
skaflem has joined #ruby
lyanchih has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
to-shiba has joined #ruby
sepp2k has joined #ruby
mudmaster has joined #ruby
madb055 has quit [Quit: Konversation terminated!]
guiocavalcanti has joined #ruby
whysosad has joined #ruby
xk_id has joined #ruby
whysomad has joined #ruby
reset has quit [Ping timeout: 245 seconds]
anomaly_ has quit [Ping timeout: 256 seconds]
whysosad has quit [Ping timeout: 250 seconds]
xk_id has quit [Max SendQ exceeded]
zipper has quit [Ping timeout: 264 seconds]
marcgg_ has quit [Ping timeout: 240 seconds]
gja has quit [Quit: This computer has gone to sleep]
marcgg has joined #ruby
zipper has joined #ruby
gr33n7007h has quit [Quit: Leaving]
aapzak_ has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aapzak_ has quit [Client Quit]
aapzak has quit [Quit: leaving]
aapzak has joined #ruby
nath_schwarz has joined #ruby
angusiguess has joined #ruby
heidi has joined #ruby
zipper has quit [Ping timeout: 252 seconds]
dhruvasa1ar has joined #ruby
xk_id has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
<roolo_>
I am trying to use bundle's local feature, but bundler is still ignoring this configuration ( Could not find gem in the gems available on this machine. )
zipper has joined #ruby
<roolo_>
Is there some restriction to paths which lead to the local gem path?
preller has quit [Ping timeout: 246 seconds]
dhruvasa1ar has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 245 seconds]
roolo_ is now known as roolo
gja has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
zz_N00D is now known as CripperZ
anomaly_ has joined #ruby
heidi has quit [Ping timeout: 252 seconds]
CripperZ is now known as N00D
AlSquire has joined #ruby
Txandy has joined #ruby
dhruvasagar has joined #ruby
gja has quit [Client Quit]
gja has joined #ruby
rootshift has quit [Quit: rootshift]
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
zipper has quit [Ping timeout: 240 seconds]
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
zipper has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
ckinni has joined #ruby
bigkevmcd_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bigkevmcd_ is now known as bigkevmcd
lupine has quit [Ping timeout: 245 seconds]
mudmaster has quit [Ping timeout: 248 seconds]
lupine_85 has joined #ruby
lupine_85 is now known as lupine
ckinni has quit [Client Quit]
mudmaster has joined #ruby
ckinni has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
ckinni has quit [Max SendQ exceeded]
okinomo has quit [Ping timeout: 245 seconds]
ckinni has joined #ruby
Advocation has joined #ruby
dhruvasagar has joined #ruby
ckinni has quit [Client Quit]
Michael__ has joined #ruby
aryaching has joined #ruby
Bofu2U has joined #ruby
Bofu2U has quit [Client Quit]
bradhe has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
MichaelHansen has joined #ruby
reset has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
h_kon has joined #ruby
bradhe has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
emocakes has quit [Quit: Leaving...]
afhammad has joined #ruby
dhruvasagar has quit [Quit: Lost terminal]
e-dard has joined #ruby
Bofu2U has joined #ruby
<e-dard>
Hi, whats the best way to test the contents of two JSON objects with minitest?
dhruvasagar has joined #ruby
<e-dard>
like a json_assert_equal_unordered or something
vlad_starkov has joined #ruby
Michael__ has quit [Ping timeout: 272 seconds]
TomRone has quit [Ping timeout: 240 seconds]
Bofu2U has quit [Client Quit]
bradhe has quit [Ping timeout: 250 seconds]
reset has quit [Ping timeout: 248 seconds]
fridim_ has joined #ruby
afhammad has quit [Client Quit]
ss_ has joined #ruby
TomRone has joined #ruby
spirtista has quit [Remote host closed the connection]
closures999 has joined #ruby
malkomalko has joined #ruby
flubba_ has quit [Remote host closed the connection]
flubba has joined #ruby
claymore has quit [Quit: Leaving]
noname001__ has joined #ruby
d45h has quit [Ping timeout: 260 seconds]
rdark has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
d45h has joined #ruby
flubba has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
tkuchiki has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 240 seconds]
Kruppe has quit [Ping timeout: 240 seconds]
preller has quit [Ping timeout: 250 seconds]
shime has quit [Ping timeout: 248 seconds]
cbetta_afk is now known as cbetta
tkuchiki has joined #ruby
mudmaster has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
Kruppe has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
angusiguess has joined #ruby
tvw has joined #ruby
e-dard has left #ruby [#ruby]
tkuchiki has quit [Ping timeout: 240 seconds]
bogeyd6 has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
fridim_ has quit [Ping timeout: 250 seconds]
mudmaster has joined #ruby
anomaly_ has quit [Quit: see you when I see you]
nettoweb has joined #ruby
workmad3 is now known as wm3|lunch
angusiguess has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
angusiguess has joined #ruby
preller has joined #ruby
<nath_schwarz>
can someone tell me, if there is a way to access the definitions made on the prompt directly (e.g. when i write a small programm but mess it up in one or two lines)
Elhu has quit [Quit: Computer has gone to sleep.]
jibi has joined #ruby
<nath_schwarz>
and yes, this is my first look on ruby, started about 20 or 30 minutes ago
anomaly_ has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
tonni has quit [Remote host closed the connection]
kindjal has joined #ruby
tonni has joined #ruby
joshcookfair has joined #ruby
dopie has quit [Remote host closed the connection]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
voland has joined #ruby
blaskovicz has left #ruby [#ruby]
angusiguess has quit [Ping timeout: 250 seconds]
jerius has joined #ruby
OdNairy has joined #ruby
reset has joined #ruby
ss_ has joined #ruby
mlpinit has quit [Ping timeout: 248 seconds]
CptJeanLucPicard has joined #ruby
colonolGron has quit [Ping timeout: 264 seconds]
ArchBeOS-work has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
RaCx has quit [Read error: Connection reset by peer]
kindjal has quit [Ping timeout: 248 seconds]
includex has joined #ruby
Koshian has joined #ruby
tonni has quit [Ping timeout: 252 seconds]
L8D has joined #ruby
lsmola_ has joined #ruby
cmedeiros has joined #ruby
kindjal has joined #ruby
troessner has quit [Quit: Leaving]
reset has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
RoryHughes has joined #ruby
cmedeiros has quit [Max SendQ exceeded]
Criztian has joined #ruby
preller has quit [Ping timeout: 245 seconds]
Criztian has quit [Remote host closed the connection]
cmedeiros has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
mudmaste_ has joined #ruby
sharms has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
ss_ has quit [Remote host closed the connection]
ckinni has joined #ruby
CptJeanLucPicard is now known as ArchBeOS-work
mudmaster has quit [Read error: Connection reset by peer]
voland has quit [Remote host closed the connection]
reach has quit []
samsonasu has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
samsonasu has quit [Client Quit]
voland has joined #ruby
TomRone has joined #ruby
shaunbaker has quit [Remote host closed the connection]
preller has joined #ruby
tonni has joined #ruby
bubu has quit []
asobrasil has joined #ruby
atno has joined #ruby
jkamenik has quit [Quit: Leaving.]
anomaly_ has quit [Remote host closed the connection]
anomaly_ has joined #ruby
preller has quit [Ping timeout: 248 seconds]
matheuscaceres has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
tris has quit [Ping timeout: 240 seconds]
fijimunkii has joined #ruby
tvw has quit []
matheuscaceres has quit [Client Quit]
tvw has joined #ruby
fmcgeough has joined #ruby
tris has joined #ruby
s2013 has quit [Ping timeout: 245 seconds]
chulan has joined #ruby
TomRone has joined #ruby
preller has joined #ruby
zipper has quit [Quit: leaving]
preller has quit [Changing host]
preller has joined #ruby
securitycrush has joined #ruby
zipper has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
zipper is now known as zipper__
sailias has joined #ruby
Macaveli has joined #ruby
dhruvasagar has joined #ruby
matheuscaceres has joined #ruby
rh1n0 has joined #ruby
zipper__ has quit [Client Quit]
Monie has quit [Ping timeout: 252 seconds]
pedda has joined #ruby
jchristi has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
peregrine81 has joined #ruby
araujo has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 264 seconds]
araujo has joined #ruby
zipper has joined #ruby
sguselnikov has joined #ruby
zipper has quit [Client Quit]
zaargy_ is now known as zaargy
samsonasu has joined #ruby
platzhirsch has joined #ruby
esing has joined #ruby
esing has joined #ruby
esing has quit [Changing host]
Kruppe has quit [Ping timeout: 240 seconds]
esing has quit [Max SendQ exceeded]
thams has quit [Quit: thams]
blandflakes has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
esing has joined #ruby
joshcookfair has quit [Quit: joshcookfair]
peregrine81 has quit []
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
Kruppe has joined #ruby
Parker0 has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
jamesaanderson has joined #ruby
peregrine81 has joined #ruby
elux has joined #ruby
heidi has joined #ruby
<bgy>
I'm experimenting with ruby and discovered symbols, so a quick question, are symbols used to shortcut something like foo = "foo" into :foo ? where the first is actually a variable name while the symbol is both the value and the name?
habanany has joined #ruby
shastaky has quit [Ping timeout: 260 seconds]
shastaky has joined #ruby
mudmaste_ has quit [Ping timeout: 252 seconds]
<DouweM>
bgy: no, it's got nothing to do with that
dkamioka has joined #ruby
A124 has quit [Read error: Connection reset by peer]
Macaveli has quit [Ping timeout: 240 seconds]
mudmaster has joined #ruby
nateberkopec has joined #ruby
<DouweM>
bgy: a Symbol is just another object, like String, with its own syntax :symbol vs "string"
ehc has joined #ruby
<bgy>
DouweM, I got that, but then, when use one or another?
<DouweM>
bgy: the difference is that when you use "hello" at one point in your code and "hello" at another, these will be two different String objects, so the data will be in memory twice. With symbols, :hello and :hello are the exact same object and it's in memory only once
Macaveli has joined #ruby
heidi has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
kristiandelay has joined #ruby
bradhe has joined #ruby
<bgy>
DouweM, so is it most a matter of performance?
<DouweM>
This makes it especially suitable for identifiers like keys in a hashmap
phantummm has joined #ruby
<DouweM>
bgy: that's the main difference. use symbols when you care about what it represents, so like an identifier, use strings when you care about the data
kh019267 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM>
in a hash, whether the key is "name" or 128410840 doesn't really matter as long as you can refer back to it later, so use :name
<bgy>
mmm ok, I think I got it
<bgy>
thanks
<DouweM>
obviously, my name "Douwe" wouldn't make sense as :Douwe, because I actually care about the data
iamjarvo has joined #ruby
<bgy>
DouweM, mm ok it is a sort of alias for a memory pointer then?
<DouweM>
I wouldn't think of it like that
malkomalko has quit []
mary5030 has quit [Read error: Connection reset by peer]
TomRone has quit [Ping timeout: 240 seconds]
Authenticator has quit [Ping timeout: 272 seconds]
<DouweM>
the identifier/data distinction is the easiest way to go about it. you'll come accross symbols a lot in Ruby and you'll get a feel for when to use them
<bgy>
ok, as you say I need to training in both reading & writing ruby to properly get it :)
<bgy>
but at first I had no clue
includex has joined #ruby
<DouweM>
that's why we're here :)
TomRone has joined #ruby
includex has quit [Max SendQ exceeded]
bradhe has quit [Ping timeout: 264 seconds]
ace_striker has quit [Ping timeout: 272 seconds]
jamblack has joined #ruby
h_kon has quit [Remote host closed the connection]
jamblack has left #ruby [#ruby]
shastaky has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 252 seconds]
bluenemo has quit [Remote host closed the connection]
habanany has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
kpshek has joined #ruby
jlast has joined #ruby
ffio has joined #ruby
shastaky has joined #ruby
<workmad3>
DouweM: heh :) I'd have said :DouweM is a good candidate for a symbol myself... it's a label that can be used to refer unambiguously to you, but you don't need to be able to manipulate the contents as data
shastaky has quit [Remote host closed the connection]
anomaly_ has quit [Read error: Connection reset by peer]
<DouweM>
:DouweM, yeah, first and last name "Douwe" and "Maan", no ;)
cgore has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
anomaly_ has quit [Read error: Connection reset by peer]
p0wn3d has joined #ruby
RoryHughes has quit []
Macaveli has quit [Ping timeout: 246 seconds]
Hanmac has joined #ruby
anomaly_ has joined #ruby
<DouweM>
but then again, nicks are user-provided data, so you're setting yourself up for a DoS attack when you save them as symbols :)
angusigu1ss has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
shaunbaker has joined #ruby
hopkin has joined #ruby
<workmad3>
DouweM: yeah, that's an implementation consideration though... conceptually, opaque labels that refer unambiguously to a specific value (i.e. a name) are perfect for symbols
<DouweM>
Agreed
RoryHughes has joined #ruby
<DouweM>
Just thought I'd mention it before bgy goes ahead and writes an IRC client saving nicks as symbols
TomRone has quit [Ping timeout: 240 seconds]
<bgy>
damn it that's what I did :D
<bgy>
j/j
<DouweM>
;)
taion809_ has quit [Remote host closed the connection]
preller has joined #ruby
<DouweM>
bgy: you understand why saving user-provided data as symbols would be asking for trouble?
angusigu1ss has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
baordog_ has joined #ruby
mmitchell has quit []
jibi has quit [Quit: .]
asobrasil has quit [Quit: Leaving.]
reset has joined #ruby
nomenkun has joined #ruby
LexicalScope has joined #ruby
<bgy>
DouweM, well I guess it is because it should not be safe to use unsafe data to define a symbol which can conceptually be anything in ruby?
Megtastique has joined #ruby
iamjarvo has quit [Remote host closed the connection]
<bgy>
and therefor maybe pointing to some existing things in use
asobrasil has joined #ruby
colonolGron has joined #ruby
asobrasil has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
<DouweM>
bgy: well, symbols are identified by name. so when I submit my username "DouweM" and the program saves that as :DouweM, it doesn't matter if :DouweM was used anywhere in the code before, it won't meddle with that
<DouweM>
it's the exact same object as the previous :DouweM, so just my referencing it when I receive data "DouweM" doesn't matter
mmitchell has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<bgy>
mm ok
asobrasil has joined #ruby
platzhirsch has left #ruby [#ruby]
asobrasil has quit [Max SendQ exceeded]
<DouweM>
but say we do instantiate :DouweM, so assuming it hadn't been used before. at any point in the future, when :DouweM is used again, it needs to evaluate to the exact same object, the exact same memory location. what effect does this have on the lifetime of symbols?
johnmilton has joined #ruby
habanany has joined #ruby
TomRone has joined #ruby
zipper has joined #ruby
prc has quit [Quit: Leaving.]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<bgy>
DouweM, well that means some immutability right?
reset has quit [Ping timeout: 250 seconds]
<DouweM>
for one. but I'm explicitly asking about lifetime
<DouweM>
think about this: what would happen if the :DouweM symbol was garbage collected?
msuszczy has joined #ruby
habanany has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 252 seconds]
<bgy>
Would it be something similar to NullPointerException in Java? :D
<bgy>
a reference pointing to anything?
<rdevilla>
If I call a destructive method on subject in an RSpec example
asobrasil has joined #ruby
<DouweM>
you mean if you reference :DouweM later? well, no, because symbols that haven't been referenced before will just be instantiated anew
asobrasil has quit [Max SendQ exceeded]
<rdevilla>
will the change in state persist across different examples?
<rdevilla>
if I use subject again in another example
<DouweM>
bgy: so what we will end up with is a *new* :DouweM, a *new* Symbol object, pointing to a *new* memory location
<DouweM>
bgy: so our whole premise of symbols always being the same object/memory location is gone!
<DouweM>
bgy: So. For symbols to work, they can never be garbage collected.
jkamenik has joined #ruby
<DouweM>
bgy: And what happens to objects that aren't garbage collected? They stay in memory forever
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
amritanshu_RnD has quit [Quit: Leaving]
<DouweM>
bgy: So what would happen if we created symbols for every single nick provided by a user to the program? We'd end up with a lot of objects that would just stay in memory forever
jtgiri_ has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
<bgy>
ah ok, got it now
anomaly_ has quit [Quit: see you when I see you]
<bgy>
thanks for the lesson :D
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
TomRone has joined #ruby
<DouweM>
bgy: then realize what this means for, say, a web application. If I can easily login with thousands of different nicks, I'll be filling up the server's entire memory slowly but surel
<shevy>
hey bnagy is bgy your little brother?
<DouweM>
y
g0bl1n has quit [Ping timeout: 260 seconds]
<DouweM>
bgy: And that's what they call a DoS (Denial of Service) attack :)
mudmaster has quit [Ping timeout: 248 seconds]
danman has joined #ruby
<DouweM>
rdevilla: for every example, the whole hierarchy of before(:each) blocks is called, so if you create the resource in one of those, it will be available anew for every example
johnmilton has quit [Read error: Connection reset by peer]
<rdevilla>
DouweM: hm, but what of subject? Or do you mean to say I should have something like
<rdevilla>
before(:each) do
<rdevilla>
subject = FooBar().new
<rdevilla>
end
shtirlic has joined #ruby
<DouweM>
same goes for subject {} and let {} blocks
<DouweM>
they're executed before every example
<rdevilla>
and what if I have neither?
xiphias has quit [Ping timeout: 240 seconds]
<DouweM>
rdevilla: where does the resource come from that you're afraid won't survive between examples?
tobago has quit [Remote host closed the connection]
johnmilton has quit [Client Quit]
<rdevilla>
well I was asking whether or not it does survive between examples
<rdevilla>
do you mean to say it does?
johnmilton has joined #ruby
xiphias has joined #ruby
asobrasil has joined #ruby
mudmaster has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
decoponio has joined #ruby
<DouweM>
rdevilla: when you affect "global state", so global vars, constans, class vars etc, that will persist across examples, which could lead to unexpected failing specs. but otherwise, you can do whatever you want with objects you create in before/let/subjects blocks, because those will just be created again for the next example
asobrasil has quit [Max SendQ exceeded]
canton7-mac has joined #ruby
mercwithamouth has joined #ruby
asobrasil has joined #ruby
jerius has quit [Ping timeout: 246 seconds]
asobrasil has quit [Max SendQ exceeded]
<rdevilla>
DouweM: The thing is, I am not creating objects at all.
mary5030 has quit [Read error: Connection reset by peer]
<rdevilla>
I am just using "subject"
freerobby has joined #ruby
<rdevilla>
I have no subject/before/let blocks
mary5030 has joined #ruby
kevind_ has joined #ruby
duggiefresh has joined #ruby
<DouweM>
"If I call a destructive method on subject in an RSpec example" where does the subject come from then?
tannerburson has joined #ruby
<workmad3>
rdevilla: that just means you let rspec create the object for you
<rdevilla>
I guess the standard term for what I am using is "implicit subject"
<workmad3>
rdevilla: 'describe SomeClass; end;' <-- the implicit subject is 'SomeClass.new'
<workmad3>
rdevilla: so objects are being created
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
ikawnoclast has quit [Ping timeout: 260 seconds]
<rdevilla>
workmad3: Okay. Let's say I have two examples in that describe block, one of which destructively updates 'subject'
lsoa has quit [Quit: WeeChat 0.4.2]
<rdevilla>
Will that destructive update be visible in the other example
<DouweM>
no
<workmad3>
rdevilla: no
jerius has joined #ruby
allaire has joined #ruby
<rdevilla>
DouweM, workmad3: okay, thank you
<workmad3>
rdevilla: unless it affects something class-level destructively
<DouweM>
because behind the scenes, it's the same logic powering before/let/subject. it's reexecuted for every example
<rdevilla>
ah, that makes sense then
<workmad3>
rdevilla: a new subject is created for each example... but the code isn't reloaded between each example
xiphias has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
atno has quit [Quit: Leaving]
sayan has joined #ruby
freerobby has quit [Client Quit]
xiphias has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
RoryHughes has quit []
freerobby has joined #ruby
kh019267 has joined #ruby
GreatSUN has joined #ruby
<GreatSUN>
re
habanany has joined #ruby
TomRone has joined #ruby
LadyRainicorn has joined #ruby
habanany1 has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
nath_schwarz has quit [Quit: Konversation terminated!]
ffio has quit [Quit: WeeChat 0.4.1]
jerikl has joined #ruby
<LadyRainicorn>
Huh, why would public logging be prohibited if there's a log available anyway?
mengu has quit [Remote host closed the connection]
iamjarvo has joined #ruby
tagrudev has quit [Remote host closed the connection]
zeeraw has joined #ruby
ambushsabre has quit [Ping timeout: 246 seconds]
habanany1 has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
yfeldblum has joined #ruby
shtirlic has quit [Ping timeout: 240 seconds]
tonni has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
<BrixSat>
im making a ruby regex and i have a doubt
<BrixSat>
how can i name the fields acordingly in my regex?
ambushsabre has joined #ruby
<BrixSat>
My string is like this "field.name:0###field2.name:0###fiield3.name2:1"
tonni has quit [Read error: Connection reset by peer]
jerikl has quit [Client Quit]
wallerdev has joined #ruby
clamstar has joined #ruby
braoru has quit [Remote host closed the connection]
shastaky has joined #ruby
<DouweM>
BrixSat: what do you want for output?
clamstar has quit [Max SendQ exceeded]
momomomomo has joined #ruby
clamstar has joined #ruby
Monie has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sguselnikov has quit [Quit: Computer has gone to sleep.]
_Andres has quit [Quit: jazz]
xiphias has joined #ruby
wchun has joined #ruby
_maes_ has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Elhu has quit [Quit: Computer has gone to sleep.]
Speed has joined #ruby
|jemc| has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Xeago_ has quit [Remote host closed the connection]
dik_dak has joined #ruby
aerook has joined #ruby
N00D is now known as zz_N00D
sambao21 has joined #ruby
shime has quit [Ping timeout: 250 seconds]
mgberlin has quit [Quit: mgberlin]
closures999 has quit [Remote host closed the connection]
marcgg has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
zz_N00D is now known as CripperZ
msuszczy has quit [Quit: leaving]
s2013 has quit [Remote host closed the connection]
atno has quit [Quit: Leaving]
xiphias has joined #ruby
asobrasil has quit [Ping timeout: 245 seconds]
marcgg_ has quit [Read error: Connection reset by peer]
marcgg_ has joined #ruby
reset has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adac has quit [Quit: Leaving]
p4d4w4n has quit [Quit: This computer has gone to sleep]
asobrasil has joined #ruby
wedgeV has joined #ruby
asobrasil has quit [Max SendQ exceeded]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bean has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
marcgg has quit [Ping timeout: 248 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
shastaky has joined #ruby
shastaky has quit [Read error: Connection reset by peer]
<aerook>
question: if I have classes A and B, where B < A, how can I set a default value on a property within the A class to be the same for all instances of B?
shastaky has joined #ruby
<aerook>
or, what's the best way to do that
shastaky has quit [Remote host closed the connection]
shastaky has joined #ruby
asobrasil has joined #ruby
<shevy>
what exactly is a "property"
shastaky has quit [Remote host closed the connection]
asobrasil has quit [Max SendQ exceeded]
reset has quit [Ping timeout: 245 seconds]
_maes_ has quit [Read error: Connection reset by peer]
<aerook>
i mean field
<aerook>
this is a mongoid model that i'm doing this in
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
sguselnikov has joined #ruby
shastaky has joined #ruby
<shevy>
I also dont know what a "field" is
atno has joined #ruby
lethjakman has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
jerius has quit []
TomRone has quit [Ping timeout: 240 seconds]
<aerook>
i suppose i'm talking about an instance variable
<shevy>
ok
<DouweM>
aerook: are you talking about an instance variable or a Mongoid field?
<shevy>
>> class A; def initialize; @foo = 5; end; attr_reader :foo; end; class B < A; end; B.new.foo
<shevy>
aerook as you can see in this example, B did not specifically have to set @foo, but it gets the default value that A has set for it
mudmaste_ has joined #ruby
Elhu has joined #ruby
<aerook>
yea that makes sense
<shevy>
if you need it to have specific default values, I would assign to these @ivars that you need through methods, and use default values for your methods
<waxjar>
if you want to do additional things in B#initialize, call super
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<shevy>
like def set_foo(i = 'hi there'); @foo = i; end
mudmaster has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
<DouweM>
just in to say that the semantics are different for Mongoid fields. they're not just instance variables.
jerius has joined #ruby
<aerook>
I'll gist this
<aerook>
brb
<shevy>
Mongoid fields sound truly scary
<DouweM>
shevy: Mongoid is an ORM like ActiveRecord, but for MongoDB
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
TomRone has joined #ruby
<waxjar>
fields of tall grass where the mongoids roam around
<aerook>
the problem with this was that i was no longer able to do this:
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
s2013 has joined #ruby
pwestlund is now known as pwestlund_away
<aerook>
b = B.new( { another_key:"another_value", some_key:"some_value" } )
<DouweM>
aerook: stop ignoring my saying *there's a difference between Mongoid fields and instance variables*
<LadyRainicorn>
You don't need to include Mongoid::Document again
<aerook>
oh i understand
<DouweM>
aerook: all of the stuff that's been suggested here only applies to instance variables. Mongoid fields, which you are using, have completely different semantics.
<shevy>
the ponicorns strike again
clamstar has joined #ruby
<BrixSat>
Hanmac: tested on rubullar did not work
asobrasil has joined #ruby
Heskie has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<shevy>
aerook here you just pass a hash as argument to (eventually) #initialize
coldmethod has quit [Ping timeout: 240 seconds]
<shevy>
stuff like field() and validates() seem to be clearly mongoid specific methods
<DouweM>
ffs, you shouldn't override #initialize if you're using Mongoid. you should let Mongoid's existing "field default value" logic handle this
timonv has quit [Remote host closed the connection]
digitalcake has quit [Quit: Leaving.]
rootshift has joined #ruby
Heskie has quit []
mojjojo has quit [Quit: mojjojo]
Guest54360 is now known as Kruppe
asobrasil has joined #ruby
mojjojo has joined #ruby
asobrasil has quit [Max SendQ exceeded]
kh019267 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lfox has quit [Quit: ZZZzzz…]
ssvo has joined #ruby
reset has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
bigkevmcd has quit [Quit: Ex-Chat]
RoryHughes has joined #ruby
Voodoofish430 has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
DrShoggoth has quit [Remote host closed the connection]
radic has joined #ruby
RTG` has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
troyready has joined #ruby
asobrasil has quit [Max SendQ exceeded]
RTG` has joined #ruby
avril14th has quit [Remote host closed the connection]
fijimunk1i has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
DrShoggoth has joined #ruby
fijimunk1i has joined #ruby
d45h has quit [Ping timeout: 245 seconds]
RoryHughes has quit [Client Quit]
RoryHughes has joined #ruby
TMM has quit [Quit: Ex-Chat]
wallerdev has quit [Quit: wallerdev]
reset has quit [Ping timeout: 250 seconds]
kevind_ has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
pushpak has joined #ruby
duggiefresh has quit [Remote host closed the connection]
baordog_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
bradhe has quit [Remote host closed the connection]
punkcat has quit [Quit: Leaving]
zipper has quit [Quit: leaving]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
mudmaster has quit [Ping timeout: 264 seconds]
shaunbaker has joined #ruby
mudmaster has joined #ruby
d45h has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
RoryHughes has quit [Client Quit]
loving_ruby has joined #ruby
asobrasil has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
asobrasil has quit [Max SendQ exceeded]
loving_ruby has left #ruby [#ruby]
obs has quit [Remote host closed the connection]
krawchyk has quit []
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
Thanatermesis has joined #ruby
ffio has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
clamstar has joined #ruby
brtdv has quit [Ping timeout: 245 seconds]
flubba has quit [Remote host closed the connection]
bradhe has joined #ruby
heisenmink has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
<Buck>
if I have a multidimensional array in ruby (say mapdata), it's easy to extract a row as an array (mapdata[x]). Is it possible to easily extract a column as an array, too? or do I need a loop ?
iamjarvo has quit [Read error: Connection reset by peer]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
rootshift has quit [Quit: rootshift]
zeade has joined #ruby
iamjarvo has joined #ruby
nomenkun has joined #ruby
<LadyRainicorn>
mapdata.map{|r| r[c]}
maletor has joined #ruby
wald0 has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
rootshift has joined #ruby
<Buck>
LadyRainicorn: thanks
TomRone has joined #ruby
ssvo_ has joined #ruby
fijimunk1i has quit [Quit: leaving]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
rubyracer has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nomenkun_ has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
jtgiri_ has quit [Ping timeout: 240 seconds]
LiohAu has joined #ruby
sarlalian has quit [Quit: WeeChat 0.4.0]
asobrasil has joined #ruby
ssvo has quit [Ping timeout: 250 seconds]
<s2013>
how can i set a variable to something and if that doesnt exist set it to something else. i mean is there some ruby shorthand for it
asobrasil has quit [Max SendQ exceeded]
Aserpent10 has joined #ruby
olivier_bK has quit [Ping timeout: 245 seconds]
<Buck>
s2013: you mean if defined?
blaxter has quit [Ping timeout: 248 seconds]
<Buck>
or: defined? x
lethjakman has joined #ruby
timonv has joined #ruby
duggiefresh has joined #ruby
<s2013>
no i mean is there something like a = x || 5
<s2013>
or whatever
<s2013>
so if x doesnt exist it will be set to 5
<s2013>
just some simple shorthand.. if not its fine
<DouweM>
s2013: x ||= 3
xjiujiu has quit [Read error: Connection reset by peer]
<DouweM>
s2013: be careful with booleans though
<s2013>
but that wont set a..
<s2013>
that just sets x
marr has joined #ruby
lfox has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<DouweM>
you want to set a to x or 5? then your original a = x || 5 was correct
<s2013>
cause now the way i have it is defined?(x) ? a = x : a = 5
jfelchner has quit [Read error: Connection reset by peer]
<Authenticator>
I can capture stdout by redefining $stdout, why can't I supply a replacement stdin by redefining $stdin?
brtdv has quit [Read error: Connection reset by peer]
<LadyRainicorn>
You can't?
nanoyak has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<Authenticator>
with_stdin("foo\n") { gets } returns nil, { $stdin.gets } returns "foo\n". I can't make it work without explicitly specifying the receiver for the gets.
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LadyRainicorn>
Sounds like a bug.
<Authenticator>
The method is a pretty standard, redefine a constant, call a block, replace it in the ensure block, kind of thing.
reset has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
jfelchner has joined #ruby
Davey has joined #ruby
mojjojo has joined #ruby
<LadyRainicorn>
Hnm, apparently this is intentional behavior, though confusing.
<Authenticator>
I imagine it's got something to do with the ARGF.
timonv has quit [Remote host closed the connection]
mudmaster has quit [Ping timeout: 250 seconds]
GreatSUN has quit [Ping timeout: 272 seconds]
<Aserpent10>
removed pieces of HTML and now whenever i run bundle exec i get an error message stating "Static Pages Home page should have the title 'Home'
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
d45h has quit []
<Aserpent10>
Eliminating duplication with layouts section in rails tutorial book
robbyoconnor has joined #ruby
LiohAu has quit [Ping timeout: 272 seconds]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<LadyRainicorn>
What are you running after bundle exec?
<LadyRainicorn>
)
<LadyRainicorn>
(That is not the important part of the command.
<LadyRainicorn>
I don't see why you would need multiple ones.
<LadyRainicorn>
That blog sounds wrong.
shadoi has quit [Quit: Leaving.]
bbloom has quit [Read error: Connection reset by peer]
hogeo_ has quit [Remote host closed the connection]
zipper has joined #ruby
lewix has joined #ruby
sharms has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
burlyscudd has quit [Quit: Leaving.]
michaeldeol has quit [Remote host closed the connection]
txdv has joined #ruby
michaeldeol has joined #ruby
tylersmith has joined #ruby
<Hanmac>
LadyRainicorn & tjbiddle its because gsub adds an addional layer so you can use stuff like \\1 as back references
Txandy has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<LadyRainicorn>
oic
burlyscudd has joined #ruby
sheap has joined #ruby
michaeldeol has quit [Ping timeout: 252 seconds]
allaire has quit []
carraroj has joined #ruby
michaeldeol has joined #ruby
mikepack_ has quit [Remote host closed the connection]
lewix_ has joined #ruby
tannerburson has quit [Quit: tannerburson]
jkamenik has quit [Quit: Leaving.]
aspires has joined #ruby
mudmaster has quit [Ping timeout: 260 seconds]
mlpinit_ has quit [Remote host closed the connection]
TomRone has quit [Ping timeout: 240 seconds]
Guest70549 has quit [Remote host closed the connection]
mpereira has joined #ruby
mlpinit_ has joined #ruby
jkamenik has joined #ruby
CalimeroTeknik_ is now known as CalimeroTeknik
zipper has quit [Quit: Lost terminal]
preller has joined #ruby
mudmaster has joined #ruby
TomRone has joined #ruby
jfelchner has quit [Quit: zzzzzzzzzzzzz………]
psyl0n has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
LiohAu has quit [Ping timeout: 272 seconds]
echevemaster has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
jle` has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Bira has joined #ruby
Bira has quit [Client Quit]
erry_ has joined #ruby
nomenkun has joined #ruby
g3orge has joined #ruby
erry_ has left #ruby [#ruby]
samsonasu has joined #ruby
vikhyat has joined #ruby
havenn has joined #ruby
psyl0n has quit [Remote host closed the connection]
havenn has quit [Read error: Connection reset by peer]
Alina-malina has quit [Quit: Leaving]
nomenkun has quit [Ping timeout: 248 seconds]
habanany has left #ruby [#ruby]
mmitchel_ has quit [Remote host closed the connection]
werdnativ has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Remote host closed the connection]
mmitchell has joined #ruby
yfeldblum has joined #ruby
havenwood has joined #ruby
decoponio has quit [Quit: Leaving...]
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
fijimunkii has quit [Read error: Connection reset by peer]
DeProdigy has joined #ruby
fijimunkii has joined #ruby
shime has joined #ruby
phansch_ has joined #ruby
dfranciosi has quit [Remote host closed the connection]
doodlehaus has joined #ruby
dogweather has joined #ruby
mengu has joined #ruby
priyam_ has left #ruby [#ruby]
TomRone has quit [Ping timeout: 240 seconds]
phipes has joined #ruby
randomnick_ has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
Jeticus has joined #ruby
RoryHughes has joined #ruby
Duckily has joined #ruby
DeProdigy has quit [Ping timeout: 250 seconds]
CaptainJet has quit [Ping timeout: 250 seconds]
phansch has quit [Ping timeout: 260 seconds]
hogeo has joined #ruby
SHyx0rmZ has joined #ruby
akonny has joined #ruby
ewnd9 has joined #ruby
mengu has quit [Remote host closed the connection]
TomRone has joined #ruby
Xeago has quit [Remote host closed the connection]
mengu has joined #ruby
rollietikes has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
dkamioka has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 245 seconds]
baordog_ has joined #ruby
LadyRainicorn has quit [Quit: Bye]
LadyRainicorn has joined #ruby
DeProdigy has joined #ruby
kirun has joined #ruby
agjacome has joined #ruby
dkamioka has joined #ruby
benlieb has joined #ruby
mudmaster has quit [Ping timeout: 260 seconds]
louism2wash has joined #ruby
phantummm has joined #ruby
Alina-malina has joined #ruby
mudmaster has joined #ruby
hogeo has joined #ruby
nobitanobi has quit [Ping timeout: 245 seconds]
g3orge has quit [Quit: WeeChat 0.4.2]
nobitanobi has joined #ruby
burlyscudd has quit [Quit: Leaving.]
guiocavalcanti has quit [Remote host closed the connection]
<louism2wash>
Hey guys, I am trying to understand threads better and I just want to make sure I am on the right track as far as my understanding… executing code in different threads, without creating multiple ruby processes, doesn't provide any performance gain because you are simply scheduling two different threads on the same process. However, if you have a blocking operation such as a database call you can achieve greater performance by p
<louism2wash>
erforming that database operation in a separate thread.
senj has joined #ruby
burlyscudd has joined #ruby
<LadyRainicorn>
Yes
jmccune_ has joined #ruby
iliketur_ has joined #ruby
preller has quit [Ping timeout: 260 seconds]
xiphias has quit [Remote host closed the connection]
xiphias has joined #ruby
<louism2wash>
LadyRainicorn: was that in response to me?
iliketur_ has quit [Client Quit]
hogeo has quit [Ping timeout: 245 seconds]
barratt has quit [Quit: Leaving...]
jkamenik has quit [Quit: Leaving.]
<LadyRainicorn>
Yes
jfelchner has joined #ruby
whunt has joined #ruby
lewix has quit [Remote host closed the connection]
iliketur_ has joined #ruby
phantummm has quit [Ping timeout: 240 seconds]
<whunt>
hi everyone, i have a question about regular expressions
lewix has joined #ruby
<whunt>
or validating them actually
<whunt>
in ruby
phantummm has joined #ruby
<whunt>
is there an easy way to see if a string is a valid regular expression
<TTilus>
wan to keep it to yourself?
<whunt>
so if you type /*whatever/ you get an error
<TTilus>
try to build a regex from it
lewix has quit [Read error: No route to host]
<whunt>
how can you see if the string "*whatever" is a valid regular expression
CripperZ is now known as zz_CripperZ
lewix has joined #ruby
<whunt>
that gives you a SyntaxError
preller has joined #ruby
<whunt>
which is not easy to work with
<yxhuvvd>
validating them from what source? user or something else?
<TTilus>
rescure SyntaxError
xiphias has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
<whunt>
TTilus: I tried that, it doesn't work
jfelchner has quit [Ping timeout: 245 seconds]
<whunt>
it doesn't do what you think it does
<whunt>
also, even ensure doesn't run if you throw a syntax error
Jeticus has quit [Ping timeout: 260 seconds]
<TTilus>
ah, it is parse time error, not runtime
havenwood has quit [Read error: Connection reset by peer]
<whunt>
begin; x = /*whatever/ ensure puts 'hello' end
dkamioka has quit [Remote host closed the connection]
ringaroses has quit [Quit: Leaving]
TomRone has joined #ruby
shoMo has joined #ruby
allaire has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
RoryHughes has quit []
jerius has quit []
robbyoconnor has quit [Ping timeout: 260 seconds]
xiphias has joined #ruby
ValicekB has joined #ruby
nomenkun has joined #ruby
benlieb has quit [Quit: benlieb]
<shawnjgoff>
Why does "2.times.with_object([]) { |i, memo| memo << i }" return [0,1], but "2.times.with_object(0) { |i, memo| memo +=i }" not return 1?
DrShoggoth has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<waxjar>
because 0 + 0 + 1 = 1
lewix has quit [Remote host closed the connection]
phipes has quit [Remote host closed the connection]
<waxjar>
wait i read that wrong
lewix has joined #ruby
<MrZYX>
shawnjgoff: because Fixnums are immutable
lfox has quit [Ping timeout: 264 seconds]
<MrZYX>
shawnjgoff: use .inject
<shawnjgoff>
Okay.
allaire has quit [Ping timeout: 240 seconds]
awestroke has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
lewix has quit [Read error: No route to host]
xiphias has quit [Ping timeout: 240 seconds]
TomRone has quit [Ping timeout: 240 seconds]
lewix has joined #ruby
<shawnjgoff>
Yeah, I'm aware that reduce/inject is the correct thing to use here, but this just surprised me.
<MrZYX>
what happens is that you assign a new object to memo and then memo falls out of scope
<shawnjgoff>
Okay... how about this: "(0..1).each.with_object(c) { |a, b| p a; p b; b += a }" c is mutable, but this still gives me 0 and c is still 0.
<Hanmac>
shawnjgoff: with_object allways returns the same object ... use it when you want to return a hash or a array, use inject when you want to return a product or an sum
iliketur_ has quit [Quit: zzzzz…..]
xiphias has joined #ruby
larissa has joined #ruby
jchristi has quit [Ping timeout: 246 seconds]
clamstar has quit [Quit: Computer has gone to sleep.]
<MrZYX>
shawnjgoff: += changes the variable, not the object
jfelchner has quit [Quit: zzzzzzzzzzzzz………]
<MrZYX>
it's short for a = a+b
<MrZYX>
a+b returns a new object, it doesn't modify a
mengu__ has joined #ruby
ringaroses has joined #ruby
ValicekB has quit [Max SendQ exceeded]
burlyscudd has quit [Quit: Leaving.]
<shawnjgoff>
Got it.
jerius has joined #ruby
DeProdigy has joined #ruby
TomRone has joined #ruby
cascalheira has joined #ruby
olivier_bK has joined #ruby
iliketur_ has joined #ruby
mengu has quit [Ping timeout: 261 seconds]
iliketur_ has quit [Client Quit]
phipes has joined #ruby
closures999 has quit []
preller has quit [Ping timeout: 260 seconds]
jfelchner has joined #ruby
burlyscudd has joined #ruby
shadoi has quit [Quit: Leaving.]
nanoyak has quit [Quit: Computer has gone to sleep.]
DeProdigy has quit [Ping timeout: 252 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CripperZ is now known as zz_CripperZ
shastaky has joined #ruby
Czupa has joined #ruby
Czupa has quit [Read error: Connection reset by peer]
ringaroses has quit [Quit: Leaving]
rkrdo has joined #ruby
rkrdo has left #ruby [#ruby]
jkamenik has quit [Quit: Leaving.]
shoMo has quit [Ping timeout: 248 seconds]
closures999 has joined #ruby
jhaals has joined #ruby
shoMo has joined #ruby
closures999 has quit [Remote host closed the connection]
phipes has quit [Remote host closed the connection]
ValicekB has joined #ruby
Txandy has quit [Quit: Leaving...]
blackmesa has joined #ruby
atno has quit [Quit: Leaving]
<tjbiddle>
Wow. I'm lost. I've uninstalled an internal gem from every possible gem location I can think of (gem1.8 gem1.9.1 and rvm) and this service i have that requires it STILL works
<tjbiddle>
I have no idea where this gem could be - I'm trying to edit it on the fly to enable some logging to fix some junk - but i can't seem to find the right one to work with
<tjbiddle>
It shouldn't even be on the machine anymore - I'm so confused. Lol
iamjarvo has quit [Read error: Connection reset by peer]
lewix has quit [Remote host closed the connection]
iamjarvo has joined #ruby
krawchyk has quit []
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
bbloom has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
geggam has joined #ruby
<LadyRainicorn>
tjbiddle: bundle show <gem>
erasmus has joined #ruby
Megtastique has quit [Ping timeout: 240 seconds]
lewix__ has joined #ruby
hogeo has joined #ruby
b00stfr3ak has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
Megtastique has joined #ruby
<LadyRainicorn>
You probably want to just make a custom repository and point your Gemfile to that
<LadyRainicorn>
Editing the actual gem is not a good idea.
jfelchner has quit [Quit: zzzzzzzzzzzzz………]
awestroke has quit [Ping timeout: 240 seconds]
guiocavalcanti has joined #ruby
<tjbiddle>
LadyRainicorn: Meh - internal gem. Test application. Gets overwritten any time I re-install it. Not a big deal - And don't want to re-commit just to test something for 3 seconds
duggiefresh has joined #ruby
charliesome has joined #ruby
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tjbiddle>
LadyRainicorn: Checking out bundle show - Just found out that the upstart service is deciding to report that it's up, but the application wasn't running. So at least I have that running for me - it *was* breaking - just not failing.
<tjbiddle>
Weird.
phantummm has joined #ruby
awestroke has joined #ruby
<LadyRainicorn>
Your upstart file is probably broken then.
aryaching has quit [Ping timeout: 260 seconds]
psyl0n has joined #ruby
hogeo has quit [Ping timeout: 250 seconds]
<tjbiddle>
LadyRainicorn: I know
Xeago has quit [Ping timeout: 252 seconds]
<tjbiddle>
I need to make it use rvm to begin with - I don't know why it's not when a near-identical one I have is working fine.
mudmaster has quit [Ping timeout: 245 seconds]
securitycrush has quit [Quit: Leaving]
lewix__ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
ezra has joined #ruby
jkamenik has joined #ruby
atno has joined #ruby
drumusician has quit [Ping timeout: 240 seconds]
Guest73362 has quit [Ping timeout: 240 seconds]
<jokke>
hey
<jokke>
is there something like this in hash? {a: 'bla', b: 'blub'}[:a,:b]
<jokke>
which would result in ['bla','blub']
<MrZYX>
.values_at
<jokke>
oh cool
<jokke>
thanks
TomRone has quit [Ping timeout: 240 seconds]
centipedefarmer has quit [Remote host closed the connection]
sergicles has quit [Quit: sergicles]
benlieb has joined #ruby
whunt has quit [Ping timeout: 252 seconds]
mudmaster has joined #ruby
TomRone has joined #ruby
Jetchisel has joined #ruby
sheap has quit [Quit: Lost terminal]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hl has quit [Ping timeout: 246 seconds]
iliketur_ has joined #ruby
charliesome has joined #ruby
iliketur_ has quit [Max SendQ exceeded]
mojjojo has quit [Quit: mojjojo]
iliketur_ has joined #ruby
whunt has joined #ruby
DeProdigy has joined #ruby
mojjojo has joined #ruby
Es0teric has joined #ruby
benlieb has quit [Quit: benlieb]
TomRone has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Remote host closed the connection]
hl has joined #ruby
phansch_ has quit [Quit: Leaving]
mojjojo has quit [Quit: mojjojo]
ewnd9 has quit [Remote host closed the connection]
shastaky has quit [Ping timeout: 250 seconds]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
centipedefarmer has joined #ruby
ewnd9 has joined #ruby
TomRone has joined #ruby
mojjojo has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
derpieee has joined #ruby
nanoyak has joined #ruby
rootshift has quit [Quit: rootshift]
<MvDevNull>
hello guy, how can i install libruby1.9.3 on ubuntu without Rvm (apt-get install only libruby1.9.1)
simoz3 has joined #ruby
<MvDevNull>
(and girl :-p)
RoryHughes has joined #ruby
<MrZYX>
what did you try so far?
RoryHughes has quit [Max SendQ exceeded]
<MrZYX>
MvDevNull: ^
RoryHughes has joined #ruby
<MvDevNull>
apt-get install ruby1.9.3
guiocavalcanti has quit [Remote host closed the connection]
derpieee has left #ruby [#ruby]
<MrZYX>
so why did you do that if you just want libruby1.9.1 ?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kung has quit [Read error: Connection reset by peer]
kung has joined #ruby
<bubu>
hmm, what you mean you already Time.parse in there? o_0
lkba has quit [Ping timeout: 250 seconds]
<MrZYX>
queue << Time.parse(x.job['run_at'])
<bubu>
ahh
podjem has joined #ruby
mudmaster has joined #ruby
m0use_ has quit []
<MrZYX>
queues.values.each do |time| <- time contains the arrays, so either first flatten or nest another loop, don't rely on Array#to_s
<bubu>
my god, it's a monstrosity but you've accomplished what I've been thinking about for several hours in about 2 mins!
<xibalba>
experience
clamstar has joined #ruby
<bubu>
Thank MrZYX!
Elhu has quit [Quit: Computer has gone to sleep.]
<DouweM>
bubu: didn't you only want to collect jobs for those specific queues? I already provided you with the same code MrZYX wrote a couple of hours ago fwiw ;)
RoryHughes has quit []
ixti has joined #ruby
<bubu>
DouweM: thanks for that too! I'm still messing around with it at the mo!
<DouweM>
bubu: :)
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dr_bob has joined #ruby
preller has quit [Ping timeout: 245 seconds]
whunt has quit [Quit: Computer has gone to sleep.]
Thana` has joined #ruby
whunt has joined #ruby
wald0 has quit [Ping timeout: 264 seconds]
TomRone has quit [Ping timeout: 240 seconds]
kevind has quit [Quit: kevind]
Thanatermesis has quit [Ping timeout: 256 seconds]
Elhu has joined #ruby
Thana` has quit [Client Quit]
Thanatermesis has joined #ruby
wald0 has joined #ruby
dima_ has joined #ruby
culturel_ has joined #ruby
preller has joined #ruby
TomRone has joined #ruby
vikhyat has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 260 seconds]
<MvDevNull>
thks for yours answers, for installing gem bundler on ubuntu, it's the rubygems package right? because if i use it, it 'll install ruby 1.8... is there a way for installing it in 1.9.3 env (without RVM).. or it ins'nt a pblm if it cames with 1.8?.
podjem has quit [K-Lined]
funburn has quit [Ping timeout: 240 seconds]
iliketur_ has quit [Quit: zzzzz…..]
funburn has joined #ruby
m8 has quit [Quit: Sto andando via]
<MvDevNull>
ok it is a pblm..
wallerdev has quit [Quit: wallerdev]
aerook has quit [Quit: Page closed]
clamstar has quit [Ping timeout: 250 seconds]
psyl0n has quit [Remote host closed the connection]
kindjal has joined #ruby
hogeo has joined #ruby
jamblack has joined #ruby
dr_bob has quit [Quit: Leaving.]
jfelchner has joined #ruby
psyl0n has joined #ruby
michaeldeol has joined #ruby
jamblack has left #ruby [#ruby]
clamstar has joined #ruby
<MrZYX>
MvDevNull: is it so hard to type out stuff? ;) anyway bundler is not in the rubygems package, try sudo gem install bundler or sudo gem-1.9 install bundler or something similar
mengu has joined #ruby
hogeo has quit [Ping timeout: 250 seconds]
iliketur_ has joined #ruby
preller has quit [Ping timeout: 252 seconds]
magoo has joined #ruby
iamjarvo_ has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
vlad_starkov has quit []
mengu__ has quit [Ping timeout: 260 seconds]
iamjarvo_ has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
<MvDevNull>
i think my mind is not ready for ruby... thks..
petey has joined #ruby
mudmaster has quit [Ping timeout: 248 seconds]
mengu has quit [Remote host closed the connection]
clamstar has quit [Ping timeout: 248 seconds]
p0wn3d has quit [Quit: ChatZilla 0.9.90.1 [Firefox 17.0.11/20131119163834]]
fmcgeough has quit [Quit: fmcgeough]
vlad_starkov has joined #ruby
davy_ has joined #ruby
CaptainJet has quit []
psyl0n has quit [Remote host closed the connection]
<reactormonk>
I'd like to display an array in sinatra one value per line - how do I do that? I considered joining it with "\n" and entering it into the form in a %p
preller has joined #ruby
<withnale_>
How do you make a bundler application so that it can run anywhere? I thought it was just a case of require 'bundler/setup' in the main file, but if I am out of the main directory tree, it cannot find the bundled resources
mudmaster has joined #ruby
clamstar has joined #ruby
burlyscudd has joined #ruby
Monie has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Ping timeout: 260 seconds]
lewix has quit [Remote host closed the connection]
<MrZYX>
reactormonk: in HTML unordered lists should be declared with <ul> tags
<reactormonk>
MrZYX, it's ordered
lewix has joined #ruby
<MrZYX>
then <ol>
<reactormonk>
MrZYX, should be copy/pastable with \n in it
<MrZYX>
then use a <pre> tag and really just join with \n
eka has quit [Quit: Computer has gone to sleep.]
spider-mario has quit [Read error: Connection reset by peer]
lewix has quit [Read error: No route to host]
shastaky has joined #ruby
lewix has joined #ruby
yfeldblum has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 250 seconds]
bbloom has joined #ruby
<shevy>
hehe
<shevy>
MrZYX has an answer ready for every occasion
mbff has joined #ruby
mbff is now known as Guest20725
Azure has quit [Quit: My MBP went to sleep.]
TomRone has joined #ruby
phantummm has quit [Quit: phantummm]
mary5030 has joined #ruby
wm3|away has quit [Ping timeout: 246 seconds]
shastaky has quit [Ping timeout: 260 seconds]
prc has joined #ruby
dogweather has quit []
heidi has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 252 seconds]
kaldrenon has quit [Remote host closed the connection]
dogweather has joined #ruby
kaldrenon has joined #ruby
danshultz has quit [Remote host closed the connection]
heidi has joined #ruby
danshultz has joined #ruby
whunt has quit [Quit: Computer has gone to sleep.]
guiocavalcanti has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
whunt has joined #ruby
lkba has joined #ruby
funburn has quit [Quit: funburn]
lewix has quit [Remote host closed the connection]
sergicles has joined #ruby
<withnale_>
How do you make a bundler application so that it can run anywhere? I thought it was just a case of require 'bundler/setup' in the main file, but if I am out of the main directory tree, it cannot find the bundled resources
lewix has joined #ruby
AMcP has joined #ruby
kaldrenon has quit [Ping timeout: 248 seconds]
CaptainJet has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
lewix has quit [Read error: Connection reset by peer]
lewix has joined #ruby
danshultz has quit [Ping timeout: 260 seconds]
davy_ has quit [Remote host closed the connection]
<MrZYX>
withnale_: I'd just make a wrapper that sets the working directory correctly
preller has quit [Ping timeout: 264 seconds]
dogweather has quit [Remote host closed the connection]
davy_ has joined #ruby
spirtista has joined #ruby
dogweather has joined #ruby
angusiguess has joined #ruby
nomenkun has joined #ruby
sailias has quit [Quit: Leaving.]
claymore has quit [Quit: Leaving]
yfeldblum has joined #ruby
rossssssssss has joined #ruby
plack___ has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
spirtista has quit [Remote host closed the connection]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
<withnale_>
I thought Bundler.setup and/or Bundler.require was supposed to solve this sort of thing?
Elhu has joined #ruby
phantummm has joined #ruby
tonni has joined #ruby
plack has quit [Ping timeout: 246 seconds]
<MrZYX>
Bundler.setup modifies $LOAD_PATH so that only the gems specified in the Gemfile and their dependencies can be loaded
LiohAu has joined #ruby
<MrZYX>
Bundler.require requires the gems in the specified/the default group
mudmaster has quit [Ping timeout: 260 seconds]
<withnale_>
but both of them expect the gem to be run from it's base directory?
preller has joined #ruby
<MrZYX>
or a subdirectory of it iirc
nomenkun has quit [Ping timeout: 264 seconds]
TomRone has joined #ruby
_bart has joined #ruby
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
guiocavalcanti has quit [Remote host closed the connection]
<yan_>
i'm trying to run 'bundle package' in a brand new gem dir, where i specified some depdencies in the gemspec just to collect a vendor/cache directory. however, when i run 'bundle package', i get the error: "Could not find gem 'tempgem (>= 0) ruby' in source at /home/user/tmp/tempgem", where tempgem is the temporary gem i created to collect dependencies. am i missing a step?
drumusician has joined #ruby
Azure has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy>
noob101 are you aware that people can not see your code that way?
psyl0n has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
vlad_starkov has joined #ruby
<shevy>
one way for them to see it would be by pasting the ruby code you have a problem with, into a site like http://pastie.org/ - also, include the specific error message (copy/paste that message into the pastie would be best)
<noob101>
shevy, just try it please. It's not working. Besides, the answers are at hint if you click it.
hogeo has joined #ruby
<noob101>
ok
danman has quit [Quit: danman]
lewix has quit [Remote host closed the connection]
<shevy>
that site is damn slow to load up
jamblack has quit [Quit: jamblack]
<shevy>
it loads an irb for me embedded into a website
lewix has joined #ruby
iliketur_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<MrZYX>
noob101: won't make an account so contact their support if you have trouble
ItSANgo has joined #ruby
duggiefr_ has joined #ruby
kirun has quit [Quit: Client exiting]
duggiefresh has quit [Read error: Connection reset by peer]
cescalante is now known as ce_afk
ce_afk is now known as cescalante
<shevy>
ohhh
<shevy>
he is just advertizing?
nanoyak has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
<shevy>
noob101 ^^^ that is how one tends to usually use a class in ruby
<noob101>
Thanks, let's see.
psyl0n has joined #ruby
<shevy>
the code you showed on the pastie is atypical, rare to see, and seems to be unnecessary
nadirvardar has quit [Ping timeout: 260 seconds]
<Eiam>
dangit pry
<Eiam>
pry-rescue
<shevy>
noob101 ruby allows you to define methods on a per-object basis usually, but there is often not a need to do so in the first place. the less features you have to use in order to solve your problem, the better really
<Eiam>
anyone have any experience with pry-rescue? I can see it in my backtrace, pry-rescue/core_ext.rb :enable_rescuing! but I'm not actually getting a pry console at all, Thin just keeps on going..
<noob101>
shevy
shastaky has joined #ruby
<Eiam>
to test it I just made an empty route that calls a non existent function so we get a NoMethodError
<noob101>
In LearnStreet, your code didn't work. But thanks for the code, it looks so nice.