<dcope>
for endpoints that accept optional number of parameters?
darrik has joined #ruby
<Paradox>
ariedler, i use android
<ariedler>
Paradox: I meant buying stock *shrugs*
<Paradox>
dcope, most HTTP paramiters are key-value pairs
<Paradox>
so typically no
<Paradox>
hashes however, yes
danielchao has quit [Remote host closed the connection]
<Paradox>
my snoo gem does just that
<dcope>
Paradox: yeah, i tried posting a hash but when it comes in on the server side it's a String
vlad_starkov has quit [Ping timeout: 240 seconds]
<dcope>
o_O
<Paradox>
might want to use HTTParty then
<Paradox>
it properly serializes them into kvps
<dcope>
wonder why i'm seeing a string on the server side
buzzybron has joined #ruby
<Paradox>
HTTPclient isnt very intelligent
<Paradox>
httparty is
tmhr has quit [Ping timeout: 248 seconds]
<dcope>
Paradox: i see... it's a String of a hash lol
fred1 has left #ruby ["WeeChat 0.4.0"]
mikepack has quit [Remote host closed the connection]
<dcope>
Paradox: if i use httparty do you think my server side (rails) componenet will actually parse it as hash?
chipotle has joined #ruby
jkubecki has joined #ruby
sailias has joined #ruby
tw1sted has quit [Quit: tw1sted]
GreenPlastik has quit [Remote host closed the connection]
cburyta has joined #ruby
jkubecki has quit [Ping timeout: 245 seconds]
tmhr has joined #ruby
chipotle has quit [Quit: cya]
subbyyy has quit [Ping timeout: 245 seconds]
takezawa has joined #ruby
<Paradox>
dcope, yes
<Paradox>
params is a hash, for one thing
<Paradox>
so its already serialized into a hash
<Paradox>
but if you're using rails client-server
<Paradox>
you might want to just pass json around
<Paradox>
err
<Paradox>
not client
<Paradox>
but you get the idea
mansi has joined #ruby
nari_ has quit [Ping timeout: 246 seconds]
marcgg has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
<dcope>
hah, i can't even post my body with httparty
<dcope>
seems like it works worse than httpclient
havenwood has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 240 seconds]
adramalech has joined #ruby
marcgg has joined #ruby
<dcope>
oh nvm got it
<dcope>
works better than httpclient
<dcope>
thanks Paradox
mansi has quit [Ping timeout: 245 seconds]
axsuul has joined #ruby
emmanuelux has quit [Remote host closed the connection]
twoism has joined #ruby
oinkon has joined #ruby
<axsuul>
If I wanna run a shell command within ruby and that shell command has a prompt that comes up, how can I access that prompt? I'm using back ticks and nothing comes up, just hangs
dhruvasagar has joined #ruby
ctp has joined #ruby
yshh has joined #ruby
<oinkon>
i have a parsing function that takes a block that recieves the results of that parse function. sometimes parsing fails and i need to handle an error. is there some convention/idiom to do this?
twoism has quit [Remote host closed the connection]
slainer68 has joined #ruby
<oinkon>
i'm passing an extra error parameter to my block
<Apane>
Is Tom-Preston Warner in here?
<oinkon>
but it feels like i'm writing a node.js callback in ruby
marcgg has quit [Read error: Connection reset by peer]
marcgg_ has joined #ruby
citizensinspace has joined #ruby
<oinkon>
maybe that's ok
<Apane>
when I run: s = Song.last
jonahR has quit [Quit: jonahR]
<Apane>
and then s.create_artist(name: etcc) I'm getting an undefined method error for create_artist
Nisstyre-laptop has joined #ruby
<Apane>
even though I have an artist model that is associated with songs
citizensinspace has quit [Client Quit]
<Apane>
strange?
nfk has quit [Quit: yawn]
Asher has joined #ruby
kofno has joined #ruby
Hanmac1 has joined #ruby
angusiguess has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
jimg has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
Davey has joined #ruby
Spaceghost|work has joined #ruby
vwoo has joined #ruby
danshultz has joined #ruby
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
pipework has quit [Ping timeout: 264 seconds]
johnrlive has joined #ruby
pitzips has joined #ruby
SW_ has quit [Remote host closed the connection]
emergion has joined #ruby
kofno has quit [Remote host closed the connection]
orien has quit [Quit: Computer has gone to sleep.]
fred1 has joined #ruby
<fred1>
how can i force ruby interpreter to always execute a predefined script before running another script?
mansi has joined #ruby
mxweas has joined #ruby
nari_ has joined #ruby
goleldar has quit [Read error: Connection reset by peer]
goleldar has joined #ruby
JZTech101 has quit [Ping timeout: 276 seconds]
sailias has quit [Quit: Leaving.]
kofno has joined #ruby
robbyoconnor has joined #ruby
senj_ has joined #ruby
Domon has joined #ruby
cj3kim has joined #ruby
senj_ has quit [Client Quit]
devoldmx has quit [Remote host closed the connection]
<dcope>
hey Paradox still around?
<Paradox>
yauh
r0bby_ has quit [Ping timeout: 248 seconds]
<dcope>
httparty supports multipart right?
<Paradox>
no
<Paradox>
http-multiparty does
<Paradox>
which is a patch on httparty
<Paradox>
lol
<dcope>
that gem doesn't send up the right contnet typ thouhg :(
g_bleezy has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
gildo has quit [Quit: Leaving]
<nightfly>
newest
jfelchner has joined #ruby
lyanchih has quit [Quit: lyanchih]
sailias has quit [Ping timeout: 276 seconds]
cburyta has joined #ruby
bionhart has quit [Ping timeout: 245 seconds]
bionhart has joined #ruby
Dummies_freelan1 has quit [Quit: Leaving.]
Appineer has joined #ruby
Dummies_freelanc has left #ruby [#ruby]
Appineer has left #ruby [#ruby]
icole has joined #ruby
citizensinspace has quit [Quit: citizensinspace]
generalissimo has joined #ruby
icole_ has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
cburyta has quit [Ping timeout: 248 seconds]
oinkon has quit [Quit: leaving]
freerobby has joined #ruby
danielchao has joined #ruby
dmiller has quit [Remote host closed the connection]
danielchao has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
mikepack has joined #ruby
Guga_ has quit [Quit: ~]
<Apane>
this doesn't seem to be working presumably it's bad syntax? scope: :young, where(age: > 20)
cantonic has quit [Quit: cantonic]
danshultz has quit [Remote host closed the connection]
<nightfly>
what are you trying to do?
devoldmx has quit [Read error: Connection reset by peer]
devoldmx3 has joined #ruby
chandankumar has joined #ruby
devoldmx has joined #ruby
angusiguess has joined #ruby
lyanchih has joined #ruby
splittingred has joined #ruby
charliesome has joined #ruby
<Apane>
I'd like to be able to call e.g. Person.young and have it display all of the people whom are older than 20. I've heard that named scopes are good for this but I'm unfamiliar with the syntax
mikepack has quit [Remote host closed the connection]
<Apane>
Person.old rather "" heh
chandankumar has quit [Max SendQ exceeded]
axsuul has quit [Quit: axsuul]
devoldmx3 has quit [Ping timeout: 246 seconds]
chandankumar has joined #ruby
chandankumar has quit [Remote host closed the connection]
<Hanmac1>
Apane: #rubyonrails
eldariof has joined #ruby
<Apane>
Okay
angusiguess has quit [Ping timeout: 248 seconds]
timkohrumel has joined #ruby
JohnE has joined #ruby
Meatant has joined #ruby
dvl` has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
ivanoats has joined #ruby
emergion has joined #ruby
gmci has quit [Ping timeout: 264 seconds]
timkohrumel has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
vlad_starkov has joined #ruby
xjiujiu has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
byprdct has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
TraideRaider has quit [Quit: Page closed]
Nisstyre-laptop has quit [Quit: Leaving]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
gmci has joined #ruby
vlad_starkov has quit [Ping timeout: 255 seconds]
tylersmith has quit [Remote host closed the connection]
ariedler has quit [Remote host closed the connection]
nomenkun has joined #ruby
vwoo has quit [Quit: Computer has gone to sleep.]
mansi has quit [Remote host closed the connection]
Evixion has quit [Read error: Connection reset by peer]
mansi has joined #ruby
lyanchih has quit [Quit: lyanchih]
ioNull has joined #ruby
tmhr has joined #ruby
bseekins has joined #ruby
mahmoudimus has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
<bseekins>
Hello all
adramalech has quit [Ping timeout: 264 seconds]
Dummies_freelanc has joined #ruby
Dummies_freelan1 has joined #ruby
albertone has joined #ruby
Dummies_freelanc has quit [Client Quit]
banghouse has quit [Remote host closed the connection]
bseekins has quit [Client Quit]
bseekins has joined #ruby
bseekins has left #ruby [#ruby]
mansi has quit [Ping timeout: 264 seconds]
ttt has joined #ruby
corehook has joined #ruby
yacks has quit [Ping timeout: 255 seconds]
tmhr has quit [Ping timeout: 264 seconds]
DrCode has quit [Ping timeout: 240 seconds]
SW_ has joined #ruby
kofno has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
tonini has joined #ruby
nomenkun has quit [Remote host closed the connection]
jacobbednarz has joined #ruby
thebastl has quit [Remote host closed the connection]
mansi has joined #ruby
mxweas has quit [Ping timeout: 245 seconds]
jimg has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
jonahR has quit [Quit: jonahR]
mansi has quit [Ping timeout: 264 seconds]
jacobbednarz has quit [Read error: Connection reset by peer]
nkts_ has quit [Read error: Connection reset by peer]
nkts has joined #ruby
johnrlive has joined #ruby
goleldar has quit [Ping timeout: 245 seconds]
tomzx_mac has quit [Ping timeout: 255 seconds]
girija has joined #ruby
lewix has quit [Remote host closed the connection]
stillesjo has quit [Ping timeout: 246 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
cburyta has joined #ruby
mljsimone|bnc is now known as mljsimone
mljsimone is now known as mljsimone|bnc
johnrlive has quit [Ping timeout: 252 seconds]
evelyette has joined #ruby
<evelyette>
hi
<evelyette>
what is the ruby tool that can help me install ruby gems ?
<evelyette>
I've forgotten it's name
<nightfly>
gem
QKO has quit [Ping timeout: 256 seconds]
Evixion has joined #ruby
<evelyette>
no not gem
<evelyette>
something else ...
braoru has joined #ruby
<nightfly>
rvm?
guns has quit [Quit: guns]
QKO has joined #ruby
cburyta has quit [Ping timeout: 240 seconds]
<Apane>
rails?
workmad3 has joined #ruby
bigkevmcd has joined #ruby
<evelyette>
yes rvm thank you
lyanchih has quit [Quit: lyanchih]
sayan has joined #ruby
Nisstyre has quit [Quit: Leaving]
braoru has quit [Ping timeout: 276 seconds]
Davey has joined #ruby
coderhut has quit [Ping timeout: 250 seconds]
mafolz has joined #ruby
coderhut has joined #ruby
dr_bob has joined #ruby
wargasm1 has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
pen has quit [Read error: Connection reset by peer]
pygmael has joined #ruby
pygmael has quit [Excess Flood]
ayaz has joined #ruby
threesome has quit [Ping timeout: 240 seconds]
pen has joined #ruby
pygmael has joined #ruby
thebastl has joined #ruby
lyanchih has joined #ruby
therod has joined #ruby
d2dchat has quit [Remote host closed the connection]
rickmasta has joined #ruby
Sp4rKy_ is now known as Sp4rky
Sp4rky has quit [Changing host]
Sp4rky has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
jds_ has joined #ruby
devoldmx has joined #ruby
pen has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
rickruby has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
solars has joined #ruby
staafl has joined #ruby
arturaz has joined #ruby
rickruby has quit [Ping timeout: 276 seconds]
pierre1 has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
GabboY has joined #ruby
GabboY has quit [Client Quit]
workmad3 has quit [Ping timeout: 248 seconds]
bigkevmcd has joined #ruby
jastix has joined #ruby
jprovazn has joined #ruby
filipe has joined #ruby
mxweas has joined #ruby
mahmoudimus has joined #ruby
alup has joined #ruby
<evelyette>
hi, as far as I understand it I need to use RVM for multiple ruby environments (especially for different ruby versions) and bundler to manage dependencies of a project ... can I also use rvm to manage project dependencies?
coderhut has quit [Quit: Page closed]
persand has joined #ruby
lyanchih has joined #ruby
Macaveli has joined #ruby
GeissT_ has quit [Ping timeout: 255 seconds]
jimg has joined #ruby
dmiller has joined #ruby
boblu has joined #ruby
ffio_ has joined #ruby
zigomir has joined #ruby
apeiros has joined #ruby
ffio has quit [Ping timeout: 248 seconds]
mxweas has quit [Ping timeout: 264 seconds]
JohnBat26 has joined #ruby
Bry8Star{T2 has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
ttt has quit [Read error: Connection reset by peer]
ttt has joined #ruby
enaqx has joined #ruby
cofin has quit [Quit: cofin]
dmiller has quit [Ping timeout: 246 seconds]
tonini has quit [Quit: leaving]
tonini has joined #ruby
sevenfourk has joined #ruby
leonidlm has joined #ruby
hogeo has joined #ruby
sevenfourk has quit [Remote host closed the connection]
Shirakawasuna has quit [Quit: Leaving]
mxweas has joined #ruby
sevenfourk has joined #ruby
bob-lu has joined #ruby
mansi has joined #ruby
afd___ has quit [Remote host closed the connection]
andikr has joined #ruby
hogeo has quit [Remote host closed the connection]
jbpros has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
jbpros has quit [Client Quit]
razi has joined #ruby
Astralum has joined #ruby
mxweas has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 252 seconds]
sideshowcoder has quit [Ping timeout: 264 seconds]
johnrlive has joined #ruby
blaxter_ has joined #ruby
nomenkun has joined #ruby
futilegames has joined #ruby
havenwood has quit [Remote host closed the connection]
hogeo has joined #ruby
dagobah has joined #ruby
jds_ has quit [Remote host closed the connection]
postmodern has joined #ruby
sideshowcoder has joined #ruby
cburyta has joined #ruby
Richie has joined #ruby
nkts has quit [Quit: -]
Mon_Ouie has quit [Ping timeout: 264 seconds]
alem0lars has joined #ruby
Asher1 has joined #ruby
Asher1 has quit [Client Quit]
johnrlive has quit [Ping timeout: 252 seconds]
nomenkun has quit [Ping timeout: 248 seconds]
Asher has quit [Ping timeout: 248 seconds]
Mon_Ouie has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Asher has joined #ruby
codecop has joined #ruby
cburyta has quit [Ping timeout: 264 seconds]
dangerousdave has joined #ruby
wallerdev has quit [Quit: wallerdev]
jfelchner has quit [Ping timeout: 245 seconds]
futilegames has quit [Quit: futilegames]
Richie has quit []
dmiller has joined #ruby
jfelchner has joined #ruby
solars has quit [Ping timeout: 255 seconds]
QKO has quit [Ping timeout: 252 seconds]
a_a_g has quit [Quit: This computer has gone to sleep]
Zeeraw has joined #ruby
redgirl has quit [Ping timeout: 252 seconds]
futilegames has joined #ruby
QKO has joined #ruby
arvindeep has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby
bionhart has joined #ruby
timonv has joined #ruby
browndawg has joined #ruby
bagpuss_thecat has quit [Ping timeout: 256 seconds]
io_syl_ has quit [Quit: Computer has gone to sleep.]
bionhart has quit [Remote host closed the connection]
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
tonini has quit [Ping timeout: 248 seconds]
poga_ has quit [Ping timeout: 245 seconds]
adambeynon has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
yashshah has quit [Read error: Connection reset by peer]
jbpros has joined #ruby
threesome has joined #ruby
brennanMKE has quit [Remote host closed the connection]
Giorgio has joined #ruby
Lemtzas has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
lkba has joined #ruby
futilegames has quit [Quit: futilegames]
yashshah has joined #ruby
Sherwyn has quit [Remote host closed the connection]
Lemtzas has joined #ruby
sean___ has joined #ruby
zodiak has quit [Ping timeout: 264 seconds]
<sean___>
I'm not sure how to ask this question, but when running a block of code, does the block finish itself before running another block called within itself, or does it run another block if when it's called?
mxweas has joined #ruby
<tobiasvl>
the latter
<sean___>
really
rickmasta has quit [Quit: Leaving...]
<tobiasvl>
if i understand you correctly
poga has joined #ruby
<tobiasvl>
can't you just test it?
<sean___>
that doesn't make sense, why wouldn't it finish itself and just place those blocks on top of the stack
brennanMKE has joined #ruby
<sean___>
I'd have no idea how to test such a thing
<apeiros>
because that wouldn't make sense
dhruvasagar has joined #ruby
<tobiasvl>
sean___: that's completely unlike any other program flow though
<apeiros>
and you'd be swearing like crazy because nothing would work
<tobiasvl>
do you know what the stack is?
<tobiasvl>
the stack isn't just blocks waiting to be run
<sean___>
maybe I'm not sure of what it is
<tobiasvl>
like a queue
<sean___>
but to mean the stack is where blocks of code are stack on top of each other to be executed
<tobiasvl>
no
<sean___>
okay fine I don't know what the stack is then
<tobiasvl>
it is that too
<tobiasvl>
the stack is points in the code where the execution should return
philcrissman_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
browndawg has joined #ruby
<sw33tch33ks>
How can I convert an integer value: 1024 to a 64-bit signed integer? I tried [1024].pack("q") but that doesn't seem to be the correct answer.
amedeiros has joined #ruby
enaqx has joined #ruby
banisterfiend has joined #ruby
kiri has quit [Ping timeout: 248 seconds]
codecop has quit [Quit: Išeinu]
kiri has joined #ruby
crazymykl has quit [Quit: Konversation terminated!]
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
yshh has quit [Remote host closed the connection]
stef_204 has joined #ruby
mxweas has quit [Ping timeout: 255 seconds]
yashshah has joined #ruby
digitalcake has joined #ruby
<sw33tch33ks>
tobiasvl: I am using avro to encode/decode messages. One of my fields is type "bytes" . I am able to encode the bytes, but not decode them. According to the avro schema definition you must preface the bytes with a signed 64-bit integer representing the length of the bytes…I am assuming that the bytes I am sending are encoded correctly and it is the prefix of the size of bytes that is incorrect. Not sure how to validate either, actually.
rlb3 has joined #ruby
lyanchih has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<apeiros>
I can haz deleted ze wrong format strink!
<apeiros>
accidentally
yashshah has quit [Read error: Connection reset by peer]
<heftig>
accidently
<apeiros>
accidntly
<sw33tch33ks>
Directly from the Avro schema documentation page (http://avro.apache.org/docs/current/spec.html#Data+Serialization): long: 64-bit signed integer [no mention of endian that I can find…]. It then follows with: bytes are encoded as a long followed by that many bytes of data. It mentions little-endian format for double and float.
arya has quit [Ping timeout: 240 seconds]
<apeiros>
mark_locklear: Integer#&
<apeiros>
well, actually, that won't restrict to digits, but to bits
<apeiros>
if you want to restrict to digits, then to_s[0,8].to_i is probably the easiest.
<mark_locklear>
apeiros, hmm...
vlad_starkov has joined #ruby
<mark_locklear>
apeiros, that looks like that would work...thanx!
razi has joined #ruby
<heftig>
sw33tch33ks: it uses zig-zag encoding
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
andikr has quit [Remote host closed the connection]
bubblehead has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
tmhr has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 276 seconds]
tommyvyo has quit [Quit:]
wesside_ has joined #ruby
guiocavalcanti has quit [Ping timeout: 276 seconds]
bubblehead has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 246 seconds]
arya has joined #ruby
bubblehead has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
thesheff17 has joined #ruby
cburyta has joined #ruby
tommyvyo has joined #ruby
LaPetiteFromage has joined #ruby
sepp2k has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
rismoney has joined #ruby
dorei has joined #ruby
<dorei>
hello, how can i go from 0x55783912 to 0x783912 ?
stopbit has joined #ruby
mikepack has joined #ruby
cburyta has quit [Ping timeout: 264 seconds]
<rismoney>
I have this array of hashes. [{"pcad01"=>{"mgmt406"=>{"fp"=>"1.2.3.5"}, "mgmt405"=>{"ip"=>"1.2.3.4"}}}, {"pcad02"=>{"mgmt407"=>{"ip"=>"1.2.3.4"}}} I am having a hard time (using map) getting a resulting array of just [1.2.3.5] all the fp key values. the array of hashes is obviously much bigger than this.
<tobiasvl>
dorei: ... what?
<dorei>
tobiasvl: how to discard the first byte
<tobiasvl>
oh. right
<dorei>
some bit shifting or smt
<dorei>
hmm
<dorei>
i could logical and with a mask
bubblehead has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
browndawg has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
ffranz1 has quit [Read error: Connection reset by peer]
ctp has quit [Read error: Connection reset by peer]
<banisterfiend>
Hanmac: i dont understand german jokes..can u explain?
persand has quit [Quit: persand]
alex__c2022 has joined #ruby
kobain has joined #ruby
<Hanmac>
the green part:"Tree" the brown part:"also Tree"
binaryplease has joined #ruby
<banisterfiend>
cute
<banisterfiend>
:)
jprovazn has quit [Quit: Leaving]
<banisterfiend>
Hanmac: you forgot i didnt speak german? :P
arya has joined #ruby
graydot has joined #ruby
<MrZYX>
we're always confused which german words are english ones too and which aren't
daniel_- has quit [Read error: Operation timed out]
viszu has joined #ruby
zaebst has quit [Quit: leaving]
zaebst has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
<Hanmac>
some german ones thinks that "Handy" (german word for Mobilephone) is english because it has the "y" at the end :P
adkron has joined #ruby
tk_ has quit [Quit: ばいばい]
ariedler has joined #ruby
girija has joined #ruby
b0oh has left #ruby [#ruby]
jrajav has joined #ruby
rhys has joined #ruby
cmarques has quit [Ping timeout: 264 seconds]
<apeiros>
well, it is english, but it's not used in the english language with that meaning :)
slainer68 is now known as NicolasLeTrolleu
BSaboia has joined #ruby
NicolasLeTrolleu is now known as slainer68
leonidlm has quit [Ping timeout: 240 seconds]
ravster has joined #ruby
schaerli has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
dhruvasagar has quit [Ping timeout: 276 seconds]
<banisterfiend>
haha
<banisterfiend>
the english slang meaning is a bit.. different ;)
<banisterfiend>
oh
<banisterfiend>
it can be useful of course, but i think it also can mean handjob
<banisterfiend>
can mean*
tagrudev has quit [Remote host closed the connection]
jbinto has quit [Remote host closed the connection]
johnmilton has joined #ruby
stef_204 has joined #ruby
burlyscudd has quit [Quit: Leaving.]
sayan has quit [Read error: Connection reset by peer]
bigoldrock has joined #ruby
timkohrumel has joined #ruby
wolcanus has quit [Remote host closed the connection]
binaryplease has quit [Quit: WeeChat 0.4.1]
_Amaan has quit [Read error: Connection reset by peer]
jude01 has joined #ruby
wallerdev has quit [Quit: wallerdev]
SW_ has quit [Remote host closed the connection]
_Amaan has joined #ruby
<jude01>
how do i reference a parameter passed to a def that has same name as local variable within the def?
<banisterfiend>
jude01: if you overwrite it, then you can't
defaultro has joined #ruby
<banisterfiend>
same as any language :)
<banisterfiend>
(except javascript perhaps where u can always access the parameters)
SW_ has joined #ruby
enebo has joined #ruby
<jude01>
i mean is there some sort of self.options = options (of the paramter)
ntus1017 has quit [Remote host closed the connection]
axsuul has joined #ruby
wolcanus has joined #ruby
jimg has joined #ruby
<defaultro>
hey guys, I'm confused about my local setup. I'm just following a wiki here at work. When I execute rackup, it creates a tcp web server. Is ruby a web server too? Or is our code which was written in ruby starts as a web server?
<apeiros>
jude01: parameters are local variables
<apeiros>
so no, as banisterfiend already said.
baroquebobcat has joined #ruby
defaultro has quit [Changing host]
defaultro has joined #ruby
defaultro has joined #ruby
vlad_starkov has joined #ruby
<apeiros>
and hence: no, there can't actually be "a local variable of the same name" - since it *is* the same variable. it's not something else
<MrZYX>
defaultro: it's code written in ruby
nimor has joined #ruby
<defaultro>
ah got it. I will have to find the rackup code then
<defaultro>
that means, this rackup program I ran is not a ruby binary. Correct?
<defaultro>
i mean, not part of the ruby binaries that were installed
<apeiros>
and it is written in ruby, and it is not part of a standard ruby installation
maz-dev has joined #ruby
tw1sted has joined #ruby
<defaultro>
so rackup maybe servers our files?
<defaultro>
so rackup maybe serves our files?
ntus1017 has joined #ruby
<defaultro>
just like Apache, it serves the file in /var/www/html
<MrZYX>
no
<MrZYX>
rackup serves your rack application, you should only use it in dev though because it's not very fast
<defaultro>
yes, it's only in our dev machine
cburyta has joined #ruby
<jude01>
i mean scoped similar to java's: "public Test(int var1) {this.var1 = var1;}" syntax?
<defaultro>
so our application was written then in rack. I may need to read more about rack. This will help me remove all my confusions
bubblehead has quit [Read error: Connection reset by peer]
takezawa has quit [Quit: Leaving...]
bubblehead has joined #ruby
aganov has quit [Remote host closed the connection]
Dummies_freelanc has quit [Ping timeout: 252 seconds]
interactionjaxsn has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
mengu has joined #ruby
jimg has quit [Ping timeout: 246 seconds]
daniel_- has joined #ruby
andyc has joined #ruby
ntus1017 has quit [Remote host closed the connection]
<andyc>
Can someone tell me how I've managed to become banned on #rubyonrails even though i've not used it in a long while and I've never said anything improper on there?
q__ has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
axsuul has quit [Quit: axsuul]
kebomix has joined #ruby
ianbrandt has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
tmhr has joined #ruby
tommyvyo has joined #ruby
cburyta has quit [Ping timeout: 252 seconds]
<kebomix>
hi, what is the difference between class Car << ActiveRecord::Base and class Car < ActiveRecord::Base
bubblehead has joined #ruby
<Mon_Ouie>
kebomix: The former is a syntax error
jcromartie has quit [Quit: Computer has gone to sleep.]
Vadelius has joined #ruby
Vadelius has joined #ruby
Vadelius has quit [Changing host]
<Mon_Ouie>
andyc: Are you sure it's not just something like you not being identified?
daniel_- has quit [Ping timeout: 245 seconds]
cowgarden has quit [Ping timeout: 264 seconds]
<andyc>
Mon_Ouie: definately sure.
<Mon_Ouie>
(Also notice this channel has no connection with #rubyonrails, contacting an op there is a better option than asking here)
<vadelius>
I didnt know theese things either, i just googled em right now (also learning)
<vadelius>
tis was interesting
<defaultro>
oh ok, hehehe
<defaultro>
sorry buy
<defaultro>
bud
<defaultro>
it's very confusing right now
ivanoats has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
cmarques has joined #ruby
<vadelius>
As for books I can reccomend Ruby Pocket Reference (as a reference) and Head First rails for? rails.. And im reading Learning Ruby (oreily)
<vadelius>
I bought like 10 books for lulz, thoose 3 are the ones i didnt find depressing
<vadelius>
Problem is some are outdated and old, maybe internet is better i dunno, i like being able to make notes and shit, I hate making notes in a pdf its bleh
<banisterfiend>
vadelius: what do u mean by depressing
<defaultro>
i heard we are not using rails here
<defaultro>
so Ruby is like perl right?
<vadelius>
heh
<defaultro>
it's for development
<banisterfiend>
defaultro: it's like a mixture of perl and smalltalk (so people say)
<defaultro>
got it
<vadelius>
banisterfiend: Well not literally depressing but.. I found them less enjoyable then the ones I listed
<dorei>
perl is ugly, ruby is not :p
<vadelius>
Just trying to get my message out
<defaultro>
so ruby isn't really a web server. We use gems to build the daemon we are writing
<Sp4rKy>
hi, is there any well-known framework / exemples to deploy a little ruby service ?
<defaultro>
gems == perl's module
<defaultro>
rght?
<Sp4rKy>
(not a web framework)
<vadelius>
Well ruby is server side not sure what you are asking
F1skr has joined #ruby
<defaultro>
ruby is PL
SW_ has joined #ruby
<defaultro>
we can code any daemon like how can in perl
ravster has left #ruby [#ruby]
<vadelius>
I started learning ruby a few days ago I should just keep quiet :>
<vadelius>
Read a generic book and youll have lots of questions answered
<vadelius>
or the ruby docs
agjacome has joined #ruby
Xeago has joined #ruby
lkba has joined #ruby
<defaultro>
k
jimg has joined #ruby
Appineer has quit [Remote host closed the connection]
albertone has quit [Read error: Connection reset by peer]
Heskie has joined #ruby
Azulinho has quit [Read error: Connection reset by peer]
MrZYX is now known as MrZYX|off
GeissT has quit [Quit: MillBroChat AdIRC User]
jeff280 has quit [Quit: jeff280]
mikecmpbll has joined #ruby
vadelius has left #ruby ["Leaving"]
guiocavalcanti has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
jetblack has quit [Quit: leaving]
jimg has quit [Ping timeout: 240 seconds]
interactionjaxsn has joined #ruby
kil0byte has quit [Remote host closed the connection]
arturaz has quit [Remote host closed the connection]
arturaz has joined #ruby
markalanevans has joined #ruby
jetblack has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
terrellt has joined #ruby
interactionjaxsn has quit [Read error: No route to host]
interactionjaxsn has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
b0oh has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
moted has joined #ruby
s2013 has joined #ruby
dhruvasagar has joined #ruby
ferdev_ has quit [Quit: ferdev_]
wolcanus has joined #ruby
filipe has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
DeLay has quit [Remote host closed the connection]
timonv has joined #ruby
enebo has joined #ruby
arturaz has quit [Remote host closed the connection]
mafolz has joined #ruby
mknln has quit [Quit: Leaving]
timkohrumel has quit [Remote host closed the connection]
timkohrumel has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
atyz has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
Al__ has joined #ruby
wesside has joined #ruby
cj3kim has joined #ruby
axsuul has quit [Quit: axsuul]
arturaz has quit [Remote host closed the connection]
SW_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
arturaz has joined #ruby
mafolz has quit [Ping timeout: 246 seconds]
jrajav has quit [Quit: I tend to be neutral about apples]
blaxter_ has quit [Ping timeout: 276 seconds]
axsuul has joined #ruby
timkohrumel has quit [Ping timeout: 276 seconds]
razi has quit [Quit: Leaving.]
cofin has quit [Quit: cofin]
Eiam has joined #ruby
Peej has quit [Remote host closed the connection]
Peej has joined #ruby
wsterling has joined #ruby
earthquake has quit [Quit: earthquake]
cofin has joined #ruby
arturaz has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Quit: Leaving]
arturaz has joined #ruby
defaultro has quit [Ping timeout: 250 seconds]
companion has quit [Ping timeout: 245 seconds]
mansi__ has quit [Read error: Connection reset by peer]
slainer68 has quit [Remote host closed the connection]
slainer68 has joined #ruby
arturaz has quit [Remote host closed the connection]
ramblex has joined #ruby
arturaz has joined #ruby
sambao21 has quit [Ping timeout: 264 seconds]
arturaz has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
d2dchat has quit [Remote host closed the connection]
arya_ has joined #ruby
statarb3 has joined #ruby
statarb3 has joined #ruby
nobitanobi has joined #ruby
<nobitanobi>
Morning, how can I do string interpolation in this case? post "/api/v1/users", {}, {'Authorization' => 'Token token="#{auth_token.access_token}"'} Where auth_token is a variable?
jimg has quit [Ping timeout: 264 seconds]
jlast_ has joined #ruby
saarinen has joined #ruby
arya has quit [Ping timeout: 248 seconds]
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
<MrZYX>
use " and escape the inner ": "Token token=\"#{auth_token.access_token}\""
milardovich has quit [Quit: Leaving]
cafk_ has joined #ruby
Mch1 has joined #ruby
ariedler has quit [Remote host closed the connection]
error404_ has joined #ruby
alup has joined #ruby
<nobitanobi>
thanks MrZYX
telling_ has joined #ruby
nw_ has joined #ruby
mksm has joined #ruby
peteyg_ has joined #ruby
firebury_ has joined #ruby
ozzloy_ has joined #ruby
skogis_ has joined #ruby
yo61_ has joined #ruby
vx17_ has joined #ruby
nari_ has quit [Ping timeout: 252 seconds]
ekarlso- has joined #ruby
jsaak_ has joined #ruby
ssvo_ has joined #ruby
slash_ni1k has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mksm is now known as Guest4693
kiri has quit [Ping timeout: 264 seconds]
eldariof has joined #ruby
jlast has quit [Ping timeout: 255 seconds]
troessner has quit [Quit: Leaving]
stillEPIK has joined #ruby
brianpWins has quit [Quit: brianpWins]
<nobitanobi>
MrZYX, actually when printing this string, I get: "Token token=\"8747c5d07675a540d1be7f707ce4c315\"" -- I guess this is making my request to be wrong, as I keep getting a 401 even though the auth_token is correct
s00pcan_ has joined #ruby
<MrZYX>
printing how?
<MrZYX>
in irb?
vwoo has joined #ruby
onewheelskyward_ has joined #ruby
natwelch has joined #ruby
dayepa1 has joined #ruby
<nobitanobi>
MrZYX, yes. Well I guess that's normal, sorry.
ferdev has joined #ruby
<nobitanobi>
I'm going to digg forward, it might be Rake test that I'm not setting the header correctly
fbernier_ has joined #ruby
<MrZYX>
yup, irb calls .inspect, try really printing it with puts
<dev2>
I'm having trouble with ruby being too slow. I run this on the command line: time ruby -e "count = 0; while(count < 100000000); count = count + 1; end; puts count" it takes about 9 seconds.
<dev2>
(thats 100 mil)
Azulinho has joined #ruby
PhatBaja has joined #ruby
mmlac-bv has joined #ruby
AlbireoX has quit [Remote host closed the connection]
jbinto has quit [Remote host closed the connection]
echevemaster has joined #ruby
nopper has joined #ruby
fbernier_ is now known as fbernier
<PhatBaja>
how can I raise an exception with a specific exit code?
Rix has joined #ruby
jastix has joined #ruby
pzip has joined #ruby
marr has quit [Ping timeout: 246 seconds]
ariedler has joined #ruby
stkowski has joined #ruby
<dorei>
dev2: you're also counting the time that is needed for setting up the ruby interp, etc
tbrock has quit [Quit: Computer has gone to sleep.]
<dev2>
I seem to have some things mixed up in terms of digits
_Amaan has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
<nobitanobi>
Is it correct to have two expectations in just one Rspec example? I want to test that when creating a User I get a 200 status code, and that the user is actually created. Is it correct to put both expectations in one example?
_Amaan has joined #ruby
_Renegade has quit [Quit: _Renegade]
aboudreault has joined #ruby
Neomex has joined #ruby
spider-mario has joined #ruby
sirecote has quit [Ping timeout: 248 seconds]
<dev2>
dorei: thanks, seems like the example I copied and pasted had one less 0 in the perl test
notdan has joined #ruby
cofin has joined #ruby
Neomex has quit [Client Quit]
cburyta has quit [Remote host closed the connection]
jbinto has joined #ruby
<notdan>
Hi! Is there an easy way to parse strings like "5s" or "3m" into Time objects?
<dorei>
let's say i've got an input string and 2 regexps, the first one matches somewhere near the beggining, and the seconds one matches somewhere near the end, what is the best way to "concatenate" the two regular expressions into one?
_Renegade has joined #ruby
zomgbie has quit [Ping timeout: 255 seconds]
dmiller has joined #ruby
cburyta has joined #ruby
<dev2>
notdan: maybe a gem? maybe chronic parser? I know chronic is for dealing with times, not sure if it covers what you need though. Also maybe something in the activesupport library
<MrZYX>
nobitanobi: in that case I'd say those are two very distinct expectations, thus two tests
DeLay has quit [Remote host closed the connection]
<nobitanobi>
MrZYX, interesting
<nobitanobi>
thanks
<dev2>
nobitanobi: yep, 2 tests, even though it seems inefficient
<MrZYX>
but in the end that stuff comes down to personal preference I guess
s2013 has quit []
Guest4732 is now known as martxel
martxel has quit [Changing host]
martxel has joined #ruby
rickruby has quit [Ping timeout: 256 seconds]
<nobitanobi>
I find myself really confused when writting tests
jacobw has joined #ruby
tonini has joined #ruby
pootler_ has quit [Quit: leaving]
bubblehead has quit [Read error: Connection reset by peer]
<nobitanobi>
I am forcing myself to do TDD, and sometimes I get really confused with this kind of decisions
<nobitanobi>
:P
x1337807x has joined #ruby
bubblehead has joined #ruby
<dev2>
I find it best to have only one line in the "it" block and that is the assertion, the rest should go in a before block
_Renegade has quit [Client Quit]
binaryplease has quit [Read error: Operation timed out]
<dev2>
generally speaking, subject to personal preference and changing times.
pootler_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ianbrandt has quit [Remote host closed the connection]
<PhatBaja>
Is it possible to raise a RuntimeError with a specific exit code?
ianbrandt has joined #ruby
gyre007 has quit [Remote host closed the connection]
<terrellt>
dev2: *Whistle* Can't say I'm that serious.
interactionjaxsn has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 252 seconds]
Apane has quit []
rezzack has joined #ruby
vwoo has quit [Ping timeout: 240 seconds]
zetaspartan2552 has quit [Quit: zetaspartan2552]
headius has joined #ruby
wesside has joined #ruby
<dev2>
terrellt: yeah I'm not really either.
Apane has joined #ruby
pootler_ has quit [Client Quit]
johnnyfuchs has joined #ruby
pinage404 has joined #ruby
brbcoding has quit [Ping timeout: 276 seconds]
<notdan>
dev2: thanks, i'll check it out
tonini has quit [Ping timeout: 248 seconds]
_Renegade has joined #ruby
pootler_ has joined #ruby
jlast_ has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
<nobitanobi>
How do you guys test that a record has been created with Rspec?
vwoo has joined #ruby
<nobitanobi>
would you use, for example, User.count.should eql(1) ?
sambao21 has joined #ruby
jdunck has joined #ruby
wyan has joined #ruby
tbrock has joined #ruby
moted has quit [Quit: moted]
<MrZYX>
That's getting into the topic of #rubyonrails but expect { record_create_action }.to change(User.count).by(1) (if I remember the exact syntax correctly)
ramblex has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
zomgbie has joined #ruby
<nobitanobi>
MrZYX, ok, thank you, I will ask there.
RORgasm_ has quit [Read error: Connection reset by peer]
kristian_ has joined #ruby
<jastix>
MrZYX: almost :) ....to change(User, :count).by(1)
fermion has quit [Ping timeout: 276 seconds]
RORgasm has joined #ruby
brianpWins has joined #ruby
<MrZYX>
right, thx
krawchyk_ has joined #ruby
moted has joined #ruby
tonini has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
fermion has joined #ruby
tangledhelix has joined #ruby
dev2 has quit [Ping timeout: 250 seconds]
krawchyk has quit [Ping timeout: 252 seconds]
rrecio has joined #ruby
BSaboia has joined #ruby
nomenkun has joined #ruby
kristian_ is now known as delay
<vadelius>
The other day when I posted my error I got someone said maybe Sublime doesnt support "IVLDS" <-- 5 letter word cant recall what exactly though
<vadelius>
I believe it was a term for console input
<vadelius>
(Trying to find a sublime package whereas input is added/supported)
<MrZYX>
stdin
<vadelius>
((for gets.chomp)) sorry for multiple lines, thank you mrzyx
<MrZYX>
short for standard input
_Renegade has quit [Quit: _Renegade]
codymtx has joined #ruby
<MrZYX>
there's also standard output (stdout) and standard error (stderr)
SW_ has joined #ruby
d2dchat has joined #ruby
<vadelius>
Aha good to know!
zomgbie has quit [Ping timeout: 260 seconds]
adramalech has joined #ruby
codymtx has quit [Quit: Leaving]
dangerousdave has joined #ruby
Villadelfia has quit [Ping timeout: 248 seconds]
freezey has joined #ruby
Villadelfia has joined #ruby
SeySayux has quit [Ping timeout: 264 seconds]
jastix has quit [Quit: Leaving]
<havenwood>
Wow, Apple dropped the cat name convention... I was looking forward to OS X Saber Toothe Tiger too.
<havenwood>
dEPy: You can `edit` a method. Yeah, Pry alone lets you open an arbitrary method in your text editor, edit it, and return to the REPL.
<dEPy>
no no, I just want to print the ruby code
<dEPy>
so I see the implementation, won't do anything else with it :)
<dEPy>
can't just install gems cause it's on production
<dorei>
dEPy: you can edit it without actually changine anything :p
daniel_- has joined #ruby
pinage404 has joined #ruby
<dEPy>
can't I just print it inside repl somehow?
<havenwood>
dEPy: show-method my_method_here
headius has quit [Quit: headius]
futilegames has quit [Quit: futilegames]
<havenwood>
dEPy: Take a look at `help` from inside Pry. Or a Pry demo video should cover that.
jprovazn has joined #ruby
<wuest>
dEPy: I don't think there's a way to do so within irb.
<dEPy>
:S
Squarepy has joined #ruby
Rizzle has quit [Read error: Connection reset by peer]
<Hanmac>
dEPy you need to understand that not all methods are defined in ruby
<dEPy>
This one is cause it's mine :)
<Hanmac>
so some methods does not have "ruby code"
freerobby has joined #ruby
<havenwood>
dEPy: Are you trying to look at the source of methods written in Ruby or the source or Ruby's methods? You could look at implementing code from the sourcify gem. At a certain point though, might as well just use Pry rather than run a bunch of code on IRB.
_Renegade has joined #ruby
dEPy has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
sandGorgon has quit [Read error: Connection reset by peer]
jaalto has joined #ruby
huoxito has quit [Quit: Leaving]
sandGorgon has joined #ruby
paissad has quit [Ping timeout: 264 seconds]
_Renegade has quit [Client Quit]
<jaalto>
With this code https://gist.github.com/bcachet/1351683 I get error while running: ...`require': cannot load such file -- file.rb (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /srv/deb/debian/patchsplit/upstreeam.git/splitpatch.rb:25:in `<main>'
<havenwood>
jaalto: require_relative 'file.rb'
<havenwood>
jaalto: You are trying to require a file named file.rb in the dir?
nanothief has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
Tarential has joined #ruby
mansi has quit [Read error: Connection reset by peer]
gregorg has joined #ruby
gregorg has joined #ruby
gregorg has quit [Changing host]
maz-dev has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
i8igmac has joined #ruby
mansi has joined #ruby
postmodern has joined #ruby
radic_ has joined #ruby
defaultro has joined #ruby
viszu has joined #ruby
malkomalko has joined #ruby
<jaalto>
havenwood: With "require_relative" is says splitpatch.rb:24:in `require_relative': cannot load such file --file.rb (LoadError) from splitpatch.rb:24:in `<main>'
c0rn has quit [Quit: Computer has gone to sleep.]
bigoldrock has joined #ruby
baordog has joined #ruby
<jaalto>
havenwood: I don't know the code, but I would have use for it as it announces to be able to split diff on hunks.
toddWork_ has quit [Quit: toddWork_]
<defaultro>
hi folks, I got disconnected. I'm very new to Ruby. How will I know if our app requires ruby on rails? However, I only installed ruby
futilegames has joined #ruby
defaultro has quit [Changing host]
defaultro has joined #ruby
defaultro has joined #ruby
<asteve>
how can I require an entire directory worth of classes?
<havenwood>
jaalto: I guess find where the file really is, so you can point to it with require_relative. It takes a relative path, like '../../lib/file.rb' if that is where the file is.
pootler_ has quit [Ping timeout: 264 seconds]
<defaultro>
does my post show because I just got identified by nickserv. Anyways, it's here
<defaultro>
hi folks, I got disconnected. I'm very new to Ruby. How will I know if our app requires ruby on rails? However, I only installed ruby
<havenwood>
defaultro: If you created the app you'd prolly know if it was Rails, so I'm guessing you are working on an existing app.
banisterfiend has joined #ruby
<havenwood>
defaultro: Yeah, your posts are posting.
<havenwood>
defaultro: You can google the other gems, they are pretty standard fair (well some of em, stuff like 'eco' i dunno.
<havenwood>
)
<defaultro>
k
<defaultro>
i thought all the lines were for middleman
toddWork_ has joined #ruby
apeiros has joined #ruby
<defaultro>
is there something similar to unix manpage?
<havenwood>
defaultro: For example, bundler is for gem dependencies, capybara is headless browser,e tc. Some gems have manpages.
<defaultro>
got it
Coolhand_ is now known as Coolhand
bionhart has quit [Remote host closed the connection]
<havenwood>
defaultro: Usually finding the gem repo on Github is a real good start. You can use auto-doc generation or whatever. Manpages are unfortunately pretty far and few between.
wargasm has joined #ruby
<defaultro>
and is there like a portal where in it tells what this gem does? like Perl's cpan
Criztian has quit [Remote host closed the connection]
Spami has quit [Ping timeout: 256 seconds]
gyre007 has quit [Ping timeout: 256 seconds]
icco has joined #ruby
cowgarden has joined #ruby
<defaultro>
I'm still confused with ruby. In PHP, I create a file say myexercise.php. I put this file in documentroot of my apache. Then I open my browser and open http://webserverip/myexercise.php. How about in Ruby, how is it done?
stkowski has quit [Quit: stkowski]
hamburger2000 has joined #ruby
<banisterfiend>
defaultro: lol you are in for a shock
<defaultro>
:D
<vadelius>
Oh boy
<banisterfiend>
defaultro: follow a rails tutorial
<banisterfiend>
or whatever framework you're using
_Renegade has quit [Ping timeout: 255 seconds]
<banisterfiend>
dont just try to 'figure it out' yourself ;)
<jaalto>
havenwood: Is this correct? (I know nothing about Ruby): appendix = 0; zeroes = appendix.rjust(3, '0'); filename << ".#{zero}"
<defaultro>
oh, so rails is needed for web?
<vadelius>
1) #rubyonrails
<vadelius>
2) "PLZ HALP"
<vadelius>
3) profit
tw1sted is now known as pav
<defaultro>
profit?
<vadelius>
Yeah rails is a webapp framework
<defaultro>
got it
<banisterfiend>
defaultro: jesus man, did you even do any background research about ruby at all before you started? :)
phipes has joined #ruby
<defaultro>
i
<vadelius>
ruby is more, backend roughly
c0rn has quit [Client Quit]
<defaultro>
i've started this morning
<vadelius>
i told you earlier to go read :(
<vadelius>
this morning even
pav is now known as tw1sted
vwoo has quit [Ping timeout: 246 seconds]
razi has joined #ruby
<defaultro>
i did but still got confused. Now I understand it better now
q__ has quit [Ping timeout: 245 seconds]
<vadelius>
ok :> good luck!
jbinto has quit [Remote host closed the connection]
<defaultro>
our gemfile doesn't have rails but i am not sure how it's able to serve files
<defaultro>
maybe because of the rackup tool
supaiku has quit [Read error: Connection reset by peer]
<vadelius>
Even if ruby on rubyonrails is obviously closely related dont mix em up
<vadelius>
they do very diferent things
<vadelius>
atleast thats my experience..
<defaultro>
k
gyre007 has joined #ruby
jbinto has joined #ruby
<defaultro>
so my local setup isn;t rubyonrails but I do have config.ru and config.rb
synthetix has quit [Remote host closed the connection]
<vadelius>
What OS are you using?
<defaultro>
mac osx
TheFuzzball has quit [Read error: Operation timed out]
vwoo has joined #ruby
<defaultro>
to view the webpage, I run rackup which listens on port 9292
<vadelius>
open terminal and do ruby -v / rails-v
kiri has joined #ruby
<defaultro>
ok
<vadelius>
afaik default rails port is 3000
<jaalto>
havenwood: i = 0 ; zeroes = i.rjust(3, '0'); filename << ".#{zeroes}" => in `<main>': undefined method `rjust' for 0:Fixnum (NoMethodError)
<vadelius>
But once again, take what I say with a grain of salt, just trying to help but I barely know anything
<havenwood>
jaalto: Have to call #to_s on attributes first or interpolate before calling rjust
Astral_ has joined #ruby
<defaultro>
ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-darwin12.3.0] ruby: Is a directory - / (Errno::EISDIR)
jbinto has quit [Read error: Connection reset by peer]
Jackneill has quit [Ping timeout: 248 seconds]
jbinto has joined #ruby
jaalto has quit [Ping timeout: 264 seconds]
daniel_- has joined #ruby
bashdy has quit [Quit: bashdy]
ivanoats has joined #ruby
jimg has joined #ruby
awarner_ has joined #ruby
johnnyfuchs has joined #ruby
tommyvyo has joined #ruby
devoldmx has quit [Read error: No route to host]
devoldmx has joined #ruby
bionhart has joined #ruby
Al__ has joined #ruby
milardovich has quit [Quit: Leaving]
awarner has quit [Ping timeout: 245 seconds]
pinage404 has joined #ruby
jds_ has quit [Remote host closed the connection]
joelteon has quit [Quit: bye]
_Amaan has quit [Quit: _Amaan]
heftig has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
joelteon has joined #ruby
notdan has left #ruby [#ruby]
jprovazn has joined #ruby
<bricker`away>
Isn't there a method on Fixnum that will accomplish this? `limit > MAX_RESULTS ? MAX_RESULTS : limit` Something like limit.ceil(MAX_RESULTS), except I know that doesn't work
jimg has quit [Ping timeout: 252 seconds]
momomomomo has quit [Quit: momomomomo]
devoldmx has quit [Ping timeout: 252 seconds]
<bricker`away>
pothibo: a delegator probably defines the specific methods on the class, rather than relying on method_missing which lacks in performance and can mess up your stack traces.
bashdy has joined #ruby
jds_ has joined #ruby
zomgbie has joined #ruby
timonv has joined #ruby
amedeiros has quit [Ping timeout: 246 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mklappstuhl has quit [Remote host closed the connection]
s0ber_ has joined #ruby
JimmyNeutron has quit [Ping timeout: 240 seconds]
rippa has quit [Ping timeout: 240 seconds]
s0ber has quit [Read error: Operation timed out]
JimmyNeutron has joined #ruby
s0ber_ is now known as s0ber
schiang has joined #ruby
<vadelius>
Can I ? with an if statement do this; return them to the beginning of the class with the else?
<vadelius>
If that makes any sense...
<asteve>
I'm trying to get the important line from %x[ps #{Process.uid} -opid,rss,time,%cpu,command] and I'm only getting the first line describing the columns
<asteve>
what's a better way to do that?
cj3kim has quit [Remote host closed the connection]
johnrlive has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
<pothibo>
bricker`away: well that's what I want to know, if it does defines or if it uses the same route as method_missing
BSaboia has quit [Ping timeout: 245 seconds]
s2013 has joined #ruby
carloslopes has quit [Remote host closed the connection]
yalue has quit [Read error: Connection reset by peer]
choobie has quit [Quit: choobie]
razi1 has joined #ruby
dash__ has quit [Quit: Time to beer :)]
DanKnox is now known as DanKnox_away
razi has quit [Quit: Leaving.]
malkomalko has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
malkomalko has joined #ruby
<bricker`away>
pothibo: I was wrong, it does use method_missing. See delegate.rb
workmad3 has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
<pothibo>
bricker`away: Thanks! well then, it means it's useless
zomgbie has quit [Ping timeout: 256 seconds]
alvaro_o has joined #ruby
flyingcork has joined #ruby
zomgbie has joined #ruby
tommyvyo has quit [Ping timeout: 255 seconds]
<bricker`away>
pothibo: I could be wrong again
<flyingcork>
Hello, I'm trying to install rails on centos, but I keep getting this error: mkmf.rb: can't find header files for ruby at /usr/lib/ruby/ruby.h
<pothibo>
I think you are right
<bricker`away>
pothibo: see DelegateClass - it redefines each of the class's instance methods via module_eval
<pothibo>
bricker`away: yeah I'm looking at it
<bricker`away>
I've never studied this class so I'm not very familiar with it
bricker`away is now known as bricker
schiang has quit [Quit: Page closed]
carlyle has quit [Remote host closed the connection]
<pothibo>
I would have thought it to be optimize via C to have an actual boost vs method_missing, oh well
<pothibo>
no big deal
futilegames has quit [Quit: futilegames]
jds_ has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: WeeChat 0.4.0]
<asteve>
can I get a system command to return an array?
pinage404 has joined #ruby
robert__ has joined #ruby
robert__ has joined #ruby
robert__ has quit [Changing host]
<apeiros>
asteve: no
brennanM_ has joined #ruby
<flyingcork>
does anybody know how to install rails when it gives that error?
brennanMKE has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
<apeiros>
asteve: but you can process the string and convert it into an array
<fryguy>
flyingcork: try installing ruby development libs
<asteve>
apeiros: hmm
<asteve>
how would you process the string to an array?
<asteve>
I don't see \n appearing
huttan has quit [Remote host closed the connection]
<apeiros>
asteve: I don't magically know what you have and what you want from that
RORgasm_ has quit [Read error: Connection reset by peer]
<flyingcork>
fryguy: i believe i did already...when i try sudo gem install ruby-devel it says a bunch of files are conflicting
snearch has joined #ruby
robert_ has quit [Ping timeout: 264 seconds]
RORgasm has joined #ruby
jonathanwallace has joined #ruby
statarb3 has quit [Read error: Operation timed out]
<pothibo>
flyingcork: how are you installing ruby?
<pothibo>
seems like a path is missing
brotatos has joined #ruby
tommyvyo has joined #ruby
<flyingcork>
sudo yum install ruby
Heskie has quit []
<flyingcork>
(as root)
<defaultro>
hey folks, is .erb a ruby file?
bashdy has quit [Quit: bashdy]
<flyingcork>
sry, my ruby devel attempt was sudo yum install ruby-devel, not sudo gem install ruby-devel
brennanM_ has quit [Ping timeout: 240 seconds]
mxweas has joined #ruby
futilegames has joined #ruby
futilegames has quit [Client Quit]
axsuul has quit [Quit: axsuul]
shadoi has joined #ruby
schaerli has joined #ruby
ntus1017 has quit [Remote host closed the connection]
pootler_ has joined #ruby
<pothibo>
flyingcork: Might want to look at centos packaging system. Seems your missing a path
breakingthings has quit [Ping timeout: 252 seconds]
prime has quit [*.net *.split]
germanstudent has quit [*.net *.split]
mnemon has quit [*.net *.split]
ddv has quit [*.net *.split]
monban has quit [*.net *.split]
wang has quit [*.net *.split]
FDj has quit [*.net *.split]
Azure has quit [*.net *.split]
shtirlic has quit [*.net *.split]
dominikh has quit [*.net *.split]
fred has quit [*.net *.split]
adamholt has quit [*.net *.split]
anildigital has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
ddd___ has quit [*.net *.split]
Skelz0r has joined #ruby
ddd has joined #ruby
monban has joined #ruby
FDj has joined #ruby
wang has joined #ruby
prime has joined #ruby
mnemon has joined #ruby
fred has joined #ruby
Azure has joined #ruby
anildigitl has joined #ruby
fred is now known as Guest61929
s2013 has joined #ruby
shtirlic has joined #ruby
dominikh has joined #ruby
Cyrus_ has quit [Client Quit]
moted has quit [Quit: moted]
Appineer has quit [Remote host closed the connection]
breakingthings has joined #ruby
benlieb has joined #ruby
stkowski has quit [Quit: stkowski]
adamholt has joined #ruby
jimg has joined #ruby
ArchBeOS has quit [Remote host closed the connection]
thebastl has quit [Remote host closed the connection]
bitcycle has joined #ruby
juarlex has joined #ruby
ner0x has quit [Quit: Leaving]
c0rn has quit [Quit: Computer has gone to sleep.]
lushious has quit [Quit: "yolol"]
<bitcycle>
Hey all. I'm reading some ruby code and I'm utterly confused: do_bar :if => -> (obj) { obj.version != '2.5' } Can someone translate that into English for me?
c0rn has joined #ruby
<apeiros>
call method `do_bar` with a hash as argument
nomenkun has quit [Remote host closed the connection]
<apeiros>
the hash consisting of the key :if (a Symbol) with a lambda as argument
heftig has quit [Quit: Quitting]
<apeiros>
s/argument/value/
<canton7>
call method do_bar. pass in a hash, with a key :if, and a value which is a lambda. the lambda takes an argument, obj, and returns obj.version != '2.5'
pitzips has joined #ruby
<canton7>
not particularly clear, I'll grant you
<apeiros>
odd mix of 1.8 hash and 1.9 lambda syntax IMO :)
geekbri has quit [Remote host closed the connection]
<apeiros>
so technically your solution is different
freerobby has joined #ruby
axsuul has quit [Quit: axsuul]
mansi has quit [Ping timeout: 256 seconds]
huoxito has quit [Quit: Leaving]
<apeiros>
btw., this works too: (from..to).include?(time)
johnnyfuchs has quit [Read error: Connection reset by peer]
Elico1 has joined #ruby
<kx>
I have a TCP server and a client. The server is pretty busy all the time (using full CPU) and doesn't allow ruby TCP clients to join (because of timeouts, I guess). Is there anything I can do to increase the time a client is allowed to wait for successful connection before it times out?
<Elico1>
can anyone help me a bit with mongoDB driver pleaes?
braoru has quit [Quit: Leaving]
bricker_ is now known as bricker
bradhe has joined #ruby
Zeeraw has quit [Client Quit]
atno has joined #ruby
<Elico1>
I need to create a uniqu index but it wont work?
corehook has joined #ruby
burlyscudd has joined #ruby
d2dchat has quit [Remote host closed the connection]
sambao21 has joined #ruby
chrishough has joined #ruby
arya has joined #ruby
defaultro has quit [Ping timeout: 250 seconds]
robbyoconnor has quit [Ping timeout: 256 seconds]
snearch has quit [Quit: Verlassend]
cburyta has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
Zeeraw has joined #ruby
c0rn has quit [Read error: Operation timed out]
rsahae has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carlyle has joined #ruby
johnnyfuchs has joined #ruby
Al__ has quit [Quit: Al__]
mityaz has quit [Quit: See ya!]
wsterling has quit [Remote host closed the connection]
huoxito has joined #ruby
x1337807x has joined #ruby
ckrailo has quit [Ping timeout: 255 seconds]
failshell has quit [Remote host closed the connection]
c0rn has joined #ruby
huttan has joined #ruby
johnmilton has quit [Remote host closed the connection]
<Elico1>
to share what I have tried?
tommyvyo has quit [Ping timeout: 246 seconds]
cburyta has quit [Remote host closed the connection]
beiter has quit [Quit: beiter]
codecop has quit [Remote host closed the connection]
ckrailo has joined #ruby
workmad3 has quit [Read error: Operation timed out]
marcgg has quit [Ping timeout: 246 seconds]
sc0 has joined #ruby
Speed has joined #ruby
DrShoggoth has quit [Read error: No route to host]
JimmyNeutron has quit [Quit: Leaving]
enebo has joined #ruby
AlbireoX_ has joined #ruby
jamesaxl_ has joined #ruby
huoxito has quit [Quit: Leaving]
Astral_ has quit [Ping timeout: 240 seconds]
Dummies_freelanc has joined #ruby
Dummies_freelan1 has joined #ruby
_Andres has quit [Ping timeout: 252 seconds]
ntus1017 has quit [Remote host closed the connection]
jamesaxl has quit [Ping timeout: 276 seconds]
jfelchner has joined #ruby
Elico1 has quit [Remote host closed the connection]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Elico has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
marcgg has joined #ruby
RustyShackleford has joined #ruby
<RustyShackleford>
I'm trying to run my friends ruby on rails project
<RustyShackleford>
when running "rails s", I get a load of authentication failures
zeade has quit [Quit: Leaving.]
jfelchner has quit [Ping timeout: 245 seconds]
<RustyShackleford>
do I need to configure my router somehow?
<interactionjaxsn>
RustyShackleford: you might want to jump into #rubyonrails
<RustyShackleford>
ah, didn't know it existed
MrZYX is now known as MrZYX|off
ntus1017 has joined #ruby
vwoo has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
ffranz has quit [Ping timeout: 246 seconds]
sridatta has joined #ruby
jfelchner has joined #ruby
tommyvyo has joined #ruby
<sridatta>
hi all. I'm developing a ruby gem and don't want to keep rebuilding/reinstalling the gem to test minor changes I make. is there any way to avoid this?
sc0 has left #ruby [#ruby]
zeade has joined #ruby
Nimsical has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
dangerousdave has quit [Quit: Leaving...]
MrZYX|off is now known as MrZYX
wmoxam has quit [Ping timeout: 276 seconds]
<interactionjaxsn>
sridatta: avdi grimm talks about this in his gem love series on ruby tapas... i know that doesn't help you much but....
jrajav has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
splittingred has quit [Quit: splittingred]
<sridatta>
interactionjaxsn: any summary or more details about that? seems like its a video series so it would be hard to search for that specific part
gyre007 has quit [Read error: Operation timed out]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
jgarvey has quit [Quit: Leaving]
sc0 has joined #ruby
<joshu>
any sublime text users have any tips on matching brackets. I'm missing one but it's a pain to track down
interactionjaxsn has quit [Ping timeout: 255 seconds]
<aedorn>
hmm.. redundancy
baordog has quit [Remote host closed the connection]
akells` has quit [Remote host closed the connection]
bean__ has quit [Quit: Computer has gone to sleep.]
<aedorn>
joshu: That's pretty messy ...
tommyvyo has quit [Quit:]
<joshu>
aedorn yes unfortunately the nested transfer function is required and I was told by the online service Tropo which this code is being used for that calling the transfer function within the transfer function is not a good idea
wolcanus has quit [Ping timeout: 248 seconds]
stkowski has joined #ruby
danshultz has quit [Remote host closed the connection]
sc0 has left #ruby [#ruby]
zomgbie has quit [Ping timeout: 255 seconds]
pzip has quit [Quit: Leaving]
yo61_ is now known as yo61
huoxito has joined #ruby
<joshu>
basically all I can do is perhaps but the curly braces on separate new lines or something. I can't do anything radical like split it into different methods because I don't think it will work on the Tropo platform. But as I said I'm looking for advice so I'd be happy to try something because it's difficult for me to read and find the missing bracket
<joshu>
:(
Guga_ has quit [Remote host closed the connection]
Nimsical has quit [Quit: Computer has gone to sleep.]
Guga_ has joined #ruby
<aedorn>
joshu: Well, quite a bit you can do.. just a sec
sc0 has joined #ruby
<aedorn>
joshu: Oh, and is this Ruby 1.8.x, 1.9.x, or 2.0.x?
<joshu>
aedorn they say JRuby 1.6.1 I believe == Ruby 1.9
johnnyfuchs has quit [Remote host closed the connection]
rsahae has quit [Quit: rsahae]
ntus1017 has quit [Remote host closed the connection]
<joshu>
they don't support the new syntax instead of hash rocket
<joshu>
I asked
SDr_ has joined #ruby
<havenwood>
joshu: JRuby 1.6.1 could be run in 1.9 mode but I believe JRuby before 1.7 defaults to 1.8.7.
<joshu>
havenwood no idea I asked what I was allowed to use and they said only standard library of version 1.9
sc0 has left #ruby [#ruby]
IceDragon has joined #ruby
<aedorn>
hmm, that's weird
<joshu>
aedorn unfortunately what they allow on their cloud platform. also I cannot split up my code into separate source files. Everything within one file. the gist is only one method I'm working on for now but trying my best to organise it as I can with my experience
nomenkun has joined #ruby
guiocava_ has quit [Remote host closed the connection]
rsahae_ has joined #ruby
vlad_starkov has joined #ruby
machuga is now known as machuga|away
<aedorn>
that's fine
guiocavalcanti has joined #ruby
axsuul has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
nomenkun has quit [Read error: Operation timed out]
freerobby has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
vwoo has quit [Quit: Computer has gone to sleep.]
enebo has quit [Quit: enebo]
vwoo has joined #ruby
guiocavalcanti has quit [Ping timeout: 252 seconds]
Guest50155 has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
A124 has joined #ruby
chrishough has quit [Quit: chrishough]
zomgbie has joined #ruby
jbinto has quit [Remote host closed the connection]
Bleah has quit [Ping timeout: 264 seconds]
tommyvyo has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
<aedorn>
hmmm.. can go quite far with this apparently
jbinto has joined #ruby
marcgg has quit [Ping timeout: 256 seconds]
bitcycle has quit [Remote host closed the connection]
<joshu>
aedorn you doing some magic over there ;)
jtharris has quit [Quit: WeeChat 0.4.0]
khushildep has quit [Quit: khushildep]
cmarques has quit [Ping timeout: 276 seconds]
marcgg has joined #ruby
havenwood has quit [Remote host closed the connection]
ntus1017 has joined #ruby
d3c has joined #ruby
cowgarden has joined #ruby
axsuul has quit [Quit: axsuul]
ntus1017 has quit [Remote host closed the connection]
cougarten has quit [Ping timeout: 252 seconds]
axsuul has joined #ruby
Zeeraw has joined #ruby
chrishough has joined #ruby
Elico has quit [Ping timeout: 256 seconds]
jbinto has quit [Remote host closed the connection]
Ortuna has joined #ruby
jimg has joined #ruby
ntus1017 has joined #ruby
<aedorn>
joshu: something like that
doodlas has joined #ruby
joast has joined #ruby
tommyvyo has quit [Quit:]
mansi has joined #ruby
zomgbie has quit [Ping timeout: 276 seconds]
cj3kim has joined #ruby
ntus1017 has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
<doodlas>
hello guys can i pass value to classes variables without constructor? I trying to do this but i got error can someone tell me what is wrong? http://ideone.com/EjyUr1
PhatBaja has quit [Quit: Leaving.]
jimg has quit [Ping timeout: 252 seconds]
<doodlas>
I know this is not good example but i just practicing
<joshu>
doodlas I'm pretty new myself but I believe you need to set length, breadth, height as instance variables within your class
brotatos has joined #ruby
<joshu>
doodlas like this @length = 0
brotatos has left #ruby [#ruby]
ntus1017 has joined #ruby
<doodlas>
joshu: ok thanks i will try
<joshu>
doodlas this means that when you call Box.new it will have its own set of variables describing Box
mansi has quit [Ping timeout: 256 seconds]
<joshu>
someone more experienced please correct me if I'm wrong
RustyShackleford has quit [Ping timeout: 252 seconds]
joast has quit [Quit: Leaving.]
<MrZYX>
doodlas: prefix the variables with an @ to make them instance variables like joshu said and also read up on attr_accessor
RustyShackleford has joined #ruby
cj3kim has quit [Ping timeout: 255 seconds]
<doodlas>
I added @ but I get same error
<MrZYX>
yes, as said read up on attr_accessor
baroquebobcat has quit [Quit: baroquebobcat]
<MrZYX>
then the volume calculation is clearly in the domain of your class, so it should be a method on it
Davey has quit [Quit: Computer has gone to sleep.]
<doodlas>
MrZYX: now I understood.. but is there any way without getter and setters?
rcosta has joined #ruby
<MrZYX>
no
jamesaxl_ has quit [Ping timeout: 256 seconds]
<MrZYX>
that's why there's attr_reader, attr_writer and attr_accessor, to shorten that up
jds_ has quit [Ping timeout: 240 seconds]
F1skr has quit [Quit: WeeChat 0.4.1]
_Renegade has quit [Quit: _Renegade]
JimmyNeutron has joined #ruby
x1337807x has joined #ruby
_Renegade has joined #ruby
PhatBaja has joined #ruby
<doodlas>
MrZYX: ok thank you
JZTech101 has joined #ruby
rsahae_ has joined #ruby
tbrock has joined #ruby
marcgg has quit [Read error: No route to host]
cofin has quit [Quit: cofin]
marcgg has joined #ruby
jfelchner has quit [Quit: zzzzzzzzzzzzz………]
JohnE has quit [Ping timeout: 248 seconds]
RustyShackleford has quit [Read error: Connection reset by peer]
RustyShackleford has joined #ruby
huoxito has quit [Ping timeout: 256 seconds]
mansi has joined #ruby
<anonymuse>
jkline: Wonder if anyone else has a 1.9.3 package besides AWS
<anonymuse>
nice of AWS to make that pkg
LaPetiteFromage has joined #ruby
m8 has quit [Quit: Sto andando via]
blitz has joined #ruby
PhatBaja has quit [Quit: Leaving.]
gyre007 has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
ffio has joined #ruby
chrishough has joined #ruby
emmanuelux has quit [Remote host closed the connection]
havenwood has joined #ruby
_ffio_ has quit [Ping timeout: 276 seconds]
PhatBaja has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
gstamp has joined #ruby
osvico has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
ryotarai has joined #ruby
joast has joined #ruby
LennyLinux has quit [Remote host closed the connection]
gazarsgo has quit [Quit: gazarsgo]
<aedorn>
joshu: I responded to your gist... I think I followed it all correctly so it should at least function the same. Also found your missing bracket. For sublime text 2 you can add "draw_indent_guides": true to your user preferences which will help identify missing things like that.
verto has joined #ruby
<joshu>
aedorn I must have missed your link to the ypdate
<aedorn>
oops, can get rid of establish_transfer method... forgot to remove it. I actually refactored a few times just to see what worked "okay"
mikepack_ has quit [Remote host closed the connection]
Davey has joined #ruby
<aedorn>
Anyway.. any issues with it and it shouldn't be too hard to figure it out. Looking at the Tropo docs I'm not sure most of those get an event passed to them
danslo has joined #ruby
mmitchell has joined #ruby
jamesaxl has quit [Ping timeout: 248 seconds]
<joshu>
aedorn looks much cleaner I think I get the gist of what you've done and will apply it to my coming methods. Thanks so much for helping me out ;)
Jalada has quit [Ping timeout: 264 seconds]
mmitchell has quit [Read error: Operation timed out]
huoxito has joined #ruby
vlad_starkov has joined #ruby
jds_ has joined #ruby
visualdensity has joined #ruby
danshultz has joined #ruby
Davey has quit [Ping timeout: 246 seconds]
Jalada has joined #ruby
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Ping timeout: 248 seconds]
ebobby has joined #ruby
ivanoats has quit [Remote host closed the connection]
pitzips has joined #ruby
danshultz has quit [Read error: Operation timed out]
Davey has joined #ruby
slainer68 has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
anonymuse has quit [Quit: Leaving...]
mikepack has joined #ruby
Squarepy has quit [Quit: Leaving]
rickmasta has quit [Quit: Leaving...]
general|plague is now known as generalizzimo
predator217 has joined #ruby
ctp has joined #ruby
<aedorn>
joshu: Most welcome.. I like refactoring. It makes me feel cleaner - which is great since my desk is a gigantic disaster.
rsahae_ has quit [Quit: rsahae_]
<joshu>
aedorn haha :D
Deele has joined #ruby
rsahae has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
pinage404 is now known as zz_pinage404
predator117 has quit [Ping timeout: 248 seconds]
freerobby has quit [Quit: Leaving.]
toddWork_ has quit [Quit: toddWork_]
generalizzimo has quit [Read error: Connection reset by peer]
jimg has joined #ruby
generalizzimo has joined #ruby
rickmasta has joined #ruby
DanBurton has left #ruby [#ruby]
JimmyNeutron has quit [Quit: Leaving]
rcosta has quit [Remote host closed the connection]
bamdad has quit [Quit: bamdad]
carlyle has joined #ruby
jimg has quit [Ping timeout: 252 seconds]
vwoo has quit [Ping timeout: 246 seconds]
agjacome has joined #ruby
lunarjar has quit [Ping timeout: 260 seconds]
MrZYX is now known as MrZYX|off
tw1sted has joined #ruby
vwoo has joined #ruby
chipotle has joined #ruby
zomgbie has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
<joshu>
aedorn when in the tropo docs it shows a function like this ask( text: String, { allowSignals: String or Array } ) but then in there example they do this ask String, { allowSignals: String } , e.g. the parentheses are dropped in the example…in your code you use parentheses but droop the curly braces. Is that typo or some other reason such as clarity?
JZTech101 has quit [Read error: Connection reset by peer]
sepp2k has quit [Quit: Leaving.]
Animawish has quit [Quit: Animawish]
JZTech101 has joined #ruby
<aedorn>
joshu: Well, parentheses are there for clarity sakes, but you don't need them. The curly braces when calling a method aren't needed if the last set of options are all part of the same Hash. Ruby will just toss key/value pairs into the same hash when the method is called for you.
lunarjar has joined #ruby
<joshu>
aedorn thanks for explaining!
zomgbie has quit [Ping timeout: 256 seconds]
carlyle has quit [Ping timeout: 245 seconds]
nari_ has joined #ruby
mklappstuhl has joined #ruby
arya has quit [Ping timeout: 240 seconds]
doodlas has quit [Quit: irc2go]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
bigoldrock has quit [Ping timeout: 260 seconds]
slainer68 has joined #ruby
<bricker>
Is there any point in memoizing a method that just delegates to another method?
codesoda has joined #ruby
rhys has quit [Quit: Leaving]
arya has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
daniel_- has quit [Read error: Connection reset by peer]