apeiros changed the topic of #ruby-lang to: RIP Jim || Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
vpretzel has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
nathanstitt has joined #ruby-lang
jsutt has joined #ruby-lang
nisstyre_ has joined #ruby-lang
agrinb has joined #ruby-lang
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
postmodern has joined #ruby-lang
havenwood has quit []
creede has joined #ruby-lang
dgaffney has quit [Remote host closed the connection]
dgaffney has joined #ruby-lang
jhass is now known as jhass|off
agrinb has quit [Ping timeout: 240 seconds]
lcdhoffman has joined #ruby-lang
kitak has joined #ruby-lang
jason____ has joined #ruby-lang
tylersmith has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
dgaffney has quit [Ping timeout: 264 seconds]
woollyams has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
vpretzel has quit [Remote host closed the connection]
jason____ has quit [Remote host closed the connection]
jason____ has joined #ruby-lang
mr-foobar has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
lcdhoffman has joined #ruby-lang
jason____ has quit [Ping timeout: 264 seconds]
mr-fooba_ has joined #ruby-lang
mr-foobar has quit [Ping timeout: 240 seconds]
retro|cz has quit [Read error: Operation timed out]
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 246 seconds]
nathanstitt has quit [Quit: I growing sleepy]
benanne has quit [Ping timeout: 246 seconds]
iliketurtles has quit [Ping timeout: 240 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
yubrew has joined #ruby-lang
lele|w has quit [Read error: No route to host]
lele|w has joined #ruby-lang
lcdhoffman has joined #ruby-lang
inkblots has left #ruby-lang [#ruby-lang]
iliketurtles has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
yubrew has quit [Ping timeout: 246 seconds]
sdouglas has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
devgiant has quit [Quit: Leaving]
jason__ has joined #ruby-lang
dorei has quit []
mr-fooba_ has quit [Remote host closed the connection]
mr-foobar has joined #ruby-lang
mistym has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
matled has quit [Ping timeout: 240 seconds]
mr-foobar has quit [Ping timeout: 246 seconds]
willmarshall has quit [Quit: Textual IRC Client: www.textualapp.com]
matled has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
Samouy has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
guns has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
io_syl has quit []
knu has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
vlad_starkov has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
woollyams has quit [Ping timeout: 252 seconds]
knu has joined #ruby-lang
woollyams has joined #ruby-lang
yubrew has joined #ruby-lang
rh1n0 has joined #ruby-lang
Fushi has quit [Quit: Connection closed for inactivity]
yubrew has quit [Ping timeout: 240 seconds]
Cakey has joined #ruby-lang
rh1n0 has quit [Client Quit]
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
lcdhoffman has joined #ruby-lang
jason__ has quit [Remote host closed the connection]
r0bby has joined #ruby-lang
jason__ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 240 seconds]
coma_ has joined #ruby-lang
jason__ has quit [Ping timeout: 264 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
coma_ has quit [Ping timeout: 245 seconds]
sepp2k has quit [Quit: Leaving.]
Johz has quit [Quit: Leaving]
hahuang65 has quit [Ping timeout: 264 seconds]
willmarshall has joined #ruby-lang
agrinb has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
agrinb has quit [Ping timeout: 240 seconds]
jason___ has joined #ruby-lang
tylersmith has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
mr-foobar has joined #ruby-lang
nathanstitt has joined #ruby-lang
Gatling has joined #ruby-lang
<Gatling> hello everyone
<Gatling> can somebody plz answer my question..
vlad_starkov has quit [Ping timeout: 252 seconds]
<centrx> Did you ask a question?
<Gatling> sorry... 5 sec... i'm typing it in )
<Gatling> so... consider I'm using eval, passing some string
<Gatling> like this eval("some string with #{placeholders}")
<Gatling> is there way to see the resolved string without evaluation
mr-foobar has quit [Ping timeout: 264 seconds]
<fowl> zzz
<Gatling> I mean i need to get "some string with thevalue"
<Gatling> val1 = 1; val2 = 2;
<Gatling> eval ("1 + #{val1} + #{val2}") #=> 4
<Gatling> but I need to get 1 + 1 + 2
<fowl> ofc
<fowl> you have the string before its evalled, just print it or whatever you are trying to do to "see" it
rofel has quit [Quit: Leaving...]
<Gatling> what if string isn't constant
<Gatling> s = "def f(x);#" + "{sadf}" + ";end; puts f('sdfsdf')"; puts s
<Gatling> like this
<Gatling> for example
yubrew has joined #ruby-lang
<fowl> then #{} interpolation will not work on it
<Gatling> but eval will
<Gatling> I guess, the question is how to do dynamic interpolation?
<fowl> use String#%
mykoweb has joined #ruby-lang
rofel has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
arBmind1 has joined #ruby-lang
<Gatling> mm... now, i noticed that eval kind of doesn't work either...
<Gatling> s = "1 + #" + "{v1}" + " + #" + "{v2};";
arBmind has quit [Ping timeout: 265 seconds]
<Gatling> puts eval("1 + #{v1} + #{v2};") # this works
<centrx> Why are you using eval?
<Gatling> puts eval(s) # but this doesn't
<fowl> because 1 + #{x} is not valid ruby code
<Gatling> but why eval works with constant string?
<fowl> because eval recieves 1 + 2 + 3
<fowl> or whatever v1 and v2 are
<fowl> you know about Object#p ?
<Gatling> mm... no
<fowl> are you doing something with rails?
<Gatling> no... really, for now i'm just researching the language
<fowl> is this how you research languages? why not read a book or tutorial
<Gatling> well I'm researching it to solve some puzzle task on ruby
<Gatling> so I'm kind of stuck with, what puzzle needs
<centrx> better to avoid eval
woollyams has quit [Read error: Connection reset by peer]
mykoweb has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
<Gatling> "<fowl> use String#%" how can i use it with global context
<Gatling> i need exactly what's done by the eval before evaluating
<bnagy> >> a,b=3,4; s="#{a} + #{b}"
<eval-in> bnagy => "3 + 4" (https://eval.in/125394)
<bnagy> the interpreter does interpolation for you, not eval. eval just sees the string
<Gatling> how to do interpolation dynamically
<bnagy> how is it not dynamic already?
rofel has quit [Quit: Leaving...]
<bnagy> >> a,b=3,4; s="#"<< "{a} + #{b}"
<eval-in> bnagy => "\#{a} + 4" (https://eval.in/125397)
<bnagy> because the first curly is a literal curly, not an 'interpolate this' for the interpreter
<Gatling> I mean how can I do somthing like string formatting, but using global context, like compiler does... I don't want to populate map and pass it in String#%
<Gatling> i want it to use variables from context
<bnagy> what compiler?
<Gatling> interpreter
<bnagy> you don't have to use interpolation
<Gatling> how to get the resulting string than?
<bnagy> >> a,b=3,4; a.to_s << ' + ' << b.to_s
<eval-in> bnagy => "3 + 4" (https://eval.in/125398)
<bnagy> I don't think 'the resulting string' is what you think it is
<Gatling> i want something like that
<Gatling> is it possible
<fowl> string formatting
<fowl> String#% just like i said
<bnagy> just remove eval() completely - that string will be interpolated as 1 + 1 + 2
<Gatling> how to "substitute" (or format, or interpolate... i'm sorry for messing with terminology) the string using global context
<bnagy> also you're not writing C, chill out with the ;
<fowl> global context?
<Gatling> just context
<Gatling> without using maps that is
<fowl> Gatling, you dont
<Gatling> as i said this string can be dynamic
<Gatling> not a constant
alexju has joined #ruby-lang
<Gatling> I have variable of class String, which holds some string with placeholders... i need to use this as a format, and substitute placeholders with values from context variables
<bnagy> gsub or look at one of the templating engines
<fowl> >> x = 1; eval('"#{x}"')
<eval-in> fowl => "1" (https://eval.in/125401)
woollyams has quit [Ping timeout: 252 seconds]
<bnagy> Gatling: whatever happens, just forget eval.
<bnagy> you could even make a simple template thing yourself, just don't break the strings in the middle of interpolation tags
<fowl> bnagy, people should be allowed to shoot themselves in the foot
Cakey has quit [Ping timeout: 240 seconds]
<bnagy> like "#{first_number}" << " #{operation} " << "#{second number}" will work
<fowl> Gatling, https://eval.in/125404
woollyams has joined #ruby-lang
Gatling has quit [Ping timeout: 245 seconds]
<bnagy> augh my brain
knu has quit [Ping timeout: 252 seconds]
knu has joined #ruby-lang
lcdhoffman has joined #ruby-lang
rh1n0 has joined #ruby-lang
thmzlt has joined #ruby-lang
ianm_ has joined #ruby-lang
sdouglas has joined #ruby-lang
__butch__ has joined #ruby-lang
hahuang65 has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
mrwooh333 has joined #ruby-lang
saarinen has joined #ruby-lang
knu has joined #ruby-lang
hahuang65 has quit [Ping timeout: 265 seconds]
saarinen has quit [Quit: saarinen]
__butch__ has quit [Quit: Leaving.]
dgaffney has joined #ruby-lang
rh1n0 has quit [Quit: Hopefully you don't see this...]
yubrew has joined #ruby-lang
yubrew has quit [Ping timeout: 268 seconds]
jason___ has quit [Remote host closed the connection]
guns has quit [Quit: guns]
jason___ has joined #ruby-lang
ryez has joined #ruby-lang
jason___ has quit [Ping timeout: 240 seconds]
Cakey has joined #ruby-lang
ianm_ has quit [Ping timeout: 240 seconds]
nathanstitt has quit [Quit: I growing sleepy]
mr-foobar has joined #ruby-lang
ianm_ has joined #ruby-lang
ianm_ has left #ruby-lang [#ruby-lang]
epitron has quit [Remote host closed the connection]
nisstyre_ has quit [Quit: WeeChat 0.4.3]
epitron has joined #ruby-lang
nisstyre has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 252 seconds]
ledestin has quit [Ping timeout: 252 seconds]
Coincidental has joined #ruby-lang
agrinb has joined #ruby-lang
michaeldeol has joined #ruby-lang
creede has quit [Ping timeout: 264 seconds]
Voker57 has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 240 seconds]
woollyams has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
yubrew has joined #ruby-lang
yubrew has quit [Ping timeout: 246 seconds]
mykoweb has joined #ruby-lang
marcdel has joined #ruby-lang
jsutt has quit [Ping timeout: 268 seconds]
woollyams has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcdel has quit [Ping timeout: 240 seconds]
creede has joined #ruby-lang
marcdel has joined #ruby-lang
r0bby is now known as robbyoconnor
ur5us has quit [Remote host closed the connection]
|jemc| has quit [Quit: WeeChat 0.4.3]
woollyams has joined #ruby-lang
gix has quit [Ping timeout: 246 seconds]
gix has joined #ruby-lang
creede has quit [Ping timeout: 268 seconds]
woollyams has quit [Read error: Connection reset by peer]
bahar has quit [Ping timeout: 264 seconds]
yfeldblu_ has joined #ruby-lang
woollyams has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
bahar has joined #ruby-lang
willmarshall has quit [Ping timeout: 268 seconds]
jsutt has joined #ruby-lang
vlad_starkov has joined #ruby-lang
fragamus has joined #ruby-lang
mdub has joined #ruby-lang
woollyams has quit [Read error: Connection reset by peer]
saarinen has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
vlad_starkov has quit [Remote host closed the connection]
willmarshall has joined #ruby-lang
mistym has joined #ruby-lang
jsutt has quit [Ping timeout: 240 seconds]
marcdel has quit []
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
yubrew has joined #ruby-lang
sdouglas_ has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
Coincidental has joined #ruby-lang
creede has joined #ruby-lang
sdouglas has quit [Ping timeout: 265 seconds]
araujo has quit [Quit: Leaving]
yubrew has quit [Ping timeout: 240 seconds]
Coincidental has quit [Remote host closed the connection]
nisstyre has joined #ruby-lang
Coincidental has joined #ruby-lang
_ht has joined #ruby-lang
marcdel has joined #ruby-lang
fezziwig has joined #ruby-lang
phansch has joined #ruby-lang
Lewix has joined #ruby-lang
vlad_starkov has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
mehlah has joined #ruby-lang
knu has joined #ruby-lang
fezziwig has quit [Remote host closed the connection]
fezziwig has joined #ruby-lang
Cakey has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby-lang
kro__ is now known as kro_
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
Cakey has joined #ruby-lang
fezziwig has quit [Ping timeout: 240 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
LMity has joined #ruby-lang
sdouglas_ has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
marcdel has quit []
dgaffney has quit [Remote host closed the connection]
dgaffney has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
agrinb has joined #ruby-lang
rahul_j has joined #ruby-lang
amclain_ has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
dgaffney has quit [Ping timeout: 264 seconds]
knu has joined #ruby-lang
agrinb has quit [Ping timeout: 252 seconds]
toretore has joined #ruby-lang
renzhi has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 240 seconds]
Cakey has quit [Ping timeout: 246 seconds]
knu has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Excess Flood]
LMity has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Client Quit]
<renzhi> hi, this might now be a pure ruby question, but I can't find any response, so I'll just ask here. I use the Net::HTTP client to upload a file with PUT, but the server detects a certain header is not properly, it just sends back a response (error information in the response body) and disconnect. Using http client in any other language, I can receive the response correctly, but the ruby client just detects a connection reset, and no response.
<renzhi> is there a way to read the response?
mykoweb has quit [Remote host closed the connection]
Barrin6 has quit [Quit: Leaving]
Lewix has quit [Remote host closed the connection]
willmarshall has quit [Quit: Textual IRC Client: www.textualapp.com]
<centrx> renzhi, Are you using #get_response ?
knu has joined #ruby-lang
mr-foobar has quit []
<renzhi> centrx: I don't get a chance to that, when calling http.request(req), it already throws the error
<renzhi> /usr/lib/ruby/1.9.1/net/protocol.rb:199:in `write': Connection reset by peer (Errno::ECONNRESET)
<centrx> hmm
<renzhi> I'm pretty ignorant on ruby, I'm using to write an automated test script for a project.
<centrx> Maybe there is something in the exception you can use?
<centrx> I am not so familiar with the Net::HTTP
<centrx> I would recommend using OpenURI
<centrx> That is in the standard library
<centrx> not sure if it meets your needs
knu has quit [Ping timeout: 252 seconds]
<renzhi> Using any other http client (or in another language), I got {"status":401,"code":"Unauthorized","message":"Invalid token"}, but with ruby Net::HTTP library, I don't seem to have a chance to read the response body.
<centrx> Try #ruby there are more people in there right now
<centrx> Also look through the Net::HTTP docs, they are pretty good
knu has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
<renzhi> centrx: thanks, I'll probably need to dig further in Net::HTTP code to see how it handles it
rahul_j has joined #ruby-lang
bahar has quit [Ping timeout: 264 seconds]
Cakey has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
bahar has joined #ruby-lang
skade has joined #ruby-lang
tonni_ has quit [Remote host closed the connection]
x0f has joined #ruby-lang
x0f_ has quit [Ping timeout: 240 seconds]
rahul_j has quit [Quit: rahul_j]
heftig has quit [Quit: Quitting]
mistym has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
mr-foobar has joined #ruby-lang
rahul_j has joined #ruby-lang
bahar has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
nisstyre has quit [Quit: WeeChat 0.4.3]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skammer_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
bahar has joined #ruby-lang
tonni has joined #ruby-lang
phansch has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
nibbo has quit [Read error: Operation timed out]
[spoiler] has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby-lang
yubrew has joined #ruby-lang
nibbo has joined #ruby-lang
knu has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
relix has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
tectonic has quit []
bahar has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
bahar has joined #ruby-lang
sdouglas has joined #ruby-lang
eugmill_ has joined #ruby-lang
alexju_ has joined #ruby-lang
dc5ala has joined #ruby-lang
hakunin_ has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
knu has joined #ruby-lang
mehlah_ has joined #ruby-lang
hackeron_ has joined #ruby-lang
pabs__ has quit [Ping timeout: 268 seconds]
msch has joined #ruby-lang
drbrain has quit [Ping timeout: 240 seconds]
eugmill has quit [Ping timeout: 240 seconds]
Veejay has quit [Ping timeout: 240 seconds]
hackeron has quit [Ping timeout: 240 seconds]
mehlah has quit [Ping timeout: 240 seconds]
alexju has quit [Ping timeout: 268 seconds]
robbyoconnor has quit [Ping timeout: 240 seconds]
r0bby has joined #ruby-lang
r0bby has quit [Changing host]
r0bby has joined #ruby-lang
r0bby has quit [Client Quit]
hakunin has quit [Ping timeout: 268 seconds]
Veejay has joined #ruby-lang
pabs has joined #ruby-lang
drbrain has joined #ruby-lang
tonni has quit [Ping timeout: 240 seconds]
nisstyre has joined #ruby-lang
robbyoconnor has joined #ruby-lang
tonni has joined #ruby-lang
mdub has quit [Ping timeout: 252 seconds]
dagobah has joined #ruby-lang
nisstyre has quit [Quit: WeeChat 0.4.3]
sdouglas has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
knu has quit [Ping timeout: 252 seconds]
knu has joined #ruby-lang
bahar has quit [Ping timeout: 264 seconds]
rahul_j_ has joined #ruby-lang
rahul_j has quit [Ping timeout: 264 seconds]
rahul_j_ is now known as rahul_j
bahar has joined #ruby-lang
vlad_starkov has joined #ruby-lang
hahuang65 has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
tonni has joined #ruby-lang
<ddfreyne> yorickpeterse: oga looks cool!
<ddfreyne> yorickpeterse: Interesting commit and nice analysis too :)
<ddfreyne> How ready is it?
<ddfreyne> yorickpeterse: I'm super interested in using it.
knu has quit [Ping timeout: 264 seconds]
mehlah_ has quit [Quit: Leaving...]
yubrew has joined #ruby-lang
yann_ck has joined #ruby-lang
yubrew has quit [Ping timeout: 252 seconds]
elliotec has joined #ruby-lang
apeiros has joined #ruby-lang
bahar has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby-lang
Jeticus has quit []
bahar has joined #ruby-lang
tbuehlmann has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
tbuehlmann has quit [Client Quit]
yann_ck has quit [Ping timeout: 246 seconds]
agrinb has quit [Ping timeout: 264 seconds]
yann_ck has joined #ruby-lang
fowl has left #ruby-lang ["bye faggots"]
tonni has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
elliotec_ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
elliotec has quit [Ping timeout: 265 seconds]
vondruch has joined #ruby-lang
dragonkh has quit [Quit: Bye!]
jhass|off is now known as jhass
Cakey has quit [Ping timeout: 252 seconds]
elliotec_ has quit [Remote host closed the connection]
bahar has quit [Ping timeout: 252 seconds]
elliotec has joined #ruby-lang
bahar has joined #ruby-lang
centrx has quit [Quit: All this computer hacking is making me thirsty]
elliotec has quit [Ping timeout: 246 seconds]
tonni has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
mechan1c has joined #ruby-lang
bahar has quit [Ping timeout: 252 seconds]
michd is now known as MichD
bahar has joined #ruby-lang
mbj has joined #ruby-lang
mechan1c_ has quit [Ping timeout: 240 seconds]
<yorickpeterse> morning
<yorickpeterse> ddfreyne: re: ready, not yet at all
mehlah has joined #ruby-lang
<yorickpeterse> currently it's just a lexer and AST parser
mikecmpbll has joined #ruby-lang
woollyams has joined #ruby-lang
alexju_ has quit [Remote host closed the connection]
solars has joined #ruby-lang
retro|cz has joined #ruby-lang
carraroj has joined #ruby-lang
jsrn has joined #ruby-lang
workmad3 has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
dilated_dinosaur has joined #ruby-lang
elliotec has joined #ruby-lang
elia has joined #ruby-lang
mr-foobar has quit [Remote host closed the connection]
bin7me has joined #ruby-lang
elliotec has quit [Ping timeout: 264 seconds]
<yorickpeterse> not sure if troll though
workmad3 has quit [Ping timeout: 252 seconds]
bahar has quit [Ping timeout: 252 seconds]
<yorickpeterse> ddfreyne: hopefully I can have a somewhat usable Gem late April
bahar has joined #ruby-lang
<yorickpeterse> I'll begin working on the DOM API this week
heftig has joined #ruby-lang
ur5us has joined #ruby-lang
benlovell has joined #ruby-lang
Ca11yWally has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
wallerdev has quit [Quit: wallerdev]
phansch has quit [Quit: WeeChat 0.4.2]
<yorickpeterse> I should probably set up a Doge coin donation button
sdouglas has joined #ruby-lang
robmiller has joined #ruby-lang
robmiller1 has joined #ruby-lang
robmiller has quit [Read error: Connection reset by peer]
sdouglas has quit [Ping timeout: 265 seconds]
DouweM has joined #ruby-lang
jds has joined #ruby-lang
victorbjelkholm has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
yubrew has joined #ruby-lang
m0s has joined #ruby-lang
skade has joined #ruby-lang
yubrew has quit [Ping timeout: 265 seconds]
Pupeno has joined #ruby-lang
knu has joined #ruby-lang
mr-foobar has joined #ruby-lang
jsutt has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
mbj has left #ruby-lang [#ruby-lang]
arBmind1 has quit [Quit: Leaving.]
ruby_newb has joined #ruby-lang
<ruby_newb> hello, are there ways to dump singleton with Marshal?
jsutt has quit [Ping timeout: 240 seconds]
<ruby_newb> currently when i'm trying to dump my object i'm getting "TypeError: singleton can't be dumped"
Mon_Ouie has joined #ruby-lang
<yorickpeterse> ruby_newb: probably not
skade has joined #ruby-lang
<ruby_newb> :(
<jhass> why do you want to? do you have to dump it using marshal? what about writing to_/from_json methods or things like that?
agrinb has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
<ruby_newb> jhass: for mocking/testing purposes. I'm using library which makes HTTP request and resturns singleton object so i want to dump that object and stub gem's remote method with my own which will return that dumped object
<jhass> just record an expect answer your library should parse (or two or three) and save them as fixtures
<ruby_newb> jhass: that's what i'm trying to do - saving expected answer into fixtures as marshalled object
<jhass> oh, you try to save a ruby object you do not own as fixture. Okay don't do that. Pass your library doubles instead that behave the same way as that object
agrinb has quit [Ping timeout: 240 seconds]
devgiant has joined #ruby-lang
<jhass> or use something like webmock to actually use the http response as fixture, though you might end up testing the library you depend upon with that
<ruby_newb> jhass: why not dumping ruby objects as fixtures?
<jhass> there's no benefit
<jhass> if the API of the object you dump changes you have to adapt it anyway so you can use doubles straight away
<yorickpeterse> ruby_newb: you should not use Marhsal for that crap
<yorickpeterse> In fact, you probably should not use Marshal unless you know what you're doing
<yorickpeterse> if you start dumping Ruby objects you'll end up with a crapton of fixture files clogging your repositories
<whitequark> ruby_newb: answering your original question: no, dumping objects with singleton classes is impossible.
<yorickpeterse> In particular Marshal is not really compact unless you compress it
<whitequark> (also, dumping lambdas)
<yorickpeterse> Even then it's pretty bloated
<ruby_newb> got it, thanks guys!
phansch has joined #ruby-lang
arBmind has joined #ruby-lang
phansch has quit [Client Quit]
cout_ is now known as cout
sdouglas has joined #ruby-lang
yubrew has joined #ruby-lang
sdouglas has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
Speed has joined #ruby-lang
cored_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
rahul_j has joined #ruby-lang
ruby_newb has quit [Quit: leaving]
vlad_starkov has quit [Remote host closed the connection]
jinie has quit [Quit: ZNC - http://znc.in]
inkblots has joined #ruby-lang
elliotec has joined #ruby-lang
elliotec has quit [Ping timeout: 252 seconds]
woollyams has quit [Ping timeout: 252 seconds]
woollyams has joined #ruby-lang
hahuang65 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 265 seconds]
woollyams has quit [Ping timeout: 252 seconds]
shaman42 has joined #ruby-lang
yubrew has joined #ruby-lang
Fushi has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
<ljarvis> moin
yubrew has quit [Ping timeout: 246 seconds]
robmiller1 has quit [Quit: Leaving.]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
lcdhoffman has joined #ruby-lang
phansch has joined #ruby-lang
eugmill_ has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 246 seconds]
symm- has quit [Ping timeout: 252 seconds]
skammer_ has quit [Quit: Textual IRC Client: www.textualapp.com]
skammer has joined #ruby-lang
elliotec has joined #ruby-lang
skammer has quit [Max SendQ exceeded]
skammer has joined #ruby-lang
symm- has joined #ruby-lang
skammer has quit [Max SendQ exceeded]
skammer has joined #ruby-lang
skammer has quit [Max SendQ exceeded]
agrinb has joined #ruby-lang
skammer has joined #ruby-lang
skammer has quit [Max SendQ exceeded]
khaase has joined #ruby-lang
skammer has joined #ruby-lang
skammer has quit [Max SendQ exceeded]
skammer has joined #ruby-lang
elliotec has quit [Ping timeout: 265 seconds]
skammer has quit [Max SendQ exceeded]
agrinb has quit [Ping timeout: 246 seconds]
skammer has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
pabloh has joined #ruby-lang
LMity has joined #ruby-lang
tkuchiki has joined #ruby-lang
skade has joined #ruby-lang
benlovell has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
momomomomo has joined #ruby-lang
yubrew has joined #ruby-lang
jsutt has joined #ruby-lang
yubrew has quit [Ping timeout: 268 seconds]
diegoviola has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak has quit [Remote host closed the connection]
jsutt has quit [Ping timeout: 246 seconds]
jgpawletko has joined #ruby-lang
luiz_lha has quit [Remote host closed the connection]
luiz_lha has joined #ruby-lang
LMity has quit [Ping timeout: 268 seconds]
yfeldblum has joined #ruby-lang
eugmill has joined #ruby-lang
cored_ has quit [Remote host closed the connection]
cored has quit [Remote host closed the connection]
arubin has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
rofel has joined #ruby-lang
yfeldblum has quit [Ping timeout: 268 seconds]
eugmill has quit [Quit: Leaving...]
miqui has joined #ruby-lang
carraroj has quit [Remote host closed the connection]
pabloh has quit [Remote host closed the connection]
alekst has joined #ruby-lang
vpretzel has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
thmzlt has quit []
rahul_j has joined #ruby-lang
cnivolle has joined #ruby-lang
fusillicode has joined #ruby-lang
<fusillicode> :)
<fusillicode> hi guys :)
<yorickpeterse> ( ¯3¯)
<fusillicode> :3
fusillicode has left #ruby-lang [#ruby-lang]
elia has quit [Quit: Computer has gone to sleep.]
achal has joined #ruby-lang
<benlovell> doge funding
<benlovell> kickdoge
<yorickpeterse> do you check my fucking Twitter live or what?
<benlovell> I am your twitter
<yorickpeterse> Dogestarter
<benlovell> twisted dogestarter
RoxasShadowRS has joined #ruby-lang
<benlovell> how's oga
<yorickpeterse> The other day I was thinking of doing motherfuckingstartup.com
<benlovell> heh
<yorickpeterse> Coming along nicely, starting on the DOM API this week
enebo has joined #ruby-lang
<benlovell> cool, this work will save many lives
<benlovell> I for one will tip you doge
<yorickpeterse> I'm amazed how very few people openly complain about Nokogiri (that I know of)
<yorickpeterse> I'm also amazed by how it apparently "works" on MRI
<benlovell> because the maintainer is just the best guy
<benlovell> guy(s)
elia has joined #ruby-lang
<yorickpeterse> Well yeah, Tender & friends are good people
<yorickpeterse> I see Nokogiri as a monster gone rogue
<yorickpeterse> not the work of a sadist
<benlovell> minswan which means matz is nice so we suffer shit if the maintainer is a nice guy/gal
<benlovell> but anyway, oss etc
<yorickpeterse> also have some ideas on making it possible parse omg-scale input, but I'll have to experiment with that
<benlovell> pff, not zomg-scale, not interested
<benlovell> :)
<yorickpeterse> well yeah, I'm not doing this in Node
<benlovell> heh
<benlovell> so rubyc still seems to be going down
<yorickpeterse> I withdrew my proposal
<benlovell> withdraw the troops
<yorickpeterse> tl;dr no response for two weeks after I had some questions, next Email is "So we checked and Rubinius is not in trend lately. Could you perhaps do it about [literally 20 buzzwords]?"
<benlovell> 'not in trend' such lol.
yubrew has joined #ruby-lang
<yorickpeterse> I can't blame the person themselves because they were probably just an office manager of some sort
<benlovell> they have a pretty good lineup of speakers
<yorickpeterse> "My colleagues send their regards and are wondering if you can change your topic. We have made some research and it seems that rubinius is not in trend lately."
<yorickpeterse> ^ step one to piss me off
<yorickpeterse> "We have made a short list of topics to guide you about our interests. Can you make a presentation about following: ruby, object-oriented design in ruby and ruby on rails, RoR highload, RoR tips and tricks, RoR supportive technologies and frameworks (RoR + Node.js, RoR + JS, RoR + SQL, RoR + NoSQL, RoR + WebServices), refactoring in Rails, Rails guides and secrets?"
<yorickpeterse> step 2 - 100
<benlovell> phahahaha
<yorickpeterse> I wasn't lying when I said "literally 20 buzzwords"
<benlovell> you should have just replied "BINGO!"
renzhi has quit [Read error: Connection timed out]
<yorickpeterse> kindly explained them I wasn't a fan of this
<benlovell> such buzzwords
<benlovell> i'm pretty sure that email crashed every server it passed through
<yorickpeterse> Gives me some extra time to come up with stuff for Arrrrcamp though
<benlovell> i'm off to manila on wednesday for three days, this is going to hurt.
<yorickpeterse> heh
<benlovell> then home for a day and off to florida. hihi jetlag
<yorickpeterse> I've yet to plan any holidays this year, probably going back to South Korea some time in June/July
<benlovell> oh this is for confs.
<yorickpeterse> pfff
<benlovell> conpfffs
yubrew has quit [Ping timeout: 240 seconds]
tonni has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 246 seconds]
<yorickpeterse> ugh, require_dependency
<yorickpeterse> surely putting that everywhere will solve your autoloading hell
AncientAmateur has joined #ruby-lang
inkblots has quit [Ping timeout: 252 seconds]
robmiller has joined #ruby-lang
pabloh has joined #ruby-lang
dik_dak has joined #ruby-lang
tonni has joined #ruby-lang
yfeldblum has joined #ruby-lang
lcdhoffman has joined #ruby-lang
<yorickpeterse> hahaha
<yorickpeterse> and the fucking fav of the bot as well
DouweM has quit [Quit: Leaving...]
<benlovell> hahaha
yfeldblum has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby-lang
johnny_rugger has joined #ruby-lang
luiz_lha has quit [Quit: Saindo]
nathanstitt has joined #ruby-lang
tylersmith has joined #ruby-lang
pabloh has quit [Ping timeout: 246 seconds]
luiz_lha has joined #ruby-lang
tmi has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
bradcliffe has joined #ruby-lang
loincloth has joined #ruby-lang
mykoweb has joined #ruby-lang
tmi has quit [Client Quit]
johnny_rugger has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby-lang
priodev has quit [Ping timeout: 265 seconds]
<yorickpeterse> "It's our belief that Instagram can be a platform for changing the way we see the world."
AncientAmateur has quit [Remote host closed the connection]
<yorickpeterse> well, I guess that if you see the world through a fake sepia filter it indeed changes things
AncientAmateur has joined #ruby-lang
Coincidental has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
relix has joined #ruby-lang
priodev has joined #ruby-lang
johnny_rugger has joined #ruby-lang
skammer is now known as skammer|afk
skammer|afk is now known as skammer
<maloik> all those "we will change the world" visions are usually bullshit
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<maloik> until it suddenly happens (see twitter)
elliotec has joined #ruby-lang
<yorickpeterse> Twitter was smart and didn't shit on their dev users until 2014
khaase_ has joined #ruby-lang
khaase_ has quit [Client Quit]
khaase_ has joined #ruby-lang
khaase_ is now known as khaase__
khaase__ is now known as khaase___
khaase___ is now known as khaase____
workmad3 has joined #ruby-lang
ivan_ has joined #ruby-lang
inkblots has joined #ruby-lang
agrinb has joined #ruby-lang
khaase has quit [Ping timeout: 268 seconds]
rofel has quit [Quit: Leaving...]
elliotec has quit [Ping timeout: 264 seconds]
khaase____ is now known as khaase
khaase has quit [Changing host]
khaase has joined #ruby-lang
bryanl_ is now known as bryanl
sdouglas has joined #ruby-lang
dilated_dinosaur has quit [Ping timeout: 246 seconds]
yubrew has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
alexju has joined #ruby-lang
rahul_j has quit [Ping timeout: 252 seconds]
seanlinsley has quit [Quit: …]
rahul_j has joined #ruby-lang
momomomomo has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 264 seconds]
jsutt has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AncientAmateur has joined #ruby-lang
fijimunkii has quit [Ping timeout: 245 seconds]
momomomomo has quit [Client Quit]
Pupeno has quit [Remote host closed the connection]
jsutt has quit [Ping timeout: 246 seconds]
yubrew has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
skammer is now known as skammer|afk
skammer|afk is now known as skammer
momomomomo has joined #ruby-lang
fezziwig has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 264 seconds]
saarinen has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
robbyoconnor has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
brettweavnet has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
robbyoconnor has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby-lang
mistym has joined #ruby-lang
tonni has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby-lang
rahul_j has joined #ruby-lang
fezziwig has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
tonni has joined #ruby-lang
dgaffney has joined #ruby-lang
saarinen has quit [Quit: saarinen]
retro|cz has quit [Ping timeout: 252 seconds]
Speed has quit [Ping timeout: 264 seconds]
darix has quit [Quit: brb]
Silex^^ is now known as Silex
brettweavnet has quit [Ping timeout: 246 seconds]
araujo has joined #ruby-lang
tonni has quit [Remote host closed the connection]
darix has joined #ruby-lang
soahccc has quit [Excess Flood]
mistym has joined #ruby-lang
bin7me has quit [Quit: Leaving]
robmiller has quit [Quit: Leaving.]
|jemc| has joined #ruby-lang
seanlinsley has joined #ruby-lang
khaase_ has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
khaase has quit [Read error: Operation timed out]
tylersmith has quit [Remote host closed the connection]
khaase_ is now known as khaase
khaase has quit [Changing host]
khaase has joined #ruby-lang
tylersmith has joined #ruby-lang
hahuang65 has joined #ruby-lang
relix has quit [Ping timeout: 268 seconds]
tylersmith has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 264 seconds]
Cakey has joined #ruby-lang
vlad_starkov has joined #ruby-lang
renzhi has joined #ruby-lang
fragamus has joined #ruby-lang
renzhi has quit [Max SendQ exceeded]
shinnya has quit [Ping timeout: 265 seconds]
dfr|work has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
brettweavnet has joined #ruby-lang
robmiller has joined #ruby-lang
havenwood has quit [Ping timeout: 246 seconds]
stardiviner has joined #ruby-lang
jsutt has joined #ruby-lang
havenwood has joined #ruby-lang
lcdhoffman has joined #ruby-lang
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cakey has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
AncientAmateur has joined #ruby-lang
jsutt has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
amerine has joined #ruby-lang
relix has joined #ruby-lang
brettweavnet has quit [Read error: Connection reset by peer]
__butch__ has joined #ruby-lang
elliotec has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby-lang
johnny_rugger has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phansch has quit [Quit: WeeChat 0.4.2]
apeiros has quit [Remote host closed the connection]
vsorlov has joined #ruby-lang
elliotec has quit [Ping timeout: 268 seconds]
agrinb has joined #ruby-lang
alexju has quit [Remote host closed the connection]
rippa has joined #ruby-lang
mistym has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 240 seconds]
retro|cz has joined #ruby-lang
michaeldeol has joined #ruby-lang
<retro|cz> Hello. Anyone using stomp gem here? I have problem with auto reconnect. Maybe someone did it already...
shaman42 has quit [Quit: Näihin sanoihin, näihin pelkotiloihin lopetamme lähetyksen Supon arkistoihin laittamalla foliohatun päähämme.]
tylersmith has joined #ruby-lang
Coincidental has joined #ruby-lang
jeer has quit [Ping timeout: 264 seconds]
Coincidental has quit [Client Quit]
jcs222 has joined #ruby-lang
shaman42 has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgpawletko is now known as jgpawletko_away
luiz_lha has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby-lang
khaase has quit [Remote host closed the connection]
khaase has joined #ruby-lang
mistym has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
agrinb has joined #ruby-lang
tkuchiki has joined #ruby-lang
khaase has quit [Ping timeout: 252 seconds]
tbuehlmann has quit [Quit: Leaving]
Speed has joined #ruby-lang
marcostoledo has joined #ruby-lang
bantic has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
loincloth has quit [Remote host closed the connection]
inkblots has left #ruby-lang [#ruby-lang]
wallerdev has joined #ruby-lang
chouhoul_ has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
AncientAmateur has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
alexju has joined #ruby-lang
sdouglas has joined #ruby-lang
jsrn has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 240 seconds]
heftig has quit [Quit: Quitting]
Pupeno has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
hahuang65 has joined #ruby-lang
Ins_ has joined #ruby-lang
<Ins_> Hi
dagobah has quit [Quit: Leaving...]
<wallerdev> hi
sdouglas has quit [Ping timeout: 265 seconds]
<yorickpeterse> ( ¯3¯)
<wallerdev> haha
<wallerdev> true love
<Ins_> how does one force a subclass to declare a certain method?
<Ins_> if that makes any sense
<yorickpeterse> Ins_: You can't, Ruby has no interfaces
<yorickpeterse> You can mimic it, but you can't force it
<yorickpeterse> e.g. you can do
<Ins_> can you elaborate on what you mean by 'mimic' it?
bjh13 has joined #ruby-lang
<yorickpeterse> class Base; def some_method; raise NotImplementedError; end; end; class Child < Base; end
<yorickpeterse> Then if you call some_method on an instance of Child it will raise
<yorickpeterse> but it will not happen until you actually call the method
<wallerdev> it would raise that anyway wouldnt it haha
<yorickpeterse> wallerdev: yes, but typically you'd provide a better error other than "not implemented"
<wallerdev> idk, most libraries seem to just raise whatever error happens, usually not standard to check things and raise specific errors to help people out
<yorickpeterse> Ins_: in short, the concept of interfaces doesn't exist in Ruby
<Ins_> would that work if the Base class is abstract? and by abstract I mean def initialize(blah) puts "Error: This is an abstract class, you fool!" end
<Ins_> I see
<wallerdev> abstract lol
<yorickpeterse> Ins_: no
<Ins_> Hey man be kind, I'm new to the language
<yorickpeterse> not unless the sub class overrides the #initialize of the parent
<Ins_> ruby is so different
<wallerdev> stop trying to turn this into java :p
<yorickpeterse> In general you don't need interfaces in Ruby
<Ins_> JAVA IS ALL I KNOW
<Ins_> the subclass does override initialize
<yorickpeterse> Then you can't initialize it
<yorickpeterse> because it will still raise
<Ins_> wait, so i can't initialize the subclass?
<yorickpeterse> if the parent constructor method raises and is not overwritten then no, you can't
<yorickpeterse> (that is, you can't initialize the child)
<yorickpeterse> Constructor methods aren't overwritten unless you explicitly declare them
<yorickpeterse> I think Ruby stdlib has some mixin that lets you create abstract classes, but I've yet to see a use case for it
phansch has joined #ruby-lang
<Ins_> Hmm I'm still confused
<Ins_> that's what i have so far, each subclass doesn't have their own initialize method yet
<jhass> Ins_: we don't share functionality with abstract classes, we share it with mixis (modules)
<yorickpeterse> what's the @num / @text doing there?
<jhass> *mixins
<Ins_> class variables
<benlovell> the java is strong in this one
<Ins_> uh... right?
<yorickpeterse> Those aren't decorators btw, they're instance variables
<yorickpeterse> errr well to be exact
<yorickpeterse> they're instance variables on class level
<yorickpeterse> but they're not used at all
<yorickpeterse> You don't need to pre-declare instance variables in Ruby
jgpawletko_away is now known as jgpawletko
<yorickpeterse> e.g.
<yorickpeterse> Ins_: https://eval.in/125919
<jhass> Ins_: we do snake_case for method names, not camlCase. Also we leave off empty parens ()
yann_ck has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> Ins_: toString -> to_s
yann_ck has joined #ruby-lang
<yorickpeterse> btw I'm heading off, the rest of you give the person a break :P
<Ins_> No I know to_s is a thing but I'm declaring my own 'version'
<yorickpeterse> We want them to see the light, not run away from it
<yorickpeterse> bbl
<Ins_> Yeah guys go easy on me
<jhass> class Person; attr_reader :name; def initialize name; @name = name; end; actually
saarinen has joined #ruby-lang
<Ins_> attr_reader is an accessor, yeah?
andrewvos has left #ruby-lang ["WeeChat 0.4.0"]
<jhass> Ins_: the printing version of #to_s is #display by convention
<benlovell> Ins_: think of it as a getter
<jhass> attr_reader is a getter, a shortcut for doing def name; @name; end
<jhass> attr_writter is a setter
<jhass> and attr_accessor is defining both
<Ins_> So uh... accessor = getter and mutator = setter?
<Ins_> one thing gets the value and the other changes it
<workmad3> Ins_: accessor == access methods (get and set)
<Ins_> tried to change it based on the example posted
<jhass> Ins_: also in ruby we wouldn't do such a thing as a TreeItem for every type, a variable can hold any type so it's just one class
<Ins_> Yeah, but I'm required to make subclasses in this case
<jhass> who says that?
<Ins_> I noticed the variables in ruby works like 'auto' in cpp
<Ins_> kinda
<wallerdev> kinda
<wallerdev> except you can do x = 5; x = "something else"
<jhass> you still have the stray class level instance variables there
johnny_rugger has joined #ruby-lang
<Ins_> so right now, i want to make sure that an instance of TreeItem can't be declared (throw an exception, etc)
<jhass> your example really is class TreeItem; def initialize value; @value = value; end; def display; print @value; end; end;
<Ins_> basically 'pseudo-abstract' if you will
<jhass> just strip that class
<jhass> it has no use
<Ins_> TreeItem class?
<jhass> yes
<jhass> and as a side effect of removing it, you can't instantiate it
<jhass> ;)
<Ins_> Dude, this is an assignment. I know what you are suggesting is probably the best answer but there are guidelines and stuff
<jhass> these don't seem to be written for ruby
<Ins_> well, that's because i wrote it :p
<Ins_> never touched ruby in my life, it scares me
<jhass> so you can't change your own guidelines?
dc5ala has joined #ruby-lang
<Ins_> maybe it will grow on me
<Ins_> No, have to follow assignment guidelines
<Ins_> i meant i wrote the code
<Ins_> that you see there
<jhass> that's clear
<jhass> but the guidelines don't seem to be written for ruby
<Ins_> yes yes, we've already established i'm terrible
<jhass> but java or c++ or so
<Ins_> well, it has to be done in ruby
<Ins_> that's the point of this
<Ins_> we're 'converting' code to ruby to see how it does things differently
<jhass> give your tutor or whatever a slap form me for that
<Ins_> I'm sure you guys would tear him apart if you could
<Ins_> but for now lets help me learn and not get a 0 on this
<jhass> so as said your current example reduces to class TreeItem; def initialize value; @value = value; end; def display; print @value; end; end; in ruby
<Ins_> Yes
<Ins_> wait, what do you mean by 'reduces'
<jhass> equal functionality if the other one would be, dunno, java
<Ins_> uh i guess
bantic has quit [Quit: bantic]
<Ins_> TreeItem has two children, numeric and string
<Ins_> TreeItem needs to throw some sort of error if someone tried to create an instance of it
<jhass> see, that's java thinking still
<Ins_> What part
<wallerdev> throwing an error if someone tries to create a treeitem
Lewix has joined #ruby-lang
<Ins_> Well, it's what we need to do in this case. I know what I'm trying to do here defeats the purpose of this language and will probably make you guys hate me but it needs to be done
<wallerdev> create a setup method and call that from initialize
<jhass> but okay, let's make it verbose for the sake of demonstration: module TreeItem; def initialize value; @value = value; end; def display; print @value; end; end; class NumericTreeItem; include TreeItem; end; class StringTreeItem; include TreeItem; end; NumericTreeItem.new(5).is_a? TreeItem #=> true
<wallerdev> and fill that out in the child classes
<Ins_> So treeitem is a module now?
<jhass> yes
<jhass> which is the closest equivalent to a abstract class
victorbjelkholm has quit [Quit: Leaving]
<Ins_> I see
<Ins_> And it contains initialize and dispay functions
<jhass> methods
<jhass> ruby has no functions
<Ins_> ok ok
<Ins_> methods
<jhass> and you can include more than one module into a class
<Ins_> (they are synonyms in my mind >.>)
<Ins_> Yeah, he said something about that being the closest way of using multiple inheritance in ruby
<jhass> a method has a receiver, a place where it lives and can access. A function don't
<Ins_> now when i create the stringtreeitem and include the module treeitem, does stringtreeitem have to write their own definitions for the methods in the module?
<jhass> no
<Ins_> rewrite their own 'versions'*
<jhass> it's not an interface, it's more an abstract class, a way to share functionality
centrx has joined #ruby-lang
<Ins_> Yeah, interfaces force the classes that implement them to include their own versions of the methods
<Ins_> I guess I can't really make ruby do the same with modules
<jhass> ruby intentionally doesn't have such a concept
<jhass> an interface is defined by its existence. A great example are IO and StringIO in core ruby
<jhass> they have the same interface
<jhass> yet they share nothing but the same method names (basically)
<jhass> so whatever expects an IO object, you can pass it a StringIO
<Ins_> I see
sdouglas has joined #ruby-lang
<Ins_> but this won't work
<Ins_> Tree needs to hold an instance of treeitem
<jhass> no it doesn't
<Ins_> In this it needs to
<jhass> it needs to hold something _that looks_ like a TreeItem
<Ins_> Ok
<Ins_> How does it work then?
<Ins_> they aren't children of treeitem anymore
<jhass> yes
<Ins_> is there someway to have them check if they implement treeitem?
<jhass> you just assume the right methods are there
<Ins_> or rather, 'include'
<Ins_> Wait, say again?
mikecmpbll has quit [Ping timeout: 252 seconds]
<jhass> just call them, ruby will complain to the caller with a NoMethodError if he passes you something unexpected
yfeldblum has joined #ruby-lang
<Ins_> But how do I declare an instance of 'StringTreeItem' or 'NumericTreeItem' inside of the 'Tree' class?
<jhass> if you do want to be explicit and don't call too many methods, you can do something like def add tree_item; raise ArgumentError unless tree_item.respond_to? :eql?; @tree << tree_item; end
<jhass> what do you mean by declare in the tree class?
<Ins_> I'm just going to quote the assignment
jsutt has joined #ruby-lang
jsutt has quit [Max SendQ exceeded]
<Ins_> "You must define a class TreeItem. Any object belonging to any subclass of TreeItem (you will never make instances of TreeItem itself) may be stored AS DATA in a node of your trees. TreeItem should have a subclasses NumericTreeItem and StringTreeItem, and you will also need a class Tree, placed appropriately to this hierarchy to deal with the fact that trees can be stored as data as well"
<jhass> I mean in ruby you could probably get rid of the TreeItem class altogether
|jemc| has quit [Ping timeout: 246 seconds]
sdouglas has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby-lang
<Ins_> In ruby I can do a lot of things that'll make my life easier, but they also invalidate this assignment's requirements
mr-foobar has quit [Remote host closed the connection]
<wallerdev> is it one of those pick your own language assignments
<Ins_> nope
<Ins_> that's the next one
<wallerdev> does your teacher not know ruby or something? i dont know why this would be a ruby assignment
wallerdev has left #ruby-lang [#ruby-lang]
mr-foobar has joined #ruby-lang
wallerdev has joined #ruby-lang
<Ins_> I dont know man
<Ins_> So, I'll revert the changes I made to treeitem, as it NEEDS to be a class
chouhoulis has joined #ruby-lang
<Ins_> will add initialize(data) puts "Abstract class!" end inside of that treeitem
<jhass> this is a really stupid assignment for ruby, it's teaching you the wrong way to do it. Anyway, that's what it results in: http://paste.mrzyx.de/p6ca2ff26/
<chris2> raise NotImplementedError
<chris2> (and yes)
|jemc| has joined #ruby-lang
<Ins_> I won't copy/paste that code. I need to see if i understand it
<Ins_> so, what does << self do
<jhass> class << someobj opens the singleton class of someobj
mr-fooba_ has joined #ruby-lang
<jhass> a class definition in ruby is an instance of the class Class
<wallerdev> loll
<jhass> and self at the class level is pointing to that instance
<Ins_> and when i create initialize(data) methods for the subclass, but don't add the line 'super()' will the subclass still call the parent 'initialize' method?
<wallerdev> i dont think the teacher is gonna understand that code
<jhass> so we open up the singleton class of the class, where the new method lives, and make it private
solars has quit [Ping timeout: 265 seconds]
<jhass> wallerdev: the better, makes him realize his... I should stop
<wallerdev> :p
mr-foobar has quit [Ping timeout: 240 seconds]
<jhass> Ins_: no,
khaase has joined #ruby-lang
<Ins_> Ok I think i'm beginning to get what you are explaining
<jhass> I should explain singleton classes
rahul_j has quit [Quit: rahul_j]
<jhass> every object in ruby has class that's unique to it (technically they are created on demand, but oh well)
elia has quit [Quit: Computer has gone to sleep.]
<jhass> so you can define or override a method on an instance without affecting any other instance
<Ins_> I remember a bit of singleton.
<Ins_> Yeah, yeah just like that
<Ins_> and you can add a method to a single instance of a class right?
<Ins_> or modify it
<jhass> a = "string a"; b = "string b"; class String; def both; end; end; def a.only_a; end; a.both # works; b.both # works; a.only_a #works, b.only_a # doesn't work
<Ins_> I understand
<jhass> yes, to single instance of a class, also called an object
benlovell has quit [Ping timeout: 264 seconds]
|jemc| has quit [Ping timeout: 246 seconds]
<Ins_> am I on the right track
<jhass> that's better yeah
<jhass> leave off the ;, I just use them here to save newlines
<Ins_> I know its probably making your insides cringe
jsutt has joined #ruby-lang
<jhass> does the assignment dictate to name it toString?
jsutt has quit [Max SendQ exceeded]
<wallerdev> what school is this anyway
<Ins_> Yeah, it does say I have to call it that
<jhass> because that doesn't describe what it does anyway and follows no ruby convention
ledestin has joined #ruby-lang
<jhass> it and should print the value, not return it?
jsutt has joined #ruby-lang
<wallerdev> university of manitoba?
sdouglas has joined #ruby-lang
<jhass> this is really a java assignment with sed -i s/Java/Ruby/ run on it
<wallerdev> haha yeah its a confusing assignment for ruby
<Ins_> waller what are you talking about
chouhoulis has quit [Remote host closed the connection]
<wallerdev> idk your hostname is umanitoba.ca
<wallerdev> and you said it was an assignment so i assumed you went to school there
agrinb has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby-lang
<jhass> Ins_: so I still would rather make ::new private (and maybe ::allocate if you want to be on the save side)
<jhass> *safe
<Ins_> I swear its not academic dishonesty '^'
agrinb has joined #ruby-lang
<Ins_> I write all code myself, didn't copy/paste squat
<Ins_> I am only here to learn
<Ins_> what does that do, jhass
<wallerdev> haha i know it's not, always good to ask for help to learn things
<jhass> making ::new private?
<Ins_> Yeah
<jhass> prevent an external caller from calling it
<jhass> so it's impossible to make a new instance (well discouraged, you can always do almost anything with ruby)
mikecmpbll has quit [Quit: i've nodded off.]
marcostoledo has quit [Quit: Leaving...]
mikecmpbll has joined #ruby-lang
<Ins_> I think the overriding of the methods is good enough for my case
<jhass> >> class Foo; attr_accessor :value; def initialize; raise; end; def display; print value; end; end; foo = Foo.allocate; foo.value = "bar"; foo.display;
<eval-in> jhass => barnil (https://eval.in/125932)
workmad3 has quit [Ping timeout: 265 seconds]
<jhass> see, these things just make no sense in ruby. I'm repeating myself, sorry
<Ins_> I see
simono has joined #ruby-lang
<Ins_> is placing 'attr_accessor :value' in a module legal?
<jhass> yes, since it just generates methods
<whitequark> but pointless
<whitequark> oh. no
jsutt has quit [Ping timeout: 246 seconds]
<Ins_> pointless how?
<whitequark> you can include that module somewhere
<jhass> yep
AncientAmateur has joined #ruby-lang
<Ins_> Ok, i'm out then
<Ins_> thanks for the help, will probably return again tonight
Ins_ has quit [Quit: Page closed]
Mon_Ouie has joined #ruby-lang
loincloth has joined #ruby-lang
hahuang61 has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby-lang
havenwood has joined #ruby-lang
rahul_j has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
CaptainJet has joined #ruby-lang
|jemc| has joined #ruby-lang
yann_ck has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
momomomomo has quit [Quit: momomomomo]
shennyg__ has quit [Quit: Updating details, brb]
shennyg has joined #ruby-lang
cored has quit [Quit: leaving]
cored has joined #ruby-lang
futilegames has joined #ruby-lang
tharindu has joined #ruby-lang
apeiros has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
sdegutis has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
futilegames has quit [Client Quit]
futilegames has joined #ruby-lang
<sdegutis> What tools do you use to switch between projects with different versions of the same gem?
dc5ala has quit [Quit: Ex-Chat]
<sdegutis> I was using RVM, then I started using rbenv and was considering using rbenv-gemsets, now I'm looking into chruby with gst, and it all makes me want to go back to RVM.
<jhass> bundler
<sdegutis> Just "bundler exec"?
<jhass> yeah
postmodern has joined #ruby-lang
<sdegutis> Hmm I may do that.
<jhass> or have the project require 'bundler/setup'
darix has quit [Quit: may the packets be with you...]
<sdegutis> One of my hopes was that I'd be able to find a solution that let me have per-project versions of gems installed, but also be able to use it in eshell.
<sdegutis> I guess 'bundler exec' would probably work, but I remember it being slow.
<sdegutis> I also heard about using `gem install --install-user <some-gem>`, I wonder if that would play nicely here...
havenwood has quit [Remote host closed the connection]
<jhass> --user-install and that just changes your GEM_HOME to ~/.gems/ruby/ABI_VERSION/ (iirc)
<sdegutis> Ah, hmm.
<sdegutis> There's got to be a way to tell gems to install and use a local ./.gem/
<jhass> you could manually manage $GEM_HOME, but you'd probably just end up writing a custom gemset implementation
LMity has joined #ruby-lang
<jhass> the benefit of using bundler is that I don't have to reinstall the commen gems all the time
<sdegutis> Ah good point.
benanne has joined #ruby-lang
havenwood has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
<|jemc|> does anyone know of a list of strings to use for testing encoding/decoding strings of various encodings to/from byte arrays in a unit test?
AncientAmateur has joined #ruby-lang
sdouglas has joined #ruby-lang
centrx has quit [Remote host closed the connection]
<|jemc|> some common set of strings with known encoded byte sequences that covers the range of some of the problems you might run into
centrx has joined #ruby-lang
<|jemc|> I could obviously select some strings at random and run them through a known good encoder/decoder, but I may not be able to successfully highlight some of the edge cases
havenwood has quit [Ping timeout: 268 seconds]
<yorickpeterse> back
LMity has quit [Ping timeout: 268 seconds]
darix has joined #ruby-lang
sepp2k has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
Cakey has joined #ruby-lang
robmiller has quit [Quit: Leaving.]
Cakey has quit [Ping timeout: 264 seconds]
jsutt has joined #ruby-lang
jsutt has quit [Max SendQ exceeded]
jsutt has joined #ruby-lang
elliotec has joined #ruby-lang
bantic has joined #ruby-lang
elliotec_ has joined #ruby-lang
dstynchula has joined #ruby-lang
arubin has joined #ruby-lang
tonni has joined #ruby-lang
* yorickpeterse is compiling dogecoint-qt
<yorickpeterse> time to get on the Dogetrain
elliotec_ has quit [Remote host closed the connection]
elliotec_ has joined #ruby-lang
ivan_ has quit [Read error: Operation timed out]
Lewix has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
<yorickpeterse> haha, this GUI is amazing
<yorickpeterse> Fucking comic sans too
elliotec has quit [Ping timeout: 265 seconds]
yfeldblu_ has quit [Remote host closed the connection]
MichD is now known as michd
marcostoledo has joined #ruby-lang
retro|cz has quit [Read error: Operation timed out]
luiz_lha has joined #ruby-lang
rahul_j has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
robmiller has joined #ruby-lang
devgiant has quit [Quit: Leaving]
rahul_j has quit [Quit: rahul_j]
elliotec_ has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
devgiant has joined #ruby-lang
priodev has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
linc01n has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sdouglas has quit [Ping timeout: 265 seconds]
loincloth has joined #ruby-lang
<FastJack> yorickpeterse: such money
LMity has joined #ruby-lang
benjamin-patch has joined #ruby-lang
linc01n has joined #ruby-lang
robmiller has quit [Quit: Leaving.]
cnivolle_ has joined #ruby-lang
cnivolle_ has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
cnivolle has quit [Ping timeout: 240 seconds]
priodev has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
LMity has quit [Quit: Nettalk6 - www.ntalk.de]
elliotec has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 252 seconds]
elliotec_ has joined #ruby-lang
sdegutis has quit []
vsorlov has quit [Ping timeout: 252 seconds]
jds has quit [Quit: Connection closed for inactivity]
rahul_j has quit [Quit: rahul_j]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fushi has quit [Quit: Connection closed for inactivity]
vlad_starkov has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby-lang
toastynerd has joined #ruby-lang
inkblots has joined #ruby-lang
Squarepy has joined #ruby-lang
Squarepy has quit [Changing host]
Squarepy has joined #ruby-lang
cmaxw has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
Burgestrand has joined #ruby-lang
toastynerd has joined #ruby-lang
elliotec_ has quit [Remote host closed the connection]
brettweavnet has joined #ruby-lang
elliotec has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
elliotec has quit [Ping timeout: 240 seconds]
yann_ck has joined #ruby-lang
brettweavnet has quit [Quit: Textual IRC Client: www.textualapp.com]
brettweavnet has joined #ruby-lang
Burgestrand has quit [Quit: Burgestrand]
bantic has quit [Quit: bantic]
elliotec has joined #ruby-lang
ur5us has joined #ruby-lang
rofel has joined #ruby-lang
bantic has joined #ruby-lang
cnivolle has joined #ruby-lang
toastynerd has joined #ruby-lang
fragamus has joined #ruby-lang
woollyams has joined #ruby-lang
simono has joined #ruby-lang
elia has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
dabradley has quit [Quit: WeeChat 0.3.8]
futilegames has quit [Quit: futilegames]
woollyams has quit [Ping timeout: 252 seconds]
_ht has quit [Remote host closed the connection]
simono has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby-lang
RobertBirnie has joined #ruby-lang
Burgestrand has joined #ruby-lang
melter has quit [Quit: Client exiting]
toastynerd has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
toastynerd has quit [Read error: Connection reset by peer]
toastyne_ has joined #ruby-lang
futilegames has joined #ruby-lang
heftig has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
fragamus has quit [Quit: Computer has gone to sleep.]
<zenspider> rawr
toastyne_ has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
toastynerd has joined #ruby-lang
Lewix has joined #ruby-lang
toastyne_ has joined #ruby-lang
futilegames has quit [Quit: futilegames]
toastynerd has quit [Ping timeout: 265 seconds]
stardiviner has quit [Ping timeout: 265 seconds]
jason__ has joined #ruby-lang
m0s has left #ruby-lang [#ruby-lang]
johnny_rugger has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
VTLob has joined #ruby-lang
jason__ has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
toastyne_ has quit [Remote host closed the connection]
mehlah has joined #ruby-lang
jason__ has joined #ruby-lang
phansch has quit [Quit: WeeChat 0.4.2]
jason__ has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
jason__ has joined #ruby-lang
Burgestrand has quit [Quit: Burgestrand]
jason____ has joined #ruby-lang
skammer has joined #ruby-lang
jason__ has quit [Ping timeout: 264 seconds]
jason____ has quit [Remote host closed the connection]
jason__ has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
elia has joined #ruby-lang
toastynerd has joined #ruby-lang
jason__ has quit [Ping timeout: 240 seconds]
wmoxam_ has quit [Quit: leaving]
wmoxam has joined #ruby-lang
ItSANgo has quit [Quit: Leaving...]
workmad3 has joined #ruby-lang
BobDeVis has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
pr0ton_ has joined #ruby-lang
arBmind has joined #ruby-lang
benjamin-patch has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has joined #ruby-lang
miqui has quit [Remote host closed the connection]
yann_ck has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jason__ has joined #ruby-lang
ItSANgo has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
<mrwooh333> |jemc| => https://www.google.com/search?q=+%22\xAE%22&ie=utf-8&oe=utf-8 ... this one was a pain in my ass recently
jason__ has quit [Ping timeout: 264 seconds]
khaase has quit [Remote host closed the connection]
khaase has joined #ruby-lang
AncientAmateur has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
AncientAmateur has quit [Remote host closed the connection]
khaase has quit [Ping timeout: 265 seconds]
hahuang61 has quit [Quit: WeeChat 0.4.3]
hahuang61 has joined #ruby-lang
ledestin has quit [Quit: ledestin]
agrinb has quit [Read error: No route to host]
agrinb has joined #ruby-lang
rofel has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
Marfi has joined #ruby-lang
<Marfi> hello
<Marfi> hello, anybody can help me with mruby? I need cal C function from mruby
<BobDeVis> would ruby ffi be an viable candidate?
<drbrain> BobDeVis: I don't think there is ffi for mruby
<BobDeVis> could be.. just an Idea.. Have no xperience with mruby.
nathanstitt has quit [Quit: I growing sleepy]
<drbrain> BobDeVis: I found an example: https://github.com/schmurfy/host-stats
<drbrain> Marfi: it seems very similar to C ruby
<Marfi> but in 4 step mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_nil_value());
<drbrain> Marfi: this is the other way, embedding mruby in C
<Marfi> not working . how change it to compile it?
<drbrain> oh, I see, step 4
yubrew has quit []
<drbrain> Marfi: "not working" how?
<Marfi> I have big program. I need rub mruby script. In mruby I need call C function
alexju has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
<BobDeVis> You probably found this already? https://github.com/schmurfy/mruby-rubyffi-compat
<Marfi> drbrain, error: ‘mrb_state’ has no member named ‘irep’
<Marfi> mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_nil_value());
<drbrain> BobDeVis: oh neat!
<drbrain> Marfi: are you embedding mruby?
<Marfi> meybe mrb_load_irep(mrb, test_symbol);
<drbrain> I've never used mruby, so maybe the embedding example is out of date
<Marfi> (yes Im'm embeded)
<Marfi> drbrain, is out of date
<BobDeVis> mruby = new to me too.. seems a neat project.
<drbrain> BobDeVis: its target market is the same as Lua
mistym has quit [Remote host closed the connection]
<Marfi> here https://github.com/mruby/mruby/issues/1798 I found irep member is removed and now irep is like tree structure.
<Marfi> And you can load irep data with mrb_load_irep(mrb, test_symbol) now.
<Marfi> but how use it?
toastynerd has quit [Remote host closed the connection]
<drbrain> Marfi: unsure, I don't have mruby and am too busy today to experiment ☹
<Marfi> ok
mistym has joined #ruby-lang
<drbrain> There is a #mruby channel, but it only has 5 members
<Marfi> Matz is on this channel ?
<drbrain> no longer
<Marfi> ok
<drbrain> he is on freenode, though
<drbrain> try #mruby
mistym has quit [Remote host closed the connection]
<Marfi> I'm on #mruby ;-)
<drbrain> ah, ok
mistym has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
<centrx> I think that's a different matsumoto
<drbrain> centrx: that used to be matz' nick
pr0ton_ has quit [Quit: pr0ton_]
<drbrain> ah, looks like someone took it over
<centrx> -NickServ- Information on matsumoto_r (account matsumoto_r):
<centrx> -NickServ- Registered : Nov 10 15:58:13 2013 (19 weeks, 1 day, 06:08:11 ago)
pr0ton_ has joined #ruby-lang
<drbrain> looks like he's matz_ now
woollyams has joined #ruby-lang
khaase has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
ledestin has joined #ruby-lang
DouweM has joined #ruby-lang
rofel has joined #ruby-lang
rofel has quit [Remote host closed the connection]
pr0ton_ has quit [Quit: pr0ton_]
rofel has joined #ruby-lang
pr0ton_ has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
pr0ton_ has quit [Client Quit]
brettweavnet has quit [Ping timeout: 246 seconds]
jonathanmarvens has joined #ruby-lang
havenwood has joined #ruby-lang
BobDeVis has quit [Quit: Page closed]
<yorickpeterse> #matzchase2014
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pr0ton_ has joined #ruby-lang
pr0ton_ has quit [Client Quit]
pr0ton_ has joined #ruby-lang
dragonkh has joined #ruby-lang
<Marfi> 1. mrb_class_obj_get not exist using mrb_class_get
<Marfi> 2. I use compiled file
marcjunior has joined #ruby-lang
marcjunior is now known as marcjr
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
khaase has quit [Remote host closed the connection]
johnny_rugger has joined #ruby-lang
khaase has joined #ruby-lang
polyidus has joined #ruby-lang
polyidus has quit [Max SendQ exceeded]
simono has joined #ruby-lang
johnny_rugger has quit [Client Quit]
jonathanmarvens has quit []
jonathanmarvens has joined #ruby-lang
vlad_starkov has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
mr-fooba_ has quit [Remote host closed the connection]
mr-foobar has joined #ruby-lang
Squarepy has quit [Quit: Leaving]
polyidus has joined #ruby-lang
polyidus has quit [Max SendQ exceeded]
polyidus has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
khaase has quit [Ping timeout: 268 seconds]
Lewix has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
mr-foobar has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby-lang
jason__ has joined #ruby-lang
dik_dak has quit [Remote host closed the connection]
jason__ has quit [Ping timeout: 264 seconds]
polyidus has quit [Quit: EOF]
stardiviner has joined #ruby-lang
polyidus has joined #ruby-lang
polyidus has quit [Max SendQ exceeded]
inkblots has left #ruby-lang [#ruby-lang]
polyidus has joined #ruby-lang
polyidus has quit [Max SendQ exceeded]
polyidus has joined #ruby-lang
toastynerd has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
johnny_rugger has joined #ruby-lang
Johz has joined #ruby-lang
pr0ton_ has quit [Quit: pr0ton_]
toastyne_ has joined #ruby-lang
enebo has quit [Quit: enebo]
agarie has joined #ruby-lang
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
pr0ton_ has joined #ruby-lang
Hunner has joined #ruby-lang
Hunner has left #ruby-lang ["WeeChat 0.4.1"]
Marfi has quit [Quit: Wychodzi]
toastyne_ has quit [Remote host closed the connection]
achal has quit [Quit: Connection closed for inactivity]
nathanstitt has joined #ruby-lang
jason__ has joined #ruby-lang
CaptainJet has quit [Ping timeout: 240 seconds]
Fushi has joined #ruby-lang
fbernier has joined #ruby-lang
jason__ has quit [Remote host closed the connection]
polyidus has quit [Quit: EOF]
jason__ has joined #ruby-lang
polyidus has joined #ruby-lang
jhass is now known as jhass|off
saarinen has quit [Quit: saarinen]
toastynerd has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dmwuw has joined #ruby-lang
jason__ has quit [Ping timeout: 264 seconds]
michaeldeol has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
Cakey has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
VTLob has quit [Quit: VTLob]
sepp2k has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby-lang
jason__ has joined #ruby-lang
sepp2k has joined #ruby-lang
<zenspider> ruby2ruby tests... why must you be so slow?!?
toastynerd has quit [Remote host closed the connection]
seanlinsley has quit [Quit: …]
mrwooh333 has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
pr0ton_ has quit [Quit: pr0ton_]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmaxw has quit [Ping timeout: 240 seconds]
|jemc| has quit [Ping timeout: 265 seconds]
cmaxw has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
hahuang61 has quit [Read error: Connection reset by peer]
cmaxw has quit [Client Quit]
hahuang61 has joined #ruby-lang
cmaxw has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby-lang
hahuang65 has quit [Ping timeout: 240 seconds]
nisstyre has joined #ruby-lang
woollyams has joined #ruby-lang
jason__ has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
jason__ has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
ivan_ has joined #ruby-lang
elliotec has joined #ruby-lang
bantic has quit [Quit: bantic]
jason__ has quit [Ping timeout: 264 seconds]
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elliotec has quit [Ping timeout: 240 seconds]
Cakey has quit [Ping timeout: 252 seconds]
dstynchula has quit []
michaeldeol has joined #ruby-lang
elliotec has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
Cakey has joined #ruby-lang