shmuli has quit [Remote host closed the connection]
shmuli has joined #ruby
shmuli has quit [Remote host closed the connection]
shmuli has joined #ruby
shmuli has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
giz|work has joined #ruby
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
hk238 has quit [Ping timeout: 250 seconds]
jtdoncas has quit [Ping timeout: 244 seconds]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
flashpoint9 has quit [Remote host closed the connection]
arnonhongklay has joined #ruby
Vivekananda has quit [Ping timeout: 265 seconds]
jgt3 has joined #ruby
ta has joined #ruby
jgt4 has joined #ruby
ta has quit [Ping timeout: 264 seconds]
claudiuinberlin has joined #ruby
jgt3 has quit [Ping timeout: 265 seconds]
CloCkWeRX has quit [Remote host closed the connection]
dminuoso has joined #ruby
jshjsh has joined #ruby
JoshS has quit [Ping timeout: 250 seconds]
lightheaded has joined #ruby
dminuoso has quit [Ping timeout: 276 seconds]
ogotai has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 276 seconds]
arnonhongklay has quit [Ping timeout: 244 seconds]
arnonhongklay has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
duderonomy has joined #ruby
jshjsh is now known as JoshS
bsrd has joined #ruby
ta has joined #ruby
redbullzombie is now known as MrMellor
MrMellor has left #ruby [#ruby]
smvap0r has quit [Ping timeout: 255 seconds]
sickvap0r has joined #ruby
arnonhon_ has joined #ruby
charliesome has joined #ruby
elementaru has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
cdg has joined #ruby
Sashimi has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
hk238 has joined #ruby
Littlemyu has quit [Ping timeout: 244 seconds]
vuoto has joined #ruby
giz|work has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
solocshaw has joined #ruby
giz|work has joined #ruby
hk238 has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
hk238 has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CustosLimen has quit [Ping timeout: 252 seconds]
Jackneill has joined #ruby
jaguarma_ has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
jaguarmagenta has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dminuoso has joined #ruby
vuoto has quit [Quit: Lost terminal]
giz|work has quit [Ping timeout: 244 seconds]
quazimodo has joined #ruby
ogotai has joined #ruby
gingray has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
giz|work has joined #ruby
jaguarma_ has quit [Remote host closed the connection]
dminuoso has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
ogotai has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
arnonhon_ has quit [Ping timeout: 260 seconds]
tvw has quit [Client Quit]
arnonhongklay has joined #ruby
tvw has joined #ruby
Sashimi has joined #ruby
Hyuk has joined #ruby
cdg_ has joined #ruby
raatiniemi has quit [Remote host closed the connection]
cdg has quit [Read error: Connection reset by peer]
cdg_ has quit [Read error: Connection reset by peer]
cdg has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
Immune has quit [Ping timeout: 252 seconds]
arnonhongklay has joined #ruby
Robtop__ has joined #ruby
futilegames has quit [Quit: futilegames]
Dimik has quit [Ping timeout: 250 seconds]
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
arnonhongklay has quit [Ping timeout: 255 seconds]
pushpak has joined #ruby
devbug has joined #ruby
pushpak has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
raMp has joined #ruby
ta_ has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
sickvap0r has quit []
flashpoint9 has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
blackwind_123 has joined #ruby
Immune has joined #ruby
toretore has joined #ruby
smathews1 has joined #ruby
domgetter has quit [Ping timeout: 255 seconds]
conta has joined #ruby
dminuoso has joined #ruby
craigp has joined #ruby
ogotai has joined #ruby
Silthias has quit [Ping timeout: 276 seconds]
dminuoso has quit [Ping timeout: 250 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
ogotai has quit [Ping timeout: 244 seconds]
alem0lars_ has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
miqlas-H has joined #ruby
mim1k has joined #ruby
cdg_ has joined #ruby
cdg_ has quit [Remote host closed the connection]
cdg_ has joined #ruby
cdg has quit [Read error: Connection reset by peer]
mim1k_ has quit [Ping timeout: 265 seconds]
devbug has quit [Quit: ZZZzzz…]
c0mrad3 has joined #ruby
ta has quit [Remote host closed the connection]
bsrd has quit [Quit: WeeChat 1.5]
Silthias has joined #ruby
raatiniemi has joined #ruby
giz|work has quit [Ping timeout: 240 seconds]
Blaguvest has joined #ruby
cyphase has quit [Ping timeout: 244 seconds]
Tempesta has joined #ruby
cyphase has joined #ruby
JoshS has quit [Ping timeout: 258 seconds]
giz|work has joined #ruby
vdamewood has joined #ruby
JoshS has joined #ruby
craigp_ has joined #ruby
tvw has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
craigp has quit [Ping timeout: 240 seconds]
spectrum has quit [Read error: Connection reset by peer]
Silthias has quit [Ping timeout: 258 seconds]
rsampaio_ has quit [Ping timeout: 250 seconds]
govg has joined #ruby
nankyokusei has quit [Remote host closed the connection]
BlkDynmt has quit [Ping timeout: 252 seconds]
zeroDi has joined #ruby
BlkDynmt has joined #ruby
ta has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
yokel has quit [Ping timeout: 244 seconds]
govg has quit [Quit: leaving]
Immune has quit [Ping timeout: 252 seconds]
rsampaio_ has joined #ruby
dminuoso has joined #ruby
dionysus69 has joined #ruby
pokalyis has joined #ruby
spectrum has joined #ruby
yokel has joined #ruby
yokel has quit [Read error: Connection reset by peer]
ogotai has joined #ruby
arnonhongklay has joined #ruby
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
BlkDynmt has quit [Ping timeout: 244 seconds]
dminuoso has quit [Ping timeout: 250 seconds]
Ishido has joined #ruby
ogotai has quit [Ping timeout: 250 seconds]
cdg_ has quit [Ping timeout: 260 seconds]
<shmoon_>
I had asked a question yesterday to which I have an extension question
<shmoon_>
when I do module A::B; end; is it not creating a module B which is part (child) of module A ?
BlkDynmt has joined #ruby
learning has joined #ruby
<Mon_Ouie>
There's no such thing as a child module. There is no relation between the two modules other than a constant which references module B is stored in module A.
flying has joined #ruby
ta has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
dminuoso has joined #ruby
arnonhongklay has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
ta has joined #ruby
duncannz has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
ta has quit [Ping timeout: 240 seconds]
<shmoon_>
Mon_Ouie: then what is the difference between those 2 different example where 1 module is A::B whereas the other is B < A but accessed as A::B only ?
claudiuinberlin has quit [Remote host closed the connection]
arnonhongklay has quit [Ping timeout: 244 seconds]
claudiuinberlin has joined #ruby
arnonhongklay has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
claudiuinberlin has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 265 seconds]
zenguy_pc has joined #ruby
conta has quit [Quit: conta]
tulak has joined #ruby
triangles2 has joined #ruby
bob434 has joined #ruby
bob434 has quit [Client Quit]
triangles has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Dobler has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
giz|work has quit [Ping timeout: 264 seconds]
arnonhongklay has quit [Read error: Connection reset by peer]
flashpoint9 has joined #ruby
arnonhongklay has joined #ruby
cdg has joined #ruby
Silthias has joined #ruby
ponga has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
vdamewood has quit [Quit: Life beckons.]
ogotai has joined #ruby
elementaru has quit [Remote host closed the connection]
nil has joined #ruby
<nil>
Hi
arnonhongklay has quit [Read error: Connection reset by peer]
<bungoman>
Pretty much. It's concatenating the name of an object (in this case the Project class) and a finder method (in this case #find_by_name) and evaluating that in the context of the instance.
learning has joined #ruby
<bungoman>
I didn't read the whole article so I can't say how much sense that makes. I'd personally be very wary of code like that, but if you're aiming for something that's super flexible it can sometimes be the best way of doing things.
learning has quit [Client Quit]
<nil>
ok
<nil>
thanks!
hanmac has joined #ruby
Coldblackice has quit [Ping timeout: 244 seconds]
<bungoman>
As a general rule, if you find yourself needing instance_eval you might want to take a step back and think about what you're doing. Perhaps you should wrap things up in some sort of method that can be called. I dunno, it depends, it just makes me nervous.
CloCkWeRX has quit [Quit: Leaving.]
arnonhongklay has quit [Remote host closed the connection]
tens0r has quit [Quit: tens0r]
conta has joined #ruby
claudiuinberlin has joined #ruby
alem0lars_ has quit [Quit: Leaving]
gizmore has joined #ruby
tomchapi_ has joined #ruby
tomchapin has quit [Ping timeout: 265 seconds]
miqlas-H has joined #ruby
A0X1887 has joined #ruby
arnonhongklay has joined #ruby
vuoto has joined #ruby
Gasher has joined #ruby
zacts has quit [Ping timeout: 265 seconds]
conta has quit [Ping timeout: 250 seconds]
d0nn1e has quit [Ping timeout: 265 seconds]
d0nn1e has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
nankyokusei has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v2.5 Beta Build (2016/09/04) 32 Bit]
JoshS has joined #ruby
Tempesta has joined #ruby
govg has joined #ruby
platzhirsch has joined #ruby
jshjsh has quit [Ping timeout: 252 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
flying has quit [Remote host closed the connection]
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
kais has joined #ruby
kais has quit [Client Quit]
solocshaw has quit [Ping timeout: 250 seconds]
ineb has joined #ruby
zacts has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
Vivekananda has joined #ruby
einarj has joined #ruby
tulak has quit [Ping timeout: 250 seconds]
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
aryaching has joined #ruby
shmuli has quit [Remote host closed the connection]
TheMoonMaster has quit [Ping timeout: 255 seconds]
aryaching has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
dtzitz has joined #ruby
spudowiar has joined #ruby
Sashimi has joined #ruby
jhack has joined #ruby
quazimodo has joined #ruby
hutch34 has joined #ruby
aryaching has joined #ruby
nankyokusei has joined #ruby
spudowiar has quit [Quit: Leaving.]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
ziprar has quit [Ping timeout: 240 seconds]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
spudowiar has joined #ruby
unshadow has joined #ruby
jgt4 has quit [Ping timeout: 276 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
<unshadow>
When accepting a client connection over an SSL Socket, is there a way to print\get what ciphers the server and client choose to work with (I know I can control the avilable ones from the server side)
TheMoonMaster has quit [Ping timeout: 255 seconds]
moshef has quit [Quit: moshef]
vuoto has joined #ruby
bsrd has joined #ruby
s2013 has joined #ruby
quazimodo has quit [Ping timeout: 258 seconds]
dionysus69 has quit [Quit: dionysus69]
quazimodo has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
jhack has joined #ruby
vuoto has quit [Remote host closed the connection]
redpants has joined #ruby
vuoto has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
jtdoncas has joined #ruby
tk__ has quit [Quit: ばいばい]
jhack has quit [Quit: jhack]
WSO has quit [Quit: Connection closed for inactivity]
matp has quit [Remote host closed the connection]
<foxxx0>
hey, i'm having a weird problem with datamapper. I have a user model and a self-relation for reseller/customer. a user can have n 'domains'. when I now want to build a datamapper collection of all domains a reseller has access to, i'm using: result = user.domains; result.concat(user.customers.domains);
<foxxx0>
and in that last concat step it simply changes the user_id field of the customer domains to user.id (the reseller id)
<foxxx0>
user.customers.domains has the correct values
tmtwd has joined #ruby
jaguarmagenta has joined #ruby
matp has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
einarj has quit [Remote host closed the connection]
Vingador has joined #ruby
einarj has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<foxxx0>
alright, solution: i must not use 'user.domains' to initialize result. when i use result = Domain.all(user_id: user.id); the appended records will remain unchanged
BlkDynmt has joined #ruby
tommylommykins has quit [Ping timeout: 276 seconds]
Robtop__ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pandaant has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
govg has quit [Ping timeout: 265 seconds]
dminuoso has quit [Ping timeout: 255 seconds]
sjums has quit [Ping timeout: 244 seconds]
spudowiar has quit [Quit: Leaving.]
solocshaw has joined #ruby
tommylommykins has joined #ruby
sjums has joined #ruby
BlkDynmt has quit [Ping timeout: 265 seconds]
Vingador has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
jgt4 has joined #ruby
Robtop__ has quit [Ping timeout: 250 seconds]
quazimodo has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 264 seconds]
quazimodo has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<antgel>
Hmm. Anyone have any best practice guide to debugging native extensions that crash ruby, with valgrind or gdb? Maybe I'm not Googling well, but I'm not finding much...
<antgel>
(We're using rails, but ruby is crashing, please let me know if I'm off-topic here.)
edwinvdgraaf has joined #ruby
WSO has joined #ruby
whiteline has joined #ruby
BlkDynmt has joined #ruby
marsjaninzmarsa has quit [Ping timeout: 252 seconds]
bob434 has quit [Quit: This computer has gone to sleep]
floatingpoint has joined #ruby
elastix has joined #ruby
marsjaninzmarsa has joined #ruby
BlkDynmt has quit [Ping timeout: 250 seconds]
jgt4 has quit [Ping timeout: 240 seconds]
grill has quit [Ping timeout: 240 seconds]
bsrd has quit [Read error: Connection reset by peer]
Guest15 has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
Guest15 has quit [Client Quit]
aryaching has joined #ruby
sickvap0r has joined #ruby
BlkDynmt has joined #ruby
dmr8 has joined #ruby
pwelch has joined #ruby
TheMoonMaster has quit [Ping timeout: 258 seconds]
sylario has joined #ruby
guardian has quit [Quit: Coyote finally caught me]
guardian has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
darkxploit has joined #ruby
claudiuinberlin has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
bob434 has joined #ruby
pwelch has quit [Client Quit]
sickvap0r has quit []
flashpoint9 has joined #ruby
Pip has quit [Ping timeout: 244 seconds]
Pip has joined #ruby
Immune has joined #ruby
araujo__ has joined #ruby
TheMoonMaster has joined #ruby
ta has joined #ruby
araujo__ has quit [Max SendQ exceeded]
araujo_ has quit [Ping timeout: 244 seconds]
araujo__ has joined #ruby
dminuoso has joined #ruby
ta has quit [Ping timeout: 276 seconds]
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BlkDynmt has quit [Read error: Connection reset by peer]
dminuoso has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
CustosLimen has joined #ruby
jgt4 has joined #ruby
<shmoon_>
if I do a Object.send(:remove_const, :Class) does it remove the entire class from the memeory ?
flashpoint9 has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
redpants has quit [Ping timeout: 276 seconds]
solocshaw has joined #ruby
s2013 has joined #ruby
dminuoso has joined #ruby
<Mon_Ouie>
Not necessarily. An object (a class being nothing more than a slightly special object) is only removed from memory when no other object holds a reference to it.
<Mon_Ouie>
If you still have variables that contain instances of your class for example, the class must remain in memory.
tomasm- has joined #ruby
solocshaw has quit [Ping timeout: 244 seconds]
nil has joined #ruby
<nil>
Hi
<nil>
DEPRECATION WARNING: `:nothing` option is deprecated and will be removed in Rails 5.1. Use `head` method to respond with empty response body.
<nil>
wc... this is actually rails related not ruby...
moshef has joined #ruby
<shmoon_>
Mon_Ouie: if there's no ref then it'll be GC"ed at the end of the script execution but not instantly ?
nil has left #ruby [#ruby]
vuoto has quit [Ping timeout: 244 seconds]
jtdoncas has quit [Ping timeout: 265 seconds]
<Mon_Ouie>
The precise moment the GC runs varies a lot between Ruby version and implementations, all that you can know is that eventually that memory can be reclaimed
<ruby[bot]>
shmoon_: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<shmoon_>
which is why I shared the raw version :P
<tomasm->
hey im new to ruby (and rails).... im trying to understand symbols, ie :foobar .... my understanding is that they are kind of like strings but multiple references to them point to the same memory location? maybe in a sense kind of like a constant? is there any other purpose/benefit? ive been reading up several docs/tutorials explaining it already.
Exuma has joined #ruby
govg has joined #ruby
Bloomer has quit [Remote host closed the connection]
proflonghair has joined #ruby
Dobler has joined #ruby
<toretore>
shmoon_: because that's not how autoload works
<Mon_Ouie>
shmoon_: const_missing is supposed to return the value of the constant you define, autoload returns nil
cdg has joined #ruby
<toretore>
shmoon_: you spend way too much time on autoload, when you should really just forget that it exists and never use it
Immune has quit [Ping timeout: 252 seconds]
Dobler has quit [Max SendQ exceeded]
dtzitz has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
tomasm-: They can be compared efficiently just by comparing their object_ids, without having to look at the symbol's name
Vile` has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
PlasmaStar has quit [Ping timeout: 260 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
<shmoon_>
toretore: just trying to play around it and trying to understand certain things
<shmoon_>
even if I add `Kernel.const_get(name)` to const_missing it doesn't work o.O
darkxploit has quit [Quit: Ex-Chat]
Blaguvest has quit []
spudowiar has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
araujo_ has joined #ruby
Bellthoven has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
Exuma has quit [Quit: ZZZzzz…]
Exuma has joined #ruby
araujo__ has quit [Ping timeout: 264 seconds]
cdg has quit [Remote host closed the connection]
Exuma has quit [Client Quit]
Vile` has joined #ruby
cdg has joined #ruby
Pip has quit [Read error: Connection reset by peer]
Exuma has joined #ruby
jaguarmagenta has joined #ruby
hopsoft has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Exuma has quit [Client Quit]
solocshaw has joined #ruby
moshef has quit [Quit: moshef]
einarj has joined #ruby
sickvap0r has joined #ruby
<tomasm->
hmmm, is there generally a better use case for obj.clone vs obj.dup ?
<tomasm->
or vice versa
sickvap0r has quit [Client Quit]
<Mon_Ouie>
Are you using #taint or #freeze ? If not, they're the same
<tomasm->
what if i am?
<Mon_Ouie>
Then #clone preserves these two flags, #dup doesn't
<tomasm->
ok cool
<Mon_Ouie>
Although I would be skeptical of any use of #taint
<tomasm->
ok. im just reading thru the docs at ruby-doc.com is all. i'll say im impressed by the language.
jshjsh has joined #ruby
govg has quit [Ping timeout: 244 seconds]
Immune has joined #ruby
JoshS has quit [Ping timeout: 250 seconds]
jshjsh is now known as JoshS
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
govg has joined #ruby
hinbody has joined #ruby
Channel6 has joined #ruby
matti has joined #ruby
matti has quit [Changing host]
matti has joined #ruby
disconnekted has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
cdg has quit [Read error: Connection reset by peer]
disconnekted has quit [Remote host closed the connection]
minotep has joined #ruby
cdg has joined #ruby
bsrd has joined #ruby
sickvap0r has joined #ruby
hopsoft has joined #ruby
tmtwd has quit [Ping timeout: 258 seconds]
elementaru has joined #ruby
redpants has joined #ruby
snapcase has quit [Ping timeout: 258 seconds]
snapcase has joined #ruby
vuoto has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
hakunin has joined #ruby
hutch34 has joined #ruby
redpants has quit [Ping timeout: 244 seconds]
rcs has quit [Ping timeout: 244 seconds]
Klumben has quit [Ping timeout: 250 seconds]
tulak has quit []
bmn has quit [Ping timeout: 244 seconds]
Sammichmaker has joined #ruby
Sammichmaker has quit [Remote host closed the connection]
skweek has joined #ruby
alem0lars has quit [Ping timeout: 250 seconds]
Sammichmaker has joined #ruby
bsrd has quit [Quit: WeeChat 1.5]
SegFaultAX has quit [Ping timeout: 260 seconds]
kenichi has quit [Ping timeout: 240 seconds]
piotrj has quit [Ping timeout: 240 seconds]
anekos has quit [Ping timeout: 240 seconds]
hxegon has quit [Ping timeout: 244 seconds]
matp has quit [Ping timeout: 276 seconds]
Liothen has quit [Ping timeout: 276 seconds]
Sou|cutter has quit [Ping timeout: 240 seconds]
miah has quit [Ping timeout: 240 seconds]
Junaos has quit [Ping timeout: 244 seconds]
majuscule has quit [Ping timeout: 244 seconds]
G has quit [Ping timeout: 264 seconds]
russt has quit [Ping timeout: 265 seconds]
papercode has quit [Ping timeout: 276 seconds]
matp has joined #ruby
piotrj has joined #ruby
s2013 has joined #ruby
BlkDynmt has joined #ruby
karapetyan has joined #ruby
Immune has quit [Ping timeout: 252 seconds]
jgt4 has quit [Ping timeout: 244 seconds]
jgt4 has joined #ruby
karapetyan has quit [Remote host closed the connection]
zacts has quit [Ping timeout: 258 seconds]
PlasmaStar has joined #ruby
kenichi has joined #ruby
rcs has joined #ruby
bmn has joined #ruby
miah has joined #ruby
anekos has joined #ruby
papercode has joined #ruby
russt has joined #ruby
Sou|cutter has joined #ruby
Junaos has joined #ruby
solocshaw has quit [Ping timeout: 244 seconds]
brunodlz has joined #ruby
Liothen has joined #ruby
solocshaw has joined #ruby
brunodlz has quit [Max SendQ exceeded]
G has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
hxegon has joined #ruby
Channel6 has quit [Quit: Leaving]
tomasm- has quit [Quit: Leaving]
karapetyan has joined #ruby
majuscule has joined #ruby
zapata has quit [Quit: WeeChat 1.5]
Liothen has quit [Changing host]
Liothen has joined #ruby
brunodlz has joined #ruby
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
<chrisseaton>
I'm trying to do `String.module_function :to_s`, but it's private, so I'm trying `String.send :module_function, :to_s` instead, but that still doesn't find the method. I'm sure I'm missing something obvious here. What could it be?
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
zacts has joined #ruby
karapetyan has quit [Remote host closed the connection]
brunodlz has quit [Max SendQ exceeded]
flashpoint9 has joined #ruby
platzhir1 has joined #ruby
cdg has quit [Remote host closed the connection]
<Nilium>
chrisseaton: What're you trying to actually do?
yardenbar has joined #ruby
yfeldblum has joined #ruby
<chrisseaton>
Nilium: I'm trying to implement Ruby's C API using Ruby as part of a research project, so I'm implementing rb_define_module_function, define the method, then I need to call module_function
<chrisseaton>
The docs say it 'may be called with the module as a receiver'
Yxhuvud has quit [Ping timeout: 260 seconds]
ta has joined #ruby
cdg has joined #ruby
SegFaultAX has joined #ruby
<chrisseaton>
I know it's a private method, hence trying to use #send
platzhirsch has quit [Ping timeout: 240 seconds]
zapata has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
brunodlz has joined #ruby
cdg has quit [Ping timeout: 250 seconds]
<Nilium>
I don't think module_function is available to classes?
ta has quit [Ping timeout: 265 seconds]
brunodlz has quit [Max SendQ exceeded]
karapetyan has quit [Remote host closed the connection]
<toretore>
module_function doesn't make any sense on classes
<chrisseaton>
I thought it'd just be inherited from Module, but yeah now I think about it it doesn't make sense
<Nilium>
i.e., it's a thing for modules that get mixed in, not a thing for classes.
Xentil has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
shmuli has joined #ruby
<chrisseaton>
It looks like openssl uses it on classes - cCipher = rb_define_class_under(mOSSL, "Cipher", rb_cObject); ... rb_define_module_function(cCipher, "ciphers", ossl_s_ciphers, 0);
redpants has joined #ruby
bob434 has joined #ruby
<Nilium>
What's available in C and what's available in Ruby are different things.
<Nilium>
To say nothing of whether that's a good idea in C.
<chrisseaton>
Yeah that might be it
<chrisseaton>
Right - `undef_method :module_function`
<chrisseaton>
(Rubinius does that)
<chrisseaton>
So the mystery left is - why would openssl want to do this if it doesn't make sense?
<Nilium>
Because OpenSSL is a terrifying bag of mysteries?
<Nilium>
Ask them?
<Nilium>
Though really you should ask the OpenSSL support maintainer.
bob434 has quit [Quit: This computer has gone to sleep]
<Mon_Ouie>
maybe so that they can call the method 'ciphers' without writing the module name (or self.class.ciphers) inside Ruby methods of that class, while still being able to call the method on the class itself?
cydrobolt has joined #ruby
cydrobolt has quit [Changing host]
cydrobolt has joined #ruby
bob434 has joined #ruby
<toretore>
def ciphers; self.class.ciphers; end is quite the nuisance
BlkDynmt has quit [Ping timeout: 250 seconds]
<chrisseaton>
toretore: you were the one who said it didn't make any sense a second ago :)
BlkDynmt has joined #ruby
<Nilium>
I'm assuming they're being sarcastic.
<Nilium>
One line being a huge nuisance and all that.
nankyokusei has joined #ruby
<chrisseaton>
Ok well, I've fixed it with a modified version of module_function that does allow classes - thanks everyone
devbug has joined #ruby
<toretore>
if you're aiming to imitate the c api i guess you should, yes
antgel has quit [Ping timeout: 265 seconds]
platzhir1 has quit [Ping timeout: 255 seconds]
jtdoncas has joined #ruby
redpants has quit [Ping timeout: 276 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
BlkDynmt has quit [Ping timeout: 264 seconds]
DevastatingDave has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
Bloomer has joined #ruby
RiPuk has joined #ruby
DevastatingDave has left #ruby [#ruby]
daffy_duck_3 has joined #ruby
Vile` has quit [Ping timeout: 252 seconds]
BlkDynmt has joined #ruby
unshadow has quit [Quit: leaving]
einarj has quit [Remote host closed the connection]
jtdoncas has quit [Ping timeout: 260 seconds]
daffy_duck_2 has quit [Ping timeout: 244 seconds]
shmuli has quit [Remote host closed the connection]
Bloomer has quit [Remote host closed the connection]
lxsameer has joined #ruby
AnarchyAo has joined #ruby
Limix has joined #ruby
redpants has joined #ruby
l4v2 has quit [Quit: l4v2]
tmtwd has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.5]
dviola has joined #ruby
sand-bird has joined #ruby
<sand-bird>
hello is this on
smathews1 has joined #ruby
valkyr1e has joined #ruby
<go|dfish>
sand-bird: it is
<chris2>
*tumbleweed*
zacts has quit [Quit: WeeChat 1.4]
<sand-bird>
hooray
firstdayonthejob has joined #ruby
<sand-bird>
bC client
nando293921 has quit [Quit: Lost terminal]
domgetter has joined #ruby
youch has joined #ruby
shmuli has joined #ruby
solocshaw has joined #ruby
workmad3 has joined #ruby
sickvap0r has quit [Read error: Connection reset by peer]
shmuli has quit [Remote host closed the connection]
sand-bird has quit [Ping timeout: 276 seconds]
bungoman has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 264 seconds]
bungoman has joined #ruby
einarj has joined #ruby
bungoman has quit [Max SendQ exceeded]
solocshaw has quit [Ping timeout: 250 seconds]
elastix has quit [Quit: elastix]
Yxhuvud has joined #ruby
redpants has quit [Ping timeout: 240 seconds]
flying has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
jgt4 has quit [Ping timeout: 265 seconds]
solocshaw has joined #ruby
DoubleMalt has joined #ruby
ruby-lang020 has joined #ruby
flak has joined #ruby
elastix has joined #ruby
Limix has quit [Quit: Limix]
devbug has quit [Quit: ZZZzzz…]
conta has joined #ruby
rippa has quit [Ping timeout: 265 seconds]
pokalyis has joined #ruby
ruby-lang020 has quit [Ping timeout: 264 seconds]
programmerq has quit [Read error: Connection reset by peer]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 265 seconds]
Bellthoven has quit []
BlkDynmt has quit [Quit: BlkDynmt]
kanyewezt has joined #ruby
Dimik has joined #ruby
tmtwd has joined #ruby
elementaru has quit [Remote host closed the connection]
conta has quit [Ping timeout: 255 seconds]
einarj has quit [Remote host closed the connection]
einarj_ has joined #ruby
PlasmaStar has quit [Ping timeout: 265 seconds]
anisha has joined #ruby
sand-bird has joined #ruby
einarj_ has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
einarj has joined #ruby
raMp has quit [Quit: Konversation terminated!]
s2013 has joined #ruby
BlkDynmt has joined #ruby
einarj has quit [Read error: Connection reset by peer]
shmuli has joined #ruby
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
s2013 has quit [Client Quit]
nando293921 has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdl has quit [Ping timeout: 264 seconds]
shmuli has quit [Ping timeout: 250 seconds]
Gaelan has joined #ruby
einarj has quit [Ping timeout: 255 seconds]
vdl has joined #ruby
s2013 has joined #ruby
<Gaelan>
Is there a better way to sort a hash’s keys than calling #sort then converting it back into a hash?
jtdoncas has joined #ruby
jtdoncas has quit [Client Quit]
sand-bird has quit [Ping timeout: 265 seconds]
sand-bird has joined #ruby
Klumben has joined #ruby
<toretore>
Gaelan: elaborate
[reed] has quit [Read error: Connection reset by peer]
<Gaelan>
toretore: I have a hash h = {5 => :blah, 7 => :blah, 2 => :blah}. I want to change it to h = {2 => :blah, 5 => :blah, 7 => :blah}. Is there a better way than Hash.new(h.sort_by { |k, v| k })?
[reed] has joined #ruby
[reed] has joined #ruby
[reed] has quit [Changing host]
JoshS has quit [Ping timeout: 244 seconds]
<toretore>
Gaelan: why do you want to do this?
BlkDynmt has quit [Quit: BlkDynmt]
ta has joined #ruby
alem0lars has joined #ruby
kanobt61_ has quit [Remote host closed the connection]
kanobt61 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
Spami has joined #ruby
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ta has quit [Ping timeout: 276 seconds]
Spami has quit [Client Quit]
<Gaelan>
toretore: Web app. I have a hash where keys are “folders” and values are “files.” (fictional object names) I would like to display a list of “folders” with the files they contain, and need the “folders” to be in a specific order.
kanobt61 has quit [Remote host closed the connection]
kanobt61 has joined #ruby
<toretore>
folders.sort.each{|name, files| }
<Gaelan>
Come to think of this, there’s a better way to solve my problem. Thanks for the rubber-ducking!
flashpoint9 has quit [Ping timeout: 250 seconds]
kanobt61 has quit [Remote host closed the connection]
kanobt61 has joined #ruby
pandaant has quit [Remote host closed the connection]
kanobt61 has quit [Remote host closed the connection]
PlasmaStar has joined #ruby
kanobt61 has joined #ruby
Puffball has joined #ruby
jgt4 has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
xse has joined #ruby
pwnd_nsfw has joined #ruby
<xse>
hello there, I am trying to do something with ruby-fifo, so i've installed the ruby-fifo gem and the mkfifo gem, then when I do require 'ruby-fifo'
<ruby[bot]>
r00t_us3r: irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
cdg_ has quit [Remote host closed the connection]
<r00t_us3r>
can somebody help me out?
lightheaded has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
Channel6 has quit [Quit: Leaving]
pawnbox has joined #ruby
solars has quit [Ping timeout: 250 seconds]
dminuoso has quit [Ping timeout: 240 seconds]
ngscheur1 has joined #ruby
symm- has joined #ruby
<r00t_us3r>
anybody?
<kanyewezt>
wish I had an answer for you
pawnbox has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
enterprisey has joined #ruby
ngscheur1 has quit [Ping timeout: 250 seconds]
insanedreamer has quit [Ping timeout: 244 seconds]
kanobt61 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
elastix has quit [Quit: elastix]
symm- has quit [Ping timeout: 240 seconds]
<Papierkorb>
r00t_us3r: that code is weird
Sashimi has joined #ruby
symm- has joined #ruby
<Papierkorb>
Looks like a wrong way to override all public methods in the Private class. No idea about its purpose though
raMp has joined #ruby
kanobt61 has joined #ruby
<Papierkorb>
Well, it then creates an instance of that Private class, tries to remove it in the wrong way, reads a line from STDIN (and raises RuntimeError if something went wrong during that), then it tries to clamp the given input to a max size of 24 chars, does that seccomp thing and lastly executes the input in the current context.
proflonghair has quit [Quit: Connection closed for inactivity]
<Papierkorb>
r00t_us3r: Whatever it tries to do, from my educated guess, it does it wrong. Could be that the author intended to have a 'secure' way to run user provided code?
BlkDynmt has quit [Quit: BlkDynmt]
duderonomy has quit [Ping timeout: 258 seconds]
Clan57 has joined #ruby
Clan57 has quit [Client Quit]
CloCkWeRX has joined #ruby
redpants has joined #ruby
mrwn has joined #ruby
<mrwn>
to use a stdlib class, should i include it or require it?
<Nilium>
`include` is for mixins, `require` is for loading code.
enterprisey has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 265 seconds]
spudowiar has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
Gaelan has quit [Quit: Gaelan]
RodrigoEduardo__ has joined #ruby
rvaldes has quit [Read error: Connection reset by peer]
saltsa has quit [Ping timeout: 244 seconds]
spider-mario has quit [Remote host closed the connection]
TTilus has quit [Ping timeout: 260 seconds]
kanobt61 has quit [Remote host closed the connection]
<r00t_us3r>
Papierkorb: Thanks for the help
Gaelan has joined #ruby
<Papierkorb>
r00t_us3r: where did you find that?
<r00t_us3r>
Papierkorb:a friend of mine wanted help with it...i don't know from where he got it
ta has joined #ruby
<r00t_us3r>
it is hosted on some server
<r00t_us3r>
and we need to get the flag out of it
anisha has quit [Quit: This computer has gone to sleep]
bkxd has joined #ruby
quazimodo has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
TTilus has joined #ruby
kanobt61 has joined #ruby
dtzitz has joined #ruby
ta has quit [Ping timeout: 258 seconds]
Spami has joined #ruby
sand-bird has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dreamyspell has quit [Quit: Leaving]
kanobt61 has quit [Remote host closed the connection]
kanobt61 has joined #ruby
workmad3 has joined #ruby
raMp has quit [Quit: Konversation terminated!]
David27 has joined #ruby
kanobt61 has quit [Remote host closed the connection]
kanobt61 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
Jamo has quit [Ping timeout: 265 seconds]
kanyewezt has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 250 seconds]
AnarchyAo has quit [Quit: ircN 8.00 for mIRC (20100904) - www.ircN.org]
kanobt61 has quit [Remote host closed the connection]
kanobt61 has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
kanobt61 has quit [Remote host closed the connection]
kanobt61 has joined #ruby
R\w\C has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saltsa has joined #ruby
dminuoso has joined #ruby
Jamo has joined #ruby
imperator has quit [Quit: Leaving]
sepp2k has joined #ruby
stamina has quit [Ping timeout: 265 seconds]
kanobt61 has quit [Remote host closed the connection]
BlkDynmt has joined #ruby
kanobt61 has joined #ruby
asdf123 has joined #ruby
<asdf123>
hello. #rubyonrails appears a little dead. does anyone mind if i ask a question here?
dminuoso has quit [Ping timeout: 265 seconds]
jaguarmagenta has quit [Remote host closed the connection]
<NetSage>
you'll most likely be pointed to the rails channel for rails questions :D
<asdf123>
yeah but nobody is there except bots
<asdf123>
my question is more about rspec -- which is kinda ruby right?
<NetSage>
no idea I'm a scrub :(
kanobt61 has quit [Remote host closed the connection]
kanobt61 has joined #ruby
toretore has quit [Ping timeout: 252 seconds]
<NetSage>
but just ask worst comes to worst you don't get an answer I guess :d
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<asdf123>
i'm trying to do an rspec test on a form, but this line fails for me: assert_select 'form[action=?][method=?]', user_path(@user), 'post' do
<asdf123>
however i do a "puts render" of the page being rendered and the html output indeed has the form action of the path and method of post
skweek has joined #ruby
<NetSage>
Oh you could also try a more general programming channel like #learnprogramming or something