<ruby[bot]>
havenwood: # => ["DES", "DES-CBC", "DES-CFB", "DES-CFB1", "DES-CFB8", "DES-ECB", "DES-EDE", "DES-EDE-CBC", "DES-EDE- ...check link for more (https://eval.in/576692)
craigp has joined #ruby
<havenwood>
coto: So you're not looking for a pure Ruby implementation of DES so much as to use the Ruby stdlib?
genpaku has quit [Remote host closed the connection]
<coto>
the problem is the C version of the encrypter and decrupter, use fixed var size, 8 for the key and 64 for the string to encrypt, so if the key is shorter put a binary null in it.
<coto>
i replicate this in python using "key.ljust(8 '\x00')"
ryan_notabot has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tristanp_ has quit [Read error: Connection reset by peer]
moeabdol has quit [Ping timeout: 260 seconds]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snockerton has joined #ruby
pabloh has joined #ruby
adkjsfhd has joined #ruby
benlieb has quit [Quit: benlieb]
bmurt has joined #ruby
paradisaeidae_ has joined #ruby
rkazak has joined #ruby
ramfjord has joined #ruby
coto has quit [Quit: Leaving]
Es0teric has quit [Quit: Computer has gone to sleep.]
craigp has quit [Ping timeout: 272 seconds]
gix has quit [Ping timeout: 276 seconds]
ksmutthu has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
jaguarmagenta has joined #ruby
kareeoleez has joined #ruby
kareeole_ has joined #ruby
benlieb has joined #ruby
pabloh has quit [Quit: This computer has gone to sleep]
gix has joined #ruby
PaulCapestany has quit [Quit: .]
kfpratt has quit [Remote host closed the connection]
kareeole_ is now known as kareeoleez_
pawnbox has joined #ruby
djbkd has joined #ruby
kareeoleez_ is now known as kareeoleez__
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
nullFxn has quit [Quit: leaving]
mistermocha has quit [Ping timeout: 272 seconds]
PaulCapestany has joined #ruby
nullFxn has joined #ruby
kareeoleez has quit [Ping timeout: 264 seconds]
kareeoleez__ is now known as kareeoleez
mistermocha has joined #ruby
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
tristanp has joined #ruby
blackmesa has joined #ruby
tristanp_ has quit [Ping timeout: 250 seconds]
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
pabloh has joined #ruby
Water-4 has joined #ruby
mistermocha has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
echosystm has joined #ruby
<echosystm>
if you have a thread waiting on socket.accet
<echosystm>
how do you shut down the socket?
mistermo_ has quit [Ping timeout: 260 seconds]
<echosystm>
i mean, gracefully kill the thread it's running in?
pabloh has quit [Client Quit]
blackmesa has quit [Ping timeout: 250 seconds]
tristanp has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
zast has joined #ruby
giz|work has quit [Ping timeout: 258 seconds]
dhk has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp_ has joined #ruby
benlieb has quit [Quit: benlieb]
tacit7 has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
dhk has quit [Ping timeout: 260 seconds]
hk238 has joined #ruby
nankyokusei has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
RobertBirnie has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
zenlot has quit [Ping timeout: 244 seconds]
snockerton has quit [Quit: Leaving.]
zenlot has joined #ruby
mistermocha has joined #ruby
wilbert has joined #ruby
wilbert has quit [Client Quit]
Coldblackice has quit [Ping timeout: 240 seconds]
cyclonis_ has quit [Ping timeout: 260 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160502172042]]
ksmutthu has joined #ruby
mistermocha has joined #ruby
zacts has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
paradisaeidae_ has joined #ruby
pawnbox has joined #ruby
cesar_ has joined #ruby
cesar_ is now known as Guest99369
tildes_ has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
Guest99369 has quit [Client Quit]
tristanp_ has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
tristanp has joined #ruby
Orphen has joined #ruby
Orphen is now known as Guest99369
echosystm has quit [Quit: leaving]
Guest99369 has quit [Client Quit]
Orphen has joined #ruby
Orphen is now known as Guest99369
chopin has joined #ruby
Guest99369 has quit [Client Quit]
Devalo has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
Corrosive_ has joined #ruby
zacts has joined #ruby
CorOne has quit [Ping timeout: 276 seconds]
blingrang has quit [Quit: WeeChat 1.3]
tristanp has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
blingrang has joined #ruby
blingrang has quit [Client Quit]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duncannz has joined #ruby
kristofferR has joined #ruby
duncannz has quit [Max SendQ exceeded]
pawnbox has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
duncannz has joined #ruby
mistermocha has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
pawnbox has joined #ruby
netcho has left #ruby [#ruby]
duncannz has quit [Max SendQ exceeded]
mistermo_ has joined #ruby
duncannz has joined #ruby
mistermocha has quit [Ping timeout: 258 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
jancel has joined #ruby
sauvin has joined #ruby
mistermocha has joined #ruby
blackmesa has joined #ruby
dionysus69 has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 258 seconds]
chouhoulis has quit [Ping timeout: 276 seconds]
kareeoleez has quit [Remote host closed the connection]
jancel has quit [Ping timeout: 276 seconds]
mistermocha has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 264 seconds]
amclain has quit [Quit: Leaving]
tristanp has quit [Ping timeout: 258 seconds]
tristanp has joined #ruby
d0lph1n98 has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
Devalo has quit [Remote host closed the connection]
trista___ has joined #ruby
bobbycvi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has quit [Ping timeout: 252 seconds]
tristanp_ has quit [Ping timeout: 252 seconds]
chopin has quit [Ping timeout: 264 seconds]
e4xit has quit [Quit: Right I'm out!]
Dimik has joined #ruby
d0lph1n98 has joined #ruby
daniel_ has joined #ruby
daniel_ has quit [Client Quit]
Gv3s7 has joined #ruby
Arcaire has quit [Ping timeout: 250 seconds]
<Gv3s7>
Hello friends
<havenwood>
Gv3s7: hi
tristanp has joined #ruby
trista___ has quit [Read error: Connection reset by peer]
zast has quit [Remote host closed the connection]
youch has quit [Ping timeout: 244 seconds]
Coldblackice has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
adkjsfhd has quit [Ping timeout: 250 seconds]
pwnd_nsfw has joined #ruby
<Gv3s7>
I'm beginning on Ruby, moreover it's my first language and complete all related to object-oriented programming. Now, where should i continue? Thanks guys
<norc>
apeiros: Oh well I should have corrected more precisely. The important bit is Object#to_json, as it iterates over instance variables (which @table is)
<apeiros>
correct. but that's rails' behavior ;-)
<apeiros>
and now would be a good time to point out that maatt83 cross posted without announcing
startupality has joined #ruby
auwooo-0x71 has quit [K-Lined]
<apeiros>
and maatt83, ^ is the reason why it's considered rude to not announce cross-posts in all affected channels.
<A124>
Test data :https://paste.fedoraproject.org/370733/88610146/
Es0teric has quit [Ping timeout: 252 seconds]
<apeiros>
um, you did notice that I didn't call my method "to_hash", yes?
aegis3121 has quit [Ping timeout: 244 seconds]
<apeiros>
if you don't want to patch Object, you'll have to replace every v.to_recursive_hash with `if v.respond_to?(:to_recursive_hash) then v.to_recursive_hash elsif v.respond_to?(:to_h) then v.to_h else v end`
<apeiros>
up to you
tvw has quit [Ping timeout: 276 seconds]
theunraveler has joined #ruby
zast has joined #ruby
pandaant has quit [Remote host closed the connection]
<apeiros>
you can also always make it a pseudo-function and not patch any class. but then you'll have to handle the recursion within that method. e.g. ToHash.convert(value)
<A124>
Yeah, I missed that, too much open stuff. But still does not work, as it is not generic struct. But when I convert to openstruct then to hash gives empty output.
futilegames has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
<A124>
gregf_ you missed one thing, if it is nil, it is never evaluated.
jancel has joined #ruby
<phutchins>
gregf_: actually in that case it still adds the '-' tho, which I only want to add if the variable is defined... so could I do mystring += ("-" + var['bleh']['myarg'] || '')?
<A124>
phutchins You provided wrong example or I missed something.
<gregf_>
>> a = "foo"; puts a.__id__; b = nil; a << "-" << ( b || "" ); puts a.__id__, a
<phutchins>
A124: So basically, I have a version string. Something like "v0.7.3". If another attribute is set, I want to add a dash and then that attribute on to the end of the version string
<phutchins>
So... If no attribute is set, it would be v0.7.3. If the attribute is set to STAGING, it would end up giving me v0.7.3-STAGING
<phutchins>
The key is that I don't want the dash if the attribute is not set.
hobodave has joined #ruby
<phutchins>
A124: and yeah, << is faster but not extremely worried about that atm.
<gregf_>
phutchins: a << (!b.nil? ? "-" : "")
<norc__>
>> str = "ab"; if a = [?c]; str << a; end
<ruby[bot]>
norc__: # => /tmp/execpad-300189f52f4c/source-300189f52f4c:2: warning: found = in conditional, should be == ...check link for more (https://eval.in/577156)
ishe has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
<norc__>
^- phutchins
<phutchins>
gregf_: Ah, yeah that looks like it might work. let me give it a shot
<norc__>
Ops
<norc__>
>> str = "ab"; if a = [?c][0]; str << a; end # phutchins
<norc__>
Any attempt to mess with ternary or binary operators might be a bit more compact but ultimately hides your intent and makes it really hard to read.
Corrosive_ is now known as CorOne
weemsledeux has quit [Ping timeout: 260 seconds]
mradmacher has joined #ruby
amclain has joined #ruby
<hobodave>
hi guys, I'm having trouble figuring out how to clean up after using ActiveSupport::Subscriber.attach_to in a spec. The attachment (understandably) persists across tests and causes test pollution.
<norc__>
?rubyonrails
<ruby[bot]>
norc__: I don't know anything about rubyonrails
<hobodave>
gist inbound
<aegis3121>
?rails
<norc__>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<A124>
phutchins So your example was wrong, it did use twice the same value, both in conditional and later.
<hobodave>
duh :)
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<gregf_>
phutchins: sorry, what you want is : if node['bridge-api']['protocol'] is set return "- node['bridge-api']['protocol']" else "" ?
hobodave_ is now known as hobodave
<phutchins>
gregf_: so if node['bridge-api']['protocol'] is set, return "-" + node['bridge-api']['protocol']. If it's not set, dont' return anything (or blank string)
<gregf_>
sure
binaryplease has quit [Ping timeout: 272 seconds]
kareeoleez has joined #ruby
<phutchins>
>> version = "v0.7.3"; env = "STAGING"; protocol = version << ("-" << env || '')
rbennacer has quit [Remote host closed the connection]
<phutchins>
gregf_ & norc__ thanks a ton :)
I has joined #ruby
hutch34_ has quit [Ping timeout: 244 seconds]
I is now known as Guest16410
gtsai has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
gheegh has quit [Ping timeout: 276 seconds]
blackmesa has joined #ruby
Guest16410 has quit [Client Quit]
dopie has joined #ruby
skolman_ has joined #ruby
ICantCook has quit [Ping timeout: 276 seconds]
ICantCook has joined #ruby
ICantCook has quit [Max SendQ exceeded]
ICantCook has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
mark_66 has quit [Remote host closed the connection]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
idefine has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tewlmidget has joined #ruby
tewlmidget has quit [Client Quit]
d0lph1n98 has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
kgrz has quit [Quit: leaving]
synthroid has joined #ruby
kgrz has joined #ruby
ramfjord has joined #ruby
idefine has quit [Remote host closed the connection]
ponga has quit []
tristanp_ has joined #ruby
tildes_ has joined #ruby
[Butch] has quit [Read error: Connection reset by peer]
tristanp has quit [Ping timeout: 250 seconds]
[Butch] has joined #ruby
tristanp has joined #ruby
nankyokusei has joined #ruby
vdamewood has quit [Quit: Life beckons.]
tristanp_ has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
moeabdol has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
chopin has quit []
nettoweb has joined #ruby
idefine has joined #ruby
goeast has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
kgrz has quit [Quit: leaving]
moeabdol has quit [Client Quit]
jackjackdripper has quit [Client Quit]
anisha_ has quit [Quit: Leaving]
kgrz has joined #ruby
zenlot has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
zenlot6 has quit [Ping timeout: 264 seconds]
cdg_ has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 276 seconds]
moeabdol has joined #ruby
eGGshke has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
gregf has joined #ruby
idefine has joined #ruby
skalfyfan has quit [Ping timeout: 260 seconds]
bensarz has joined #ruby
tomphp has joined #ruby
ferr has joined #ruby
zacsek_ has joined #ruby
mistermocha has joined #ruby
zacsek has joined #ruby
jenrzzz has joined #ruby
zacsek_ has quit [Client Quit]
idefine has quit [Ping timeout: 240 seconds]
alfie_max15 has quit [Ping timeout: 252 seconds]
whathappens has quit [Remote host closed the connection]
mleung has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
SilverKey has quit [Quit: Halted.]
goeast has joined #ruby
idefine has joined #ruby
adac has joined #ruby
tristanp_ has joined #ruby
mistermo_ has joined #ruby
Es0teric_ has quit [Quit: Nigga, im OUTIE 5000]
Es0teric has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
aegis3121 has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
hahuang65 has joined #ruby
stannard has joined #ruby
zacsek has quit [Quit: Leaving]
jancel has joined #ruby
zacsek has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
mistermocha has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
nando293921 has joined #ruby
idefine has quit [Ping timeout: 264 seconds]
Asher has quit [Quit: Leaving.]
egglo has joined #ruby
chipotle has joined #ruby
tristanp_ has joined #ruby
mikecmpbll has joined #ruby
tristanp has quit [Ping timeout: 276 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
hutch34_ has joined #ruby
stannard has quit []
aswen has joined #ruby
gtsai_ has quit [Ping timeout: 272 seconds]
miqlas-H has joined #ruby
<miqlas-H>
Hi Guys!
blackmesa has quit [Ping timeout: 258 seconds]
ChiefAlexander has quit [Remote host closed the connection]
<miqlas-H>
I'm trying to compile the latest Ruby stable for Haiku with gcc5, but it cannot find out the size of "long long". Can somebody help me, where is the problem? I got this config.log: http://termbin.com/2rl4
CloCkWeRX has quit [Ping timeout: 260 seconds]
|2701 has joined #ruby
whathappens has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
axl_ has quit [Ping timeout: 260 seconds]
whathapp_ has joined #ruby
moredhel has joined #ruby
solars has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 250 seconds]
rcvalle has joined #ruby
rbennacer has joined #ruby
jeanlinu_ has joined #ruby
griffindy has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<imperator>
miqlas-H, not sure, I think you might have better luck in #haiku
axl_ has joined #ruby
<miqlas-H>
imperator: tried, no luck yet
last_staff has joined #ruby
jeanlinux has quit [Ping timeout: 260 seconds]
whathappens has quit [Ping timeout: 276 seconds]
chey has joined #ruby
* imperator
hasn't tried haiku in a while, should look at it again
solars has joined #ruby
tildes_ has quit [Ping timeout: 272 seconds]
synthroid has quit [Remote host closed the connection]
<chey>
Some interpreters for android suck
<miqlas-H>
imperator: i see this in the config.log:
<miqlas-H>
configure:11616: ./conftest
<miqlas-H>
runtime_loader: Cannot open file libssp.so.0: No such file or directory
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<chey>
Code that works on pc dont work for android
<miqlas-H>
Maybe it tries to link with a lib, what not available....
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Read error: Connection reset by peer]
<chey>
Yea well people dont seem to know the potential
edwinvdgraaf has joined #ruby
<miqlas-H>
but what do you mean with "hu"?
craigp has joined #ruby
synthroid has joined #ruby
<mordocai>
Anyone have a project they know of with lots of rspec tests I can run? I'm looking for a quick test trying to narrow down why our rspec tests are super slow on one machine and not on others (and yes, i've checked the obvious things. It doesn't appear to be CPU, disk, or memory bottlenecks so...)
Asher has quit [Quit: Leaving.]
<chey>
Sorry thats my accent "Hu" means dont you think?
Asher has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
<miqlas-H>
Hungary?
skweek has quit [Ping timeout: 240 seconds]
<chey>
No Guernsey
mikecmpbll has joined #ruby
<miqlas-H>
Szia chey!
<chey>
Guernsey uk
<miqlas-H>
I don't care :)
<miqlas-H>
I know yust Scarfolk, UK.
<chey>
Ok
<miqlas-H>
just...
<chey>
Near france anyways...
<chey>
At least coding is in english
SilverKey has joined #ruby
<chey>
Well as we say "chow f nw"
machinewar has joined #ruby
chey has left #ruby ["Leaving"]
<machinewar>
anyone know if can create Tempfile where uniq_id is only integers?
<machinewar>
or if maybe it does only use numbers?
solars has quit [Remote host closed the connection]
solars has joined #ruby
<miqlas-H>
imperator: this ticket looks relevant. Thank you, i reported it again with all the required info.
morochena has joined #ruby
ChiefAlexander has joined #ruby
morochena has quit [Client Quit]
hobodave has joined #ruby
shinnya has joined #ruby
tildes_ has joined #ruby
tristanp_ has joined #ruby
nando293921 has quit [Quit: Lost terminal]
chipotle has quit [Ping timeout: 246 seconds]
nando293921 has joined #ruby
machinewar has quit []
tristanp has quit [Ping timeout: 260 seconds]
<miqlas-H>
imperator: it surely relevant bugreport, because i added the folder of the missing lib to the LD_PATH, and it works now.
solars has quit [Remote host closed the connection]
jancel has quit [Remote host closed the connection]
joes has quit [Remote host closed the connection]
chipotle has joined #ruby
jancel has joined #ruby
jhack has quit [Quit: jhack]
axl_ has quit [Quit: axl_]
solars has joined #ruby
<miqlas-H>
Guys, is there any way to colorize the other configure scripts output, like the ruby configure doing it? Something, what not depends on autoconf... I mean something in bash or like that.
LoneHerm_ has joined #ruby
ishe has joined #ruby
jenrzzz has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
tildes_ has quit [Ping timeout: 246 seconds]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
<miqlas-H>
OMG, now during the make: ld: miniruby: hidden symbol `__stack_chk_fail_local' isn't defined
diegoaguilar has quit [Max SendQ exceeded]
diegoaguilar has joined #ruby
saneax is now known as saneax_AFK
LoneHerm_ has quit [Ping timeout: 276 seconds]
spider-mario has joined #ruby
mordocai has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
<jhass>
smells like a libc incompatibility
<miqlas-H>
jhass: yep, i need to report it also
jenrzzz has quit [Ping timeout: 246 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
people seem to workaround it by turning the stack protector off
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
whathappens has quit [Remote host closed the connection]
agent_white has quit [Quit: brb]
whathappens has joined #ruby
maucar has quit [Quit: Leaving]
duckpupp1 has joined #ruby
solars has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 244 seconds]
whathappens has quit [Ping timeout: 246 seconds]
B1n4r10 has quit [Ping timeout: 264 seconds]
Ishido has joined #ruby
tacit7``` has joined #ruby
alfie_max15 has joined #ruby
madgen has joined #ruby
illusionmedic has joined #ruby
Dimik has joined #ruby
tacit7`` has quit [Ping timeout: 244 seconds]
giraffe has quit [Quit: bye]
idefine has joined #ruby
archaic has quit [Quit: bye]
idefine has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
idefine has joined #ruby
sneakersec has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
GarethAdams has quit [Quit: Leaving...]
tristanp has quit [Read error: Connection reset by peer]
jessu has quit [Remote host closed the connection]
blackmesa has joined #ruby
RegulationD has quit [Remote host closed the connection]
tildes_ has quit [Ping timeout: 260 seconds]
jaequery has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
whathappens has joined #ruby
blackmesa has joined #ruby
elementaru has joined #ruby
tacit7``` has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 260 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
duckpupp1 has quit [Ping timeout: 264 seconds]
shinnya has quit [Ping timeout: 264 seconds]
tristanp has joined #ruby
soud has quit [Quit: cya]
ta_ has joined #ruby
soud has joined #ruby
nhhc has quit [Quit: Leaving]
karmatr0n has quit [Ping timeout: 250 seconds]
skolman_ has quit [Remote host closed the connection]
curses has joined #ruby
skolman_ has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
tristanp has quit [Read error: Connection reset by peer]
nando293921 has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby
tristanp has joined #ruby
norc has joined #ruby
flughafen_ has quit [Quit: WeeChat 1.3]
hazelux has quit [Remote host closed the connection]
diegoaguilar has quit [Ping timeout: 276 seconds]
cschneid has joined #ruby
norc__ has quit [Ping timeout: 260 seconds]
<cschneid>
I have a checkout of a gem, that includes a native extension, I want to build the extension right in the tree, without installing the gem to the current gemset/system. Is there a command to do that?
jeanlinu_ has quit [Remote host closed the connection]
tristanp_ has joined #ruby
n_blownapart has joined #ruby
tildes_ has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
roamingdog has joined #ruby
nadir is now known as Periapsis
axl_ has quit [Quit: axl_]
swills has quit [Quit: Leaving]
Devalo has quit [Remote host closed the connection]
<tubbo>
well you could do gem build but that will also build the .gem file
<tubbo>
although it won't install to your system
ferr has quit [Quit: WeeChat 1.5]
tristanp_ has quit [Read error: Connection reset by peer]
giz|work has joined #ruby
tristanp has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
centrx has joined #ruby
roamingdog has quit [Ping timeout: 276 seconds]
imperator has left #ruby ["Leaving"]
tvw has quit [Remote host closed the connection]
roamingdog has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Periapsis is now known as nadir
freerobby has quit [Read error: Connection reset by peer]
Travis-42 has joined #ruby
<cschneid>
tubbo: that doesn't compile though, that just assembles the .c code into a .gem file
<cschneid>
I need to build the C code so the require in the gem works.
freerobby has joined #ruby
<tubbo>
isn't there an extconf.rb jawn
<cschneid>
yeah, can I just use that directly?
<Travis-42>
In recent versions of ruby, is there a difference between declaring module myModule; class myClass; vs class myModule::myClass ? Some sources I found seemed to indicate yes, others no
roamingdog has quit [Remote host closed the connection]
tristanp_ has joined #ruby
tildes_ has quit [Ping timeout: 276 seconds]
tristanp has quit [Ping timeout: 250 seconds]
roamingdog has joined #ruby
<cschneid>
Travis-42: I thought those were different with regards to how it does method/constant lookups. I'd have to find docs on the exact thing
<Travis-42>
I saw in the rails source that all modules were explicitly declared on a separate line, but that didn't seem to be the case for some other popular ruby projects I found
daftdolphin has joined #ruby
ramfjord_ has joined #ruby
duckpupp1 has joined #ruby
<jhass>
Travis-42: there hasn't been a change, it's the same for a long time
<jhass>
constant lookup is one thing as cschneid mentioned (compare Module.nesting inside either variant)
<jhass>
more importantly the latter variant does _not_ define a module/class if not already defined
<cschneid>
class Foo::Bar also crashes if Foo doesn't exist.
<cschneid>
right?
<jhass>
so it'll error out if it's not already defined
<cschneid>
jhass: yeah, that
ramfjord has quit [Read error: Connection reset by peer]
<cschneid>
s/crashes/throws an exception which is likely to break your app/
<Travis-42>
yea ok, that's kind of what I thought, but I couldn't find any consistent answers
curses has left #ruby [#ruby]
<Travis-42>
thank you
diegoaguilar has joined #ruby
weckl has quit [Quit: Leaving]
firstdayonthejob has joined #ruby
DoubleMalt has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
am55 has quit [Quit: Leaving]
diegoaguilar has quit [Max SendQ exceeded]
djbkd has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
djbkd has joined #ruby
karmatr0n has joined #ruby
freerobby has quit [Quit: Leaving.]
whathappens has quit [Remote host closed the connection]
n_blownapart has quit []
djbkd has quit [Ping timeout: 244 seconds]
febuiles has joined #ruby
SilverKey has quit [Quit: Halted.]
RegulationD has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
giz|work has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
zeroDi has quit [Quit: WeeChat 1.5]
cdg has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
aegis3121 has quit [Ping timeout: 252 seconds]
tildes_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
allcentu1 has joined #ruby
tristanp has joined #ruby
<miqlas-H>
Bye Guys!
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
<shevy>
"class.c (rb_scan_args): merge code for n_trail"
<shevy>
anyone knows what n_trail is?
phutchins has joined #ruby
skolman has quit [Ping timeout: 252 seconds]
fmcgeough has quit [Quit: fmcgeough]
aegis3121 has joined #ruby
dhollinger has joined #ruby
johnmilton has quit [Quit: Namaste]
blackgoat has joined #ruby
skolman_ has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
tristanp has joined #ruby
<norc>
shevy, do you really want someone else git-blame for you?
paultreny has joined #ruby
paultreny is now known as Guest89085
<shevy>
norc so you can't answer
Devalo has joined #ruby
<norc>
shevy, sure I can but I do not see what good can come out of it.
kirun has quit [Quit: Client exiting]
<shevy>
norc ok great
tristanp_ has quit [Read error: Connection reset by peer]
Guest89085 has quit [Changing host]
Guest89085 has joined #ruby
nankyokusei has joined #ruby
Guest89085 has quit [Client Quit]
<norc>
shevy, on that note click the "blame" button on top, find the change log entry and find out which commit introduced it. That way you get to immediately see what the patch actually did.
<havenwood>
shevy: n_trail = n_mand - n_lead
<shevy>
havenwood thanks!
B1n4r10 has joined #ruby
mattwashere has joined #ruby
mattwashere has quit [Client Quit]
tristanp_ has joined #ruby
<norc>
havenwood, are you in the slightest familiar with the implementation of ivars?
<havenwood>
I'm enjoying on trunk: 42.class #=> Integer
<norc>
What is that? o.o
oncall-pokemon has quit [Quit: Connection closed for inactivity]
genpaku has joined #ruby
<havenwood>
norc: fixnum/bignum are implementation detail in 2.4-dev
Devalo has quit [Ping timeout: 272 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<norc>
havenwood, ah. That is actually neat.
<dreinull>
did I mention I love sinatra and rack?
skade has joined #ruby
<havenwood>
norc: i know more than none of the things but less than all of the things
nankyokusei has quit [Ping timeout: 276 seconds]
<havenwood>
dreinull: <3 have you tried Roda? it's fantastic!
jancel has joined #ruby
<dreinull>
havenwood no, looked at it for a couple of times and then went back to sinatra
<norc>
havenwood, based on fiddle hackery I did the other day I found out that apparently the ivar table of the _class_ does not get initialized until the first time an ivar is set. (Havent found the related code yet)
<havenwood>
dreinull: aha, yeah Sinatra is nice as well
<norc>
That confused the hell out of me.
tristanp has quit [Ping timeout: 258 seconds]
<dreinull>
havenwood it's more the stuff I can do with rack that amazes me. the routing stuff and so is just sugar.
<havenwood>
dreinull: give to Rack what is Rack's
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<dreinull>
havenwood will have to look into roda at some point too.
DevastatingDave has joined #ruby
mattwashere has joined #ruby
<dreinull>
I like the routing idea better in roda.
<dreinull>
cleaner
phutchins has joined #ruby
mleung has quit [Quit: mleung]
freerobby has joined #ruby
<norc>
havenwood, okay a quick look actually revealed the code, but it makes even less sense now. :(
pidu has joined #ruby
<norc>
(Or even why the class maintains an ivar table)
art-solopov has joined #ruby
mleung has joined #ruby
jancel_ has joined #ruby
jancel has quit [Ping timeout: 272 seconds]
<havenwood>
norc: and oddball exceptions like generic_iv_tbl
<norc>
That global monsterous beast just popped out of my screen.
<havenwood>
"Internally, Ruby uses a bit of a hack to save instance variables for generic objects—that is, for objects that don’t use an RObject structure. When you save an instance variable in a generic object, Ruby saves it in a special hash called generic_iv_tbl." ~Excerpt From: Pat Shaughnessy's Ruby Under a Microscope
eGGshke has joined #ruby
<norc>
Oh. I read that, it sounds familiar now that you mention it.
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<norc>
So this would be the case for intance variables for Fixnums for example (soon to be Integers!) I guess.
pidu has left #ruby ["ERC (IRC client for Emacs 25.1.50.2)"]
ocbtec has quit [Quit: leaving]
tfitts has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jancel_ has quit [Remote host closed the connection]
<norc>
havenwood, oh. ROBJECT_EMBED seems to be the interesting bit here, which explains why there is ivar tables in both objects and classes.
agent_white has joined #ruby
m8 has joined #ruby
codecop has joined #ruby
eGGshke has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
jancel has joined #ruby
<norc>
havenwood, Either way, your pointer made me grab the book again. I already found the relevant section that sheds some light on this.
skade has quit [Read error: Connection reset by peer]
synthroid has quit []
skade has joined #ruby
SilverKey has quit [Quit: Halted.]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
renier has joined #ruby
rbennacer has quit [Ping timeout: 246 seconds]
Voker57|2 has joined #ruby
ur5us has joined #ruby
renier has quit [Client Quit]
Voker57|2 has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
workmad3 has joined #ruby
blackmesa has joined #ruby
roamingdog has quit []
codecop has quit [Remote host closed the connection]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
jaequery has joined #ruby
Macaveli has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
BTRE has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
dhk has quit [Quit: Leaving]
hobodave has quit [Quit: Computer has gone to sleep.]
moeabdol has quit [Ping timeout: 258 seconds]
skweek has joined #ruby
BTRE has joined #ruby
ta_ has quit [Remote host closed the connection]
mhib has joined #ruby
skade has quit [Read error: Connection reset by peer]
<dreinull>
is this a good idea? There are eiter no files a or b or there is one of the two: File.exist?('a.rb') && require('./a') or File.exist?('b.rb') && require('./b')
duckpupp1 has quit [Ping timeout: 260 seconds]
<dreinull>
didn't like rescue in this case.
<centrx>
dreinull: I would just use a regular if-statement
<norc>
dreinull, begin require 'a1'; rescue LoadError; require 'a2'; end is the common pattern though.
<norc>
(Exceptions in Ruby really are not that bad)
<dreinull>
norc there might not be a2
<dreinull>
centrx don't see how if would make a difference here
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
B1n4r10 has quit [Ping timeout: 240 seconds]
idefine_ has joined #ruby
<norc>
dreinull, what if both files exist, would you want to only load a?
<dreinull>
norc just one, the first. That would be a bug.
<norc>
dreinull, then its fine though I would still use an explicit if/elsif for readability.
<norc>
Like centrx said.
hahuang65 has quit [Ping timeout: 260 seconds]
JoshGlzBrk has joined #ruby
<centrx>
dreinull: It’s so the code is clear and avoids potential future bugs
jero_ has joined #ruby
freerobby has quit [Quit: Leaving.]
<centrx>
dreinull: Even if you are the only person who is going to be programming on this code, you want it to be clear when you read it a month from now or whenever
<dreinull>
centrx norc ok, I can see what you mean.
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
<dreinull>
I find ifs confusing. Usually more difficult to read than complex true/false evaluations
idefine has quit [Ping timeout: 240 seconds]
<norc>
dreinull, for simple things you could use modifier_if
ldnunes has quit [Quit: Leaving]
j3r0 has quit [Ping timeout: 246 seconds]
<centrx>
(inline if)
<norc>
it just reads a bit more natural "require(something) if condition"
ixti has joined #ruby
tomphp has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby
allcentu1 has quit [Ping timeout: 246 seconds]
aswen has quit [Quit: WeeChat 1.4]
devyn has quit [Ping timeout: 272 seconds]
kareeoleez has quit [Remote host closed the connection]
jud has quit [Read error: Connection reset by peer]
devyn has joined #ruby
jud has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
Ebok has joined #ruby
<Ebok>
When is the -> operator useful in ruby?
<adaedra>
it's not really an operator, it's the "stabby" lambda syntax
yfeldblum has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
m8 has quit [Quit: Sto andando via]
AnoHito has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
matp has quit [Remote host closed the connection]
egglo has quit [Remote host closed the connection]
blackmesa has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
sneakersec has quit [Ping timeout: 260 seconds]
DoubleMalt has quit [Remote host closed the connection]
nando293921 has quit [Ping timeout: 276 seconds]
Ebok has quit [Quit: This computer has gone to sleep]
idefine has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
dhollinger has quit [Quit: WeeChat 1.4]
idefine has quit [Remote host closed the connection]
Vingador has quit [Remote host closed the connection]
nando293921 has joined #ruby
Vingador has joined #ruby
jrafanie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PlasmaStar has quit [Ping timeout: 272 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
bobbycvi has joined #ruby
Vingador has quit [Client Quit]
last_staff has quit [Quit: last_staff]
jenrzzz has quit [Ping timeout: 276 seconds]
PlasmaStar has joined #ruby
zenlot has quit [Ping timeout: 260 seconds]
allcentu1 has joined #ruby
jrafanie has quit [Client Quit]
swills has joined #ruby
allcentu1 has quit [Client Quit]
rkazak has joined #ruby
malconis has joined #ruby
Vingador has joined #ruby
JoshGlzBrk has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
sdothum has quit [Read error: Connection reset by peer]
phredus_ has quit [Remote host closed the connection]
prestorium has quit [Quit: Leaving]
phredus_ has joined #ruby
sdothum has joined #ruby
CJKinni` has quit [Ping timeout: 264 seconds]
lukec has joined #ruby
jancel has quit [Read error: Connection reset by peer]
jancel has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Client Quit]
beilabs has joined #ruby
JoshGlzBrk has joined #ruby
<A124>
Cannot figure out another recursive thing, done well. I suck I became bad, physical health translates to mind. Would like to in-place modify strings in Hash, Struct, Array nested combo. ... Not sure if I got it working before and screwed another variant, but here is what I got: https://gist.github.com/anonymous/376548d11ecb4060e88d51e40f7043e5
jenrzzz_ has quit [Ping timeout: 272 seconds]
idefine has joined #ruby
patrick_star_3 has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mesamoo has quit [Quit: Konversation terminated!]
Vingador has quit [Quit: http://quassel-irc.org - Bate-papo confortável em qualquer lugar.]
helpa has quit [Remote host closed the connection]
tristanp_ has joined #ruby
malconis has quit [Ping timeout: 252 seconds]
helpa has joined #ruby
Vingador has joined #ruby
<norc>
A124, hiding code from us? :)
n_blownapart has joined #ruby
rarruda_ has quit [Ping timeout: 260 seconds]
<A124>
norc I just did paste code
<norc>
A124, some code.
JoshGlzBrk has quit [Client Quit]
<A124>
Did I miss anything?
tristanp has quit [Ping timeout: 252 seconds]
<norc>
You tell me.
dopamean1 has joined #ruby
<A124>
Yeah I did, third line should be data = Oj.load()
rarruda has joined #ruby
<norc>
A124, for the test case please just use JSON, so I can quickly plug this in. :)
dopamean_ has quit [Ping timeout: 252 seconds]
<A124>
In this case it should be equivalent, it is just Hash, but in previous internal json was incapable.
<norc>
A124, also your implementation of to_recursive_hash is missing.
<A124>
Man, I am really sorry, I screwed up, I will post fixed.
<norc>
All good.
<norc>
A124, just a quick hint by the way. The line where you recurse into Array, you invoke each_with_parent(k, &blk)
<norc>
A124, that will effectively pass nil.
rkazak has quit [Ping timeout: 244 seconds]
<norc>
(Since Ruby has seen k before it knows its a variable but its never assigned to by anything)
JoshGlzBrk has joined #ruby
patrick_star_3 has joined #ruby
<norc>
I am expecting this to be (one of) your problem(s)
DevastatingDave has quit [Ping timeout: 258 seconds]
dopamean1 has quit [Ping timeout: 272 seconds]
<norc>
It will force the next recursion to immediately yield the parent, which however is nil.
djbkd has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
rarruda has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
rarruda has joined #ruby
tristanp has joined #ruby
<norc>
A124, next you need to recurse when the current object responds to each_with_parent
tristanp_ has quit [Ping timeout: 250 seconds]
nando293921 has quit [Quit: Lost terminal]
nankyokusei has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
lipoqil has joined #ruby
bollullera has quit [Excess Flood]
jancel has quit [Ping timeout: 252 seconds]
<norc>
A124, also your initial call passes no argument to the function, so the first thing it does is yield the block with parent, which earlier defaulted to nil.
statelesscode has quit [Quit: statelesscode]
<norc>
That is the cause for you seeing nil.
nankyokusei has quit [Ping timeout: 240 seconds]
chipotle has quit [Remote host closed the connection]
matp has joined #ruby
tercenya has quit [Ping timeout: 276 seconds]
diegoaguilar has joined #ruby
phredus_ has quit [Remote host closed the connection]
binaryplease has joined #ruby
Vingador has quit [Quit: http://quassel-irc.org - Bate-papo confortável em qualquer lugar.]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<Radar>
Hey, can someone here please gist me the Quit message of Vingador?
<Radar>
it's crashing helpa and I want to find out why.
Vingador has joined #ruby
AnoHito_ has quit [Quit: Leaving]
eGGshke has joined #ruby
nando293921 has joined #ruby
<A124>
norc Yes, you are right about that, though after solving that the output is just the keys of the first Hash. So totally wrong anyway.
<norc>
A124, guess you were too quick to copy and paste this from stackoverflow.
<norc>
:o)
<Radar>
norc or A124: do either of you see Quit messages in this channel?
<norc>
Radar, * Vingador has quit (Quit: http://quassel-irc.org - Bate-papo confortável em qualquer lugar.)
<Radar>
Danke.
<norc>
Cheerio.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
biberu has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
nando293921 has quit [Client Quit]
<mozzarella>
ááááá
<A124>
Radar No else I would already responded :)
<A124>
norc I wrote that ehm.
SilverKey has joined #ruby
B1n4r10 has quit [Ping timeout: 276 seconds]
<Radar>
mozzarella: only in quit messages apparently.
kareeole_ has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
<Radar>
helpa: bang you're dead
helpa has joined #ruby
eGGshke has quit [Ping timeout: 240 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
nando293921 has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
norc has quit [Ping timeout: 260 seconds]
agent_white has quit [Quit: lol]
nando293921 has quit [Ping timeout: 258 seconds]
nando293921 has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
c0mrad3 has quit [Quit: Connection closed for inactivity]
mattwashere has joined #ruby
idefine has quit [Read error: Connection reset by peer]
JesseH has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]