econerd4ever has quit [Remote host closed the connection]
russt has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
xymbol____ has quit [Read error: Connection reset by peer]
nicolastarzia has joined #ruby
xymbol____ has joined #ruby
asmodlol has joined #ruby
CpuID has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
CpuID has joined #ruby
Takle_ has quit [Remote host closed the connection]
econerd4ever has joined #ruby
Takle has joined #ruby
Guest84271 has joined #ruby
tokik has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
djdarkbeat has quit [Quit: djdarkbeat]
ghostmoth has joined #ruby
Timgauthier is now known as timgauthier_away
ghostmoth has quit [Client Quit]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pika_pika has quit [Ping timeout: 258 seconds]
SirCmpwn has quit [Ping timeout: 240 seconds]
digdeep has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 272 seconds]
Takle has quit [Ping timeout: 244 seconds]
asmodlol has quit [Ping timeout: 244 seconds]
cesarstafe has joined #ruby
SirCmpwn has joined #ruby
asmodlol has joined #ruby
huddy has joined #ruby
adriancb has quit [Remote host closed the connection]
seamon has quit [Remote host closed the connection]
chishiki has quit [Ping timeout: 256 seconds]
SirCmpwn has quit [Excess Flood]
deric_skibotn has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
SirCmpwn has joined #ruby
chishiki has joined #ruby
fgo has quit [Quit: WeeChat 1.0]
rylev has quit [Ping timeout: 245 seconds]
jstad has joined #ruby
SirCmpwn has quit [Excess Flood]
SirCmpwn has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
wjimenez5271 has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 264 seconds]
asmodlol has quit [Ping timeout: 240 seconds]
graydot has joined #ruby
yeticry has joined #ruby
olivier_bK has quit [Ping timeout: 258 seconds]
Guest84271 has quit [Quit: Saliendo]
sailias has quit [Quit: Leaving.]
nicolastarzia has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
asmodlol has joined #ruby
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
babykosh has quit [Quit: babykosh]
spyderman4g63 has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
duncannz has joined #ruby
AndyBotwin has joined #ruby
ghostmoth has joined #ruby
spyderma_ has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
tejas-manohar has quit [Quit: Page closed]
peterhu_ is now known as peterhu
jack_rabbit has joined #ruby
mikepack has quit [Remote host closed the connection]
adriancb has joined #ruby
startupality has joined #ruby
spyderman4g63 has quit [Ping timeout: 264 seconds]
adriancb has quit [Remote host closed the connection]
<zenspider>
ericwood: you do interesting shit. where do you live? you should come to seattle.rb sometime and speak. :D
ohaibbq has quit [Remote host closed the connection]
doodlehaus has joined #ruby
nicolastarzia has joined #ruby
pu22l3r has joined #ruby
<pipework>
ericwood: Tjat
<pipework>
ericwood: That's pretty cool. I've never been invited for the stuff I do, you should totally go to seattle.rb if you can and present.
<zenspider>
I need a working midi setup for ruby in order to fix rubygems-sing and get siren-song finally working.
<zenspider>
seems like the midi gems have bitrotted or gotten Byzantine
boombadaroomba has quit [Remote host closed the connection]
jobewan has quit [Remote host closed the connection]
yfeldblum has joined #ruby
konsolebox has joined #ruby
jeff-ooh has joined #ruby
crack_user has joined #ruby
oo_ has joined #ruby
<crack_user>
hello guys
pauly_oc has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
asmodlol has quit [Ping timeout: 250 seconds]
tvw has joined #ruby
Avahey has joined #ruby
razieliyo has quit [Quit: Saliendo]
startupality has quit [Quit: startupality]
<jhass>
hi
asmodlol has joined #ruby
jeff-ooh has quit [Ping timeout: 258 seconds]
jstad has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pauly_oc has quit [Read error: Connection reset by peer]
delianides has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pauly_oc has joined #ruby
startupality has joined #ruby
procat has joined #ruby
emmesswhy has joined #ruby
asmodlol has quit [Ping timeout: 244 seconds]
delianid_ has quit [Ping timeout: 244 seconds]
procat has quit [Ping timeout: 250 seconds]
momomomomo has quit [Quit: momomomomo]
russt has quit [Quit: russt]
asmodlol has joined #ruby
workmad3 has joined #ruby
asmodlol has quit [Ping timeout: 258 seconds]
giuseppesolinas has quit [Read error: Connection reset by peer]
giuseppesolinas has joined #ruby
<unholycrab>
how do i install gems in a way that is accessible to a user that does not have a shell?
asmodlol has joined #ruby
studiotate has quit [Quit: Computer has gone to sleep.]
<unholycrab>
i did gem install json --user-install as the root user, and then sudo -u nagios sh -c 'gem list' and don't see any gems
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 264 seconds]
<jhass>
--user-install installs for the current user
<unholycrab>
thanks jhass
robustus has quit [Ping timeout: 250 seconds]
<pipework>
Unless they need write access, just install it to a location they can read.
<jhass>
specifically it installs to $HOME/.gem
<pipework>
Then you might need to manage some gem path stuff.
melik has joined #ruby
karmatr0n has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmichelsen has quit [Quit: ZZZzzz…]
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Techguy305 has joined #ruby
Parker0 has joined #ruby
graydot has quit [Quit: graydot]
postmodern has quit [Quit: Leaving]
valeriansaliou has joined #ruby
pu22l3r has joined #ruby
Techguy305 has quit [Read error: Connection reset by peer]
djdarkbeat has joined #ruby
Techguy305|2 has quit [Ping timeout: 250 seconds]
DonOtreply has quit [Quit: DonOtreply]
postmodern has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
valeriansaliou has quit [Ping timeout: 244 seconds]
startupality has quit [Quit: startupality]
pietr0 has quit [Quit: pietr0]
sailias has joined #ruby
<zenspider>
sudo gem install gemname
DrCode has quit [Ping timeout: 250 seconds]
D9 has quit [Quit: Leaving]
maestrojed has joined #ruby
gsd_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrisja has quit [Quit: leaving]
reinaldob has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
Crazy_Atheist has joined #ruby
dseitz has joined #ruby
yfeldblum has joined #ruby
fmcgeough has joined #ruby
icbm has joined #ruby
tkuchiki has joined #ruby
fabrice31 has joined #ruby
ghostmoth has joined #ruby
ghostmoth has quit [Client Quit]
Nigel_ is now known as G
asmodlol has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
asmodlol has joined #ruby
DrCode has joined #ruby
delianides has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 256 seconds]
dorei has quit []
wallerdev has joined #ruby
sailias has quit [Quit: Leaving.]
bmichelsen has joined #ruby
gsd has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tuelz has joined #ruby
drewvanstone has joined #ruby
rwy has quit [Ping timeout: 258 seconds]
Takle has joined #ruby
sailias has joined #ruby
fivetwentysix has joined #ruby
drewvanstone has quit [Client Quit]
mikepack has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
adriancb has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
rastro has joined #ruby
chipotle_ has joined #ruby
fivetwentysix has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 255 seconds]
spyderma_ has quit []
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Ping timeout: 245 seconds]
iamninja has joined #ruby
jimmyhoughjr has joined #ruby
renderful has joined #ruby
babykosh has joined #ruby
babykosh has quit [Client Quit]
zz_twistedpixels is now known as twistedpixels
jenrzzz has joined #ruby
doodlehaus has quit [Remote host closed the connection]
roolo has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
studiotate has joined #ruby
mgberlin has joined #ruby
CrazyM4n has joined #ruby
jeremywrowe has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
eka has joined #ruby
renderful has quit [Ping timeout: 264 seconds]
stunder has quit [Remote host closed the connection]
<rastro>
pretty quiet here, but here goes... anyone know of a solution to unzipping "from Unix" files as described here: https://www.ruby-forum.com/topic/149335
TDJACR has quit [Ping timeout: 264 seconds]
NotADJ is now known as TDJACR
hdrv has quit [Ping timeout: 250 seconds]
roolo has quit [Ping timeout: 264 seconds]
Neomex has quit [Quit: Leaving]
AmirolAhmad has joined #ruby
phutchins has joined #ruby
fivetwentysix has joined #ruby
mroach has joined #ruby
dideler has joined #ruby
hyperdrive has joined #ruby
fivetwentysix has quit [Remote host closed the connection]
russt has joined #ruby
djbkd has quit [Quit: My people need me...]
russt has quit [Client Quit]
kenneth has joined #ruby
echooo1 has joined #ruby
mroach has quit [Ping timeout: 272 seconds]
econerd4ever has quit [Remote host closed the connection]
dts|pokeball has quit [Quit: Leaving]
dts|pokeball has joined #ruby
echooo has quit [Ping timeout: 272 seconds]
tvw has quit []
rpag has quit [Ping timeout: 255 seconds]
mloveless has quit [Ping timeout: 265 seconds]
bmichelsen has quit [Quit: Bye!]
sinequanon has quit [Remote host closed the connection]
sinequanon has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
bmichelsen has joined #ruby
claptor has joined #ruby
studiotate has quit [Quit: Computer has gone to sleep.]
sinequanon has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
CrazyM4n has quit [Remote host closed the connection]
asmodlol has quit [Ping timeout: 258 seconds]
ghostmoth has joined #ruby
asmodlol has joined #ruby
gsd has joined #ruby
gsd has quit [Client Quit]
bricker`work has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
ghostmoth has quit [Client Quit]
mloveless has joined #ruby
amclain has joined #ruby
mloveless has quit [Remote host closed the connection]
ghostmoth has joined #ruby
ghostmoth has quit [Client Quit]
mroach has joined #ruby
<godd2>
rastro that issue was posted in 2008. Does Zlib::GzipReader still have that problem?
crack_user has quit [Quit: Leaving.]
hamakn has joined #ruby
asmodlol has quit [Ping timeout: 244 seconds]
cleopatra has quit [Ping timeout: 240 seconds]
asmodlol has joined #ruby
<rastro>
godd2: yes, it does!
<godd2>
rastro what version of Ruby are you using?
<godd2>
because as of 2.0.0 you can pass an :external_encoding option in Zlib::GzipReader.new
<rastro>
looks like 1.9.3.
<rastro>
was going to try zipruby just for kicks.
AmirolAhmad has quit [Remote host closed the connection]
<wroathe>
But after requiring that all calls to require_relative fail
<wroathe>
With a LoadError
jeff-ooh has quit [Ping timeout: 256 seconds]
asmodlol has quit [Ping timeout: 265 seconds]
<wroathe>
Is there something obvious I'm missing?
ramfjord has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
rastro has left #ruby [#ruby]
<jhass>
I guess it changes the place from where it is called
asmodlol has joined #ruby
<jhass>
so it's relative to your monkeypatch, not the original call
<jhass>
I think you want to take a look at the TracePoint API
fantazo has joined #ruby
<wroathe>
jhass: Thanks :)
CrazyM4n has joined #ruby
Sawbones has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
MartynKeigher has joined #ruby
psyprus has joined #ruby
mgberlin_ has quit [Read error: Connection reset by peer]
malcolmva has quit [Ping timeout: 264 seconds]
mgberlin has joined #ruby
gilmour has quit [Ping timeout: 258 seconds]
gilmour has joined #ruby
duncannz has joined #ruby
spartak has joined #ruby
<spartak>
could it be that some people aren't made for programming?
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
renderful has joined #ruby
coderwill has quit [Remote host closed the connection]
Areessell has joined #ruby
D9 has joined #ruby
dts|pokeball has quit [Ping timeout: 255 seconds]
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
kenneth has joined #ruby
renderful has quit [Ping timeout: 256 seconds]
<pipework>
spartak: Possibly, but they're probably too busy being vegetables.
sinequanon has joined #ruby
<spartak>
what if they're too busy trying to learn the material and having a hard time?
oo_ has joined #ruby
jusmyth has joined #ruby
avrc has quit [Quit: this channel is bakas]
Sawbones has quit [Remote host closed the connection]
zoite_ has joined #ruby
kl has quit [Ping timeout: 245 seconds]
zoite has quit [Ping timeout: 250 seconds]
lemur has quit [Remote host closed the connection]
arup_r has joined #ruby
lemur has joined #ruby
malcolmva has joined #ruby
studiotate has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pauly_oc has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kp666 has joined #ruby
braincrash has quit [Quit: bye bye]
unholycrab has quit [Changing host]
unholycrab has joined #ruby
avrc has joined #ruby
pardusf has quit []
adriancb has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 258 seconds]
adriancb has joined #ruby
parduse has joined #ruby
sargas has joined #ruby
sarmiena_ has joined #ruby
avrc has quit [Client Quit]
braincrash has joined #ruby
sinequanon has quit []
aspires has joined #ruby
adriancb has quit [Ping timeout: 265 seconds]
Megtastique has joined #ruby
uber_hulk has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 258 seconds]
sk87 has joined #ruby
uber_hulk has joined #ruby
uber_hulk has left #ruby [#ruby]
kiyote23 has quit [Remote host closed the connection]
avrc has joined #ruby
<pipework>
Too busy for what?
karmatr0_ has quit [Remote host closed the connection]
mgberlin_ has joined #ruby
apeiros_ has quit [Ping timeout: 250 seconds]
chu_ has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
mgberlin has quit [Ping timeout: 255 seconds]
karmatr0n has joined #ruby
chu has quit [Ping timeout: 272 seconds]
davedev2_ has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
jin_ has joined #ruby
agent_white has joined #ruby
Takle has joined #ruby
procat has joined #ruby
oo_ has quit [Remote host closed the connection]
Hijiri has quit [Read error: Connection reset by peer]
tus has quit []
kiyote23 has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
Takle has quit [Ping timeout: 255 seconds]
procat has quit [Ping timeout: 258 seconds]
JBreit has joined #ruby
hemanth has joined #ruby
Hijiri has joined #ruby
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
<agent_white>
evenin'
studiotate has quit [Quit: Computer has gone to sleep.]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has quit [Quit: Leaving.]
workmad3 has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
<ericwood>
zenspider: haha I'd be intimidated to hell and back but I'd love to if I'm ever in the area
<ericwood>
zenspider: I'm in Austin, though, so it's quite the trek :\
workmad3 has quit [Ping timeout: 250 seconds]
russt has quit [Quit: russt]
aspires has quit []
Channel6 has quit [Quit: Leaving]
jenrzzz has joined #ruby
hasB4K has quit [Remote host closed the connection]
kenneth has joined #ruby
shortCircuit__ has joined #ruby
<shortCircuit__>
hi
ARCADIVS has joined #ruby
hasB4K has joined #ruby
hasB4K has quit [Changing host]
hasB4K has joined #ruby
sargas has joined #ruby
kenneth has quit [Client Quit]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
<shortCircuit__>
In C if I were asked to print the first 9 prime numbers, I used a while loop with a counter that would count + 1 for every prime number found. How to do that in ruby?
kenneth has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
mloveless has joined #ruby
<waxjar>
in ruby we have Prime.take(9) :P
sk87 has joined #ruby
valeriansaliou has joined #ruby
yeticry has joined #ruby
havenwood has joined #ruby
kenneth has quit [Client Quit]
Megtastique has quit []
<shortCircuit__>
I have seen that library , but thats only for prime numbers, this uestion could have been for pallindroms , I wanted to mean that if there is a range given I can say (1..n) but what if the n is not provided
<shortCircuit__>
*question
<waxjar>
but counted loops can be done several ways: 1.upto(9) {}, 9.times {}, (1..9).each {}
zorak8 has quit [Ping timeout: 264 seconds]
<waxjar>
1.step(10, 2) is handy too, increments by 2 instead of 1 :)
<waxjar>
the block all take an argument
<shortCircuit__>
ok, but in each if them the last term is known
mloveless has quit [Remote host closed the connection]
Prometheian_ has joined #ruby
<waxjar>
yes
dideler has quit [Ping timeout: 258 seconds]
TrafficMan has quit [Ping timeout: 258 seconds]
valeriansaliou has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Remote host closed the connection]
fernandolopez has quit [Quit: Saliendo]
green-big-frog is now known as frog|OFF
britt_ has quit [Ping timeout: 245 seconds]
stunder has joined #ruby
stunder has quit [Client Quit]
kiyote23 has quit [Remote host closed the connection]
D9 has quit [Quit: Leaving]
Areessell has quit [Ping timeout: 240 seconds]
zoite_ has quit [Read error: Connection reset by peer]
zoite_ has joined #ruby
tobago has joined #ruby
chu_ has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
hmsimha has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
arya_ching_ has joined #ruby
Takle has joined #ruby
arya_ching has quit [Ping timeout: 250 seconds]
procat has joined #ruby
SOLDIERz has joined #ruby
aZaFred has quit [Remote host closed the connection]
kenneth has joined #ruby
zacts has quit [Quit: Lost terminal]
arya_ching_ has quit [Client Quit]
kenneth has quit [Client Quit]
Takle has quit [Ping timeout: 265 seconds]
procat has quit [Ping timeout: 264 seconds]
Alina-malina has quit [Quit: byebye]
conniemj has joined #ruby
devoldmx has quit [Remote host closed the connection]
melik has quit [Quit: (null)]
sinkensabe has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
workmad3 has joined #ruby
<shortCircuit__>
http://stackoverflow.com/a/2732537/1503615 how does the yield work here. Generally if there is an yield block, when we pass a { block } to it, the yield evaluates that.
AlexRussia has quit [Ping timeout: 255 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
kl has joined #ruby
sinkensabe has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
musicmatze has joined #ruby
CustosL1men has joined #ruby
arup_r has joined #ruby
s00pcan has joined #ruby
arup_r has quit [Remote host closed the connection]
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
<comm64>
extremly bare lol
kamil has joined #ruby
<apeiros_>
seitensei: bare minimum would be rack :-p
Xeago has joined #ruby
phutchins has joined #ruby
KnownSyntax has joined #ruby
comm64 has quit [Remote host closed the connection]
<seitensei>
apeiros_: Offered up Sinatra, since it lets you use some of the other servers as well
jgrevich has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
<apeiros_>
seitensei: huh?
<apeiros_>
what "other servers"?
<seitensei>
like puma
<apeiros_>
I think you do not understand what rack is.
<apeiros_>
sinatra is *based* on rack
<seitensei>
unicorn
vvivv has joined #ruby
<apeiros_>
and being based on rack is what allows sinatra to use those servers in the first place
jenrzzz has quit [Ping timeout: 250 seconds]
russt has quit [Quit: russt]
<seitensei>
apeiros_: I'm thinking webrick when I hear rack, aren't it
<apeiros_>
or put differently: any server sinatra runs on, rack *necessarily* runs on too. as otherwise, sinatra wouldn't run on it.
<seitensei>
*aren't i
<apeiros_>
I don't know. maybe you are. webrick is a webserver in ruby's stdlib
<seitensei>
At some point down the line, I forgot rack wasn't part of Ruby, haha
jenrzzz has joined #ruby
kyank_ has joined #ruby
<seitensei>
my bad
jgrevich has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
ki0 has joined #ruby
blueOxigen has joined #ruby
wroathe has joined #ruby
_5kg has quit [Ping timeout: 244 seconds]
Akuma has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
chth0n has joined #ruby
msgodf has joined #ruby
rshetty has joined #ruby
wroathe has quit [Ping timeout: 250 seconds]
mylar has joined #ruby
Macaveli has joined #ruby
<pontiki>
morning
<apeiros_>
moin
<avril14th>
morning
_5kg has joined #ruby
rurban has joined #ruby
sea_local has quit [Ping timeout: 264 seconds]
jgrevich_ has joined #ruby
kiyote23 has joined #ruby
jgrevich has quit [Ping timeout: 272 seconds]
jgrevich_ is now known as jgrevich
chth0n has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
eka has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has joined #ruby
rurban has left #ruby ["Leaving"]
kiyote23 has quit [Ping timeout: 245 seconds]
decoponio has joined #ruby
jmdade has joined #ruby
davedev24_ has joined #ruby
<aswen>
Morning
davedev2_ has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
goodenough has joined #ruby
bluOxigen has joined #ruby
<aswen>
How can i find out what the target of a symlink is? (actualy I want to test using File.symlink(file, target) exists and if link "file" has another "target" replace it)
ringarin has quit [Read error: Connection reset by peer]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderful has joined #ruby
mgberlin_ has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 264 seconds]
procat has joined #ruby
roolo has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
CustosL1men has quit [Ping timeout: 250 seconds]
uber_hulk has quit [Quit: leaving]
renderful has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
procat has quit [Ping timeout: 245 seconds]
valeriansaliou has joined #ruby
roolo has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
AFKGeek has joined #ruby
lolmaus has joined #ruby
marcules has joined #ruby
marcules has quit [Changing host]
marcules has joined #ruby
marcules has quit [Changing host]
marcules has joined #ruby
craigp has joined #ruby
Grantlyk has quit []
valeriansaliou has quit [Ping timeout: 265 seconds]
<marcules>
hi
Guest94783 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has joined #ruby
kamil has quit [Quit: Leaving...]
kl__ has joined #ruby
kevinxu has joined #ruby
kevinxu is now known as Guest72142
olivier_bK has joined #ruby
zoite__ has joined #ruby
dts|pokeball has quit [Ping timeout: 245 seconds]
ringarin has joined #ruby
oo_ has joined #ruby
duncannz has quit [Remote host closed the connection]
CustosL1men has joined #ruby
zoite_ has quit [Ping timeout: 250 seconds]
<agent_white>
/ws
dANO has joined #ruby
kl__ has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
tokik has quit [Ping timeout: 265 seconds]
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1__ has joined #ruby
rshetty_ has quit [Remote host closed the connection]
<dANO>
Hi, i created script for read an email and return the url. So i Used URI.extract but my problem now is if in the email I have : <a href="http://www.example.com"> http://www.example.com </a> The URI extract function return two times the same url but I need it only once.
jheg has joined #ruby
aswen has joined #ruby
arup_r_ has quit [Remote host closed the connection]
leo-unglaub has joined #ruby
rshetty has joined #ruby
maletor has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 250 seconds]
ringaring has joined #ruby
arup_r has joined #ruby
eka has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
rshetty has quit [Remote host closed the connection]
Aova has joined #ruby
jin_ has quit [Remote host closed the connection]
cesarstafe has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
ki0 has quit [Remote host closed the connection]
ringarin has quit [Ping timeout: 272 seconds]
kl__ has joined #ruby
FooMunki_ has joined #ruby
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
cephalostrum has quit [Ping timeout: 264 seconds]
rshetty has quit [Remote host closed the connection]
uber_hulk has joined #ruby
cephalostrum has joined #ruby
uber_hulk has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
kl___ has joined #ruby
Guest72142 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
oo_ has joined #ruby
rshetty has joined #ruby
Xeago has quit [Remote host closed the connection]
kl__ has quit [Ping timeout: 272 seconds]
AndyBotwin has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
CustosL1men has quit [Ping timeout: 240 seconds]
sandelius has joined #ruby
<pontiki>
dANO: without actually seeing your code, try something like URI.extract().sort.uniq
<pontiki>
whatever goes in the extract method params should still be there, of course
<dANO>
it's ok, i find the solution, i just need to add array.uniq
<dANO>
thank's
ki0 has joined #ruby
Xeago has joined #ruby
jeff-ooh has joined #ruby
Takle_ has quit [Read error: No route to host]
Takle has joined #ruby
MasterPiece has quit [Ping timeout: 272 seconds]
gr33n7007h has quit [Ping timeout: 256 seconds]
jeff-ooh has quit [Ping timeout: 264 seconds]
Hobogrammer has quit [Ping timeout: 272 seconds]
rshetty has joined #ruby
fivetwentysix has joined #ruby
anaeem1_ has joined #ruby
mloveless has joined #ruby
mloveless has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
anaeem1__ has quit [Ping timeout: 245 seconds]
einarj has quit [Remote host closed the connection]
CustosL1men has joined #ruby
axilla has joined #ruby
timonv_ has quit [Remote host closed the connection]
konsolebox has quit [Remote host closed the connection]
* soahccc
was eating christmas candies for the last 4 months :>
<Timgauthier>
wrong room :P but man thats a nice site
claptor has quit [Quit: this channel is bakas]
krz has quit [Quit: WeeChat 1.0.1]
<soahccc>
Timgauthier: you mean the highlight, etc.?
<certainty>
swifty
<Timgauthier>
yea, its a very nice onboarding experience, very simple to do
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
<TomyWork>
certainty this has to be as unobstructive as possible in this case. It's part of a Vagrantfile and it should be clear which part is to be commented out and which isn't. I'm actually quite happy with the syntax itself, apart from the missing ability to indent =begin/=end.
tesuji has quit [Ping timeout: 244 seconds]
<shevy>
certainty hehe
_5kg has quit [Ping timeout: 245 seconds]
<Timgauthier>
maybe i'll stop with the php :P
<Timgauthier>
jk
<certainty>
TomyWork: hmm strange i actually dislike =begin =end for the fact that you *don't* see well what is commented. Compared to lines starting with #
<shevy>
YES
<shevy>
FINALLY
kalz has joined #ruby
<shevy>
come back to ruby Timgauthier
<Timgauthier>
certainty TomyWork, i agree, each line started with # is nicer
<TomyWork>
certainty no i mean which line needs to be toggled.
<TomyWork>
better 2 than 20 :)
<certainty>
TomyWork: i see. but you don't do this by hand for every line anyway, do you?
<TomyWork>
and the minimum editor i can guarantee everyone has is windows notepad :)
<Timgauthier>
i use select then the comment shortcut in my sublime
<certainty>
ah ok
<certainty>
TomyWork: then go with =begin and =end :)
<TomyWork>
:)
felipedvorak has quit [Read error: Connection reset by peer]
<soahccc>
I would rather code myself another editor before using notepad :<
felipedvorak has joined #ruby
jusmyth has left #ruby [#ruby]
<Timgauthier>
lol
wpp has joined #ruby
pika_pika has joined #ruby
<Timgauthier>
yeah, but a lot of windows users !=
<Timgauthier>
that said, i always recommend sublime text for windows users
<avril14th>
In RSpec, is there a way to test whether a piece of code generates detabase queries or not?
mikecmpbll has joined #ruby
yalue has joined #ruby
<icbm>
Notepad is a butter knife, and we are surgeons. Sometimes we butter our toast in the morning, but...
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
kp666 has quit [Read error: Connection reset by peer]
<soahccc>
avril14th: interesting question but I can only think of something very hackish by closing the connection and catch the exception or something :S
atomical has quit [Read error: Connection reset by peer]
<certainty>
monkey patch the connection adapter :p
<soahccc>
shevy: you never watched star wars via telnet did you?
prasselpikachu has joined #ruby
<Timgauthier>
oh shit, the village fire alarm is going off...
yeticry has joined #ruby
<shevy>
I almost never watched star wars at all
joonty1 has quit [Quit: Leaving]
<soahccc>
shevy: telnet towel.blinkenlights.nl
<shevy>
I saw the first two I think long ago
<shevy>
didn't watch the latest 3 ones. computer animation if done wrong is so awful
sevenseacat has joined #ruby
<certainty>
that's a classic :)
<shevy>
"independence day" was one of the most awful CGI effects. they literally just cloned like 1000 of those airborne thingies
Kilo`byte has joined #ruby
<Hanmac>
shevy hm did you try to watch "independence day" with VLC in ASCII art mode? ;P
procat has joined #ruby
<shevy>
what for, it won't become any better
yfeldblum has joined #ruby
dstarh has joined #ruby
Xeago has joined #ruby
<shevy>
youtube and torrents have kinda replaced my normal watching TV/video habits (when I actually watch videos that is)
SOLDIERz has joined #ruby
karmatr0n has joined #ruby
tvw has quit []
<soahccc>
TV is shit, it's a bit better if you have 3 hours buffer for two channels... then you can find something to fill a few minutes :)
triple_b has joined #ruby
top4o has joined #ruby
agent_wh1te has quit [Quit: leaving]
<Timgauthier>
shevy a good option is to either watch the recuts that people have done, or watch EP 4, 5, 2, 3, 6 order
icbm has quit [Quit: Computer sleeping]
<tangorri>
thanks guys , with .pem added gem works as before
agent_white has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
valeriansaliou has joined #ruby
<shevy>
Timgauthier hehe
procat has quit [Ping timeout: 255 seconds]
aeo1ackn has quit [Ping timeout: 250 seconds]
<Timgauthier>
ep 1 is shit, and doesn't tell you anything useful story wise
triple_b has quit [Client Quit]
aeo1ack has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
beef-wellington has joined #ruby
<shevy>
Timgauthier talking about recuts ... I saw this first before I saw the official video https://www.youtube.com/watch?v=3wFwYBPvYu8 - it's much better than the original lyrics-wise ;)
SOLDIERz has quit [Ping timeout: 264 seconds]
<Timgauthier>
what is it a cover of?
<Timgauthier>
nevermind link
arrubin has quit []
valeriansaliou has quit [Ping timeout: 265 seconds]
<alex88_>
shevy: that is awesome! :D
kaspertidemann has quit []
alex88_ is now known as alex88
<Areessell>
Uh what channel is this?
<Timgauthier>
awesome?
<Timgauthier>
wait
<Timgauthier>
##awesome
<shevy>
##fabulous
<shevy>
did I even spell that right?
<Timgauthier>
who cares?
<Timgauthier>
:P
<shevy>
hahaha
<alex88>
was just reading, how can pg gem still not at 1.0?
allcentury has joined #ruby
<Timgauthier>
so rhianna is from like a small island nation (i thought she was amerikant) and that explains why she sounds the way she does... its an accent!
mikedugan has joined #ruby
<Areessell>
You mean retarded?
<Timgauthier>
we don't say the R word here
<Timgauthier>
lets use Mentally Challenged okay?
<Timgauthier>
she sounds mentally challanged.
<Areessell>
Ruby?
<Timgauthier>
:P
arup_r has quit [Remote host closed the connection]
<Timgauthier>
i'm going to end up with mentally challenged children :(
<shevy>
no Areessell this here is not ##php
Macaveli has joined #ruby
<Areessell>
Jokes on you! You can't have children
<Areessell>
.... Sorry to break it to you like this
<alex88>
+1
<certainty>
why not?
<Timgauthier>
oh man that'd be so much better! :P
<Timgauthier>
what a relief Areessell :P
<shevy>
do you really want to raise children in a world filled with php code
hamakn has quit [Remote host closed the connection]
<shevy>
I see where your suggestion can go wrong
kl has joined #ruby
adriancb has joined #ruby
<shevy>
certainty yeah - so ... 0755, 0644, 0600 ... 700 ... +1 when sticky ... suid... I think that's about a dozen common chmod-operations when it goes up high
<agent_white>
Speaking of... what's the fancy way to do decimal to octal?
tvw has joined #ruby
<jhass>
to_s(8) ?
<Areessell>
Fancy? Drink champaign and use to_s(int)
<jhass>
Array.new(3) { rand(8) } btw
<agent_white>
Areessell: That was the problem, I wrote down a snippet on how to do it on a sticky note after a bit of champagne.
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aeo1ack has quit [Ping timeout: 264 seconds]
<Areessell>
Don't do things so fancily, then =p
dstarh has joined #ruby
<shevy>
agent_white a sticky note?
<shevy>
where on did it stick?
dstarh has quit [Client Quit]
<Hanmac>
shevy his IRC client is broken ... while typing "" it does turn into ””
AlexRussia has joined #ruby
JohnBat26 has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Changing host]
AlexRussia has joined #ruby
<shevy>
cool
<agent_white>
I wrote down... `"%." % 13359 => 10777`
<shevy>
hanmac what is his OS?
<agent_white>
where I got "%." ... I have no idea.
arup_r has joined #ruby
<ponga>
hi shevy
<shevy>
agent_white and where did you get the 13359
kaspertidemann has joined #ruby
<shevy>
pongi hi
<shevy>
erm
<Hanmac>
shevy as he said siaw did use OSX ... that poor little fool ;P
<shevy>
hi ponga
<shevy>
hanmac ah no wonder then
<ponga>
i friend of mine who's a big fan of java changed his profile picture of himself in a suit
nickbelhomme has joined #ruby
<agent_white>
shevy: From `File.stat("foo").mode`
<ponga>
i don't think its a coincidence
<Areessell>
Something wrong with OS X all of a sudden?
<shevy>
ponga hehehe
<ponga>
you guys were right lol
<nickbelhomme>
anyone here that knows how to use capistrano (a ruby project)
<ponga>
gem java guy a suit
<Areessell>
Haha'
<nickbelhomme>
does anyone know how I can access ALL project + stage variables in a task? I want to loop them, so i can inspect their name before acting. The vars set depend per stage... so I cannot target by name.
<ponga>
it really happened this morning
<Areessell>
Yes I'm sure we all have used capistrano
<Hanmac>
Areessell: do you want the long list or the short lis with the stuff that is not wrong?
<shevy>
ponga well it's another culture in asia... like the term salaryman, we never had such a term for working people here http://en.wikipedia.org/wiki/Salaryman
tvw has quit [Client Quit]
<Areessell>
hanmac: The long one
<shevy>
or karoshi
siaw has left #ruby [#ruby]
josephndenton has joined #ruby
<wasamasa>
shevy: I've read a pretty good article about that part of japanese culture once
<Hanmac>
Areessell: OSX does turn "" it does turn into ”” ... for normal typing it might be okay ... for an irc bot like eval-in it is not
<ponga>
actually shevy he's new zealander
<shevy>
ponga hahaha
<ponga>
and he got suit... for a reason
<shevy>
ponga maori style?
<ponga>
that we all know
<Areessell>
It does? Ley me check. "Hm no it doesnt"
<nickbelhomme>
Areessell, I am not proficient enough in ruby to extract that information from the code of the capistrano repository... and the docs do not mention it.
rshetty has quit [Remote host closed the connection]
<madhatter>
Areessell: Okay. I replaced albino by pygments. :)
<shevy>
wasamasa oh yeah I've read that too but it somewhat conflicted with what other foreigners wrote who were working in japan too for a long time, or what manveru from #ruby-lang said about japan when he was working there
Sunlorhic has joined #ruby
eka has quit [Ping timeout: 256 seconds]
<Areessell>
Any other fake superficial reasons to hate on a (Unix based) operating system for no reason? =p
dawkirst has joined #ruby
<arup_r>
shevy: How is my Hat? That's a gift for coming Xmas from SO :)
<certainty>
nickbelhomme: what's the problem?
<shevy>
arup_r what hat?
<ponga>
shevy:
<arup_r>
see my profile pic.. :)
<ponga>
'Don’t have a wife? You might quite reasonably think “I don’t have time to even think about that.” Don’t worry — the company will fix your social calendar for you. It is socially mandatory that your boss, in fulfillment of his duties to you, sees that you are set up with a young lady appropriate to your station. '
<ponga>
so asian, yet so true
evanjs has joined #ruby
<ponga>
lol
<nickbelhomme>
certainty, I want to loop all the capistrano configuration variables...
Takle has quit [Remote host closed the connection]
<ponga>
boss would be glad to fix you up!
<Hanmac>
Areessell: maybe you already change that, per default it does
<nickbelhomme>
but it is in ruby and the docs don't mention on how to do that
<agent_white>
Areessell/shevy: I FOUND IT!
<nickbelhomme>
so I tried to extract that from reading the code, but I failed
<nickbelhomme>
certainty, indeed capistrano doesn't throw an error anynore, but it doesn't work either... I am debugging now
anarang has quit [Quit: Leaving]
tristanp has quit [Remote host closed the connection]
Stalkr_ has joined #ruby
freerobby has joined #ruby
eka has joined #ruby
Xeago has joined #ruby
<shevy>
guys
hornairs has joined #ruby
<shevy>
should we query an instance variable directly in a class, or should we use a method for it?
Xeago has quit [Remote host closed the connection]
<shevy>
if @use_colours
<shevy>
vs
<shevy>
if use_colours?
Takle has joined #ruby
<certainty>
nickbelhomme: have fun
doodlehaus has quit []
<certainty>
shevy: @use_colours
{xenomorph} has quit [Ping timeout: 258 seconds]
<certainty>
we've had that conversation some time back
<shevy>
hmm
<shevy>
but why
tylersmith has quit [Ping timeout: 258 seconds]
<certainty>
shevy: we're talking about a class querying its own instance variables right?
<shevy>
yes, internal use
<certainty>
there is no advantage of the method generally
<shevy>
will it be slower?
<certainty>
i think apeiros_ even did some more research on that
<ponga>
use method?
<certainty>
shevy: it certainly will
<Areessell>
It has to do through the call stack each time with the method
pengin has quit [Remote host closed the connection]
<Areessell>
the var is just a var
tylersmith has joined #ruby
{xenomorph} has joined #ruby
sk87 has joined #ruby
pengin has joined #ruby
<shevy>
makes sense
aeo1ack has quit [Ping timeout: 245 seconds]
Channel6 has joined #ruby
hamakn has quit [Remote host closed the connection]
<ponga>
shevy tell me the answer after you've found it plz
<ponga>
im interested to know which is better
hornairs_ has joined #ruby
<shevy>
ponga first I will try to determine how much slower the method invocation is
<godd2>
shevy you are correct. ill be pushing out a newer version of dare either today or tomorrow
tristanp has joined #ruby
<Areessell>
ponga: Referencing the variable is clearly better O_o
<shevy>
godd2 \o/
<ponga>
so querying is faster than method
jaequery has joined #ruby
Xeago has joined #ruby
dts|pokeball has joined #ruby
hornairs has quit [Ping timeout: 240 seconds]
pengin has quit [Ping timeout: 255 seconds]
jpstokes has joined #ruby
<jpstokes>
Mongoid question: Hello....I'm getting the following error when I run the site test on a project that I just took over. I'm not sure what's causing it: https://gist.github.com/jpstokes/b004aec6952295bc1872
<ponga>
hm
noop has quit [Ping timeout: 245 seconds]
fmcgeough has joined #ruby
tobago has quit [Remote host closed the connection]
<Areessell>
`ancestors` must be empty
banister has joined #ruby
<godd2>
ancestors is a liar anyway
tokik has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
maestrojed has joined #ruby
banister has quit [Read error: Connection reset by peer]
paulfm has quit [Quit: Zzzzz...]
<godd2>
>> a = Object.new; a.singleton_class.singleton_class.ancestors
<workmad3>
certainty: they discovered some great stuff in the quorum experiments :)
kiyote23 has quit [Ping timeout: 255 seconds]
Timgauthier is now known as timgauthier_away
<shevy>
I also haven't looked at jhass' favourite crystal either
eka has joined #ruby
<jin__>
shevy: shen means diety in mandarin
rismoney1 has joined #ruby
<jin__>
deity*
<certainty>
shevy: like in crystal meth?
tier has quit [Ping timeout: 245 seconds]
<workmad3>
certainty: like perl ranking with a placebo when it comes to language newcomers being able to figure it out :)
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maasha has quit [Quit: Page closed]
<shevy>
" However, all of the following names are not allowed: "
<shevy>
"integer _sally = 10 //an underscore cannot be the first character"
<shevy>
:(
<certainty>
workmad3: lol. I'm currently reading on the page. I don't know if that's something for me but it sounds interesting
<workmad3>
(their placebo was a language with randomly chosen keywords and types)
<godd2>
If I can't try your language in the browser, I don't wanna learn it
agit0 has quit [Quit: This computer has gone to sleep]
<shevy>
hehehe
redondos- has quit [Ping timeout: 264 seconds]
<shevy>
jin__ cool
<workmad3>
certainty: same... interesting work, even if it's not something I'd necessarily use :)
Xeago has quit [Remote host closed the connection]
rippa has joined #ruby
jin__ is now known as jin_
dc_ has joined #ruby
dumdedum has quit [Quit: foo]
tristanp has quit [Remote host closed the connection]
Jackneill has joined #ruby
banister has quit [Read error: Connection reset by peer]
dc_ has quit [Ping timeout: 255 seconds]
yakko has joined #ruby
DonOtreply has joined #ruby
jalcine has quit [Ping timeout: 258 seconds]
camilasan has quit [Ping timeout: 258 seconds]
frog|OFF is now known as green-big-frog
Tamal has joined #ruby
eichenwald has quit [Quit: Leaving]
jalcine has joined #ruby
<green-big-frog>
hi
bahamas has joined #ruby
livathinos has quit []
<bahamas>
hello. anyone know how to disable host key checking for net::ssh?
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<Areessell>
Turn off host
Tamal is now known as tamal
<bahamas>
Areessell: how do you mean?
camilasan has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
kiyote23 has joined #ruby
<certainty>
bahamas: the first step is to think about whether you really want that
<jpstokes>
Mongoid question: Hello....I'm getting the following error when I run the site test on a project that I just took over. I'm not sure what's causing it: https://gist.github.com/jpstokes/b004aec6952295bc1872
<bahamas>
certainty: this is for serverspec used in conjunction with vagrant
<Areessell>
jpstokes: I already told you ancestors must be empty. inspect it
<bahamas>
since I use the same IP for multiple VMs, I don't want to have this check
<jpstokes>
Areessell: oh
<bahamas>
so I want net::ssh to not stop if the host doesn't match what exists in the user's known_hosts
pu22l3r has joined #ruby
<Areessell>
jpstokes: The method is expecting an argument and it's receiving an exploded array so the array must be empty.
Parker0 has quit [Ping timeout: 250 seconds]
<certainty>
bahamas: i don't know it. what i just looked up is that there is the paranoid option for Net::SSH.start which can be set to false
<jpstokes>
gotcha...I'm inspecting now...thankx
<Areessell>
Yep
Calmoto1 has joined #ruby
yakko has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
joonty has quit [Quit: Leaving]
kiyote23 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
AmirolAhmad has joined #ruby
<bahamas>
certainty: ok, thanks
yakko has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mwebb has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
tus has joined #ruby
jheg has quit [Quit: jheg]
GaryOak_ has joined #ruby
einarj has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
dkphenom has joined #ruby
iwishiwerearobot has quit [Quit: >:(]
fivetwentysix has quit [Ping timeout: 250 seconds]
<godd2>
jpstokes on line 258 you're running Page.criteria.for_ids(*ancestors) and its telling you that you aren't passing any arguments
chrishough has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
<Areessell>
godd2: We've been over this a few times now
fivetwentysix has joined #ruby
mikepack has joined #ruby
AmirolAhmad has joined #ruby
Megtastique has joined #ruby
yakko has quit [Ping timeout: 250 seconds]
aswen has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
aganov has quit [Quit: Leaving]
pengin has joined #ruby
mengu__ has joined #ruby
Prometheian_ has quit [Remote host closed the connection]
jaequery has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
klmlfl has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
droidburgundy has joined #ruby
kaspertidemann has quit []
spyderman4g63 has quit [Ping timeout: 250 seconds]
Parker0 has joined #ruby
timonv_ has quit [Remote host closed the connection]
jaequery has quit [Client Quit]
zarubin has quit [Remote host closed the connection]
delianides has quit []
kiyote23 has joined #ruby
karmatr0n has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
kiyote23 has quit [Remote host closed the connection]
devoldmx has joined #ruby
gsd has joined #ruby
seejohnrun has joined #ruby
seejohnrun has quit [Client Quit]
seejohnrun has joined #ruby
kiyote23 has joined #ruby
msgodf has quit [Ping timeout: 244 seconds]
CustosL1men has quit [Ping timeout: 265 seconds]
wroathe has joined #ruby
boombadaroomba has joined #ruby
jobewan has quit [Quit: Leaving]
ArchBeOS has joined #ruby
jobewan has joined #ruby
djdarkbeat has joined #ruby
tristanp has joined #ruby
kiyote23 has quit [Ping timeout: 265 seconds]
allcentury has quit [Ping timeout: 244 seconds]
n80 has joined #ruby
<ArchBeOS>
I have a weird question. I have a collection that normally I would go coll[:outer][:inner][:value][:something] (I didnt create it, it's passed back to me). I also get an array of symbols from another place [:inner, :value, :something]. Is there a way that I can transverse through my initial collection and use the new array of symbols I get as a way to get to what I need to get in the collection (this is tough to explain).
Xeago has joined #ruby
wroathe has quit [Ping timeout: 245 seconds]
eka has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
boombadaroomba has quit [Ping timeout: 245 seconds]
tier_ has quit [Remote host closed the connection]
Calmoto1 is now known as calmoto
<shevy>
ArchBeOS wat
<canton7>
ArchBeOS, sure :)
<shevy>
so you have a hash and an array
<canton7>
the array describes how to traverse the hash
<ArchBeOS>
bingo canton7
<canton7>
I've done this before :P
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<ArchBeOS>
i have no idea how to do this
<shevy>
the way how canton7 explains it sounds so much simpler
kiyote23 has joined #ruby
yakko has joined #ruby
<canton7>
#inject's probably the easiest way to do it
<canton7>
hang on... gonna throw together an example
<canton7>
make sure you understand that before using it ;)
<canton7>
also make sure you comment that :P
yfeldblum has quit [Ping timeout: 264 seconds]
<ArchBeOS>
ok
<avril14th>
what's the regex POSIX bracket expression to match \t \n and like control characters excluding spaces?
<ArchBeOS>
let me look at this for a second
CustosL1men has joined #ruby
<avril14th>
ArchBeOS as in Be Operating System?
<ArchBeOS>
yup
kiyote23 has quit [Remote host closed the connection]
<avril14th>
you are my instant friend, why are you not in #haiku? :)
rippa has joined #ruby
larissa has quit [Quit: Leaving]
lemur has joined #ruby
AlSquirrel has quit [Ping timeout: 255 seconds]
jdj_dk has joined #ruby
spider-mario has joined #ruby
AlSquirrel has joined #ruby
apeiros_ has joined #ruby
larissa has joined #ruby
byprdct has joined #ruby
ghostmoth has joined #ruby
<ArchBeOS>
canton7: let me see if i can explain whats going on. after setting up our hash and array we then inject our array into our hash. Kinda like map, but we are transversing the array and calling the injected object (the hash). The hash isn't transversed since it's the injected item. Am I correct?
<canton7>
ArchBeOS, not sure - not 100% sure I understood you explanation
leo-unglaub has quit [Remote host closed the connection]
<ArchBeOS>
ok let me try gain
mylar has quit []
pika_pika has quit [Ping timeout: 258 seconds]
arup_r1 has joined #ruby
jaequery has joined #ruby
<ArchBeOS>
inject lets us loop through the array passing in each array element and the hash as a whole. we then call hash[key] knowing that hash (the first arg in the block) hasnt changed state.
<ArchBeOS>
was that better canton7 or am i just rubbish?
jdj_dk has quit [Remote host closed the connection]
Avahey has joined #ruby
<avril14th>
yes
Parker0_ has joined #ruby
Parker0 has quit [Read error: Connection reset by peer]
<avril14th>
it passes whatever was previously returned
jdj_dk has joined #ruby
<avril14th>
or for the first item, what you initializedinject with
<ArchBeOS>
OH!
<ArchBeOS>
I see it now
* canton7
stops typing and lets avril14th explain :)
treehug88 has joined #ruby
znn has joined #ruby
sailias has quit [Quit: Leaving.]
<znn>
is there a channel for discussion around rake?
<avril14th>
me too actually, but that's if Richard gets back to work
<godd2>
shevy inject is just reduce
anaeem1 has quit [Remote host closed the connection]
jeff-ooh has quit [Ping timeout: 272 seconds]
<shevy>
ok but that means what
<shevy>
what is reduced?
<godd2>
recude reduces a collection by one dimension
<godd2>
for example an array into the sum of its elements
<shevy>
godd2 btw I decided to seriously learn both rails and C next year (that is, I learned snippets in both but gave up due to boredom). Which one should I start with though?
rshetty has quit [Remote host closed the connection]
<Hanmac>
godd2: i still prefer #inject over it
banister has joined #ruby
<powersurge>
if I have a switch statement inside of a while loop and do a 'break' will it break out of the while loop as I expect or will it be swallowed up by the switch statement even though ruby's case has an implicit break?
<godd2>
you 'reduce' from 'many' to 'one'
<Hanmac>
shevy if you learn C first you might help me with rwx and other stuff
<godd2>
or you can 'inject' from 'many' into 'one'
jeremywrowe has joined #ruby
<godd2>
of course, that 'one' can be 'one array' e.g.
<shevy>
well reduce is a better term
<shevy>
inject reminds me of a syringe and I hate syringes
<godd2>
>> [1,2,3,4,5].reduce([]) {|acc, i| acc << i }
<jhass>
godd2: when you write an inject that always returns the same object, consider each_with_object instead
<shevy>
well I usually combine it with some kind of user input or user action. Been a while since I last tried to write a game in rubygnome... but I was using ruby 1.8.7; I still haven't ported like 80% of my ruby-gnome code to 2.x era...
renderful has quit [Remote host closed the connection]
dstarh has joined #ruby
<godd2>
jhass may I ask why?
valeriansaliou has quit [Quit: Be back later ...]
<jhass>
because it communicates intention much better
<godd2>
to whom?
<shevy>
to jhass
valeriansaliou has joined #ruby
pika_pika has joined #ruby
<jhass>
the reader of your code of course
patrick99e99 has joined #ruby
<shevy>
I wouldn't know the first thing about any difference between .inject or .each_with_object, although the name .each_with_object would seem to make more sense - but it does not seem to match to what godd2 described .reduce does
<jhass>
inject/reduce reduce a set of values to a single value, map/each_with_object transform a set of values into a set of new values
bodgix_wrk1 has quit [Client Quit]
<shevy>
.each_with_object is the same as .map ?
bodgix_wrk has joined #ruby
<jhass>
no
<godd2>
"inject/reduce reduce a set of values to a single value" yea and my code reduced a set of values into a single array
<jhass>
an array is a set of values
ramfjord has quit [Ping timeout: 258 seconds]
msgodf has joined #ruby
Xeago has quit [Remote host closed the connection]
<godd2>
its also a single vlue
tangorri has quit [Read error: Connection reset by peer]
rismoney1 has quit [Ping timeout: 250 seconds]
terlar has quit [Ping timeout: 256 seconds]
<jhass>
well, everything is, not the point
<shevy>
godd2 I keep on asking myself why there are not more games written in ruby
bodgix_wrk has quit [Client Quit]
<havenwood>
shevy: map is: each_with_object [] do |item, array| array << block.call(item) end
<jhass>
also you don't have to care about ; foo or that << returns self
JBreit has joined #ruby
tier has joined #ruby
tier has quit [Read error: Connection reset by peer]
djdarkbeat has quit [Read error: Connection reset by peer]
<godd2>
jhass well I'll agree that each_with_object probably conveys intention better in general, but I don't agree with your reasons :P
Megtastique has joined #ruby
tier has joined #ruby
anaeem1 has joined #ruby
n80 has quit [Quit: n80]
jdj_dk has joined #ruby
<jhass>
what are your reasons then?
dseitz has joined #ruby
Parker0_ has quit [Ping timeout: 272 seconds]
<godd2>
my reason is that "each_with_object" has the words "each" "with" and "object"
centrx has joined #ruby
<epitron>
shevy: lsegal tried writing bindings to opencl in ruby.... the problem was that shitloads if integers have to be exchanged between MRI and opencl, and in ruby, they're objects
djdarkbeat has joined #ruby
<epitron>
so it becomes a huge bottleneck
karmatr0n has joined #ruby
<epitron>
things like that kind stuck in ruby
econerd4ever has joined #ruby
<epitron>
that's probably why mruby is being developed
sambao21 has quit [Quit: Computer has gone to sleep.]
byprdct has quit [Client Quit]
<epitron>
it lets you query a hash by using another hash -- it matches the fields in the query hash that are there, and fills in the ones that are missing
<epitron>
it's a bit like a template match
<epitron>
{"name" => nil}
arya_ching has quit []
byprdct has joined #ruby
agit0 has quit [Quit: This computer has gone to sleep]
wallerdev has joined #ruby
chinmay_dd has quit [Quit: Leaving]
DonOtreply has joined #ruby
roolo has quit [Ping timeout: 258 seconds]
Techguy305 has joined #ruby
pengin has joined #ruby
TomyWork has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
<havenwood>
epitron: so what're the deep_map problems? just stack level too deep?
fivetwentysix has joined #ruby
tristanp has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
sailias has quit [Quit: Leaving.]
PrincessAuv is now known as Auv
n1lo has quit [Ping timeout: 250 seconds]
n1lo has joined #ruby
sambao21 has quit [Client Quit]
tristanp has joined #ruby
kaspertidemann has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Auv is now known as PrincessAuv
karmatr0n has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
boombadaroomba has joined #ruby
karmatr0n has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dc_ has joined #ruby
geggam has quit [Ping timeout: 265 seconds]
adriancb has joined #ruby
ki0 has quit [Ping timeout: 245 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
<epitron>
hah, no, i just couldn't wrap my head around the recursion when i was writing it
<epitron>
made 2 or 3 attempts, and i gave up
<epitron>
abstractly it was simple
<epitron>
it was a few years ago -- i can't remember what was hard about it anymore
<epitron>
i'll uncomment the specs if you wanna try it :)
<havenwood>
arup_r: try with an absolute path, __dir__ is the nicest way
<Altonymous>
So a co-worker and I are having a debate. It’s about handling null/nil values in data.. The example is data is pulled out of a database.. in this case sometimes the data contains null/nil values. We want to truncate the data to only the first few characters. We could use coalesce to convert nulls to empty strings or we could call .to_s on the data after it out before doing the truncation. Lastly we could do both. The truncation
<Altonymous>
happens after some data manipulation has occured, but that field is not changed, but doesn’t mean it won’t be in the future. Any opinions on which we should do?
<arup_r>
But I tried require 'task' and got Load error.. and then did require './task' worked.. But didn't get why worked
<havenwood>
arup_r: in Ruby 1.8, "." was in the $LOAD_PATH. they decided that was a *bad idea*, removed it from $LOAD_PATH and created #require_relative and __dir__
<havenwood>
arup_r: change `File.dirname(__FILE__)` to `__dir__` or `File.dirname(File.realpath(__FILE__))` and see how that works?
<Altonymous>
epitron, ultimately we want the nulls to be empty strings when we put the data into the next table.. so we want to convert it.. we are just debating when we should.
Timgauthier has joined #ruby
kirun has joined #ruby
<Altonymous>
1 of us says we should do it in 1 place and it doesn’t matter where.. the other says we should do it in both places to be safe.
<arup_r>
havenwood: Ok
Timgauthier has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
<epitron>
i stole a __DIR__ method from the guy who made ramaze :)
<epitron>
never really used it much though
SHyx0rmZ has quit [Remote host closed the connection]
<apeiros_>
manveru
<epitron>
that's the one!
<epitron>
i wonder where he is now
<epitron>
he was working on an editor in ruby last time i saw
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
geggam has quit [Remote host closed the connection]
<epitron>
Altonymous: lol, i don't think it really matters. this is like arguing about what colour to paint a bike shed
lolmaus has quit [Quit: Konversation terminated!]
<epitron>
it's like throwaway code, right?
<epitron>
it's just importing some data?
<Altonymous>
epitron, i think it does matter. It’s not throwaway code
<Altonymous>
no it’s a backend process that is summarizing data
SHyx0rmZ has joined #ruby
yokel has joined #ruby
<epitron>
*shrug*
arrubin has joined #ruby
<epitron>
why don't you do both
<epitron>
and see what happens
<epitron>
each coworker implements their preferred solution
<epitron>
you see what happens to the system
baweaver has joined #ruby
<Altonymous>
1 is concerned if the data is manipulated between when it’s pull and when it’s truncated it will throw an error and the code will fail. The other says it should throw an error to identify that the data was manipulated incorrectly, which the counter argument is that is the point of the test cases not the point of code to catch problems in other areas of the code.
<Altonymous>
Because we process terrabytes of data per hour..
<arup_r>
havenwood: used... __dir__.. Now require './task.rb' or require 'task.rb' neither works... Then what is the point to add the project root to the $LAOD_PATH ?
<Altonymous>
we can’t just throw it in and see what happens.. we have to address multiple cases
<epitron>
i didn't say to ship it with both implementations
<havenwood>
arup_r: i guess first say why you're not using require_relative?
<epitron>
experiments don't need to be shipped
<havenwood>
arup_r: but the point of adding directories to the load path is to make code relative to them loadable via require
<havenwood>
typically
<epitron>
this is computer science bro! do an experiment!
<arup_r>
Yes.. That's the only thing I have to use.. :)
<epitron>
it's probably better to mock it up than to just argue
<havenwood>
Altonymous: to_s when you want a string
<arup_r>
havenwood: Yes then how would I require.. as with __dir__, none of them worked..
<arup_r>
got your point......... havenwood:
gr33n7007h has quit [Ping timeout: 245 seconds]
n80 has joined #ruby
<havenwood>
arup_r: note that `__dir__` (the directory of the file from which the method was called) is not always the same as `Dir.pwd` (the current working directory).
<banister>
epitron hey eppy
wjimenez5271 has quit []
pu22l3r_ has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
wjimenez5271 has joined #ruby
_5kg has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
<arup_r>
havenwood: Got it... What if, I add all the project directories to the load path? Is it bad approach ?
gfawcettpq has quit [Ping timeout: 272 seconds]
tristanp has joined #ruby
pu22l3r has joined #ruby
jamesaxl has joined #ruby
fernandolopez has joined #ruby
geggam has joined #ruby
snath has quit [Ping timeout: 245 seconds]
<havenwood>
arup_r: not sure i follow what a project dir is. but typically you add only lib/ then require relative to that, by namespace.
<havenwood>
arup_r: is this a gem? an app?
<arup_r>
Sinatra app
<arup_r>
I'm writing
green-big-frog is now known as frog|OFF
melik has joined #ruby
jdj_dk has joined #ruby
yfeldblum has joined #ruby
baweaver has quit [Remote host closed the connection]
agit0 has joined #ruby
jgrevich_ has joined #ruby
jgrevich has quit [Ping timeout: 256 seconds]
jgrevich_ is now known as jgrevich
AlSquirrel has quit [Quit: This computer has gone to sleep]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
<havenwood>
arup_r: in your spec, you don't get the $LOAD_PATH you set in ./todo.rb until *after* you've required todo.rb.
mozzarella has quit [Ping timeout: 250 seconds]
<arup_r>
havenwood: Yes.. I am changing now.. one by one :)
yfeldblum has quit [Ping timeout: 245 seconds]
<havenwood>
arup_r: often folk have a helper.rb that does the requiring for all the specs
<arup_r>
ok.... havenwood that arrangement I'll make later
<arup_r>
I'll remember your point
<arup_r>
I'm doing it in tiny steps
Seich has quit [Ping timeout: 258 seconds]
<havenwood>
arup_r: Don't go crazy modifying $LOAD_PATH, try to keep it minimal. :)
<arup_r>
yes yes...
hornairs_ has quit [Quit: hornairs_]
<shevy>
listen to havenwood arup_r - he has fathered a great many ruby objects in his life
<arup_r>
something is happening under the curtain.. I want to know what is that?
goodenough has quit [Remote host closed the connection]
<havenwood>
arup_r: how are you running the specs?
<arup_r>
rspec spec
agit0 has quit [Quit: This computer has gone to sleep]
<arup_r>
and all test got passed
<arup_r>
previously I used in each file require 'rspec'
<arup_r>
Now I removed... and all tests are passing
* arup_r
found out something strange.......... :(
huddy has quit [Quit: Connection closed for inactivity]
asmodlol has quit [Ping timeout: 245 seconds]
wjimenez5271 has quit []
karmatr0n has joined #ruby
shazaum has quit [Quit: Leaving]
<jidar>
is there a way to in pry, set a breakpoint of some sort to enter a debugger?
Stoge88 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jidar>
is that a pry-debug thing?
asmodlol has joined #ruby
shazaum has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
goodenough has joined #ruby
<havenwood>
arup_r: if you run the spec `ruby task_spec.rb` it'll fail as you expect. i think it's likely that rspec-core that your rspec executable is coming from does the require.
<arup_r>
havenwood: But there is a need atleast one place who will do the job..... and where it is..
yfeldblum has joined #ruby
<arup_r>
I have no answer
<havenwood>
arup_r: huh?
<arup_r>
means ?
<jidar>
oh!
<jidar>
thanks havenwood
arietis_ has joined #ruby
seejohnrun has joined #ruby
Altonymous has quit [Quit: Altonymous]
<havenwood>
arup_r: you're running rspec with `rspec`, it's doing it. try running it with `ruby` if you don't want to look through the rspec-core code: https://github.com/rspec/rspec-core
chipotle has joined #ruby
<arup_r>
ok
<arup_r>
one moment
yfeldblum has quit [Remote host closed the connection]
jstad has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
<arup_r>
havenwood: Hehehe.. Correct! Got it ...
shazaum has quit [Client Quit]
wjimenez5271 has joined #ruby
LouisRoR has quit [Ping timeout: 258 seconds]
shazaum has joined #ruby
* arup_r
is wishing, havenwood "Happy new year", in advance!
shazaum has quit [Changing host]
shazaum has joined #ruby
<shevy>
hey
<shevy>
still 2 weeks to go
timonv_ has joined #ruby
* arup_r
don't know God's plan... :(
* arup_r
playing do-or-die with Ruby....
powersurge has left #ruby ["WeeChat 0.4.3"]
baweaver has quit [Remote host closed the connection]
snath has joined #ruby
zoite__ has quit [Quit: Leaving]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zz_twistedpixels is now known as twistedpixels
chipotle has quit [Remote host closed the connection]
atmosx_ has joined #ruby
livathinos has joined #ruby
chipotle has joined #ruby
sailias has quit [Quit: Leaving.]
supersym has joined #ruby
sailias has joined #ruby
xsdg_ has quit [Quit: Reconnecting]
xsdg has joined #ruby
atmosx has quit [Ping timeout: 258 seconds]
jdj_dk has quit [Ping timeout: 264 seconds]
noop has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
mwlang has joined #ruby
Seich has quit [Ping timeout: 258 seconds]
<mwlang>
what’s the best way to send a fully-formed SOAP xml message to a server? I wanted to use savon, but it doctors the messages by adding an uneeded envelope/body around the xml message I have constructed
shuber_ has quit [Remote host closed the connection]
<mwlang>
I was thinking to use something like restclient, but its interface doesn’t really lend itself to just sending a raw message.
jack_rabbit has quit [Ping timeout: 250 seconds]
C0deMaver1ck has quit [Ping timeout: 258 seconds]
Akuma has joined #ruby
mengu__ has quit [Remote host closed the connection]
arietis_ is now known as arietis
Seich has joined #ruby
C0deMaver1ck has joined #ruby
mordocai has joined #ruby
<mwlang>
faraday looks promising…(checking it out now)
atmosx has joined #ruby
RandyT has joined #ruby
seejohnrun has quit [Quit: leaving]
shuber_ has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
allcentury has quit [Ping timeout: 264 seconds]
atmosx_ has quit [Ping timeout: 256 seconds]
timonv_ has quit [Read error: Connection reset by peer]
tyll_ has joined #ruby
baweaver has joined #ruby
kiyote23 has quit [Remote host closed the connection]
tyll has quit [Ping timeout: 256 seconds]
max96at is now known as max96at|off
kiyote23 has joined #ruby
klmlfl_ has joined #ruby
DonOtreply has joined #ruby
rudisimo has joined #ruby
agit0 has joined #ruby
atmosx has quit [Ping timeout: 244 seconds]
aswen has joined #ruby
klmlfl has quit [Ping timeout: 264 seconds]
doodlehaus has quit [Remote host closed the connection]
rpag has joined #ruby
baweaver has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 265 seconds]
crdpink2 has quit [Quit: q term]
crdpink2 has joined #ruby
byprdct has joined #ruby
crdpink2 has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
crdpink has joined #ruby
jin_ has joined #ruby
pengin_ has quit [Remote host closed the connection]
tristanp has quit [Remote host closed the connection]
doodleha_ has joined #ruby
dfinninger has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
ozzloy_ is now known as ozzloy
LouisRoR has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
timonv_ has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
jin_ has quit []
jin_ has joined #ruby
sambao21 has joined #ruby
sandelius has joined #ruby
msgodf has quit [Ping timeout: 245 seconds]
conniemj has joined #ruby
pengin has quit [Ping timeout: 265 seconds]
mordocai has quit [Ping timeout: 258 seconds]
sambao21 has quit [Client Quit]
tristanp has joined #ruby
sarmiena_ has joined #ruby
dkphenom has joined #ruby
davedev2_ has joined #ruby
divi has joined #ruby
benweint has joined #ruby
davedev24_ has quit [Ping timeout: 258 seconds]
Stoge88 has joined #ruby
comm64 has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
pengin has joined #ruby
<comm64>
say I have some ruby source that isnt commented and there is no documentation, is there anything that can generate documentation based on the source code?
wroathe has quit [Quit: leaving]
kish` has quit [Changing host]
kish` has joined #ruby
ponga has joined #ruby
allcentury has joined #ruby
<comm64>
rdoc
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
obscured has quit [Quit: leaving]
benweint has quit [Quit: Computer has gone to sleep.]
kish` is now known as kih
kih is now known as kish
DonOtreply has quit [Quit: DonOtreply]
sambao21 has joined #ruby
ponga has quit [Ping timeout: 245 seconds]
lolmaus has joined #ruby
jgrevich has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
sambao21 has quit [Ping timeout: 258 seconds]
dfinninger has joined #ruby
livathinos has quit [Remote host closed the connection]
shuber_ has quit [Remote host closed the connection]
oleo has quit [Quit: Verlassend]
sambao21 has joined #ruby
baweaver has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
oleo has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
spyderman4g63 has quit [Read error: Connection reset by peer]
jam___ has joined #ruby
sanguisdex has joined #ruby
oleo__ is now known as oleo
Seich has quit [Ping timeout: 258 seconds]
decoponio has quit [Quit: Leaving...]
rylev has joined #ruby
Haiiro has quit [Ping timeout: 256 seconds]
jgrevich has joined #ruby
ponga has quit [Ping timeout: 272 seconds]
jgrevich has quit [Client Quit]
mengu has joined #ruby
mengu has joined #ruby
axilla_ has joined #ruby
baweaver has joined #ruby
Seich has joined #ruby
shuber_ has quit [Remote host closed the connection]
axilla has quit [Ping timeout: 256 seconds]
jzinedine has joined #ruby
pengin has joined #ruby
tristanp has quit [Remote host closed the connection]
Akuma has quit [Quit: So long sukkas!]
jzinedine has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
olivier_bK has joined #ruby
studiotate has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby
treehug8_ has joined #ruby
studiotate has joined #ruby
treehug88 has quit [Ping timeout: 272 seconds]
Seich has quit [Ping timeout: 258 seconds]
kaspertidemann has quit []
shuber_ has joined #ruby
treehug88 has joined #ruby
kaspertidemann has joined #ruby
reinaldob has quit [Remote host closed the connection]
shazaum has quit [Quit: Leaving]
studiotate has quit [Ping timeout: 258 seconds]
Seich has joined #ruby
adriancb has quit [Remote host closed the connection]
treehug8_ has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
kyank__ has joined #ruby
nrsk has joined #ruby
shuber_ has quit [Remote host closed the connection]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yalue has quit [Quit: return 0;]
shuber_ has joined #ruby
gsd_ has joined #ruby
kyank_ has quit [Ping timeout: 258 seconds]
Areessell has joined #ruby
gsd has quit [Ping timeout: 272 seconds]
NightMonkey has joined #ruby
asterite has quit [Quit: asterite]
kyank__ has quit [Ping timeout: 250 seconds]
JohnBat26 has joined #ruby
sambao21 has joined #ruby
treehug8_ has joined #ruby
baweaver has joined #ruby
DonOtreply has joined #ruby
AndyBotwin has joined #ruby
Seich has quit [Ping timeout: 258 seconds]
nicolast_ has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
treehug88 has quit [Ping timeout: 255 seconds]
klmlfl_ has quit [Remote host closed the connection]
klmlfl has joined #ruby
dc_ has joined #ruby
n1lo has quit [Quit: Leaving]
adriancb has joined #ruby
C0deMaver1ck has quit [Ping timeout: 258 seconds]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
econerd4ever has joined #ruby
Seich has joined #ruby
baweaver has quit [Remote host closed the connection]
rismoney1 has joined #ruby
C0deMaver1ck has joined #ruby
LBRapid has quit [Ping timeout: 258 seconds]
jalcine has quit [Ping timeout: 258 seconds]
jalcine has joined #ruby
dc_ has quit [Ping timeout: 250 seconds]
LBRapid has joined #ruby
parduse has quit []
klmlfl has quit [Ping timeout: 245 seconds]
JBreit has left #ruby ["Leaving"]
emmesswhy has quit [Quit: This computer has gone to sleep]
DonOtreply has quit [Quit: DonOtreply]
<codehotter>
Can I do a kind of bait and switch with classes? Let's say calling code does Resource.new(info), but Resource class 'turns itself' into ResourceA or ResourceB depending on info?
ixti has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
_ixti_ has quit [Ping timeout: 264 seconds]
DonOtreply has joined #ruby
<jhass>
codehotter: you would need to overwrite Resource::new but don't do that
parduse has joined #ruby
<jhass>
although this couples the parent sort of to the child classes, which you seem to want to do anyway, I would suggest Resource.build or something like that
tristanp has joined #ruby
rajeshchawla has joined #ruby
<jhass>
that is add a class method that does what you want, don't break new
caiges has joined #ruby
<apeiros_>
(don't break the common expectation on new)
<jhass>
also perhaps make Resource a module if there's never an instance of it
Jackneill has quit [Remote host closed the connection]
parduse has quit [Client Quit]
thumpba has joined #ruby
caiges has quit [Client Quit]
caiges_ has joined #ruby
codecop has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
mloveless has quit [Remote host closed the connection]
<nickjj>
if i wanted to convert a string such as: '1..100' into a proper range, do you guys think: Range.new(*self.split('..').map(&:to_i)) is the most clear implementation?
tkuchiki has joined #ruby
Sunlorhic has quit [Ping timeout: 265 seconds]
asterite has joined #ruby
spyderman4g63 has joined #ruby
chrishough has joined #ruby
thumpba_ has joined #ruby
asterite has quit [Read error: Connection reset by peer]
axilla has joined #ruby
parduse has joined #ruby
<Areessell>
Just out of curiosity... why do you want to do this?
spyderma_ has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
axilla_ has quit [Ping timeout: 264 seconds]
<nickjj>
Areessell: i have an app setting which populates a select dropdown box in a rails app with the range of 1-100 , and i wanted to store the range as a setting in a yaml based config without hard coding an array
thumpba has quit [Ping timeout: 258 seconds]
Calmoto1 has joined #ruby
freerobby has quit [Quit: Leaving.]
Kristien has joined #ruby
<Areessell>
Just store the start and end values. As decimals.
ebahsini9 has joined #ruby
<Areessell>
Or use the Ruby range within the YAML file
evanjs has quit [Remote host closed the connection]
fabrice31 has joined #ruby
ponga has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
yfeldblu_ has joined #ruby
pecg has joined #ruby
cesarstafe has quit [Ping timeout: 258 seconds]
timonv_ has quit [Remote host closed the connection]
<pecg>
Hello, I'm just initiating with Ruby, but I want to use a general purpose databse gem that can use databases in PostgreSQL and its complete objects.
havenwood has quit [Remote host closed the connection]
n80 has quit [Quit: n80]
<centrx>
pecg, Something like 'Sequel' or 'ActiveRecord' ?
<centrx>
pecg, That doesn't look any different than using the database connector pg gem
aclearma_ has quit [Quit: I'm out!]
<atmosx>
pecg: I'd go with sequel
<atmosx>
pecg: you want to write raw SQL queries or you want to use an ORM?
rajeshchawla has quit [Remote host closed the connection]
roolo has joined #ruby
arup_r has quit [Quit: Leaving.]
<zenspider>
Using the 'pg' gem is just fine. if you want more abstractions on top I'd go with activerecord or sequel.
<pecg>
certainty, atmosx: Sequel looks with heavy active maintainance
<zenspider>
activerecord is warning free. sequel is not. so I'm biased towards activerecord
<zenspider>
I need my tests to run clean
sambao21 has quit [Quit: Computer has gone to sleep.]
<atmosx>
pecg: ORMs makes your life easier and create an abstraction layer between you and the DB. But if you want go use SQL directly, go with the pg gem
<powersurge>
I got here via stepping through an exception I was receiving with the delayed_job
<Areessell>
The block is the default value of new keys
<powersurge>
I can gather that it's iterating in some way and that h is probably the hash that is newly instantiated, but I don't know how it's deciding on what to slip into klass or what it's iterating over
<pecg>
atmosx: ORM is easier I know, but I just want to invoke functions and procedures from the database directly. I have some heavy programming in postgres
<powersurge>
when a nil is in there as klass and it calls klass.name it tosses a 'nil doesn't have a name method error'
<powersurge>
but I'm not really sure where the nil is coming from so I'm working backwards from the library code
rajeshchawla has quit [Client Quit]
<zenspider>
powersurge: are you using YAMLtree directly?
rajeshchawla has joined #ruby
<powersurge>
no, I'm not even using psych directly
<powersurge>
delayed_job
<zenspider>
pecg: then just use the pg gem
<zenspider>
powersurge: so where is the klass.name part? is that in your code?
<powersurge>
no, that's in psych
chu has joined #ruby
<powersurge>
I was stepping through the code with pry to see where the breakdown was happening
chu has quit [Changing host]
chu has joined #ruby
<zenspider>
well... the caller is passing in nil
<zenspider>
so go up one level
<zenspider>
the args are: Hash.new { |hash, key| ... }
<pecg>
zenspider: I guess it also works with calling procedures for insertions and updates, considering I can write ruby functions to call them and give them some arguments
TgMts has joined #ruby
<zenspider>
so the key itself is the nil
<powersurge>
yep
rajeshchawla has quit [Remote host closed the connection]
<powersurge>
trying to figure out atm why a nil is getting passed in
mloveless has joined #ruby
<powersurge>
but I had to get to this point to even discover that that was the problem in the first place
ebahsini9 has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
rajeshchawla has joined #ruby
<powersurge>
debugging this is such a pain in the tuckus because it looks like the function is being memoized which means I have to reload everything to step through it again
<codehotter>
I write this a lot: def initialize(a,b,c) @a = a, @b = b, @c = c, etc. Is there a shorthand for that?
<zenspider>
powersurge: jesus. the only place where that cache is used in that file is passing in target.class... how that's nil? not really possible/likely.
<zenspider>
so delayed_job must be doing some wacky shit on their own (or it is elsewhere in psych)
<powersurge>
I'll get back to you once I work it out ha ha
<powersurge>
I'll get to the bottom of it :>
geggam has quit [Ping timeout: 264 seconds]
<zenspider>
just go up a few levels and poke around
<zenspider>
powersurge: do this: copy that method (including scoping) and put in your pry hook if klass is nil
thumpba_ has quit [Remote host closed the connection]
rajeshchawla has quit [Remote host closed the connection]
<zenspider>
codehotter: class MyClass < Struct.new(:a, :b, :c); ... other methods ... end
davedev24_ has quit [Ping timeout: 244 seconds]
dblessing has quit [Ping timeout: 245 seconds]
pecg has quit [Ping timeout: 240 seconds]
weaksauce has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
charliesome has joined #ruby
Deele has quit [Ping timeout: 244 seconds]
<apeiros_>
Struct.new(:a, :b, :c) do …class body… end
Calmoto1 has quit [Ping timeout: 240 seconds]
beef-wellington has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Ping timeout: 245 seconds]
<zenspider>
still need to assign it. I prefer `class` for that
<apeiros_>
creates an unnecessary additional level in the lookup chain
<zenspider>
so?
atmosx_ has joined #ruby
echevemaster has joined #ruby
nfk has quit [Quit: yawn]
<zenspider>
yours creates an open closure instead of a closed one for class scoping. there are always tradeoffs
n80 has joined #ruby
<zenspider>
or should I say "unnecessary open closure" ?
geggam has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros_>
what's an "open closure"? I mean, is there a diff between "closure" and "open closure"?
watermel0n has joined #ruby
<zenspider>
no diff
<zenspider>
what's the diff between "unnecessary additional level" and "additional level"?
atmosx has quit [Ping timeout: 240 seconds]
<apeiros_>
that an "additional level" can have a use while an "unnecessary additional level" doesn't provide any benefit
<apeiros_>
given that I put classes into separate files, I don't think the closure matters
<zenspider>
and I don't think the subclass matters. it's a mentabatory concern
<shevy>
does anyone of you know of some website, ideally with code available, that uses solely markdown .md files? a bit like a static blog perhaps
<atmosx_>
mentabatory?
sambao21 has quit [Quit: Computer has gone to sleep.]
tristanp has quit [Remote host closed the connection]
<atmosx_>
shevy: octopress?!
<shevy>
hmm
<shevy>
let me see
<atmosx_>
shevy: a jekyll based blogging platform?
b-dean has joined #ruby
<zenspider>
atmosx_: mental masturbation
<atmosx_>
zenspider: oh I see
<b-dean>
is this a good place to ask a question about openssl and ruby?
<zenspider>
shevy: mine doesn't JUST do markdown...
<zenspider>
shevy: do you _just_ want a simple markdown -> html setup? Use rake. should be ~5 lines
Photism has joined #ruby
thumpba has joined #ruby
shuber_ has quit [Remote host closed the connection]
<atmosx_>
when using class MyClass < Struct.new(:var) .. there's an instance variable @var created?
<shevy>
zenspider I am not sure yet what I want, I kind of want to try to use something new. I was thinking with markdown I could get a simple style layout already
<apeiros_>
zenspider: "zomg, don't think! you'll mentarbate". sorry. I agree with you that one can go overboard with thinking about a problem. but just applying it to everything is stupid.
<zenspider>
atmosx_: ri Struct
dfinninger has quit []
baweaver has quit [Remote host closed the connection]
sinequanon has joined #ruby
rajeshchawla has joined #ruby
<zenspider>
I don't apply it to everything. I apply it to needless bullshit like "unnecessary additional level" when it doesn't matter in the least.
<apeiros_>
your level of agitation makes it sound like it did matter to you…
AndyBotwin has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<powersurge>
zenspider: do you have recommendations for navigating up the stack?
Techguy305 has joined #ruby
<powersurge>
trying pry-stack_explorer but it doesn't seem to do what I want
<zenspider>
shevy: well... I do my entire website (~1700 pages) with zenweb. it's sorta like jekyll except that it uses rake to do dependencies properly so you don't spend 10 minutes rebuilding the site everytime you save
Axy has joined #ruby
<zenspider>
powersurge: I thought there was a pry-debugger or somesuch... or that pry itself had an "up"
jfran has quit [Ping timeout: 240 seconds]
<b-dean>
ruby -ropenssl -e "OpenSSL::X509::Certificate.new(IO.read('/etc/pki/tls/certs/ca-bundle.trust.crt'))" gives me "nested asn1 error" are there some kinds of certs that openssl can't read? if I just do openssl x509 -text -in ca-bundle.trust.crt it can read it fine
jerius has quit [Ping timeout: 264 seconds]
<zenspider>
powersurge: if not... then just `puts caller.join "\n"`
<apeiros_>
powersurge: there's pry-byebug and pry-stack_explorer. there's probably more.
<powersurge>
pry itself doesn't have an up
<powersurge>
I'm using pry-byebug already, but it doesn't include up & down
Mia has quit [Read error: Connection reset by peer]
<powersurge>
very frustrating
momomomomo has joined #ruby
baweaver has joined #ruby
<zenspider>
caller has file:line, so my editor can just jump through to the right place
jfran has joined #ruby
bascht2 has joined #ruby
m8 has quit [Quit: Sto andando via]
bascht1 has quit [Ping timeout: 245 seconds]
CrazyM4n has joined #ruby
jfran_ has quit [Read error: Connection reset by peer]
kyank__ has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
jfran has quit [Read error: Connection reset by peer]
<Areessell>
This again? You're in a deep rabbit hole, friend
<powersurge>
what a pain
<powersurge>
ridiculous how easy it was to pin down the culprit when I was actually able to traverse the stack
livathinos has quit [Client Quit]
Avahey has quit [Quit: Connection closed for inactivity]
cantonic has joined #ruby
wallerdev has quit [Quit: wallerdev]
<shadeslayer>
hey, so I want to parse something like these options : -a 1,2,3 -b foo
<shadeslayer>
but
<shadeslayer>
1,2,3 can be empty as well
<zenspider>
powersurge: ah. so then the question is what method is trying to be called and why doesn't it exist anywhere?
<shadeslayer>
so basically : foo.rb -a -b foo
<shadeslayer>
in which case optparse goes a bit crazy and parses -b as the value for option a
<shadeslayer>
any clue how I can allow empty values for the first option?
<zenspider>
powersurge: if you can get a repro for this, I think this IS a bug in psych... it should have at least raised an ArgumentError or something saying the method is missing
nicolastarzia has quit [Ping timeout: 256 seconds]
doodleha_ has quit [Remote host closed the connection]
Guest15965 has left #ruby [#ruby]
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crueber has quit [Quit: Leaving.]
benweint has quit [Quit: Computer has gone to sleep.]
Soda has quit [Remote host closed the connection]
<powersurge>
I'm using httparty and it looks like ultimately an httparty::response makes it in there and that subclasses basicobject rather than object and there's no method in psych to handle that
<powersurge>
basicobject's superclass is non-existant so it sends nil which causes the error
yakko has quit [Read error: Connection reset by peer]
<powersurge>
now I gotta figure out why on earth httparty::response is in there in the first place
<zenspider>
powersurge: gotcha. yeah. that seems like a bug is psych's handling of (probably) proxy objects.
<zenspider>
tho tenderlove might just claim GIGO
yakko has joined #ruby
watermel0n has quit [Quit: Busy]
<powersurge>
GIGO?
dopiee has quit [Quit: Leaving]
tenderlove has joined #ruby
dopie has joined #ruby
uptownhr has joined #ruby
<uptownhr>
anybody here have experience with sequel?
<zenspider>
powersurge: garbage in, garbage out
bascht3 has joined #ruby
<uptownhr>
i have a model that is using the Decimal 10,2 scheme
djbkd has quit [Remote host closed the connection]
<uptownhr>
whenever i throw i a value, it turns it into some scientific notation value
<uptownhr>
ie: 99.99 turns in to 0.9999E4
thumpba_ has joined #ruby
<zenspider>
not sure, but I think there is a #sequel channel
mwlang has joined #ruby
procat has quit [Ping timeout: 250 seconds]
<uptownhr>
thanks, i asked in there as well
charliesome has joined #ruby
Sawbones has joined #ruby
thumpba has quit [Ping timeout: 245 seconds]
supersym has quit [Ping timeout: 256 seconds]
marr has joined #ruby
mary5030 has quit [Remote host closed the connection]
treehug8_ has quit []
mary5030 has joined #ruby
djbkd has joined #ruby
thumpba_ has quit [Ping timeout: 240 seconds]
benweint has joined #ruby
sea_local has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
Spami_ has joined #ruby
Spami_ has quit [Remote host closed the connection]
thumpba has joined #ruby
DonOtreply_ has joined #ruby
DonOtreply has quit [Ping timeout: 258 seconds]
DonOtreply_ is now known as DonOtreply
mary5030 has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
Spami_ has joined #ruby
djbkd has joined #ruby
robertt_dex has quit [Remote host closed the connection]
_beechnut has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
rshetty has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
jobewan has quit [Remote host closed the connection]
ohaibbq has joined #ruby
sailias has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
snath has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
icbm has quit [Quit: Computer sleeping]
fabrice31 has joined #ruby
rshetty has quit [Ping timeout: 272 seconds]
mjmac has quit [Ping timeout: 258 seconds]
rockdon has quit [Ping timeout: 258 seconds]
quazimodo has quit [Ping timeout: 264 seconds]
Menorah has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
apeiros_ has quit [Remote host closed the connection]
GaryOak_ has quit [Read error: Connection reset by peer]
LouisRoR has joined #ruby
ohaibbq has quit [Remote host closed the connection]
apeiros_ has joined #ruby
nicolastarzia has joined #ruby
akaiiro has quit [Ping timeout: 255 seconds]
DonOtreply has quit [Quit: DonOtreply]
fabrice31 has quit [Ping timeout: 264 seconds]
akaiiro has joined #ruby
fandi has quit [Quit: Leaving]
ghostmoth has quit [Quit: ghostmoth]
Axy is now known as Mia
baweaver has joined #ruby
snath has joined #ruby
mjmac has joined #ruby
sevvie has joined #ruby
rockdon has joined #ruby
wallerdev has joined #ruby
momomomomo has quit [Quit: momomomomo]
LouisRoR has quit [Ping timeout: 244 seconds]
rubyonrailed has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
<rubyonrailed>
Hey, i'm trying to use `Json.parse' in a script, but i'm getting `uninitialized constant Json (NameError)` this back. I have require 'json' at the top of my file. Am I missing something else?
sambao21 has quit [Quit: Computer has gone to sleep.]
<nickjj>
rubyonrailed: it's JSON not Json
ohaibbq has joined #ruby
<rubyonrailed>
Oh thanks haha
reinaldob has joined #ruby
lampd1 has joined #ruby
josephndenton has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
rudisimo has joined #ruby
<lampd1>
so... newb question
<lampd1>
i need to strip quotes from a string
<lampd1>
i.e. timeframe = "q3"
<lampd1>
i need timeframe = q3
<lampd1>
or to at least return the value like such
ponga has joined #ruby
<bricker`work>
lampd1: I'm confused, is your string "timeframe = \"q3\"" ?
reset has joined #ruby
<lampd1>
no timeframe is a variable storing the string
<lampd1>
or should i pass the value into the function differently? instead of some_function('q3')
stunder has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
<nickjj>
lampd1: have you tried printing the value of timeframe in your example?
mengu has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 250 seconds]
<jhass>
and if so, how did you do that exactly?
yfeldblu_ has quit [Ping timeout: 240 seconds]
<lampd1>
i'm sitting on a pry breakpoint right inside my function ;)
sevvie has joined #ruby
<lampd1>
trying something like `data.calendar.events.timeframe.each do |show|`