<pinksandles>
you basically need a key check that is: is_a? instead of ==.
<funkytwig>
Just had a go with arcadia, like it but the font is VERRY small and no preffs to change.
<nymous>
np, your implementation at least inspired me to a much cleaner approach
laphoraig92 has joined #ruby
cagomez has quit [Remote host closed the connection]
<nymous>
pinksandles: no, i meant if i have a base class with attributes and subclass it, a child's self.class would point to another key in TYPE_MAP
Asher has joined #ruby
Asher has quit [Client Quit]
<pinksandles>
right, so the key check needs to take into account that self.class may be an ancestor of some other key
<pinksandles>
it's not straight fwd
<nymous>
yeah
frozengeek has quit [Quit: frozengeek]
<pinksandles>
subclass of some other key*
<nymous>
i also thought about making validators an instance val instead of global const
t-recx has quit [Quit: t-recx]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pinksandles>
you should go with what's most simple
<nymous>
would also need to clone them on inherited
<pinksandles>
& my solution isnt that simple.
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nymous>
well, my previous attempt were even worse lol
<pinksandles>
relatively simple but could be overkill. there may be a more classical solution.
<nymous>
your solution could be tweaked by checking all ancestors' validations
<nymous>
i'm unsure if it cleaner or not against instance vals
<pinksandles>
you might end up in a hole but sure give it a shot
<pinksandles>
it can become really complicated
<pinksandles>
when you get into ancestors
<pinksandles>
like, say a superclass has a key,and so does a subclass. do you always go to the superclass?
<pinksandles>
by logic of inheritance you'd go to the subclass and then the parent.
<pinksandles>
and at that point, is it not easier to just have a bunch of helper functions?
<nymous>
oh, simplest possible approach is to check if we have a validator for this class, if not check parent, if not check parent... etc
SqREL has joined #ruby
<pinksandles>
yeah
<nymous>
but i would do that really a lot of times
<pinksandles>
i mean go for it. if you're into it.
<nymous>
this doesn't make me feel comfortable, as i have a little assembler experience and worry about doing non-profitable things many times)
<pinksandles>
maybe because its 1am and im tired, but i wouldnt wanna bother at that point anymore. id try rethink i have to be something more simple
hahuang65 has joined #ruby
im314ous has joined #ruby
<nymous>
i did helper approach, but it turns out to be even more complex
<nymous>
or it was just my bad design haha
<pinksandles>
you could just have a function, in `#initialize`, assert_types({foo: String}, attributes)
<nymous>
i mean when i'm in a base class, i completely ok with helper functions and all they work ok
<nymous>
but in a child i can't get a simple solution to just add yet another test
umaaji has joined #ruby
SqREL has quit [Ping timeout: 240 seconds]
<pinksandles>
don't see how assert_types couldn't work: def assert_types(restrictions, attributes); restrictions.each{|k,v| attributes[k].class == v or raise(TypeError, 'blah')}; end
<pinksandles>
then just call it in each initialize
<funkytwig>
join /#arcadiaide
AndBobsYourUncle has joined #ruby
<funkytwig>
join /#arcadiaide
<funkytwig>
join /#arcadia
<pinksandles>
the / goes before join
<nymous>
it's not in an initialize, but a method
<pinksandles>
right, doesn't matter. you can even look up the instance variable table dynamically if you have to.
<nymous>
well, the approach i'm trying to implement is a simple chain of validators, which is checked once in a base class, all i want is a simple and clean approach to add more validations into subclasses
<nymous>
then i wrote i just realized that i can just have a setup_validators method and super it in subclasses
<pinksandles>
right, so you can implement validations in Proc's, and use those in assert_types or assert_validations too. if you want to keep it as simple as possible.
<pinksandles>
sure
<pinksandles>
works
brent__ has quit [Remote host closed the connection]
<Radar>
Which side of this particular fence are you on, pinksandles?
<nymous>
this is the whole code i have in it and it works
<Radar>
I'm on the side that you should at least evaluate code that others have written and see if it is fit-for-purpose.
<pinksandles>
Radar: that just means, it would work for his needs but he wouldn't need most of it. kind of like, you could host a blog with rails, but you only need nginx + public/ folder.
<nymous>
with all background job like timestamping events, calculating rates etc
<Radar>
pinksandles: I used to host a blog with Rails. It handled 14req/s. I learned that particular lesson when Hacker News + Reddit tried to hit the blog at the same time.
<Radar>
pinksandles: Now the blog handles _at least_ 600req/s
alfiemax has joined #ruby
<pinksandles>
@Radar i suggest you read the backlog, you appear absence of tons of context.
<pinksandles>
i don't care about discussing the merits of Rails. it's an example. it can host a blog, but so can less (eg static files + web server)
<Radar>
pinksandles: been there, done that.
<Radar>
I was trying to make a suggestion that perhaps dry-types could work better here.
<nymous>
i'm actually thinking of having a blog on crystal lol
<pinksandles>
so virtus can solve his problem, but so can his own solution, and so could the other gists i've posted. so far you haven't contributed anything but "lol congrats u recreated virtus"
<pinksandles>
i suggested virtus
<pinksandles>
it was my first suggestion
<pinksandles>
go "been there, done that" some more
<Radar>
3 hours ago. You think that I am going to read that far back?
rkoller has joined #ruby
<pinksandles>
oh sorry. that excuses everything ....
<Radar>
C'mon man. Drop the attitude.
<Radar>
I was trying to make a suggestion, is all.
<nymous>
btw guys, can you suggest me a lib or something for thread pool executor with timeout?
<Radar>
nymous: I am banned from doing that apparently .
<pinksandles>
sure, but i just thought "congrats you reinvented dry-*" was a bit rude to start with
<Radar>
wait_for_termination sounds like something you might want?
hfp_work has quit [Ping timeout: 240 seconds]
<nymous>
yeah, reading about it too
<nymous>
well, i'll give it a try then
johnny56 has quit [Ping timeout: 264 seconds]
gizmore|2 has joined #ruby
Gabemo has quit [Read error: Connection reset by peer]
d^sh has quit [Ping timeout: 255 seconds]
<nymous>
as for using dry-types instead of implementing my own. i've done with using complex libraries just because we have them long time ago during Perl times, when using a library function made my scripts run 10x slower than a quick reimplementation of exactly one function. Ruby isn't the fastest thing I've ever used
bronson has quit [Ping timeout: 246 seconds]
johnny56 has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
carnegie_ has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
aduabu has joined #ruby
goyox86_ has quit [Quit: goyox86_]
harai has quit [Read error: Connection reset by peer]
goyox86_ has joined #ruby
AnoHito_ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
biberu has joined #ruby
canteen4 has quit [Ping timeout: 255 seconds]
goyox86_ has quit [Client Quit]
AnoHito has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
nofxxx has joined #ruby
AndBobsYourUncle has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
goyox86_ has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
jackjackdripper has quit [Quit: Leaving.]
bronson has joined #ruby
phate408 has quit [Remote host closed the connection]
canteen4 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
SqREL has joined #ruby
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
itat has quit [Ping timeout: 240 seconds]
SqREL has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
canteen4 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
aduabu has quit [Ping timeout: 255 seconds]
aduabu has joined #ruby
\13k has quit [Quit: good night and good luck]
uZiel has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
\13k has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 276 seconds]
aduabu has joined #ruby
dlitvak has quit [Quit: Connection closed for inactivity]
canteen4 has quit [Ping timeout: 276 seconds]
cdg has joined #ruby
SqREL has joined #ruby
conta has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
conta has quit [Ping timeout: 255 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 246 seconds]
aduabu has joined #ruby
f48ds2 has joined #ruby
Mon_Ouie has quit [Ping timeout: 248 seconds]
canteen4 has quit [Ping timeout: 255 seconds]
rabajaj has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 255 seconds]
meinside has joined #ruby
jackjackdripper has joined #ruby
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
goyox86_ has quit [Quit: goyox86_]
Mon_Ouie has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
roshanavand has joined #ruby
moei has joined #ruby
canteen4 has joined #ruby
quobo has joined #ruby
nobitanobi has quit [Remote host closed the connection]
cschneid_ has joined #ruby
aduabu has quit [Ping timeout: 255 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
aduabu has quit [Ping timeout: 240 seconds]
Azure|dc has joined #ruby
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 246 seconds]
Azure has quit [Ping timeout: 255 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 246 seconds]
aduabu has joined #ruby
guardianx has quit []
anisha_ has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
carnegie has joined #ruby
DaniG2k has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
Guest23572 has joined #ruby
f48ds2 has left #ruby ["WeeChat 1.9"]
ta_ has quit [Remote host closed the connection]
_asqrd has joined #ruby
Guest23572 is now known as Cope
SqREL has quit [Remote host closed the connection]
Lyubo1 has quit [Ping timeout: 264 seconds]
enterprisey has quit [Remote host closed the connection]
canteen4 has joined #ruby
_asqrd has left #ruby ["Leaving"]
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
Lyubo1 has joined #ruby
runescape07rsps has joined #ruby
conta has joined #ruby
canteen4 has quit [Ping timeout: 255 seconds]
canteen4 has joined #ruby
Defenestrate has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
alfiemax has quit [Remote host closed the connection]
Lyubo1 has quit [Ping timeout: 240 seconds]
aduabu has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
aduabu has joined #ruby
Lyubo1 has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyWork has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
canteen4 has joined #ruby
Silthias1 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
DaniG2k has quit [Quit: leaving]
Silthias has quit [Ping timeout: 240 seconds]
bigkevmcd has quit [Quit: Outta here...]
jaruga_________ has joined #ruby
djbkd has quit []
darix has quit [Ping timeout: 258 seconds]
Lyubo1 has quit [Ping timeout: 255 seconds]
jaruga_________ has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
SqREL has joined #ruby
bronson has joined #ruby
Lyubo1 has joined #ruby
ziyangtian has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
djbkd has joined #ruby
darix has joined #ruby
SqREL has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 246 seconds]
ana_ has joined #ruby
Defenestrate has quit [Quit: Leaving]
LoRez has quit [Ping timeout: 248 seconds]
Burgestrand has joined #ruby
ta_ has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
mark_66 has joined #ruby
_sfiguser has quit [Ping timeout: 255 seconds]
canteen4 has quit [Ping timeout: 255 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
SqREL has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
sysvalve has joined #ruby
ziyangtian has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
ziyangtian has joined #ruby
ziyangtian has quit [Client Quit]
canteen4 has joined #ruby
ziyangtian has joined #ruby
ziyangtian has quit [Client Quit]
MarkBilk__ has joined #ruby
bladdezz has quit [Ping timeout: 240 seconds]
aduabu has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
workmad3 has joined #ruby
pb122 has joined #ruby
MarkBilk has joined #ruby
MarkBilk_ has quit [Ping timeout: 240 seconds]
antgel has joined #ruby
MarkBilk__ has quit [Ping timeout: 240 seconds]
_sfiguser has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
cloutz has quit [Read error: Connection reset by peer]
cloutz has joined #ruby
aduabu has joined #ruby
cdg has joined #ruby
tsia has joined #ruby
lasenna[m] has quit [Ping timeout: 240 seconds]
lasenna[m] has joined #ruby
canteen4 has quit [Ping timeout: 255 seconds]
canteen4 has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
aduabu has quit [Ping timeout: 240 seconds]
MissionCritical has quit [Ping timeout: 264 seconds]
Lyubo1 has quit [Ping timeout: 240 seconds]
ltd has quit [Ping timeout: 255 seconds]
kies has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ltd has joined #ruby
aduabu has joined #ruby
gokul_mr[m] has quit [Ping timeout: 240 seconds]
Lyubo1 has joined #ruby
gokul_mr[m] has joined #ruby
mtsd has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
RockyBalboa has joined #ruby
RockyBalboa has quit [Client Quit]
canteen4 has quit [Ping timeout: 248 seconds]
xall has joined #ruby
canteen4 has joined #ruby
xall has quit [Client Quit]
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
mtsd has left #ruby [#ruby]
MissionCritical has joined #ruby
Lyubo1 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 255 seconds]
aduabu has joined #ruby
Lyubo1 has joined #ruby
canteen4 has quit [Ping timeout: 255 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
umaaji has quit [Ping timeout: 240 seconds]
canteen4 has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
umaaji has joined #ruby
marr has joined #ruby
workmad3 has joined #ruby
canteen4 has joined #ruby
bigkevmcd has joined #ruby
drptbl has joined #ruby
mim1k has joined #ruby
frozengeek has joined #ruby
umaaji has quit [Client Quit]
aduabu has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
drptbl has quit [Client Quit]
roshanavand has quit [Ping timeout: 255 seconds]
futilegames has joined #ruby
futilegames has left #ruby [#ruby]
Rodya_ has quit [Ping timeout: 246 seconds]
aduabu has joined #ruby
frozengeek has quit [Remote host closed the connection]
frozengeek has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
jaruga________ has joined #ruby
aduabu has quit [Ping timeout: 260 seconds]
Beams has joined #ruby
Lyubo1 has quit [Ping timeout: 240 seconds]
pandaant has joined #ruby
aduabu has joined #ruby
zipace has joined #ruby
Lyubo1 has joined #ruby
canteen4 has quit [Ping timeout: 246 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 255 seconds]
itat has joined #ruby
spectra has quit [Ping timeout: 246 seconds]
aduabu has joined #ruby
^mtkd has quit [Ping timeout: 240 seconds]
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
mtkd has joined #ruby
chouhoulis has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
roshanavand has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
canteen4 has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
Lyubo1 has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
spectra has joined #ruby
canteen4 has joined #ruby
frozengeek has quit [Quit: frozengeek]
frozengeek has joined #ruby
frozengeek has quit [Client Quit]
frozengeek has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aduabu has quit [Ping timeout: 248 seconds]
Lyubo1 has joined #ruby
aduabu has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
minimalism has quit [Quit: minimalism]
canteen4 has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
dionysus69 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
thnee has joined #ruby
sysvalve has quit [Quit: Leaving]
<thnee>
how is it possible for bundler to install files as root, when I ran it as my normal user??
bronson has quit [Ping timeout: 246 seconds]
shwouchk has quit [Quit: Connection closed for inactivity]
Serpent7776 has joined #ruby
canteen4 has joined #ruby
sysvalve has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
aduabu has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
runescape07rsps has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
aduabu has joined #ruby
lxsameer has joined #ruby
lxsameer is now known as Guest32384
alfiemax has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 246 seconds]
gixxer1k has joined #ruby
gixxer1k has quit [Remote host closed the connection]
canteen4 has quit [Ping timeout: 255 seconds]
Rodya_ has quit [Ping timeout: 246 seconds]
canteen4 has joined #ruby
<dminuoso>
thnee: Perhaps sudo had your password cached, and bundler invoked something that tried to ask for sudo and was happy? Im not sure whether that's possible, but it's a hypothesis.
<dminuoso>
Or even worse you may use sudo without password.
<dminuoso>
or you ran bundler as root and your assumption about "always having been a normal user" is wrong
<dminuoso>
Or radiation caused the wrong bit to flip, and you will spend the rest of your days chasing a rabbit that does not exist.
aduabu has quit [Ping timeout: 248 seconds]
<dminuoso>
Or you are suffering from a mental disorder that impacts your ability to either see or remember.
<dminuoso>
Since we need to test the hypothesis, I propose we disect your brain to rule out the last one.
aduabu has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
cdg has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 260 seconds]
jinie has quit [Read error: Connection reset by peer]
canteen4 has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
sylario has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
jinie has joined #ruby
aduabu has joined #ruby
tvw has joined #ruby
canteen4 has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
pandaant has quit [Remote host closed the connection]
<sentor>
in a begin rescue block with exeption: Unclosed quoted field on line 31.
halt has joined #ruby
canteen4 has joined #ruby
Rodya_ has joined #ruby
Bhootrk_ has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
Bhootrk_ has quit [Max SendQ exceeded]
aduabu has quit [Ping timeout: 248 seconds]
ramadoka has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Ping timeout: 246 seconds]
oleo has joined #ruby
<thnee>
dminuoso: I use passworless sudo. But how would you use bundler to avoid this behavior? So that it installs in a folder, like pythons virtualenv?
Emmanuel_Chanel has joined #ruby
<elomatreb>
You probably either want --path, or configure your gem to always do user-install (e.g. in a .gemrc somewhere)
<dminuoso>
sentor: LGTM.
<dminuoso>
Well. Not good, but it works.
<sentor>
dminuoso: have you tried it?
<dminuoso>
sentor: Yes.
alfiemax has quit [Remote host closed the connection]
tomphp has joined #ruby
<thnee>
elomatreb: thanks, but how unfortunate that gem doesnt look for .gemrc in the current folder..
<elomatreb>
bundler remembers when you use --path, if you need it to be project-specific
ziyangtian2 has joined #ruby
<sentor>
dminuoso: but i got the Unclosed quoted field on line 31 ... why ?
adlerdias has quit [Quit: adlerdias]
<thnee>
elomatreb: ah ok, thank you!
<dminuoso>
sentor: Please reproduce with exactly what you have given me.
<dminuoso>
And tell me your Ruby version.
<dminuoso>
As long as I cant reproduce it, it didn't happen.
ziyangtian has quit [Ping timeout: 248 seconds]
<sentor>
i took exactly the code and take the file ... my ruby version is 2.3.0
<dminuoso>
sentor: works for me. did you also copy from the paste into a file? (want to rule out that there was no encoding conversion happening anywhere)
iomotoko has joined #ruby
<sentor>
dminuoso: not now ... moment plz
lexruee has joined #ruby
<sentor>
same problem ... whats your ruby version ?
alfiemax has joined #ruby
<dminuoso>
sentor: 2.4.1
<dminuoso>
sentor: Try upgrading to 2.3.4 at least
<thnee>
elomatreb: looks like --path=.bundle seems to be a standard? based on /.bundle/ being in gihubs standard gitignore for ruby projects
bruno- has quit [Ping timeout: 240 seconds]
anisha_ has quit [Ping timeout: 240 seconds]
<elomatreb>
.bundle is where bundler stores "project"-specific configs, e.g. so that it remembers that you used --path
oliv_____ has quit [Remote host closed the connection]
<elomatreb>
I haven't used it much, but I think "vendor" used to be a common choice for this pattern
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
<thnee>
elomatreb: oh ok. used to be? is there a new standard instead of bundler?
oliv_____ has joined #ruby
<elomatreb>
No, bundler itself is a relatively recent thing, today the usual setup is to have all gems in a shared directory in your $HOME, with user permissions
<elomatreb>
I think "vendor" was used before bundler came along to unify dependencies in a project
<sentor>
dminuoso: try newer version ... thx for helping ...
<elomatreb>
But I haven't been doing Ruby for that long, I wouldn't really know
<thnee>
elomatreb: a shared directory in home sounds good for dev (just like virtualennwrapper) but not so good for production deploys
badeball has joined #ruby
<elomatreb>
Bundler generates a .lock file that specifies the exact versions to solve that
<dminuoso>
thnee: docker?
<dminuoso>
Why differentiate between dev and production in the first place. Treating things differently is why things tend to blow up in one environment but not in another..
erlend has quit [Ping timeout: 246 seconds]
<thnee>
dminuoso: why design code that only works in why environment? portability is a good thing in the real world
<dminuoso>
thnee: Because the world is too heterenenous for that to be realistic.
<dminuoso>
thnee: Look at gnu autotools and see what happens.
<dminuoso>
They tried to achieve true portability.
<elomatreb>
Thus we close the circle to just edit files on the life server
<elomatreb>
*live
<thnee>
elomatreb: thanks for the help, I think I will go with project_folder/.gems/
erlend has joined #ruby
<dminuoso>
thnee: bundler is the wrong abstraction for portability because it addresses a different problem.
<elomatreb>
Remember to .gitignore it and .bundle, the lockfile is enough to recreate the exact gem environment
armyriad has quit [Ping timeout: 248 seconds]
<thnee>
elomatreb: sure
<thnee>
but erm.. how to activate this folder so its on the path?
<dminuoso>
Or rather version pinning itself solves portability the same way: by allowing anything but an exact replica :p
oliv_____ has quit [Quit: Leaving...]
<elomatreb>
Either just add it to the path, or I think you can tell bundler to generate binstubs in a more convenient directory, so you can execute bin/someexecutable
<elomatreb>
(I assume you mean shell path, bundler/gem automatically manage the load path for you)
bruno- has joined #ruby
nynhex has quit [Quit: nynhex]
<sentor>
dminuoso: new version doesn't solve my csv problem ... keep on digging ...
<thnee>
elomatreb: its not just abount knowing where the bin file is, the bin has to find the libs as well
<thnee>
I was hoping to have a workflow like pythons virtualenv, but maybe this is not possible with ruby?
ramadoka has joined #ruby
<elomatreb>
bundler/gem should take care of this, you can just require the gems
<dminuoso>
thnee: docker.
Ouchy has joined #ruby
<thnee>
elomatreb: sorry what do you mean? when installing with --path that path is not in PATH, so nothing that I installed is found
<dminuoso>
sentor: whats your external encoding?
<dminuoso>
sentor: you can find out by interrogating Encoding.default_external
<dminuoso>
sentor: please be sure to do this from inside the same script, want to remove any possible influences on perhaps irb picking up a different locale for whatever reason
<elomatreb>
Ah, so it is about executables. That's true, I think the best solution to this would be the mentioned binstubs, the libs these bins then require will be automatically managed by bundler. (https://bundler.io/bundle_binstubs.html)
tacoboy has quit [Remote host closed the connection]
raynold has quit [Quit: Connection closed for inactivity]
aupadhye has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<iamyask>
I will. Thanks
<grr12314>
is there a nice way to get all of stdin at once? instead of line by line
apparition47 has quit [Quit: Bye]
<grr12314>
i've seen `dd` usid in golfs but it seems ugly and hacky
canteen4 has joined #ruby
faces has quit [Read error: Connection reset by peer]
sentor` has joined #ruby
faces has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
aduabu has joined #ruby
Petruchio has joined #ruby
sentor has quit [Ping timeout: 248 seconds]
canteen4 has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<Petruchio>
Hi. I'm a bit behind on recent developments... is there a built-in way to get all your named parameters as a hash?
ramadoka has quit [Ping timeout: 240 seconds]
iomotoko has quit [Ping timeout: 248 seconds]
ana_ has quit [Ping timeout: 246 seconds]
canteen4 has joined #ruby
iomotoko has joined #ruby
<havenwood>
Petruchio: Say a bit more about what you mean? Method params?
<elomatreb>
Sounds like you want **args
weemsledeux has joined #ruby
aduabu has quit [Ping timeout: 255 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 255 seconds]
ducklobster has joined #ruby
bauruine has joined #ruby
canteen4 has joined #ruby
grr12314 has quit [Quit: Page closed]
<Petruchio>
Yes, method parameters. That is, if my method's named parameters are foo: and bar:, I'd like to get { foo: whatever, bar: whatever} within the method without building that hash myself.
aduabu has quit [Ping timeout: 255 seconds]
Burgestr_ has quit [Quit: Closing time!]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
mark_66 has left #ruby ["PART #elixir-lang :PART #crystal-lang :PONG :hobana.freenode.net"]
bronson has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
<Mon_Ouie>
Why not make your method parameters a single hash in the first place, if you're going to construct a hash with them anyway?
bronson has quit [Ping timeout: 246 seconds]
<elomatreb>
Petruchio: **args will do what you want
<Petruchio>
I could, but I like the validation. I'd like to raise an error if certain parameters aren't there, and I use default values for others.
canteen4 has quit [Ping timeout: 240 seconds]
<elomatreb>
There are mandatory keyword arguments now, just don't put a value after the colon
<matthewd>
No, there is not a way to do that -- just as there's no way to get all the arguments as an array
audy has quit [Quit: bye]
ski7777 has quit [Read error: Connection reset by peer]
futilegames has quit [Quit: futilegames]
roshanavand has quit [Quit: roshanavand]
pelegreno______ has quit [Read error: Connection reset by peer]
pelegreno has joined #ruby
<Petruchio>
elomatreb: Yes, I'm using them that way. It's very nice. I didn't want to give that up by using **args.
<elomatreb>
Oh, now I get it. Sorry, nevermind then
cschneid_ has joined #ruby
cagomez has joined #ruby
_sfiguser has quit [Ping timeout: 240 seconds]
livcd has quit [Remote host closed the connection]
<Petruchio>
matthewd: Not the answer I was hoping for, but it's good to have an answer. Thanks.
<matthewd>
You could get the validation, though not the default values, by calling a second method ¯\_(ツ)_/¯
SqREL_ has joined #ruby
GinoMan has quit [Remote host closed the connection]
<ducklobster>
what is the difference between OpenSSL::Digest and Digest?
<ducklobster>
and I guess, which should I use?
SqREL has quit [Ping timeout: 240 seconds]
<ducklobster>
(just for MD5)
moeSizlak has left #ruby ["Leaving"]
GinoMan has joined #ruby
ski7777 has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
<matthewd>
ducklobster: Leaving aside the fact that you shouldn't be using md5 for anything these days, I'd go with Digest unless you hit something specific you need OpenSSL for
perniciouscaffei has joined #ruby
t-recx has quit [Ping timeout: 240 seconds]
rabajaj has quit [Quit: Leaving]
SqREL_ has quit [Ping timeout: 248 seconds]
SqREL_ has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ducklobster>
matthewd: gotcha, thanks! just using md5 for a content hash (checksum-like)
SqREL__ has joined #ruby
<matthewd>
Still a bad idea
<ducklobster>
whys that?
<matthewd>
CRC32 is faster if you need a basic checksum
<matthewd>
Some security certifications require MD5 support to be disabled/removed entirely
<dminuoso>
Just use SHA2.
<ducklobster>
ah interesting, I wasn't aware of that
<ducklobster>
their signature involves using Content-MD5
ramadoka has joined #ruby
<dminuoso>
ducklobster: The problem is that all checksum have no preimage resistance whatsoever to the point that its trivial, and they usually have poor entropy.
laphoraig92 has joined #ruby
SqREL_ has quit [Ping timeout: 248 seconds]
runescape07rsps has quit [Remote host closed the connection]
_sfiguser has joined #ruby
runescape07rsps has joined #ruby
<dminuoso>
ducklobster: Or for raw checksuming when malicious modification is not a concern fletcher-32 is always a great option
SqREL has joined #ruby
<dminuoso>
(It kind of depends on whether you have the freedom to spend CPU cycles. If so, go SHA2 all the way)
<matthewd>
FIPS compliance is the thing that requires MD5 to be gone
<ducklobster>
thanks for the info guys, i will check out fletchers and keep the compliance stuff in mind for md5 and such!
<matthewd>
But yeah, if you're talking to a 3rd party that *requires* MD5, then that's a different story
<dminuoso>
matthewd: So a system that talks to AmazonS3 cannot be FIPS compliant?
<dminuoso>
(-:
<ducklobster>
i know nothing about FIPS compliance, but i'm guessing it only looks at the system itself, not 3rd party?
<dminuoso>
matthewd: I dont trust anything that comes from NIST ever since I learned the story behind P-256.
<matthewd>
dminuoso: I guess? Or at least it'd have to manually reimplement MD5, because all the system APIs refuse to work, apparently
nobitanobi has quit [Remote host closed the connection]
GinoMan has quit [Remote host closed the connection]
cdg_ has quit [Ping timeout: 240 seconds]
beilabs has joined #ruby
canteen4 has joined #ruby
cdg has joined #ruby
ziprar has joined #ruby
zipace has quit [Disconnected by services]
aduabu has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
aubyoub_ has joined #ruby
AnotherNick has joined #ruby
SqREL has quit [Remote host closed the connection]
marxarelli has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
aduabu has joined #ruby
TomyWork has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
canteen4 has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
canteen4 has joined #ruby
ramfjord has joined #ruby
Serpent7776 has quit [Quit: Leaving]
sysvalve has quit [Quit: Leaving]
aduabu has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
iomotoko has quit [Quit: leaving]
chouhoulis has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
aduabu has joined #ruby
aubyoub_ has quit [Quit: Leaving]
oleo has quit [Quit: irc client terminated!]
aubyoub has joined #ruby
Guest32384 has quit [Ping timeout: 246 seconds]
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
PaulCapestany has quit [Quit: .]
hahuang65 has quit [Ping timeout: 248 seconds]
carnegie has quit [Remote host closed the connection]
eckhardt has joined #ruby
oleo has joined #ruby
PaulCapestany has joined #ruby
carnegie has joined #ruby
ltem has joined #ruby
iomotoko has joined #ruby
aduabu has quit [Ping timeout: 246 seconds]
uZiel has quit [Ping timeout: 268 seconds]
aduabu has joined #ruby
alfiemax has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
gizmore|2 is now known as gizmore
canteen4 has quit [Ping timeout: 248 seconds]
GinoMan has joined #ruby
carnegie has quit [Ping timeout: 276 seconds]
Trynemjoel has quit [Ping timeout: 276 seconds]
<pinksandles>
thnee: I told you the solution at the start of conversation, to avoid the possibility of sudo install into a local folder:`bundle install --path=.vendored`, it also makes 'nuking' your bundle easier.
iomotoko has quit [Quit: leaving]
gusrub has joined #ruby
canteen4 has joined #ruby
frozengeek has joined #ruby
nobitanobi has joined #ruby
aduabu has quit [Ping timeout: 260 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
rprimus has joined #ruby
canteen4 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SqREL has joined #ruby
tvw has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
aduabu has quit [Ping timeout: 276 seconds]
aduabu has joined #ruby
DTZUZO has quit [Ping timeout: 276 seconds]
canteen4 has quit [Ping timeout: 246 seconds]
SqREL has quit [Ping timeout: 248 seconds]
t-recx has joined #ruby
kies has quit [Ping timeout: 246 seconds]
runescape07rsps has quit [Quit: Leaving]
kies has joined #ruby
Moosashi has joined #ruby
bruno-_ has joined #ruby
goyox86_ has joined #ruby
kies has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
Beams has quit [Quit: .]
paranoicsan has quit [Quit: Gone]
aduabu has quit [Ping timeout: 246 seconds]
skweek has joined #ruby
aduabu has joined #ruby
nikkyjr has joined #ruby
nikkyjr has left #ruby [#ruby]
laphoraig92 has quit [Remote host closed the connection]
beilabs has quit [Remote host closed the connection]
ferr has joined #ruby
antgel has joined #ruby
canteen4 has joined #ruby
tnntwister has quit [Quit: Leaving]
pragmatism has joined #ruby
Cohedrin_ has quit [Ping timeout: 248 seconds]
aduabu has quit [Ping timeout: 255 seconds]
Ishido has joined #ruby
Cohedrin_ has joined #ruby
aduabu has joined #ruby
P1ro has quit [Remote host closed the connection]
jackjackdripper1 has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
SqREL has quit [Remote host closed the connection]
aduabu has quit [Ping timeout: 240 seconds]
jolamb has joined #ruby
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
Guest32384 has joined #ruby
neekoso has joined #ruby
jolamb has left #ruby ["WeeChat 1.7.1"]
canteen4 has joined #ruby
<neekoso>
One day I was told that you can have "true" threads in MRI
<neekoso>
Am I missing something?
aduabu has quit [Ping timeout: 240 seconds]
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
neekoso, you can.
<dminuoso>
neekoso, you just need to understand the implications of the GVL.
<neekoso>
How though? What about global interpreter lock?
<dminuoso>
neekoso, *VM lock.
<dminuoso>
neekoso, each syscall releases the VM lock.
aduabu has joined #ruby
<neekoso>
I didn't quite get the last one. You mean, each syscall?
<neekoso>
every*
<dminuoso>
neekoso, so when you do any I/O, you have to ask the kernel to do it for you.
robouk has joined #ruby
<dminuoso>
neekoso, and when that is blocking, it means you have to "wait" (means your thread sleeps) for the result. during that waiting, the GVL is released.
uZiel has quit [Ping timeout: 268 seconds]
<neekoso>
Yeah, I get the basics of it
<dminuoso>
So while one thread is waiting for I/O (or any other syscall), another can do ruby stuff
<neekoso>
As I know, syscalls aren't only about IO
<neekoso>
That's what confused me
Rapture has joined #ruby
canteen4 has quit [Ping timeout: 246 seconds]
<dminuoso>
neekoso, you absolutely get concurrency in either case though.
<dminuoso>
just parallelism is limited to special cases
<aduabu>
Just want to thank havenwood for the other day. Appreciated
<dminuoso>
neekoso, jruby however has full threading support by the way
<neekoso>
dminuoso: Yea, and rubinius as well, iirc
<havenwood>
aduabu: You're welcome!
<neekoso>
dminuoso: But the thing is, I was told that MRI can run ruby stuff on multiple cores
<neekoso>
I googled it and haven't found any proof
Sembei has joined #ruby
brent__ has quit [Remote host closed the connection]
<chrisseaton>
neekoso: it can run parts of C extensions on multiple cores if they ask for it
<havenwood>
neekoso: Ruby can indeed run stuff on multiple cores. You can prove by doing. ;-)
<havenwood>
neekoso: indeed, more of a joke than a suggestion
Cohedrin_ has joined #ruby
<eam>
the obvious and easy way to run ruby on multiple cores is with multiple instances of rvm
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam>
aka, fork
Guest32384 has quit [Ping timeout: 248 seconds]
<neekoso>
havenwood: I just wonder how can this work. Are there some forks or pthread_create in the source code that allows disabling the GIL
<dminuoso>
chrisseaton, which one highlighted you? rubinius?
<dminuoso>
neekoso, by the way it's called GVL these days. :)
<havenwood>
neekoso: GIL (interpreter) versus GVL (VM)
<neekoso>
Oh, got the difference, thanks
<chrisseaton>
dminuoso: yeah rubinius, always looking out for VM talk
canteen4 has joined #ruby
<dminuoso>
neekoso, you cant disable the GVL. You can explicitly release it, but you should probably get a throrough understandings of the inner workings before you do that.
<dminuoso>
neekoso, the GVL does not protect against harmless race conditions, but against situations that downright crash ruby.
<eam>
ruby -e'puts File.read("/proc/cpuinfo").scan(/^processor/sm).length.times {fork{loop{}}}' # ruby running on all cores, all the time
orbyt_ has quit [Read error: Connection reset by peer]
aduabu has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
aduabu has joined #ruby
cdg has joined #ruby
tsia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paranoicsan has joined #ruby
lxsameer has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
cdg_ has joined #ruby
lxsameer is now known as Guest54823
ROCARTER_ has joined #ruby
ldnunes has quit [Ping timeout: 248 seconds]
laphoraig92 has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
Cohedrin_ has quit [Ping timeout: 240 seconds]
ta_ has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
<dminuoso>
chrisseaton, I'm not seeing anything that looks like a memory barrier. It would have to be an intrinsic or inline assembly.
cdg has quit [Ping timeout: 248 seconds]
<chrisseaton>
The GVL is a mutex isn't it? And any user-space mutex implementation involves a barrier I believe.
<chrisseaton>
And I guess a kernel-space mutex must be a barrier on a deschedule... not sure
<dminuoso>
chrisseaton, I suppose a mutex without a memory barrier would be silly
<dminuoso>
chrisseaton, just played the scenario in my head, you could not reason about code if it didn't, you are right.
<dminuoso>
chrisseaton, also by definition there is no kernel-space mutex.
Cohedrin_ has joined #ruby
ta_ has joined #ruby
Ishido has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
paranoicsan has quit [Quit: Gone]
<eam>
dminuoso: why do you say there is no kernel-space mutex by definition?
<dminuoso>
eam, let me refine. Are we considering spinlocks to be mutexes?
<dminuoso>
eam, I had this discussion with multiple kernel developers that all shared the notion, that a mutex is a userspace construct because it sleeps (i.e. yield) to block.
<dminuoso>
but Im no expert on the subject
moei has quit [Quit: Leaving...]
ROCARTER_ has quit [Remote host closed the connection]
paranoicsan has joined #ruby
laphoraig92 has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
<eam>
I think the defining notion of a mutex is that it provides mutual exclusion. The mechanism by which it does so isn't particularly important. But WRT "user-space mutex" I think that's a reference to futex(2) -- go back about a decade and all pthread mutexes were handled by the kernel
<eam>
futex pushes much of that into user space, using CMPXCHG
brent__ has joined #ruby
cagomez has joined #ruby
<dminuoso>
eam, ah I see the distinction you are making.
paranoicsan has quit [Client Quit]
<eam>
so we can have spinlocks in userspace without involving the kernel to schedule and wake threads, for example
<eam>
without syscalls entirely, if desired
enterprisey has quit [Remote host closed the connection]
ldnunes has joined #ruby
<eam>
ah yeah, futex(2) added in 2003
<dminuoso>
eam, ah okay. The discussions we had was rather about the mechanism (so we needed some way of differentiating between a spinlock and something that yields)
<eam>
aha
<dminuoso>
And the latter one would be useless in the kernel
alfiemax has joined #ruby
canteen4 has joined #ruby
<eam>
I don't really understand that either
alfiemax has quit [Remote host closed the connection]
aubyoub_ has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
QualityAddict has quit [Remote host closed the connection]
<dminuoso>
eam, well let's consider a semaphore for instance. semaphore.wait() would commonly try to decrement the semaphore, or put sleep the thread until the semaphore is released.
Guest76076 has quit [Remote host closed the connection]
<dminuoso>
but when you are inside the kernel, the concept of sleep() has no meaning
<eam>
it doesn't?
<dminuoso>
eam, how can a kernel sleep? who would wake it up?
<eam>
another kernel thread, yeah?
clemens3 has quit [Quit: WeeChat 1.0.1]
AnotherNick has quit [Quit: Leaving]
Cohedrin_ has quit [Ping timeout: 255 seconds]
* neekoso
wakes up the sleepy kernel
alfiemax has joined #ruby
QualityAddict has joined #ruby
<eam>
dminuoso: there are sleeping and scheduling related functions in linux
Guest76076 has joined #ruby
Cohedrin_ has joined #ruby
aubyoub has quit [Ping timeout: 240 seconds]
<dminuoso>
eam, okay so we are strictly talking about non-interrupt cases right?
<eam>
kernel space in general, sure. rules are different depending on context
gixxer1k has joined #ruby
gixxer1k has quit [Remote host closed the connection]
<dminuoso>
eam, okay I should really look deeper into Linux.
<eam>
you've got a bazillion kernel threads running at any given time, right? Like, take a peek at `ps` and see everything with a ppid=2
<eam>
most of those are sleeping at any given point in time
Ishido has joined #ruby
<eam>
on a given system here I have 402 :)
<eam>
many of 'em are per-cpu worker threads, which are indicated by the [foo/##] of which cpu they're running on
alfiemax has quit [Remote host closed the connection]
Xiti` has quit [Client Quit]
justache has joined #ruby
Xiti has quit [Ping timeout: 255 seconds]
ircmaxell has quit [Ping timeout: 255 seconds]
ggherdov has quit [Ping timeout: 255 seconds]
Xiti has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
LoRez has quit [Ping timeout: 246 seconds]
ircmaxell has joined #ruby
LoRez has joined #ruby
mtkd has joined #ruby
vondruch has quit [Quit: vondruch]
jinie has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
tsia has quit [Ping timeout: 255 seconds]
aduabu has joined #ruby
jinie has joined #ruby
ltem has quit [Quit: Leaving]
canteen4 has quit [Ping timeout: 248 seconds]
neekoso has quit [Ping timeout: 246 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
laphoraig92 has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
cdg_ has joined #ruby
marxarelli is now known as marxarelli|afk
canteen4 has quit [Ping timeout: 255 seconds]
canteen4 has joined #ruby
laphoraig92 has joined #ruby
xaxisx has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 240 seconds]
xaxisx has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
ams__ has quit [Quit: Connection closed for inactivity]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
aduabu has joined #ruby
cagomez has quit [Ping timeout: 246 seconds]
canteen4 has quit [Ping timeout: 246 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
tomphp has joined #ruby
selim has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver is now known as baweaver_away
baweaver_away is now known as baweaver
aduabu has joined #ruby
selim has joined #ruby
danieli_ has joined #ruby
cloutz has quit [Quit: Leaving]
danieli has quit [Read error: Connection reset by peer]
canteen4 has quit [Ping timeout: 255 seconds]
canteen4 has joined #ruby
pb122-two has joined #ruby
pb122 has quit [Read error: Connection reset by peer]
Sembei has quit [Ping timeout: 246 seconds]
aduabu has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
biberu has quit []
Guest54823 has quit [Quit: WeeChat 1.9]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 255 seconds]
AndBobsYourUncle has joined #ruby
pb122-two has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
pb122 has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
minimalism has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
Ishido has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Client Quit]
canteen4 has joined #ruby
phinxy has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
aduabu has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil___ has quit [Quit: Connection closed for inactivity]
naprimer has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
AndBobsYourUncle has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 246 seconds]
blindMoe has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.8]
<blindMoe>
I want to use PaperTrail to do some auditing / versioning on some models that are all being changed by a single endpoint call. I want to be able to link the different model's versions together so that I can undo the changes all at once. Is there a preferred method of doing that using paper trail?
hahuang65 has joined #ruby
<blindMoe>
so basically if user A hits endpoint which causes 6 models to be updated, I would like to be able to undo all 6 model changes easily if user A clicks 'Undo'
aduabu has joined #ruby
phinxy has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 246 seconds]
canteen4 has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
moei has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 255 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
aduabu has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
jackjackdripper has joined #ruby
aduabu has joined #ruby
tekk has quit [Excess Flood]
danieli_ is now known as danieli
danieli has quit [Changing host]
danieli has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
canteen4 has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Client Quit]
hahuang65 has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
ramfjord has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
tekk has joined #ruby
harai has joined #ruby
blindMoe has quit [Quit: Yeap]
weemsledeux has joined #ruby
jackjackdripper has quit [Ping timeout: 248 seconds]
chouhoul_ has joined #ruby
Cohedrin_ has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
canteen4 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
aduabu has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
hahuang65 has joined #ruby
Mon_Ouie has joined #ruby
chouhoul_ has quit [Ping timeout: 240 seconds]
canteen4 has quit [Ping timeout: 255 seconds]
canteen4 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
cschneid_ has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
canteen4 has joined #ruby
jameser has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
canteen4 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
Cohedrin_ has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
canteen4 has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aduabu has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
Defenestrate has joined #ruby
jane_booty_doe has joined #ruby
canteen4 has quit [Ping timeout: 246 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ggherdov has joined #ruby
govg has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
cadillac_ has joined #ruby
govg has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
Cohedrin_ has joined #ruby
aduabu has joined #ruby
mtkd has joined #ruby
cdg_ has quit [Ping timeout: 248 seconds]
canteen4 has quit [Ping timeout: 248 seconds]
govg has quit [Ping timeout: 248 seconds]
Defenestrate has quit [Quit: This computer has gone to sleep]
canteen4 has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
davic has quit [Quit: Connection closed for inactivity]
canteen4 has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
canteen4 has joined #ruby
bruno-_ has quit [Ping timeout: 240 seconds]
aduabu has quit [Ping timeout: 255 seconds]
Sembei has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
tvw has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
Bock has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]