cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Read error: Connection reset by peer]
_aeris has joined #ruby
_aeris_ has quit [Ping timeout: 248 seconds]
_aeris is now known as _aeris_
ycyclist has quit [Ping timeout: 260 seconds]
<RickHull>
pecan_: should be fine IIRC
numbdewd has joined #ruby
marr has quit [Ping timeout: 240 seconds]
emulator3 has joined #ruby
emulator4 has quit [Ping timeout: 255 seconds]
<RickHull>
the lib stuff is typically keyed to the minor version, i.e. just 2.2, even if written as 2.2.0
gma has quit [Quit: Leaving...]
jinie has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest97372 has quit [Ping timeout: 248 seconds]
jinie has joined #ruby
Ohga has joined #ruby
<Ohga>
I'm trying to remind myself how ruby works, especially in the context of #initialize_copy . def initialize_copy other; super; @v = other ; # how do I get @v in other? end
<RickHull>
initialize_copy is not a special name AFAIK
<RickHull>
i.e. it's just like any other method
<RickHull>
other is an instance of the class that defines initialize_copy; that class must have a superclass, for the call to super() to work
<Ohga>
I left out that this is in a class
<Ohga>
#initialize_copy is used by dup/clone so I thought this were implied
<RickHull>
@v is an instance variable, and other is assigned to it after super() returns
<matthewd>
Ohga: If you just want other's @v, it's already there
<RickHull>
Ohga: oh hm, dunno about the dup/clone connection
<Ohga>
you know.. that's true :P
<Ohga>
thanks
<matthewd>
Ohga: Otherwise, maybe you want instance_variable_get
quobo has quit [Quit: Connection closed for inactivity]
<Ohga>
yeah, that's what I were thinking of, I just wanted to check that I didn't miss something built into the syntax
<matthewd>
Normally you'd just want to: @v = @v.dup
lagweezle is now known as lagweezle_away
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cohedrin_ has quit [Read error: Connection reset by peer]
ephemera_ has quit [Ping timeout: 240 seconds]
amirite has joined #ruby
Cohedrin_ has joined #ruby
jenrzzz_ has joined #ruby
charliesome has joined #ruby
Joufflu has joined #ruby
ephemera_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
blackmesa1 has quit [Ping timeout: 255 seconds]
jenrzzz_ has quit [Ping timeout: 255 seconds]
colin_ has joined #ruby
<colin_>
hey there. im currently trying to install sass using ruby, but everytime i run the command i get "failed to build gem native extension" + "extconf failed, exit code 1". can anyone help? i get this issue no matter how much i try.
<colin_>
if anyone could help out that would be great.
<teatime>
colin_: there's probably some more specific errors just above that, maybe gist it. perhaps you are missing a C compiler and libraries; e.g. if on debian or ubuntu, try `sudo apt-get install build-essential`
troys is now known as troys_
<colin_>
teatime, let me try that real quick
emulator3 has quit [Ping timeout: 255 seconds]
<colin_>
teatime, im getting the same issue with build-essential installed
emulator3 has joined #ruby
<teatime>
colin_: paste the whole output to gist.github.com
<teatime>
colin_: might be `apt-get install ruby-dev` .. you can try that while I look something up
<colin_>
teatime, that worked, so idk whats up with my normal ruby
<teatime>
colin_: you just didn't have the development headers installed
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<colin_>
teatime, ok then, thanks for the help.
<teatime>
colin_: on debian and derivatives, as a rule, you can install package libfoo which gets you what you need for an executable to use the Foo Library, but to you compile an executable that uses the Foo Library, you need libfoo-dev
<teatime>
s/to you/to/
weaksauce has joined #ruby
emulator3 has quit [Ping timeout: 240 seconds]
mson has quit [Quit: Connection closed for inactivity]
ptx0 has quit [Ping timeout: 260 seconds]
tvw has quit [Remote host closed the connection]
emulator3 has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
bronson has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
colin_ has left #ruby ["Leaving"]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 240 seconds]
amirite has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
rubycoder37 has joined #ruby
wald0 has quit [Quit: Lost terminal]
<rubycoder37>
hi
ElDoggo has quit [Remote host closed the connection]
ElDoggo has joined #ruby
d^sh_ has quit [Ping timeout: 240 seconds]
<rubycoder37>
I have trouble adjusting to python at work, I prefer ruby
gusrub has quit []
<rubycoder37>
any ideas how to deal with this problem?
scorphus has joined #ruby
ElDoggo has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 255 seconds]
<rubycoder37>
I tried to get my fellow coworkers to change to ruby but they are all into python right now
Cohedrin_ has joined #ruby
<rubycoder37>
it makes me really sad to be the only ruby guy at work
<rubycoder37>
please help :(
rubycoder37 has quit [Quit: Lost terminal]
gizmore|2 has joined #ruby
gizmore has quit [Ping timeout: 248 seconds]
rubycoder37 has joined #ruby
guardianx has joined #ruby
kies has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
cschneid_ has quit [Remote host closed the connection]
codelurker has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
imode has joined #ruby
gma has joined #ruby
rubycoder37 has quit [Quit: Lost terminal]
codelurker has quit [Quit: Leaving]
gma has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
ozcanesen has joined #ruby
cpruitt has quit [Quit: cpruitt]
cagomez has quit [Ping timeout: 248 seconds]
kies has joined #ruby
guardianxx has joined #ruby
guardianx has quit [Ping timeout: 255 seconds]
guardianxx has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 248 seconds]
ozcanesen has quit [Quit: ozcanesen]
rakm has joined #ruby
rakm has quit [Remote host closed the connection]
rakm has joined #ruby
_whitelogger has joined #ruby
uxp has joined #ruby
FahmeF has joined #ruby
ozcanesen has joined #ruby
__Yiota has joined #ruby
RickHull has quit [Ping timeout: 260 seconds]
uxp has quit [Remote host closed the connection]
cschneid_ has joined #ruby
dstrunk has joined #ruby
dstrunk has quit [Client Quit]
jtdoncas has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 1.9.1]
ozcanesen has quit [Quit: ozcanesen]
SubaruSVX has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
shinnya has joined #ruby
gma has joined #ruby
uneeb has joined #ruby
gma has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
troys_ is now known as troys
guardianxx has quit []
mim1k has quit [Ping timeout: 260 seconds]
AustinMatherne has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjolnird has joined #ruby
mjolnird has quit [Max SendQ exceeded]
mjolnird has joined #ruby
mochiyoda_ has quit [Ping timeout: 252 seconds]
enterprisey has quit [Quit: Leaving]
govg has joined #ruby
enterprisey has joined #ruby
milardovich has joined #ruby
alfiemax has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bock has joined #ruby
kies has quit [Ping timeout: 240 seconds]
Ohga has left #ruby [#ruby]
nerium has quit [Quit: nerium]
bronson has joined #ruby
pawel__ has joined #ruby
pawel__ has left #ruby [#ruby]
bronson has quit [Ping timeout: 248 seconds]
pawel__ has joined #ruby
lektrik has quit [Quit: Leaving]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
nowhere_man has joined #ruby
apparition47 has joined #ruby
reber has joined #ruby
reber_ has joined #ruby
reber_ has quit [Client Quit]
kies has joined #ruby
troys has quit [Quit: Bye]
cschneid_ has joined #ruby
shinnya has quit [Ping timeout: 255 seconds]
Dimik has quit [Ping timeout: 255 seconds]
cschneid_ has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
_whitelogger has joined #ruby
DTZUZO has joined #ruby
bronson has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
Kola has joined #ruby
Kola has left #ruby [#ruby]
gma has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
bronson has quit [Ping timeout: 255 seconds]
mgtuiw1131 has joined #ruby
pawel__ has quit [Quit: Leaving]
apparition47 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mgtuiw1131 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gma has quit [Ping timeout: 255 seconds]
numbdewd has quit [Quit: ☺ ]
ldepandis has joined #ruby
ta has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
_aeris_ has quit [K-Lined]
_aeris_ has joined #ruby
FahmeF has quit [Remote host closed the connection]
milardovich has quit []
rippa has joined #ruby
ta has quit [Remote host closed the connection]
DTZUZO has joined #ruby
nowhere_man has quit [Ping timeout: 255 seconds]
rfoust has quit [Remote host closed the connection]
rfoust has joined #ruby
snickers has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
jphase has joined #ruby
soyeomul has joined #ruby
kies has quit [Ping timeout: 260 seconds]
quobo has joined #ruby
ta has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
stan has quit [Read error: Connection reset by peer]
stan_ has joined #ruby
jtdoncas has quit [Ping timeout: 255 seconds]
ta has quit [Ping timeout: 240 seconds]
shime has joined #ruby
alfiemax has joined #ruby
edward_ has quit [Ping timeout: 258 seconds]
danielpclark has joined #ruby
phaul has joined #ruby
minimalism has quit [Quit: minimalism]
axsuul has quit [Ping timeout: 252 seconds]
edward_ has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
MrBusiness3 has joined #ruby
nicolai86 has quit [Remote host closed the connection]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 246 seconds]
MrBismuth has quit [Ping timeout: 240 seconds]
nicolai86 has joined #ruby
kies has joined #ruby
bronson has joined #ruby
kliq has joined #ruby
gma has joined #ruby
imode has quit [Ping timeout: 258 seconds]
hanmac has quit [Ping timeout: 255 seconds]
jtdoncas has joined #ruby
konsolebox has joined #ruby
jtdoncas has quit [Ping timeout: 255 seconds]
guardian has quit [Quit: Coyote finally caught me]
hanmac has joined #ruby
guardian has joined #ruby
ramfjord has joined #ruby
Guest97372 has joined #ruby
shime has joined #ruby
harfangk has joined #ruby
jinie has quit [Ping timeout: 255 seconds]
mgtuiw1131 has joined #ruby
jinie has joined #ruby
conta has joined #ruby
Nobun has joined #ruby
nowhere_man has joined #ruby
TomyLobo has joined #ruby
<Nobun>
Hi. someone can exactly explain me the "original ruby code snippet" here? http://dpaste.com/0BAD8KJ
<Nobun>
(it is very brief).
<Nobun>
with some guess I translated that snippet in a function, but I didn't understand exactly what |f| does and what is the purpose of the brackets there
<j416>
Nobun: it's what's called a block
<Nobun>
a file block or block of code?
reu has quit [Remote host closed the connection]
pagios has quit [Remote host closed the connection]
<Nobun>
I thinked that block of code usually have "begin" (for example def) and an "end" (wich is usually the keyword end)
<j416>
the open method on File returns a file normally, but if you use it with a block like in your example, it will yield the file to the block
<j416>
and handle the closing of it when the block finishes
<Nobun>
ok understood... so it is a special syntax that allows to handle the binary file and store it into an object with a safe open/close method. right?
<j416>
Nobun: and also take into account what happens if "Marshal.load(f)" explodes (you'd probably want to close the file anyway=
<j416>
)
<Nobun>
yes agreed
conta has joined #ruby
<Nobun>
it is more or less similar to python, when using "with open" against using simply using "open" (in the first case the file will be closed itself at the end of the block of code, in the second case you must close explicitly the file)
<Nobun>
s/agreed/understood
<j416>
yes, I would assume they are similar in this regard
<j416>
also, it's f.close(), not f.Close() that I wrote. Sorry.
<j416>
haven't written a line of Ruby for over a year now
<Nobun>
no problem. thank a lot for your very quick reply :)
apparition47 has joined #ruby
<Nobun>
may I ask another thing? (sorry but I use ruby very rarely)
<Nobun>
is there some code to add a sort of exception safe code
<Nobun>
I'd like to add a code in the function wich will manage an error if the file was not successfully opened (it could be encripted. In that case the file will have no chance to be opened rightly)
<j416>
you can add begin/rescue/ensure around any code
<Nobun>
again... thank a lot... I will read this last link immediately
marr has joined #ruby
jtdoncas has joined #ruby
<Nobun>
sorry... is there something that says (if I manage the raise exception, i will end the execution of the script immediately... something like quit() or similar... but since I am planning to embed ruby I'd like to find something wich will stops the script WITHOUT stopping the host application)
gizmore|2 is now known as gizmore
jtdoncas has quit [Ping timeout: 255 seconds]
<j416>
go read the docs of the thing you are embedding ruby into
<j416>
find out how to exit properly
<j416>
(are there special exit codes to use?)
<Nobun>
yes... is is hard to find a decent documentation about embedding... I am searching around for days... the only thing I'm finding useful is: http://ruby-doc.com/docs/ProgrammingRuby/ (on ExtendingRuby chapter)
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nobun>
the application I am developing already embeds python and lua for different purposes, but I need also ruby becouse I need to have read access to some ruby marshal data files
<Nobun>
compared to lua and python, documentation about embedding ruby is a bit trivial to be found :(
<Nobun>
yes. it seems very useful too, matthewd ... thank a lot (mainly the rescue2 part seems interesting. I could think about adding a general raise2 directly in the C++ code to eval the first script for safe execution and collecting the encripted failure)
jtdoncas has quit [Ping timeout: 255 seconds]
kies has quit [Ping timeout: 255 seconds]
kliq has joined #ruby
<Nobun>
s/encripted failure/ruby marshal data read failure becouse encripted
cschneid_ has joined #ruby
ta has joined #ruby
pecan_ has left #ruby [#ruby]
nowhere_man has quit [Ping timeout: 248 seconds]
ta has quit [Ping timeout: 258 seconds]
phaul has joined #ruby
alveric has joined #ruby
bronson has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
harfangk has joined #ruby
gma has joined #ruby
alfiemax has joined #ruby
ta has joined #ruby
ElDoggo has joined #ruby
ta has quit [Ping timeout: 260 seconds]
rfmind has quit [Quit: WeeChat 1.9.1]
FahmeF has joined #ruby
gma has joined #ruby
jtdoncas has joined #ruby
ramfjord has joined #ruby
charliesome has joined #ruby
jtdoncas has quit [Ping timeout: 240 seconds]
jud has joined #ruby
jud has joined #ruby
nowhere_man has joined #ruby
shime has joined #ruby
blackmesa has joined #ruby
Nobun has joined #ruby
bruno- has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]