<leitz>
That's a Leitz original. You're welcome. :)
<wajdiTECH_>
@leitz would u mind giving me ur email or skype
<wajdiTECH_>
I wanna stay in touch with u xD
John_Ivan has quit [Read error: Connection reset by peer]
<leitz>
Rather not. I'm here around this time every few days. There are smarter people here. I just haven't talked much today.
<leitz>
Don't follow a person, join a community.
<wajdiTECH_>
alright dude
<wajdiTECH_>
thanks
<wajdiTECH_>
a lot
<leitz>
Happy to help! I look forward to seeing your projects on github.
<wajdiTECH_>
am gonna jump into php and JS see what can I do with them
<wajdiTECH_>
the leverl of simplicity
<wajdiTECH_>
or complexicity
<wajdiTECH_>
JS is probably a must for everyone on the web side
<wajdiTECH_>
so one has got to figure out NODE and stuff
<wajdiTECH_>
and then maybe we can go from there
<leitz>
Break it into small bits.
<leitz>
Very small bits.
<leitz>
Smaller...
<leitz>
Keep going...
<wajdiTECH_>
I appreciate it @leitz
<leitz>
Happy to help!
shinnya has joined #ruby
cschneid has joined #ruby
<morenoh149>
I'm compiling ruby for osx. I have installed a modern openssl via brew. I specify the openssl path via configure, but make still complains that the openssl is bad. Any idea why?
cdg has joined #ruby
<morenoh149>
I verified brew --prefix openssl prints the same path under zsh and bash
<morenoh149>
what's the code that generates `./configure` in the distributions?
<morenoh149>
I'm not seeing the string `ssl` anywhere in the `./configure` script
theRealGent has quit [Ping timeout: 255 seconds]
cdg has quit [Ping timeout: 265 seconds]
aguestuser has quit [Remote host closed the connection]
<morenoh149>
well I guess that's fine, '--with-opt-dir' does appear and I can use that
<tcopeland>
morenoh149: FWIW when I compile ruby it’s usually something like ./configure --prefix=/opt/rubies/ruby-2.5.0 --with-openssl-dir=/usr/local/openssl-1.0.2k/
<tcopeland>
I think I have a similar setup - chruby + a custom version of openssl
aguestuser has joined #ruby
<morenoh149>
tcopeland: yes I'm also using --prefix, but opting to use --with-opt-dir as I don't see --with-openssl-dir in 2.4.2 ./configure file
<tcopeland>
how about ”ext/openssl/Makefile”? mine has CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" -I/usr/local/openssl-1.0.2k//include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE … etc etc
<morenoh149>
I'll try with both args
<tcopeland>
checked, I had similar setup on 2.4.2, similar ext/openssl/Makefile entry
<tcopeland>
I am not sure how —with-openssl-dir gets handled… as you say, it’s not in the autoconf script, seems like it’s something such that that argument pattern gets handled by default
<tcopeland>
oh that’s the makefile for the native extension
<morenoh149>
tcopeland: what's the native extension? the dependecy, e.g., openssl?
<morenoh149>
i.e.*
<tcopeland>
exactly, that’s where the code for the openssl extension is stored
perniciouscaffei has joined #ruby
alex`` has quit [Ping timeout: 256 seconds]
<tcopeland>
same for other standard extensions, you can see all of them in the ext/ directory
cdg has joined #ruby
<morenoh149>
I don't see any makefile in /usr/local/opt/openssl or any nested dirs
<tcopeland>
it’s in the ruby source directory, e.g., ruby-2.4.2/ext/openssl/Makefile
<morenoh149>
updated the gist with the openssl makefile, I find it odd it adds some Cellar/openssl and the typical homebrew openssl. Could that be the problem?
<morenoh149>
should be -I/usr/local/opt/openssl/include
<morenoh149>
afk sadly
<morenoh149>
I'll try to read the logs
<tcopeland>
FWIW I have not used with-opt-dir…. although I wonder, is that some autoconf convention so that with-readline-dir would configure directory for readline, with-openssl-dir for openssl, etc
meadmoon has quit [Client Quit]
white_lilies has joined #ruby
zigzig has quit [Remote host closed the connection]
zigzig has joined #ruby
morenoh149 has quit [Ping timeout: 256 seconds]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
white_lilies has quit [Ping timeout: 240 seconds]
konsolebox has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
zigzig has quit [Remote host closed the connection]
zigzig has joined #ruby
Puffball has quit [Remote host closed the connection]
aguestuser has quit [Remote host closed the connection]
aguestuser has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
cschneid has quit [Ping timeout: 260 seconds]
marmorkreb has joined #ruby
milardovich has joined #ruby
marmorkr_ has joined #ruby
marmorkreb has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
* leitz
sees it is nappy time and wishes everyone happy dreams.
leitz has quit [Quit: Nappy time]
milardovich has quit []
morenoh149 has joined #ruby
cam27 has joined #ruby
Puffball has joined #ruby
elphe has joined #ruby
<cam27>
Anyone in here want to team up with me on a build to try to make some money? I have an idea to make money trading currencies and want to make it into a ruby script. I’ve seen some examples in Python, however I know Ruby better. This is for us to make money, I know Wall Stdoes what I want to try, but I’d like a little team to work on it with me.
aguestuser has quit [Remote host closed the connection]
aguestuser has joined #ruby
<cam27>
We could use slack or wahtever outlets and see where it takes us.
white_lilies has joined #ruby
<cam27>
Might take us nowhere lol, but definetely worth a side project to find out
alfiemax has joined #ruby
<cam27>
If anyone is interested, we can setup a skype call and I can explain it better, but trust me, I’m a smart mf and this is solely for us. Once we have the script, we can each use it to trade crypto currencies.
white_lilies has quit [Ping timeout: 260 seconds]
jnollette has quit [Ping timeout: 255 seconds]
<cam27>
I didn’t meant to say I’m a smart mf lol, but if this works I am :)
bmurt has joined #ruby
elphe has quit [Quit: leaving]
elphe has joined #ruby
elphe has quit [Client Quit]
elphe has joined #ruby
jnollette has joined #ruby
morenoh149 has quit [Ping timeout: 248 seconds]
alfiemax has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
Xiti` has quit [Quit: Xiti`]
Xiti has joined #ruby
spuk has joined #ruby
x77686d has quit [Quit: x77686d]
alfiemax has quit [Ping timeout: 264 seconds]
cschneid has quit [Ping timeout: 255 seconds]
cschneid has joined #ruby
jaequery has joined #ruby
cschneid has quit [Ping timeout: 248 seconds]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
jnollette has quit [Ping timeout: 255 seconds]
zigzig has quit [Ping timeout: 255 seconds]
marxarelli|afk is now known as marxarelli
aguestuser has quit [Ping timeout: 255 seconds]
white_lilies has joined #ruby
lupine has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 248 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aguestuser has joined #ruby
lupine has joined #ruby
zigzig has joined #ruby
white_lilies has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
jnollette has joined #ruby
marr has quit [Ping timeout: 240 seconds]
morenoh149 has joined #ruby
aguestuser has quit [Remote host closed the connection]
aguestuser has joined #ruby
morenoh149 has quit [Ping timeout: 256 seconds]
d_kam has joined #ruby
jaequery has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
aguestuser has quit [Remote host closed the connection]
aguestuser has joined #ruby
white_lilies has joined #ruby
d_kam has quit [Quit: Be back later ...]
d_kam has joined #ruby
white_lilies has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
drona6 has quit []
oo_func has quit [Quit: Leaving]
Puffball has quit [Quit: No Ping reply in 180 seconds.]
Puffball has joined #ruby
AJA4350 has quit [Quit: AJA4350]
cdg has joined #ruby
elphe has quit [Ping timeout: 276 seconds]
elphe has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
morenoh149 has joined #ruby
cadillac_ has quit [Quit: I quit]
weij has joined #ruby
marxarelli is now known as marxarelli|afk
knight33 has joined #ruby
white_lilies has joined #ruby
lupine has quit [Quit: No Ping reply in 180 seconds.]
<dminuoso>
terens: dunno what you are talking about
_aeris_ has joined #ruby
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
claudiuinberlin has joined #ruby
<hanmac>
terens: ruby normal doesn't has any autoloader, you need to load the module first before you can include it, or need to load a class before you can extend of it
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TvL2386_ is now known as TvL2386
konsolebox has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
white_lilies has joined #ruby
maum has quit [Remote host closed the connection]
aupadhye has joined #ruby
white_lilies has quit [Ping timeout: 248 seconds]
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
nadir has quit [Quit: Connection closed for inactivity]
pragmaticus has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
mikecmpbll has joined #ruby
Dimik has quit [Ping timeout: 255 seconds]
colstrom has quit []
colstrom has joined #ruby
Mutsuhito has quit []
spuk has quit [Ping timeout: 248 seconds]
Mutsuhito has joined #ruby
guille-moe has joined #ruby
DTZUZO has quit [Ping timeout: 248 seconds]
cschneid has joined #ruby
dmnd has quit []
dmnd has joined #ruby
amitchellbullard has quit []
amitchellbullard has joined #ruby
white_lilies has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
cschneid has quit [Ping timeout: 268 seconds]
marr has joined #ruby
ircmaxell has quit []
ircmaxell has joined #ruby
behraaang_ has joined #ruby
behraaang_ has quit [Client Quit]
amatas_ has joined #ruby
amatas has quit [Remote host closed the connection]
amatas has joined #ruby
white_lilies has quit [Ping timeout: 276 seconds]
petems has quit []
spastorino has quit []
spastorino has joined #ruby
mattwc has quit []
petems has joined #ruby
mattwc has joined #ruby
amatas_ has quit [Remote host closed the connection]
marmorkreb has joined #ruby
amatas_ has joined #ruby
doesntbyte has quit []
doesntbyte has joined #ruby
amatas_ has quit [Client Quit]
marmorkreb has quit [Ping timeout: 248 seconds]
sameerynho has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
sameerynho has quit [Ping timeout: 265 seconds]
x77686d has quit [Quit: x77686d]
mikecmpb_ has joined #ruby
x77686d has joined #ruby
mikecmpbll has quit [Ping timeout: 268 seconds]
x77686d has quit [Ping timeout: 248 seconds]
justizin has quit []
konsolebox has quit [Ping timeout: 255 seconds]
justizin has joined #ruby
konsolebox has joined #ruby
Flabbergazta has quit []
Flabbergazta has joined #ruby
gmcintire has quit []
gmcintire has joined #ruby
tomphp has joined #ruby
white_lilies has joined #ruby
drewmcmillan has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
white_lilies has quit [Ping timeout: 256 seconds]
oblak has quit []
oblak has joined #ruby
Serpent7776 has joined #ruby
za1b1tsu has joined #ruby
seanh has quit []
seanh has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zwliew has quit [Quit: Connection closed for inactivity]
morenoh149 has joined #ruby
Serpent has joined #ruby
KeyJoo has quit [Ping timeout: 255 seconds]
Serpent7776 has quit [Ping timeout: 276 seconds]
flori has quit [Quit: leaving]
flori has joined #ruby
olivierjanss has quit []
olivierjanss has joined #ruby
konsolebox has quit [Ping timeout: 264 seconds]
flori has quit [Client Quit]
flori has joined #ruby
flori has quit [Client Quit]
flori has joined #ruby
flori has quit [Client Quit]
flori has joined #ruby
konsolebox has joined #ruby
white_lilies has joined #ruby
nOgAnOo has quit []
nOgAnOo has joined #ruby
white_lilies has quit [Ping timeout: 255 seconds]
clemens3_ has joined #ruby
morenoh149 has quit [Ping timeout: 276 seconds]
clemens3 has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
Guest32764 has quit []
Guest32764 has joined #ruby
qba73 has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
anisha has joined #ruby
sundhell is now known as sundhell_away
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
kliq has joined #ruby
sameerynho has joined #ruby
chrisseaton has joined #ruby
AJA4350 has joined #ruby
white_lilies has joined #ruby
drewmcmillan has joined #ruby
white_lilies has quit [Ping timeout: 248 seconds]
flori has quit [Quit: leaving]
morenoh149 has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
za1b1tsu has quit [Quit: Leaving]
morenoh149 has quit [Ping timeout: 252 seconds]
za1b1tsu has joined #ruby
Puffball has quit [Remote host closed the connection]
qba73 has quit [Ping timeout: 264 seconds]
larcara has quit [Remote host closed the connection]
qba73 has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
larcara has joined #ruby
apparition has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
white_lilies has joined #ruby
headius has quit [Ping timeout: 256 seconds]
miskatonic has joined #ruby
white_lilies has quit [Ping timeout: 260 seconds]
konsolebox has quit [Ping timeout: 264 seconds]
qba73 has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
qba73 has joined #ruby
al2o3-cr has joined #ruby
tcopeland has quit [Quit: tcopeland]
white_lilies has joined #ruby
white_lilies has quit [Ping timeout: 264 seconds]
goatish has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
headius has joined #ruby
dviola has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
spectrum has quit [Ping timeout: 260 seconds]
morenoh149 has joined #ruby
drewmcmillan has joined #ruby
white_lilies has joined #ruby
kliq has quit [Ping timeout: 260 seconds]
morenoh149 has quit [Ping timeout: 256 seconds]
konsolebox has quit [Ping timeout: 264 seconds]
apparition47 has joined #ruby
jamesaxl_work has joined #ruby
dcluna has quit [Ping timeout: 264 seconds]
konsolebox has joined #ruby
apparition has quit [Quit: Bye]
white_lilies has quit [Ping timeout: 248 seconds]
dcluna has joined #ruby
jamesaxl_05 has quit [Ping timeout: 260 seconds]
ski7777 has quit [Read error: Connection reset by peer]
ski7777 has joined #ruby
amatas_ has joined #ruby
jamesaxl_05 has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3_ has quit [Ping timeout: 276 seconds]
conta has joined #ruby
jamesaxl_work has quit [Ping timeout: 276 seconds]
amatas_ has quit [Quit: amatas_]
<pavelz>
hiya anyone knows of a set matching gem for ruby where i can find where array has some elements come before after or in a certain order?
amatas_ has joined #ruby
ShekharReddy has joined #ruby
amatas_ has quit [Client Quit]
sundhell_away is now known as sundhell
nowhereman_ has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan_ has joined #ruby
DTZUZO has joined #ruby
nowhere_man has quit [Ping timeout: 265 seconds]
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
pugcs has joined #ruby
workmad3 has joined #ruby
ltt has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
Guest39263 has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
white_lilies has joined #ruby
claudiuinberlin has joined #ruby
<chrisseaton>
pavelz: no, but it seems like that could be a simple enough algorithm to write and fairly specific so seems unlikely to have a gem for it
<chrisseaton>
pavelz: if you describe it a bit more we can help you write the algorithm
govg has quit [Ping timeout: 255 seconds]
amatas_ has joined #ruby
white_lilies has quit [Ping timeout: 252 seconds]
tcopeland has joined #ruby
Puffball has joined #ruby
Puffball has quit [Read error: Connection reset by peer]
amatas_ has quit [Remote host closed the connection]
qba73 has quit [Remote host closed the connection]
quobo has joined #ruby
qba73 has joined #ruby
jeffreylevesque has quit [Ping timeout: 256 seconds]
alex`` has quit [Quit: WeeChat 2.0.1]
milardovich has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest32764 has quit [Quit: Connection closed for inactivity]
milardovich has quit [Remote host closed the connection]
ltt has quit [Ping timeout: 252 seconds]
nadir has joined #ruby
alex`` has joined #ruby
morenoh149 has joined #ruby
Emmanuel_Chanel has quit [Remote host closed the connection]
tomphp has joined #ruby
synthroid has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
morenoh149 has quit [Ping timeout: 240 seconds]
vichib has joined #ruby
catbusters has joined #ruby
<pavelz>
very kind of you it was just a general question.
<pavelz>
thanks
drewmcmillan has joined #ruby
qba73 has quit [Ping timeout: 248 seconds]
cschneid has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
bijan_ is now known as bijan_awaaaay
bmurt has joined #ruby
white_lilies has joined #ruby
cschneid has quit [Ping timeout: 268 seconds]
white_lilies has quit [Ping timeout: 256 seconds]
Serpent is now known as Serpent7776
mcr1 has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 260 seconds]
pskosinski has joined #ruby
pskosinski is now known as Guest54944
bijan_awaaaay is now known as bijan_
bijan_ is now known as bijan_awaaaay
Puffball has joined #ruby
bijan_awaaaay has quit [Quit: System has gone to sleep. ZZZzzz…]
govg has joined #ruby
jeffreylevesque has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
alfiemax has quit [Remote host closed the connection]
<apeiros>
you have an array of collections and an array of classes, and they match by position?
<za1b1tsu>
apeiros, yes
<apeiros>
2 steps then
<apeiros>
first zip, to combine the two lists as one
amatas has joined #ruby
<apeiros>
then map, to transform the new list into the shape you want it
<apeiros>
(zip will just give you an array of arrays, but you want hashes)
moei has joined #ruby
sylario has joined #ruby
bijan_ has joined #ruby
DLSteve has joined #ruby
bigblind has quit [Remote host closed the connection]
bigblind has joined #ruby
jobewan has joined #ruby
morenoh149 has joined #ruby
amatas has quit [Quit: amatas]
<soahccc>
If I do File.new(file, mode) do I actually open the file? Does it matter what the mode is? I get IOErrors on rubies < 2.3 (they ignore it since then) but only when I try to close one of those files (with "rb"), the one with "wb" can be closed...
err_ok has quit []
morenoh149 has quit [Ping timeout: 240 seconds]
err_ok has joined #ruby
<apeiros>
soahccc: yes, File.new opens a file. yes, the mode matters (wouldn't make sense to have a param which doesn't matter, would it?)
<apeiros>
if possible, you should favor File.open with a block over File.new and manually closing.
<soahccc>
apeiros: I was just wondering why @in_file.close raises an error but @out_file.close doesn't... only difference being, one is opened for writing
<apeiros>
I don't have enough info to judge that.
<apeiros>
I assume the one you opened for writing is the one raising?
<soahccc>
line 21 fails, so the file opened for reading
govg has quit [Ping timeout: 256 seconds]
<apeiros>
even without a block I'd use open over new. if only for clarity of intent.
<apeiros>
hm, ok, I'd make sure it's *really* closing the in_file which raises. It indeed makes little sense. but full exception would go a long way in a proper problem description.
ldepandis has joined #ruby
govg has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
damasceno has quit [Ping timeout: 260 seconds]
<soahccc>
apeiros: I updated the gist with the complete class and the trace... looks like in_file doesn't it?
<soahccc>
And as I said, it's only for rubies <= 2.3 since they just ignore this error since then
bigblind has joined #ruby
<soahccc>
and since I don't know if it makes any difference, the problem still persists if I use File.open vs File.new
<soahccc>
So I don't have to close readonly file handles or what? :D
jordanm has quit [Remote host closed the connection]
terens has quit [Quit: Leaving]
rippa has joined #ruby
bigblind has quit [Remote host closed the connection]
<soahccc>
Maybe I'm just an idiot... I guess GzipReader already closes the file on eof :S
KeyJoo has joined #ruby
AxelAlex has quit [Quit: AxelAlex]
bijan_ has quit [Quit: System has gone to sleep. ZZZzzz…]
RougeR has quit [Ping timeout: 240 seconds]
<apeiros>
File.open without block is a synonym to new, so that's not surprising
pskosinski has joined #ruby
pskosinski is now known as Guest10816
<apeiros>
as far as I see it, the linenumber is off by one, for whichever reason. an exception on @in_file.close would not report as an error in `l_decompress_file`
<soahccc>
apeiros: but the issue goes away if I rescue just the in_file.close
jordanm has joined #ruby
<apeiros>
weird
white_lilies has joined #ruby
<soahccc>
But I guess it's confirmed to be gz.close "Closes the GzipFile object. This method calls close method of the associated IO object. Returns the associated IO object."
snath has quit [Ping timeout: 264 seconds]
ta_ has quit [Remote host closed the connection]
silviu has joined #ruby
<apeiros>
is l_decompress_file a method in your code?
<soahccc>
yes it is
<apeiros>
I find it rather confusing that that method is at the top of the error message.
<soahccc>
the first line of the exception is technically not part of the exception it's just so I know which worker (since it's threaded) failed with which container/variation
<apeiros>
ah, are you handling the exception there?
kliq has joined #ruby
<apeiros>
I see.
<apeiros>
but yes, I concur. double close via gz.close as you described. so second close raises. and I think that was a change in ruby, that calling .close on a closed IO no longer raises
<apeiros>
you can check the NEWS part in the releases.
<soahccc>
as I said, since 2.3 "Calling this method on closed IO object is just ignored since Ruby 2.3."
white_lilies has quit [Quit: WeeChat 1.5]
gregf_ has joined #ruby
hayden___ has quit []
hayden___ has joined #ruby
bijan_ has joined #ruby
bijan_ is now known as bijan_awaaaay
<soahccc>
I guess if I tell you that 60 tasks endup spawning almost 3k threads you want to burn this thing down :D
bijan_awaaaay has quit [Client Quit]
larcara has quit [Remote host closed the connection]
larcara has joined #ruby
schneide_ has quit [Remote host closed the connection]
larcara has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
apparition47 has quit [Quit: Bye]
AgentVenom has joined #ruby
zigzig has joined #ruby
bijan_ has joined #ruby
amatas has joined #ruby
<kspencer>
if I wanted to 'force'/'require' that certain directories exist in the Pathname.new('.').realdirpath for the script to run, would the easiest answer be the most correct one? i.e. Pathname.new('.').join('folder_path').exist?
nowhere_man has joined #ruby
nowhereman_ has quit [Ping timeout: 265 seconds]
graingert has quit []
stan has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
amatas has quit [Remote host closed the connection]
graingert has joined #ruby
amatas has joined #ruby
n0m4d1c has joined #ruby
amatas has quit [Client Quit]
schneide_ has joined #ruby
amatas has joined #ruby
<soahccc>
kspencer: what do you mean with the most correct one? Using pathname seems good to me. I guess you do but if your base (.) is in a variable it should also not look as clumsy
ShekharReddy has quit []
<kspencer>
well i'm literally checking if the script is being run in a directory where these other directories exist, if they don't then I want to make the script error back out
netherwolfe has joined #ruby
ShekharReddy has joined #ruby
<kspencer>
so a ~/.local/bin script would check if the current directory '.' has folder, ...(folder).exist?
cliq has joined #ruby
<soahccc>
kspencer: and I guess it works? I don't know any better method, just different ones
<kspencer>
well basically I'm pretty much thinking of creating a script wide function that gets run that does 'if path.join(folder1).exist? and path.join(folder2).exist? etc
kliq has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
zigzig has quit [Remote host closed the connection]
quobo has quit [Quit: Connection closed for inactivity]
sameerynho has quit [Quit: WeeChat 1.9.1]
cagomez has joined #ruby
<cagomez>
if I have a base class with default values in the keyword parameter initializer, do subclasses also take on those default values if I don't supply them to the constructor?
dinfuehr has quit [Ping timeout: 276 seconds]
dinfuehr has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
TomyLobo has joined #ruby
cschneid has joined #ruby
scrptktty has quit []
scrptktty has joined #ruby
<soahccc>
cagomez: if you don't redefine the method in your subclass it should. You mean Foo.new(foo: "bar") keywords right?
luna_x has quit [Quit: WeeChat 2.0.1]
cschnei__ has quit [Ping timeout: 240 seconds]
<cagomez>
yes soahccc, wondering if SubFoo < Foo will also get `foo: "bar"`
darkhanb has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
<soahccc>
cagomez: all methods are (not technically but virtually) "copied" as is to your subclass
<soahccc>
Things get weird though if you use class instance variables vs class variables (e.g. @var on class level or @@var) but methods are pretty straight forward imho
bijan_ has quit [Quit: System has gone to sleep. ZZZzzz…]
<cagomez>
thanks soahccc
herbmillerjr has quit [Quit: Konversation terminated!]
dionysus69 has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
hinbody has quit [Quit: leaving]
alfiemax has joined #ruby
qba73 has quit [Ping timeout: 256 seconds]
dinfuehr has quit [Ping timeout: 260 seconds]
Serpent7776 has quit [Quit: Leaving]
alfiemax has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
jerikl has quit [Read error: Connection reset by peer]
rabajaj has joined #ruby
jerikl__ has joined #ruby
alfiemax has joined #ruby
dionysus69 has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
qba73 has joined #ruby
bijan_ has joined #ruby
roonsauce has quit [Remote host closed the connection]
aupadhye has quit [Quit: Leaving]
roonsauce has joined #ruby
quobo has joined #ruby
raynold has joined #ruby
hinbody has joined #ruby
roonsauce has quit [Ping timeout: 240 seconds]
<cagomez>
is it bad practice to define a class method on a super class, and have sub classes call that?
<cagomez>
scratch that ^
<cagomez>
is it bad practice to define a class method on a super class, and then call that method on subclasses?
orbyt_ has joined #ruby
clemens3_ has joined #ruby
jnollette has quit [Ping timeout: 255 seconds]
aufi has quit [Quit: Leaving]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
eckhardt has joined #ruby
jnollette has joined #ruby
sanscoeur has joined #ruby
<soahccc>
cagomez: that's the point of inheritance isn't it?
<soahccc>
but I'm checking out, cya
<cagomez>
see ya
jerikl__ has quit [Read error: Connection reset by peer]
<graft>
cagomez: i use that pattern extensively to define api interfaces
sameerynho has joined #ruby
<graft>
e.g. class Base; def self.name(blah); @name = blah; end; end; class Derivative < Base; name :derivative; end
<cagomez>
I'm defining a 'Base User Builder' that has default arguments in the initializer, and one default argument calls a private class method. `Foo User Builder < Base User Builder` inherits this. does this sound reasonable?
dinfuehr has quit [Ping timeout: 256 seconds]
qba73 has quit []
eroux has joined #ruby
<graft>
depends on what the arguments are i guess... i'd worry about the behavior becoming confusing when you call FooUserBuilder.new(some_non_default_args)
dinfuehr has joined #ruby
<graft>
do they have the same interface? i.e. are all args to BaseUserBuilder.new valid for FooUserBuilder.new?
splud has joined #ruby
marmorkreb has quit [Remote host closed the connection]
marmorkreb has joined #ruby
marmorkreb has quit [Remote host closed the connection]
larcara has quit []
char_var[buffer] has quit [Ping timeout: 240 seconds]
jerikl has joined #ruby
guille-moe has joined #ruby
<cagomez>
yes, graft
<cagomez>
My use case is that I get a network responses from another API. They are users but it may be in XML or Json format. So I made a BaseBuilder that receives a response (either XML or JSON), and a list of valid user attributes. The Sub Builders parse XML or JSON
venmx has quit [Ping timeout: 265 seconds]
<cagomez>
the list of valid user attributes is a param on the Base Builder, but if not supplied, it calls a private class method with to get an array of default valid user attributes
<splud>
anyone here use Oga? I'm trying to use it to modify a document on the fly (basically, put elements inside a table, as an initial test)
dionysus69 has quit [Ping timeout: 240 seconds]
<splud>
At the moment, I'd settle for managing to get the table added to the document.
dionysus69 has joined #ruby
ramfjord has joined #ruby
chouhoulis has joined #ruby
silviu has joined #ruby
clemens3_ has quit [Ping timeout: 260 seconds]
clemens3_ has joined #ruby
clemens3_ has quit [Ping timeout: 268 seconds]
clemens3 has joined #ruby
despai has joined #ruby
roonsauce has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
x77686d has quit [Quit: x77686d]
terens has joined #ruby
silviu has quit [Remote host closed the connection]
x77686d has joined #ruby
goatish has joined #ruby
aintno_sunshine has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
x77686d has quit [Client Quit]
jottr has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
bijan_ is now known as bijan_awaaaay
aintno_sunshine has quit [Remote host closed the connection]
aintno_sunshine has joined #ruby
venmx has joined #ruby
pugcs has quit []
jamesaxl has joined #ruby
jnollette has quit [Ping timeout: 255 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnollette has joined #ruby
synthroi_ has quit [Remote host closed the connection]
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeffreylevesque has quit [Ping timeout: 276 seconds]
neo95 has joined #ruby
apeiros_ has quit []
synthroid has quit []
cagomez has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
silviu_ has quit [Remote host closed the connection]
silviu has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 264 seconds]
x77686d has joined #ruby
x77686d has quit [Client Quit]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pragmaticus has quit [Remote host closed the connection]
jcalla has quit [Quit: Leaving]
cagomez has joined #ruby
netherwolfe has quit [Ping timeout: 276 seconds]
cagomez has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
x77686d has joined #ruby
cagomez has joined #ruby
schneide_ has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
schneide_ has joined #ruby
schneide_ has quit [Remote host closed the connection]
x77686d_ has joined #ruby
x77686d has quit [Ping timeout: 248 seconds]
x77686d_ is now known as x77686d
cagomez has joined #ruby
rrutkowski has joined #ruby
drewmcmillan has joined #ruby
schneide_ has joined #ruby
suhdood has joined #ruby
rrutkowski has quit [Client Quit]
silviu has quit [Remote host closed the connection]
spuk has quit [Ping timeout: 240 seconds]
rrutkowski has joined #ruby
krawchyk has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 268 seconds]
despai has joined #ruby
matti has quit [Quit: Reconnecting]
matti has joined #ruby
schneide_ has quit [Ping timeout: 260 seconds]
KeyJoo has quit [Ping timeout: 240 seconds]
clemens3 has quit [Ping timeout: 268 seconds]
hndk has quit [Quit: Leaving]
netherwolfe has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
suhdood has quit [Ping timeout: 276 seconds]
moei has quit [Quit: Leaving...]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
cagomez has quit [Remote host closed the connection]
Fobhep has joined #ruby
jeffreylevesque has joined #ruby
roonsauce has quit [Remote host closed the connection]
cagomez has joined #ruby
roonsauce has joined #ruby
cagomez_ has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
<Fobhep>
Hi there! I am a complete newbie considering ruby and I am trying to script a bunch of rake commands I am running in a rails-console. I am aware I might be in the wrong IRC channel. please let me know if that is the case. anyways my gist is here. would be very happy to get some help :) https://gist.github.com/Fobhep/b020081696e730234370d932fe6822be
<Eiam>
Fobhep: .. help on WHAT?
<Fobhep>
on getting the syntax right
<Fobhep>
and on getting an idea how to actually run this then
<Fobhep>
I am generally not to lazy to read, I just don't know where to start
<Eiam>
don't put your password in a rake file? ;)
char_var[buffer] has joined #ruby
<Eiam>
Fobhep: whats the error you are getting?
roonsauce has quit [Ping timeout: 248 seconds]
<Fobhep>
Eiam: so I am trying to run it like this
Silmarilion has quit [Read error: Connection reset by peer]
<Fobhep>
gitlab-rails console production rake.test
<arahael>
Hmm, thanks. That's considerably more detailed. Looking at how to get a particular node in the yaml document.
<arahael>
Looks like I need to do doc.to_ruby first!?
Uranio has joined #ruby
<arahael>
No...
Uranio-235 has joined #ruby
Uranio-235 has quit [Remote host closed the connection]
bijan_awaaaay is now known as bijan_
bijan_ is now known as bijan_awaaaay
<arahael>
This is what I have so far: YAML.load_file('schema.yaml'). I'm trying to get the 'definitions' node.
bijan_awaaaay is now known as bijan_
<arahael>
The documentation suggests that should return a "ruby object", whatever that is.
Uranio has left #ruby [#ruby]
sparr has quit [Changing host]
sparr has joined #ruby
<havenwood>
arahael: I'd suggest looking at what you have in Pry.
<havenwood>
?pry
<ruby[bot]>
Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
<arahael>
havenwood: So, there's no real documentation? :(
<havenwood>
arahael: Do you have a Hash? It depends on the YAML.