<bambanx>
When u said above "the coder writes code that writes/manipulates the code that will get executed" it means the code modificate the code files too?
<al2o3-cr>
the most simple yet to understand
hutch34 has joined #ruby
heftig has joined #ruby
<bambanx>
al2o3-cr, i am not pro in ruby, for me looks like a class with a function
cagomez has quit [Remote host closed the connection]
lupine has quit [Remote host closed the connection]
lupine has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shazbotmcnasty>
al2o3-cr: 'you don't have write permissions for the /usr/local/rvm/gems/ruby......'
<shazbotmcnasty>
if i don't sudo
<RickHull>
that can make sense, but generally it's better to run an rvm environment with user permissions
<RickHull>
try `sudo ruby -r http_parser -e exit`
<RickHull>
not sure if that will use the sudo'd gems
Azure has quit [Quit: Oops.]
duckpuppy has joined #ruby
<RickHull>
does this setup use bundler? how did rails get installed?
eckhardt has joined #ruby
<al2o3-cr>
shazbotmcnasty: for one you shouldn't be using sudo with rvm
<al2o3-cr>
we'll have to creep back to the beginning
<shazbotmcnasty>
yeah i feel like I'm going to have to set up ruby all over again - this feels like a mess
<al2o3-cr>
shazbotmcnasty: what does `rvm list` show?
plexigras has quit [Ping timeout: 268 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shazbotmcnasty>
just 2.4.1
<shazbotmcnasty>
I have to go, i'll have to pick this back up tomorrow. I'm on overtime and they won't like that.
hutch34 has joined #ruby
kitsunenokenja has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
troys is now known as troys_
mjolnird has quit [Quit: Leaving]
govg has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
plexigras has joined #ruby
<bambanx>
any nice scraper gem?
<SeepingN>
oxymoron
shazbotmcnasty has quit [Ping timeout: 248 seconds]
jackjackdripper has quit [Quit: Leaving.]
mjolnird has joined #ruby
bambanx has quit [Quit: Leaving]
plexigras has quit [Ping timeout: 240 seconds]
elphe has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
AnoHito_ has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.9.1]
shazbotmcnasty has joined #ruby
AnoHito has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
marr has quit [Ping timeout: 248 seconds]
milardovich has quit [Read error: Connection reset by peer]
shinnya has joined #ruby
milardovich has joined #ruby
guardianx has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
orbyt_ has quit [Read error: Connection reset by peer]
guacamole has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
scientes has quit [Ping timeout: 268 seconds]
vee__ has quit [Ping timeout: 255 seconds]
konsolebox has quit [Ping timeout: 268 seconds]
konsolebox has joined #ruby
Azure has joined #ruby
scientes has joined #ruby
scientes has quit [Changing host]
scientes has joined #ruby
vee__ has joined #ruby
jameser has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
GodFather has quit [Read error: No route to host]
GodFather has joined #ruby
drowze has joined #ruby
oetjenj has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
konsolebox has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
cagomez has joined #ruby
aroaminggeek has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
aroaminggeek has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 240 seconds]
aroaminggeek has joined #ruby
scientes has quit [Ping timeout: 260 seconds]
podlech has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
konsolebox has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
konsolebox has joined #ruby
statelesscode has joined #ruby
scientes has joined #ruby
scientes has quit [Changing host]
scientes has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
statelesscode has quit [Client Quit]
d^sh has quit [Ping timeout: 255 seconds]
konsolebox has quit [Ping timeout: 260 seconds]
statelesscode has joined #ruby
d^sh has joined #ruby
kryptoz has joined #ruby
konsolebox has joined #ruby
guardianx has quit []
gizmore|2 has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
quobo has quit [Quit: Connection closed for inactivity]
cdg has joined #ruby
cagomez has joined #ruby
kryptoz has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 248 seconds]
konsolebox has quit [Ping timeout: 255 seconds]
cdg has quit [Ping timeout: 258 seconds]
konsolebox has joined #ruby
scientes has quit [Ping timeout: 248 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
roshanavand has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has quit [Ping timeout: 240 seconds]
kanobt61 has quit [Remote host closed the connection]
sammi` has joined #ruby
uZiel has joined #ruby
konsolebox has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
AnoHito has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
AnoHito_ has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
enterprisey has joined #ruby
duncan_bayne has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
vee__ has quit [Ping timeout: 248 seconds]
<duncan_bayne>
Hey :) We've just upgraded a Rails 4 project from MRI 2.2.2 -> 2.4.2, and we're seeing some odd behaviour in some of our specs. Specifically, assertions that kept failing until Timeout#timeout gave up no longer raise Timeout::Error, and thus no longer time out.
<duncan_bayne>
Are there are any known issues w/ Timeout in 2.4.2? Did the usual Googling for issues, etc., but couldn't find anything.
guardianx has joined #ruby
<Radar>
duncan_bayne: This sounds awfully familiar.
<Radar>
as in: I just heard this exact story at lunch time.
<Radar>
do you work with Milewski?
<duncan_bayne>
Radar: LOL yes :)
<Radar>
:D
<Radar>
Did he tell you that I suggested that he should try the latest Ruby and see if that fixes the issue?
<Radar>
Also: do you see the issue on 2.3.x?
konsolebox has joined #ruby
<Radar>
And if ruby-head works then he owes me lunch. So I have a somewhat vested interest.
<duncan_bayne>
We're busy bisecting Ruby versions in an attempt to narrow it down
mjolnird has quit [Quit: Leaving]
<duncan_bayne>
Radar: all of us in the office are having a laugh at this :)
alan_w has joined #ruby
<Radar>
:D :D
<Radar>
Looks like very little has changed for timeout.rb between v2_2_2 and trunk.
drowze has quit [Ping timeout: 240 seconds]
<duncan_bayne>
Also I still need to bring my rspec electrocution rig to Melbourne Ruby and hook you up to it :)
<Radar>
Yeah you never did follow through with that particular thread.
<duncan_bayne>
If you place the little patches right you can provoke involuntary muscle spasms when your tests fail
konsolebox has quit [Ping timeout: 268 seconds]
<Radar>
threat*
<duncan_bayne>
Ended up having a third child which took up a lot of capacity
<Radar>
I've already got one of those spasms under my right eye and that's enough spasming tyvm
<Radar>
duncan_bayne: do you use it in a capybara spec?
konsolebox has joined #ruby
<Radar>
Because Capybara has built-in waiting things like this.
<duncan_bayne>
Radar: Pez isn't a fan of those; he wanted greater flexibility around matchers, IIRC.
<duncan_bayne>
Hence rspec-wait ...
<Radar>
👌🏻
<Radar>
Pez is probably right in that case. Well, if you do find whatever's causing it then please let me know :)
<Radar>
the issue _definitely_ doesn't happen on 2.2.2 and sorta-kinda-always happens on 2.4.2?
<sneep>
Do you two work at the same company?
<Radar>
sneep: Same city, different companies.
kryptoz has joined #ruby
<duncan_bayne>
sneep: Same company for the time being; Pez' outfit is a client of ours
<Radar>
last time duncan_bayne and I spoke in person he threatened to electrocute me. And since then he's apparently been _allowed_ to have another kid. They'll let anyone do it these days.
<duncan_bayne>
Best. Behaved. Kids. Ever.
<Radar>
duncan_bayne: our answers are incongruent.
<sneep>
lol
<Radar>
duncan_bayne works at the same company as "Pez" (Perryn), I work at a different company.
<duncan_bayne>
This is more confusing than the bloody Ruby bug ;)
<Radar>
yup. As soon as people get involved with anything it leads to confusion.
scientes has joined #ruby
<duncan_bayne>
So, yeah, _definitely_ not 2.2.2, and usefully reproducible in 2.4.2
cagomez has joined #ruby
<Radar>
duncan_bayne: what about 2.3?
<Radar>
Could help narrow things down.
<Radar>
And ruby-head.
<duncan_bayne>
Radar: trying that right now
pilne has quit [Quit: Quitting!]
dviola has quit [Ping timeout: 240 seconds]
kitsunenokenja has quit [Ping timeout: 255 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
<RickHull>
duncan_bayne: I'll have a patch up that may be worth trying :)
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
BTRE has quit [Quit: Leaving]
mjolnird has joined #ruby
mjolnird has quit [Max SendQ exceeded]
<duncan_bayne>
RickHull: you mean a PR on MRI?
<RickHull>
no, ripping Timeout from rspec-wait
ramfjord has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<duncan_bayne>
RickHull: I like the way you roll
<RickHull>
it's trickier than it looked at first glance but doesn't look too tough
<RickHull>
good test suite, not passing it yet
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as dviola
ramfjord has quit [Ping timeout: 248 seconds]
<RickHull>
ooh, I see -- I'm not timing out if the block itself stalls out
allcentury has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
govg has joined #ruby
jeanlinux has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
hutch34 has joined #ruby
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BTRE has joined #ruby
sspreitz has quit [Ping timeout: 240 seconds]
podlech has quit [Quit: WeeChat 1.9.1]
uZiel has quit [Read error: Connection reset by peer]
_the_blackadder has joined #ruby
kryptoz has quit [Remote host closed the connection]
<duncan_bayne>
RickHull: let me know how you go, would be interested to try your fork against our test suite
<duncan_bayne>
Meanwhile, have persuaded rbenv to install HEAD, & retesting
<duncan_bayne>
Still waiting on a result from HEAD
<Radar>
duncan_bayne: There's a regression in 2.2.3?!
konsolebox has joined #ruby
<duncan_bayne>
Radar: Looks that way
troys_ is now known as troys
<duncan_bayne>
And it must be subtle, because it works in most cases
<duncan_bayne>
"The compiler is broken"
ramfjord has quit [Ping timeout: 240 seconds]
<duncan_bayne>
LOL
* duncan_bayne
continues testing, skeptically
<RickHull>
duncan_bayne: the main difference is that an rspec-wait TimeoutError is never raised -- since I can't interrupt the block; an ExpectationNotMet error fires when the block completes unmet
guardianx has joined #ruby
<RickHull>
so if you have some long-running blocks that you want interrupted with a TimeoutError, that won't happen here. i think that could be fixed a couple ways
d^sh has quit [Ping timeout: 255 seconds]
<RickHull>
also, I think there is an unnecessary loop in the handler, but I'm probably wrong on that
<RickHull>
so maybe keeping timeout and fixing the loop helps
Technodrome has joined #ruby
d^sh has joined #ruby
<pars>
what we doing?
cagomez has quit [Remote host closed the connection]
coolguy123123 has joined #ruby
<duncan_bayne>
pars: Speaking for myself, trying to work out why Timeout#timeout ... isn't ... but only in one of our specs, and only since 2.2.2
<RickHull>
it might be that the bug goes away with a tighter Timeout.timeout block
<RickHull>
or you could use any other watchdog technique, like spinning up a thread
<duncan_bayne>
RickHull: ta, I'll take a look
aroaminggeek has joined #ruby
<duncan_bayne>
pars: neither do I, neither do I :-/
konsolebox has quit [Ping timeout: 268 seconds]
konsolebox has joined #ruby
allcentury has quit [Remote host closed the connection]
<RickHull>
"like spinning up a thread" -- heh, this is pretty much what Timeout.timeout does
cagomez has joined #ruby
ur5us_ has quit [Ping timeout: 248 seconds]
statelesscode has quit [Ping timeout: 255 seconds]
<duncan_bayne>
Thanks for the suggestions folks; I'm off home
<duncan_bayne>
Will definitely let you know how we get on; milewski reports that the first test run on 2.4 HEAD didn't repro the problem. But it is intermittent ...
duncan_bayne has left #ruby ["beer time"]
cagomez has quit [Ping timeout: 248 seconds]
coolguy123123 has quit [Ping timeout: 248 seconds]
duncan_bayne has joined #ruby
<duncan_bayne>
Well that was quick - failed the second time out
<duncan_bayne>
Fails on 2.5 preview as well
konsolebox has quit [Ping timeout: 240 seconds]
<Radar>
Boo, hiss, etc.
<Radar>
I was looking forward to my free lunch.
<RickHull>
duncan_bayne: i'm going to move this work to different branches, if you check it out later
<RickHull>
my previous link may 404
<duncan_bayne>
RickHull: ta
<duncan_bayne>
Radar: Def. boo. Time for MCVE + bisect I think
konsolebox has joined #ruby
<duncan_bayne>
Well, actually, time for beer, and MVCE + bisect on Monday
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scientes has quit [Ping timeout: 240 seconds]
pars has joined #ruby
<pars>
hello
<apeiros>
hi again, pars
TomyWork has joined #ruby
guille-moe has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
aupadhye has joined #ruby
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
tomphp has joined #ruby
conta has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
Yzguy has quit [Quit: Zzz...]
AnoHito has quit [Quit: Leaving]
claudiuinberlin has joined #ruby
AnoHito has joined #ruby
marr has joined #ruby
chmuri has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jeanlinux has quit [Remote host closed the connection]
guille-moe has joined #ruby
uZiel has joined #ruby
jeanlinux has joined #ruby
jeanlinux has quit [Remote host closed the connection]
chmurifree has joined #ruby
Burgestrand has joined #ruby
iamarun has joined #ruby
jeanlinux has joined #ruby
jeanlinux has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeanlinux has joined #ruby
jeanlinux has quit [Remote host closed the connection]
jottr has joined #ruby
jeanlinux has joined #ruby
lytol has joined #ruby
jeanlinux has quit [Remote host closed the connection]
admwrd_ is now known as admwrd
<pars>
h
uZiel has quit [Remote host closed the connection]
pars has quit [Quit: WeeChat 0.4.2]
admwrd has left #ruby [#ruby]
uZiel has joined #ruby
pars has joined #ruby
admwrd has joined #ruby
<pars>
l
<pars>
who here?
admwrd has left #ruby [#ruby]
BTRE has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
<pars>
heelp i now die
jeanlinux has joined #ruby
pars has quit [Client Quit]
harfangk has quit [Ping timeout: 255 seconds]
jeanlinux has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
TheBrayn has quit [Quit: WeeChat 1.9]
jeanlinux has joined #ruby
jeanlinux has quit [Remote host closed the connection]
TheBrayn has joined #ruby
Serpent7776 has joined #ruby
DTZUZO has quit [Ping timeout: 260 seconds]
<Bish>
mozzarella: oh jesus that was a good one
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Bish>
whats wrong with people, i wish i had that much time?
<Bish>
i want to die, whelp i die..
<Bish>
he gotta make his mind up
<apeiros>
Bish: it's no laughing matter.
<Bish>
ofcourse it is not, but i doubt like very much that this was serious
Beams has joined #ruby
jeanlinux has joined #ruby
cagomez has joined #ruby
<apeiros>
and you base that doubt on what knowledge? really, unless you're a psychiatrist, IMO you better don't judge the situation.
<apeiros>
also -> #ruby-offtopic
workmad3 has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
<Bish>
banning him certainly helped :o
<apeiros>
you should read the ban and understand it
<apeiros>
I redirected them to #ruby-offtopic
gigetoo has joined #ruby
<Bish>
uh you can do that?
<Bish>
that's cool
<apeiros>
yes I can do that
imode has quit [Ping timeout: 250 seconds]
<Bish>
i mean didn't know irc offered that
<Bish>
looks like a hack though, with the $?
jeanlinux has quit [Ping timeout: 248 seconds]
<apeiros>
it may well be a freenode specific extension. and again -> #ruby-offtopic
cagomez has quit [Ping timeout: 252 seconds]
dcluna has quit [Ping timeout: 248 seconds]
jeanlinux has joined #ruby
jeanlinux has quit [Client Quit]
mim1k is now known as mim1k|work
dcluna has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
jeanlinux has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
hutch34 has joined #ruby
octomancer has joined #ruby
larcara has joined #ruby
guille-moe has quit [Ping timeout: 268 seconds]
konsolebox has joined #ruby
Rouge has joined #ruby
andikr has joined #ruby
guille-moe has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
rgr has joined #ruby
snickers has joined #ruby
tvw has joined #ruby
BioSpider has joined #ruby
howdoi has joined #ruby
kryptoz has quit [Remote host closed the connection]
charliesome has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has quit [Quit: Closing time!]
ta_ has quit [Remote host closed the connection]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
larcara has quit [Remote host closed the connection]
gregf_ has joined #ruby
postmodern has quit [Quit: Leaving]
ledestin has joined #ruby
larcara has joined #ruby
Psybur has joined #ruby
ddffg has quit [Quit: Leaving]
ferr has joined #ruby
ferr has left #ruby [#ruby]
stoffus has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
scientes has joined #ruby
frerich has joined #ruby
<frerich>
Hi all! Is this a good place to ask questions about the Ruby C API? I'm fighting a bit with the lifetime of Ruby 'VALUE' values - in particular, I have a function defined in terms of rb_enc_str_new() to which I would like to add some memoization such that instead of generating a new string every time, it tries to reuse previously generated string VALUEs.
<frerich>
Alas, simply storing the generated VALUEs in some hash and then reusing them causes the interpreter to crash. I suppose this is because of ownership (i.e. my cached VALUE is destroyed behind my back). So I tried using rb_obj_clone() or rb_obj_dup() but to no avail.
<frerich>
In other languages, I'd typically just increase a reference count, but I suppose in Ruby there is a different way?
<dminuoso>
frerich: You must tag it with rb_global_variable if the VALUE persists outside the Ruby world.
<frerich>
dminuoso: Ah, I see - that keeps it from getting GC'ed. That's all there is to it, i.e. no clone or dup is needed?
<dminuoso>
frerich: Or you have to rb_gc_mark it, it kind of depends on what situation you are in.
<dminuoso>
frerich: Yeah just rg_gc_mark those. rb_global_variable is for a different scenario.
<frerich>
dminuoso: rb_gc_mark seems to be just what I need, thanks a lot! :-)
jenrzzz has quit [Ping timeout: 248 seconds]
scientes has quit [Ping timeout: 255 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
<frerich>
dminuoso: Hm, I hoped I had fixed my issue by simply calling rb_gc_mark on the VALUE before I store it in my cache (my cache is really just a std::map<Foo, VALUE>) but now I see that it eventually causes 'Assertion failed: (OBJ_FROZEN(shared)), function str_replace, file string.c, line 1145.'. Hm!
ldnunes has joined #ruby
GodFather has joined #ruby
uZiel has joined #ruby
mostlybadfly has joined #ruby
memo1 has quit [Ping timeout: 248 seconds]
alan_w has quit [Quit: WeeChat 1.9.1]
Rouge has quit [Ping timeout: 255 seconds]
jeanlinu_ has joined #ruby
ta_ has joined #ruby
jeanlinux has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
quuxman has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 240 seconds]
tcopeland has quit [Quit: tcopeland]
workmad3 has joined #ruby
quobo is now known as icytan46
icytan46 is now known as quobo
jameser has joined #ruby
roshanavand has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
iamarun has quit [Remote host closed the connection]
zanoni has joined #ruby
bkxd has joined #ruby
allcentury has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
zzak has quit [Quit: Connection closed for inactivity]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
allcentury has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
duckpuppy has joined #ruby
larcara has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 252 seconds]
cavallari37 has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
p0s1x has joined #ruby
cavallari37 is now known as andrecavallari
konsolebox has joined #ruby
bkxd has joined #ruby
DTZUZO has joined #ruby
contradictioned has quit [Read error: Connection reset by peer]
contradictioned has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
tsglove has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
larcara has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has quit [Ping timeout: 255 seconds]
jeanlinu_ has quit []
banisterfiend has joined #ruby
jameser has joined #ruby
p0s1x has quit [Quit: Segmentation fault]
konsolebox has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
kryptoz has joined #ruby
rgr_ has joined #ruby
rabajaj has quit [Remote host closed the connection]
rgr has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
Rouge has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
bkxd has quit [Quit: leaving]
ldnunes has quit [Remote host closed the connection]
hemangpatel has quit [Ping timeout: 248 seconds]
ldnunes has joined #ruby
hemangpatel has joined #ruby
ta_ has joined #ruby
tcopeland has joined #ruby
gr33n7007h has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
mim1k|work has quit [Ping timeout: 255 seconds]
gr33n7007h is now known as al2o3-cr
konsolebox has joined #ruby
synthroid has joined #ruby
roshanavand has quit [Ping timeout: 248 seconds]
Cool_Fire has joined #ruby
<Cool_Fire>
Hello, I'm wondering if someone can tell me if this is a bug or intended behavior: https://pastebin.com/dFJcP1Fv
<Bish>
if you have a long if elsif else block, u certainly want to know if there has been anything "hit"
<Bish>
otherwise you would lose that information
<al2o3-cr>
well explained Bish :)
<Cool_Fire>
is "bar" being "nil" then just a `coincidence` of ruby creating the variable, regardless of if it will assign something to it?
<frerich>
dminuoso: Thanks alot once more for your feedback, I think you're right on track with suspecting that the crashes are related to the GC but I just can't seem to beat it into submission. I now decided to ask about it on StackOverflow, at ps://stackoverflow.com/questions/47351589 -- maybe someone else has an idea.
banisterfiend has quit [Ping timeout: 248 seconds]
<Bish>
if you assign to a variable in an if block
<Bish>
ruby actually does an implicit bar = nil
<frerich>
dminuoso: Alas, I failed to create a small, self-contained example which reproduces the issues - even after introducing some rb_gc_start() calls. I suspect I didn't really understand the problem yet. :-/
<Bish>
at the begin of the block
<Cool_Fire>
I see.
<Bish>
otherwise you would get "blablabla is not defined" errors
<Bish>
it's one of the few unexpected behaviours of ruby
<Bish>
but useful ones
<Bish>
beware of scopes though, if you do
<Bish>
>> proc{if true;a=3;end;}.call();a;
<ruby[bot]>
Bish: # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/902332)
<Bish>
you still have that problem
<Cool_Fire>
Well, realistically the actual code is probably something you shouldn't write like that to begin with
konsolebox has quit [Ping timeout: 240 seconds]
<Bish>
yes, but you could fall into that trap easily
<Bish>
if you rely on that implicit a = nil
<Cool_Fire>
I imagine rubocop might hound me mercilessly if I did :P
<Cool_Fire>
But thanks for clearing that up
konsolebox has joined #ruby
<Bish>
ehhe, rubocop that's a nice name
<Bish>
is it a code checker? i don't know it
banisterfiend has joined #ruby
<Cool_Fire>
yes, it is. Does linting and checks if you're following the ruby style guide
<Bish>
i am such a hater of code-style guides, might make me mad to look into that
kryptoz has quit [Remote host closed the connection]
jeanlinux has joined #ruby
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
<Cool_Fire>
In the end my code usually looks better when I do follow it
<Cool_Fire>
and it enforces a lot of best practice stuff
<Cool_Fire>
like "dostuff() if someting()" vs if something(); dostuff(); end
zautomata has quit [Ping timeout: 240 seconds]
<Bish>
the good old matz itself considering it a mistake
<Bish>
including that style
zautomata has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
<Cool_Fire>
But yeah, code style guides are always a matter of debate
Siyfion has joined #ruby
<Bish>
and i debate they all SUCK
<Bish>
no, they don't but sometimes.
<Bish>
there was this javascript styleguide
<Bish>
said i had to write var vm = this; at the beginning of every function
<Bish>
i ended up insulting people
uZiel has joined #ruby
<Cool_Fire>
I think it usually depends on how neat and readable your code naturally is if it's helpful (really odd style guide advice like that not withstanding.)
<Bish>
well they defended that one to the grave
oleo has joined #ruby
<Bish>
i was lucky to found a better solution, which is standard now
<Cool_Fire>
Nicely done tehn
<Cool_Fire>
then*
<Bish>
costed me 3 days, though
<Bish>
(the reason i insulted people)
shinnya has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
aScottishBoat has joined #ruby
<Cool_Fire>
mercifully rubocop comes with a built-in "I disagree" feature to make it shut up about specific violations or completely disregar some style rules :p
uneeb has joined #ruby
uneeb has quit [Remote host closed the connection]
John__ has joined #ruby
<Bish>
oh that's nice
im0nde has joined #ruby
tcopeland has quit [Quit: tcopeland]
andrecavallari has quit [Remote host closed the connection]
cronolio has joined #ruby
cronolio has left #ruby [#ruby]
tcopeland has joined #ruby
<apeiros>
I find having a style guide important. which style in particular doesn't matter IMO. it's just a matter of getting used to.
<apeiros>
but it helps being able to get used to a style, hence having one is still important :)
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stoffus has quit [Ping timeout: 260 seconds]
uZiel has joined #ruby
nofxx_ has joined #ruby
nofxx has quit [Read error: Connection reset by peer]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
im0nde has quit [Ping timeout: 240 seconds]
kryptoz has joined #ruby
snickers has quit [Ping timeout: 248 seconds]
uZiel has quit [Ping timeout: 248 seconds]
cdg_ has joined #ruby
roshanavand has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 255 seconds]
al2o3-cr has joined #ruby
mniip has quit [Quit: This page is intentionally left blank.]
mniip has joined #ruby
mson has joined #ruby
gauravgoyal has joined #ruby
shinnya has quit [Ping timeout: 248 seconds]
Hexafox[I] has quit [Ping timeout: 250 seconds]
Defenestrate has quit [Quit: This computer has gone to sleep]
ta_ has quit [Remote host closed the connection]
DLSteve_ has joined #ruby
safetypin has joined #ruby
allcentury has joined #ruby
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
ta_ has joined #ruby
TomyWork has quit [Remote host closed the connection]
morfin has joined #ruby
<morfin>
hello
kryptoz has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 255 seconds]
<morfin>
how you'd implement specific API client?
ta_ has joined #ruby
<morfin>
i use faraday + httpclient for HTTP, question is would you implement all API methods and then in your code wrap that class to get certain data/
kryptoz has joined #ruby
Rapture has joined #ruby
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
saslam has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys has joined #ruby
jameser has joined #ruby
dviola has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
hutch34 has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
ta_ has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
gauravgoyal has quit [Ping timeout: 250 seconds]
yokel has quit [Remote host closed the connection]
hs366 has quit [Quit: Leaving]
yokel has joined #ruby
guille-moe has joined #ruby
kanobt61 has joined #ruby
wald0 has joined #ruby
larcara has quit [Remote host closed the connection]
larcara has joined #ruby
larcara has quit [Ping timeout: 248 seconds]
apeiros has quit []
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
safetypin has joined #ruby
hemangpatel has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
tomphp has joined #ruby
sepp2k has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Cool_Fire has left #ruby [#ruby]
tomphp has quit [Ping timeout: 240 seconds]
memo1 has joined #ruby
polishdub has joined #ruby
polishdub has left #ruby [#ruby]
wald0 has quit [Quit: Lost terminal]
gizmore|2 is now known as gizmore
allcentury has joined #ruby
duckpupp1 has joined #ruby
cdg_ has quit [Remote host closed the connection]
cdg has joined #ruby
duckpuppy has quit [Ping timeout: 268 seconds]
cdg_ has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
cdg__ has joined #ruby
troys is now known as troys_
Technodrome has joined #ruby
cdg_ has quit [Ping timeout: 240 seconds]
drowze has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
synthroid has quit [Remote host closed the connection]
workmad3 has joined #ruby
vee__ has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
larcara has joined #ruby
apeiros_ has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
cdg__ has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
raynold has joined #ruby
troys_ is now known as troys
vee__ has joined #ruby
apparition has joined #ruby
guacamole has joined #ruby
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
mim1k has joined #ruby
huyderman has quit [Remote host closed the connection]
jeanlinux has quit [Ping timeout: 268 seconds]
techn1cs has joined #ruby
techn1cs has quit [Changing host]
techn1cs has joined #ruby
n13z has quit [Ping timeout: 260 seconds]
frerich has quit [Quit: frerich]
snickers has joined #ruby
John__ has left #ruby ["Систем политик аметзит, крэтин щй ваи д ел."]
urk187 has joined #ruby
John__ has joined #ruby
drowze has quit [Ping timeout: 240 seconds]
John__ has left #ruby [#ruby]
Itzbernoulli has joined #ruby
LBRapid has joined #ruby
ldnunes has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Remote host closed the connection]
LBRapid has quit [Client Quit]
nowhere_man has joined #ruby
LBRapid has joined #ruby
LBRapid has quit [Client Quit]
Itzbernoulli has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
LBRapid has joined #ruby
LBRapid has quit [Client Quit]
LBRapid has joined #ruby
LBRapid has quit [Client Quit]
thinkpad has quit [Ping timeout: 268 seconds]
LBRapid has joined #ruby
LBRapid has quit [Client Quit]
cagomez has joined #ruby
bmurt has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ldnunes has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vee__ has quit [Ping timeout: 255 seconds]
enterprisey has quit [Ping timeout: 255 seconds]
kickr has quit [Read error: Connection reset by peer]
nchambers has joined #ruby
kryptoz has quit []
ramortegui has quit [Quit: This computer has gone to sleep]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LBRapid has joined #ruby
mcr1 has joined #ruby
<mcr1>
the C function, rb_define_class_under defines a class under some module (or class). Can this class be a subclass of another class?
arashb has joined #ruby
<apeiros_>
mcr1: sure
apeiros_ is now known as apeiros
<mcr1>
okay, so do I need to declare this in C somehow, or do I do that in ruby?
<apeiros>
that's up to you
Asher has joined #ruby
<mcr1>
oh, I see the third argument, "rb_cObject" is really the superclass.
hutch34 has quit [Ping timeout: 240 seconds]
<mcr1>
what happens if there is disagreement between C and Ruby definitions? (I don't intend to do that, but I'm curious)
tomphp has joined #ruby
polishdub has joined #ruby
exhiled has joined #ruby
<apeiros>
pretty sure the same thing as in ruby, you get an exception
Serpent7776 has quit [Quit: Leaving]
<apeiros>
>> class X; end; class Y; end; class Y < X; end; class
<ruby[bot]>
apeiros: # => /tmp/execpad-1394f33700ec/source-1394f33700ec:3: syntax error, unexpected modifier_rescue ...check link for more (https://eval.in/902429)
<apeiros>
>> class X; end; class Y; end; class Y < X; end;
<ruby[bot]>
apeiros: # => superclass mismatch for class Y (TypeError) ...check link for more (https://eval.in/902430)
vee__ has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
polishdub has left #ruby [#ruby]
jamiejackson has joined #ruby
shazbotmcnasty has joined #ruby
Dimik has joined #ruby
<jamiejackson>
where' s the documentation for ruby's yaml?
<jamiejackson>
thanks RickHull. i'm trying to see if something else is going on in my file. brb
mim1k has quit [Ping timeout: 250 seconds]
ta_ has quit [Ping timeout: 240 seconds]
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 248 seconds]
br0d1n has joined #ruby
larcara has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
hutch34 has joined #ruby
nofxx_ has quit [Remote host closed the connection]
nofxx_ has joined #ruby
larcara has quit [Remote host closed the connection]
the_f0ster has joined #ruby
<the_f0ster>
does anyone know a way I can profile DB pooling usage / info to optimize it? with active record connection adapter
ta_ has joined #ruby
<apeiros>
?rails the_f0ster
<ruby[bot]>
the_f0ster: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
Gabemo has quit [Read error: Connection reset by peer]
troys_ is now known as troys
br0d1n has quit [Quit: Leaving]
tacoboy has quit [Remote host closed the connection]
michael3 has joined #ruby
Gabemo has joined #ruby
andikr has quit [Read error: Connection reset by peer]
imode has joined #ruby
conta has quit [Remote host closed the connection]
<the_f0ster>
apeiros: my apologies, I asked there as well. I just assume smarter people are in interested in ruby over just rails.. it seemed maybe not application specific
shazbotmcnasty has quit [Changing host]
shazbotmcnasty has joined #ruby
exhiled has joined #ruby
nowhere_man has quit [Ping timeout: 268 seconds]
guacamole has joined #ruby
ta_ has quit [Ping timeout: 268 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
kies has joined #ruby
enterprisey has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cabotto has joined #ruby
chmurifree has quit [Ping timeout: 240 seconds]
cabotto has quit [Client Quit]
eckhardt has joined #ruby
eckhardt has quit [Client Quit]
tcopeland has quit [Quit: tcopeland]
tcopeland has joined #ruby
chmurifree has joined #ruby
larcara has joined #ruby
UserOO7 has quit [Remote host closed the connection]
bvcosta has joined #ruby
cdg_ has quit [Remote host closed the connection]
_sfiguser has joined #ruby
_sfiguser has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
ramfjord has joined #ruby
cdg has joined #ruby
ramortegui has joined #ruby
kickr has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
<shazbotmcnasty>
alrighty - back to it. So, I think I broke ruby entirely by installing everything incorrectly - some with sudo, some without. I'm trying to run an admin console in rails but am currently unable. Here are the errors: https://gist.github.com/anonymous/7dc8f5c931a77cb217277a6a534ece4a - anyone up to the task of assisting me?
ramfjord has quit [Ping timeout: 255 seconds]
lunarkitty7 has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
larcara has quit [Remote host closed the connection]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
claudiuinberlin has joined #ruby
naprimer has joined #ruby
conta1 has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 260 seconds]
guacamole has joined #ruby
tomphp has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
cagomez has joined #ruby
exhiled has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
Rouge has joined #ruby
guacamole has quit [Ping timeout: 258 seconds]
UserOO7 has joined #ruby
michael3 has quit [Ping timeout: 268 seconds]
Asher has joined #ruby
guacamole has joined #ruby
truenito has joined #ruby
jottr has joined #ruby
Asher has quit [Client Quit]
Rapture has quit [Ping timeout: 268 seconds]
sriehl has joined #ruby
guille-moe has quit [Quit: guille-moe]
guacamole has quit [Client Quit]
mikecmpbll has joined #ruby
Defenestrate has joined #ruby
jeanlinux has quit [Ping timeout: 240 seconds]
_sfiguser has joined #ruby
Defenestrate has quit [Remote host closed the connection]
Defenestrate has joined #ruby
Defenestrate has quit [Client Quit]
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
Defenestrate has quit [Client Quit]
Rapture has joined #ruby
enterprisey has quit [Remote host closed the connection]
danielpclark has quit [Ping timeout: 268 seconds]
UserOO7 has quit []
larcara has joined #ruby
shazbotmcnasty has quit [Read error: Connection reset by peer]
larcara has quit [Remote host closed the connection]
ivanskie_work has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
shazbotmcnasty has joined #ruby
ivanskie has quit [Ping timeout: 268 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zautomata1 has joined #ruby
zautomata has quit [Ping timeout: 248 seconds]
ivanskie has joined #ruby
bmurt has joined #ruby
guacamole has quit [Client Quit]
larcara has joined #ruby
ivanskie_work has quit [Ping timeout: 248 seconds]
danielpclark has joined #ruby
ta_ has joined #ruby
LocaMocha has quit [Ping timeout: 248 seconds]
snickers has joined #ruby
milardovich has joined #ruby
snickers has quit [Client Quit]
tsglove has quit [Quit: Leaving]
tomphp has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
nadir has joined #ruby
ramfjord has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
LBRapid has quit [Quit: ZNC 1.6.5+deb1 - http://znc.in]
Hexafox[I] has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LBRapid has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]