baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
<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> I'm following these instructions https://github.com/postmodern/chruby/wiki/Ruby#installation but for ruby 2.4.2
<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
<morenoh149> FWIW here's my makefile after configuring https://gist.github.com/morenoh149/e774cb45dba51bf257a2c7cec4c97ee6 as you can see the homebrew openssl is properly passed into the Makefile
nertzy has quit [Ping timeout: 240 seconds]
<morenoh149> I added the error message
wajdiTECH_ has quit [Ping timeout: 260 seconds]
<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
<morenoh149> tcopeland: what's ext/openssl/Makefile ?
RougeR has quit [Ping timeout: 260 seconds]
<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?
cdg has quit [Ping timeout: 248 seconds]
<morenoh149> 88 INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) -I/usr/local/Cellar/openssl098/0.9.8zg/include$
<morenoh149> no idea where that would come from
meadmoon has joined #ruby
<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.]
knight33 has quit [Max SendQ exceeded]
morenoh149 has quit [Ping timeout: 248 seconds]
lupine has joined #ruby
milardovich has quit []
RougeR has quit [Ping timeout: 240 seconds]
white_lilies has quit [Ping timeout: 260 seconds]
guest2 has quit [Quit: guest2]
weij has quit [Quit: Leaving]
bmurt has joined #ruby
duderonomy has joined #ruby
x77686d has joined #ruby
cschneid has quit [Ping timeout: 260 seconds]
cschneid has joined #ruby
x77686d has quit [Client Quit]
arescorpio has joined #ruby
darkhanb has joined #ruby
elphe has quit [Quit: Lost terminal]
skweek has quit [Ping timeout: 256 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
d_kam has quit [Quit: Lingo: www.lingoirc.com]
apparition has joined #ruby
white_lilies has joined #ruby
govg has joined #ruby
x77686d has joined #ruby
Slyda1 has quit []
white_lilies has quit [Ping timeout: 260 seconds]
white_lilies has joined #ruby
cschneid has quit [Ping timeout: 265 seconds]
cschneid has joined #ruby
white_lilies has quit [Ping timeout: 256 seconds]
morenoh149 has joined #ruby
morenoh149 has quit [Ping timeout: 256 seconds]
arescorpio has quit [Excess Flood]
Trpger has joined #ruby
Trpger has left #ruby [#ruby]
shinnya has joined #ruby
cam27 has quit [Quit: cam27]
gix- has joined #ruby
gix has quit [Disconnected by services]
Freshnuts has joined #ruby
nowhere_man has joined #ruby
white_lilies has joined #ruby
nowhereman_ has quit [Ping timeout: 276 seconds]
white_lilies has quit [Ping timeout: 240 seconds]
jamiejackson has joined #ruby
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
luna_x has joined #ruby
schneide_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
luna_x has quit [Quit: WeeChat 2.0.1]
luna_x has joined #ruby
schneide_ has quit [Ping timeout: 256 seconds]
pabs has quit [Ping timeout: 255 seconds]
pabs has joined #ruby
Puffball has quit [Quit: No Ping reply in 180 seconds.]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Puffball has joined #ruby
morenoh149 has joined #ruby
morenoh149 has quit [Ping timeout: 248 seconds]
marmorkr_ has quit [Read error: Connection reset by peer]
DTZUZO has quit [Quit: WeeChat 2.0]
white_lilies has joined #ruby
DTZUZO has joined #ruby
Meowcenary has joined #ruby
marmorkreb has joined #ruby
Meowcenary has quit [Quit: Leaving]
white_lilies has quit [Ping timeout: 255 seconds]
jamiejackson has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
morenoh149 has joined #ruby
white_lilies has joined #ruby
morenoh149 has quit [Ping timeout: 260 seconds]
white_lilies has quit [Ping timeout: 240 seconds]
alfiemax has quit [Read error: Connection reset by peer]
diego_ has joined #ruby
alfiemax has joined #ruby
diego_ has quit [Client Quit]
cschneid has quit [Remote host closed the connection]
diego_ has joined #ruby
<diego_> q
diego_ has quit [Quit: Lost terminal]
MzrE2 has joined #ruby
spectrum has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
cschneid has joined #ruby
orbyt_ has joined #ruby
cschneid has quit [Ping timeout: 260 seconds]
white_lilies has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Ping timeout: 265 seconds]
white_lilies has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
vyorkin has joined #ruby
vyorkin has quit [Client Quit]
cdg has joined #ruby
alfiemax_ has joined #ruby
naprimer2 has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
BH23 has quit [Remote host closed the connection]
naprimer has quit [Ping timeout: 248 seconds]
behraaang has joined #ruby
darkhanb has joined #ruby
Freshnuts has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
white_lilies has joined #ruby
MzrE2 has quit [Quit: Leaving]
white_lilies has quit [Ping timeout: 248 seconds]
alex`` has joined #ruby
_asqrd has joined #ruby
_asqrd has quit [Remote host closed the connection]
_asqrd has joined #ruby
_asqrd_ has joined #ruby
_asqrd_ has quit [Remote host closed the connection]
reber has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
_asqrd is now known as acubo
acubo is now known as afshara
afshara is now known as a_cubo
KeyJoo has joined #ruby
white_lilies has joined #ruby
dionysus69 has joined #ruby
a_cubo is now known as acubo89
white_lilies has quit [Ping timeout: 240 seconds]
acubo89 is now known as aqubo
aqubo is now known as aqbd
aqbd has left #ruby ["Leaving"]
ShekharReddy has joined #ruby
AxelAlex has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
d^sh has joined #ruby
Mortomes|Work has joined #ruby
asqrd_ has joined #ruby
jamesaxl_05 has joined #ruby
perniciouscaffei has quit [Quit: Textual IRC Client: www.textualapp.com]
asqrd_ has quit [Client Quit]
asqrd_ has joined #ruby
tvw has joined #ruby
KeyJoo has quit [Ping timeout: 265 seconds]
KeyJoo has joined #ruby
asqrd_ has quit [Client Quit]
KeyJoo has quit [Max SendQ exceeded]
asqrd_ has joined #ruby
KeyJoo has joined #ruby
miskatonic has joined #ruby
anisha has joined #ruby
amatas has joined #ruby
sundhell_away is now known as sundhell
white_lilies has joined #ruby
ta_ has joined #ruby
ltt has joined #ruby
ltt has quit [Client Quit]
guardianx has joined #ruby
<Cork> is there a way to generate pkcs8 pem keys with OpenSSL::PKey::RSA? .to_pem generates ssleay by default
<Cork> *?
larcara has joined #ruby
white_lilies has quit [Ping timeout: 268 seconds]
aufi has joined #ruby
ltt has joined #ruby
ta_ has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Client Quit]
sundhell is now known as sundhell_away
konsolebox has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
schneide_ has joined #ruby
guardianxx has joined #ruby
schneide_ has quit [Remote host closed the connection]
guardianx has quit [Ping timeout: 268 seconds]
schneide_ has joined #ruby
schneide_ has quit [Read error: Connection reset by peer]
zwliew has joined #ruby
apparition has quit [Quit: Bye]
guardianxx has quit []
<behraaang> Hello guys, long time since i'v posted another question here,
guardianx has joined #ruby
<dminuoso> behraaang: Have you paid the bot on entry?
<dminuoso> No money, no answers.
<dminuoso> >> puts "Money goes here"
<ruby[bot]> dminuoso: # => Money goes here ...check link for more (https://eval.in/954472)
<behraaang> I need to investigate a bit about implementing instant messaging app with action cable
<dminuoso> ?rails behraaang
<ruby[bot]> behraaang: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
guardianx has quit [Read error: Connection reset by peer]
<behraaang> really ? do i need to pay for answers here ?
<behraaang> have it always been like this ?
<dminuoso> behraaang: Yes, you pay with cookies.
<dminuoso> Preferrably double choc chip cookies.
<behraaang> :))
<miskatonic> cookies as in HTTP Cookies?
<behraaang> iv gone to the url and hit action nothing happened
<behraaang> anyways can i go on with my question ?
_main_ has joined #ruby
white_lilies has joined #ruby
<dminuoso> behraaang: Please check the last message from ruby[bot].
guardianx has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
schneide_ has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guardianx has quit [Client Quit]
ltt has joined #ruby
__main__ has quit [Ping timeout: 276 seconds]
_main_ is now known as __main__
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
schneide_ has quit [Client Quit]
alfiemax_ has quit [Remote host closed the connection]
__main__ has quit [Read error: Connection reset by peer]
white_lilies has quit [Ping timeout: 252 seconds]
__main__ has joined #ruby
schneide_ has joined #ruby
clemens3 has joined #ruby
marmorkreb has quit [Remote host closed the connection]
marmorkreb has joined #ruby
marmorkreb has quit [Remote host closed the connection]
maum has joined #ruby
marmorkreb has joined #ruby
sundhell_away is now known as sundhell
konsolebox has quit [Ping timeout: 255 seconds]
konsolebox has joined #ruby
marmorkreb has quit [Remote host closed the connection]
marmorkreb has joined #ruby
marmorkreb has quit [Remote host closed the connection]
char_var[buffer] has quit [Ping timeout: 255 seconds]
tvw has quit [Ping timeout: 256 seconds]
char_var[buffer] has joined #ruby
ta_ has joined #ruby
terens has joined #ruby
<terens> Hello
<dminuoso> o/
<terens> I have a class Thing which includes a module AModule
<terens> However if I dont require AModule first its methods are not loaded
_aeris_ has quit [Ping timeout: 255 seconds]
<dminuoso> >> module M; end; class C; include M; end; module M; def foo; puts "hi"; end; end; C.new.foo
<ruby[bot]> dminuoso: # => hi ...check link for more (https://eval.in/954493)
<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]
minimalism has quit [Quit: minimalism]
A124 has quit [Disconnected by services]
A124 has joined #ruby
qba73 has joined #ruby
marmorkreb has joined #ruby
[diecast] has quit []
damasceno has joined #ruby
[diecast] has joined #ruby
kapowaz has quit []
kapowaz has joined #ruby
Silmarilion has joined #ruby
dukedave has quit []
dukedave has joined #ruby
<damasceno> Hello. Does anyone know how I can get the "storage" name and value? The name of the storage may vary, example: local or s3. YAML: https://pastebin.com/gk9juBjd ruby code: https://pastebin.com/N3BMMM77. Thanks
<ruby[bot]> damasceno: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/24b307979ddef579aa2a469878000336
<ruby[bot]> damasceno: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
jhill_ has quit []
jhill_ has joined #ruby
mroth has quit []
mroth has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.0.1]
Puffball has quit [Remote host closed the connection]
morenoh149 has joined #ruby
ELLIOTTCABLE has quit []
ELLIOTTCABLE has joined #ruby
Puffball has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
ckrailo has quit []
ckrailo has joined #ruby
Puffball has quit [Remote host closed the connection]
amatas_ has joined #ruby
morenoh149 has quit [Ping timeout: 248 seconds]
amatas_ has quit [Remote host closed the connection]
jcalla has joined #ruby
John_Ivan has quit [Read error: Connection reset by peer]
jmhmccr has quit []
jamesaxl_work has joined #ruby
John_Ivan has joined #ruby
jmhmccr has joined #ruby
incomprehensibly has quit []
incomprehensibly has joined #ruby
knowtheory has quit []
amatas has quit [Quit: amatas]
knowtheory has joined #ruby
synthroid has quit [Remote host closed the connection]
jamesaxl_05 has quit [Ping timeout: 276 seconds]
Guest54944 has quit [Ping timeout: 256 seconds]
Puffball has joined #ruby
amatas has joined #ruby
jamesaxl_05 has joined #ruby
rflot has quit []
rflot has joined #ruby
amatas has quit [Client Quit]
jamesaxl_work has quit [Ping timeout: 260 seconds]
amatas has joined #ruby
vichib has quit [Remote host closed the connection]
guest has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
amatas has quit [Remote host closed the connection]
zigzig has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
amatas has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
amatas has quit [Client Quit]
bigblind has joined #ruby
synthroid has joined #ruby
<za1b1tsu> Hello, is there a rubyesque way of obtaining this https://gist.github.com/bbtdev/afb4f14d2c6165e058399cf56501b343
<za1b1tsu> map,zip or something, I can't figure it out, tried multiple combinations
<canton7> za1b1tsu, obtaining it from what?
kobain has joined #ruby
qba73 has quit [Remote host closed the connection]
<apeiros> map: transform a list to a different list
<apeiros> zip: combine multiple lists
<za1b1tsu> canton7, [collection, klass], [[x,y], [z,w], [k,g]]
qba73 has joined #ruby
<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> and yeah block form would be better I guess, that's the excerpt: https://gist.github.com/2called-chaos/ea59493e88f5d9ddcbac4b5e63bdb77f
<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]
Mike11 has joined #ruby
zigzig has joined #ruby
skweek has joined #ruby
Majost has quit []
Majost has joined #ruby
d^sh has quit [Quit: ZNC 1.6.1 - http://znc.in]
larcara has joined #ruby
qba73 has quit [Ping timeout: 256 seconds]
RougeR has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
silviu has quit [Remote host closed the connection]
qba73 has joined #ruby
cpruitt has joined #ruby
spuk has joined #ruby
kanobt61 has joined #ruby
mitsuhiko has quit []
mitsuhiko has joined #ruby
nahra has joined #ruby
cpruitt has quit []
Kilo`byte has quit [Quit: ZNC - 1.6.0 - http://znc.in]
herbmillerjr has joined #ruby
Kilo`byte has joined #ruby
dan64 has quit [Ping timeout: 256 seconds]
dan64- has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
paraxial has quit [Quit: The Lounge - https://thelounge.github.io]
cschneid has joined #ruby
troys has joined #ruby
sanscoeur has quit [Remote host closed the connection]
paraxial has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Mike11 has quit [Quit: Leaving.]
stephenh has quit []
stephenh has joined #ruby
miskatonic has joined #ruby
d^sh has joined #ruby
ReinH has quit []
ReinH has joined #ruby
venmx has joined #ruby
nowhereman_ has joined #ruby
tomphp has joined #ruby
bijan_ has quit [Quit: System has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
marmorkreb has quit [Remote host closed the connection]
cschnei__ has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
afisher has quit []
afisher has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
jamesaxl_05 has quit [Ping timeout: 256 seconds]
marmorkreb has joined #ruby
bijan_ has joined #ruby
synthroid has quit [Remote host closed the connection]
silviu has joined #ruby
n0m4d1c has joined #ruby
alex`` has joined #ruby
silviu has quit [Ping timeout: 240 seconds]
Bish has quit [Quit: leaving]
catbusters has quit [Quit: Connection closed for inactivity]
synthroid has joined #ruby
zigzig has quit [Ping timeout: 255 seconds]
veinofstars has quit []
synthroi_ has joined #ruby
synthroid has quit [Remote host closed the connection]
veinofstars has joined #ruby
dviola has joined #ruby
za1b1tsu has quit [Quit: Leaving]
schneide_ has quit [Remote host closed the connection]
schneide_ has joined #ruby
jottr has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneide_ has quit [Remote host closed the connection]
tomphp has joined #ruby
guille-moe has quit [Ping timeout: 256 seconds]
venmx has quit [Quit: leaving]
venmx has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
clemens3_ has quit [Ping timeout: 240 seconds]
marxarelli|afk is now known as marxarelli
tomphp has quit [Ping timeout: 276 seconds]
jerikl has joined #ruby
desperek has joined #ruby
dionysus69 has joined #ruby
d10n-work has joined #ruby
x77686d has joined #ruby
roonsauce has joined #ruby
snath has joined #ruby
[Butch] has joined #ruby
arcturiaen has quit []
arcturiaen has joined #ruby
arcturiaen has quit [Max SendQ exceeded]
arcturiaen has joined #ruby
arcturiaen has quit [Max SendQ exceeded]
krawchyk has joined #ruby
arcturiaen has joined #ruby
kaia has quit []
kaia has joined #ruby
g3funk has quit [Quit: ZNC - http://znc.in]
vondruch has quit [Quit: vondruch]
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
mcr1 has joined #ruby
vondruch has joined #ruby
alfiemax has quit []
<soahccc> cagomez: you might also be interested in method introspection like this: https://gist.github.com/2called-chaos/510fbfbcd1e38729025ee85489bbfb65
alfiemax has joined #ruby
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…]
adelyne has joined #ruby
silviu has joined #ruby
orbyt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jerikl has joined #ruby
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
jnollette has quit [Ping timeout: 255 seconds]
jamesaxl has quit [Quit: WeeChat 2.0.1]
kobain has quit [Ping timeout: 256 seconds]
jerikl has quit [Client Quit]
jamesaxl has joined #ruby
marmorkreb has joined #ruby
lytol has joined #ruby
splud has left #ruby ["Leaving"]
cliq has quit [Read error: Connection reset by peer]
cliq has joined #ruby
synthroid has joined #ruby
jnollette has joined #ruby
marmorkreb has quit [Ping timeout: 264 seconds]
cagomez has quit [Remote host closed the connection]
zautomata has joined #ruby
jottr has joined #ruby
cdg has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 276 seconds]
x77686d has joined #ruby
Sauvin has quit [Read error: Connection reset by peer]
Jello_Raptor has quit [Remote host closed the connection]
cagomez has joined #ruby
despai has quit [Quit: ...]
schneide_ has joined #ruby
cagomez has quit [Ping timeout: 265 seconds]
x77686d has quit [Quit: x77686d]
shinnya has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jello_Raptor has joined #ruby
eckhardt has joined #ruby
CPng|N has joined #ruby
andydna has joined #ruby
x77686d has joined #ruby
<andydna> so. minitest. def method(argument); end why: ArgumentError: wrong number of arguments (given 1, expected 2..3)
cagomez has joined #ruby
silviu has quit [Remote host closed the connection]
clemens3 has quit [Remote host closed the connection]
x77686d has quit [Client Quit]
shinnya has quit [Ping timeout: 256 seconds]
silviu_ has joined #ruby
<andydna> got it. sorry for the dumb question.
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quobo has quit [Quit: Connection closed for inactivity]
Jello_Raptor has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 268 seconds]
jerikl has joined #ruby
venmx has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
Jello_Raptor has joined #ruby
gizmore has joined #ruby
nowhereman_ has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
ldepandis has quit [Quit: Textual IRC Client: www.textualapp.com]
x77686d has joined #ruby
oroborous has joined #ruby
ledestin has joined #ruby
cagomez has joined #ruby
schneide_ has quit [Remote host closed the connection]
masterasia has joined #ruby
<masterasia> How do I find out where a module is defined?
<masterasia> Nvm
marmorkreb has joined #ruby
terens has quit [Quit: Leaving]
troulouliou_dev has joined #ruby
rabajaj has quit [Remote host closed the connection]
<oroborous> am I getting it right that Ruby setter methods' "=" (equals) symbol is just a naming convention, the same way as ending in "?" and "!" ?
dionysus69 has quit [Ping timeout: 268 seconds]
marmorkreb has quit [Ping timeout: 276 seconds]
jerikl has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
cagomez has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
schneide_ has joined #ruby
alfiemax has joined #ruby
brendan- has quit [Ping timeout: 256 seconds]
CPng|N is now known as SeepingN
<havenwood> oroborous: yes
alfiemax_ has joined #ruby
<havenwood> oroborous: it's a convention along with a bit of syntactic sugar
brendan- has joined #ruby
traxnov has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
clemens3 has joined #ruby
aaronworsham has joined #ruby
Vapez has joined #ruby
aaronworsham has left #ruby [#ruby]
guille-moe has quit [Ping timeout: 276 seconds]
traxnov has quit [Quit: Mutter: www.mutterirc.com]
Mike11 has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
traxnov has joined #ruby
venmx has joined #ruby
pabs has quit [Ping timeout: 256 seconds]
pabs has joined #ruby
eckhardt has joined #ruby
traxnov has quit [Client Quit]
cliq has quit [Ping timeout: 276 seconds]
<banisterfiend> i dont nkow much about windows -- can anyone think of any downsides to setting internal/external encoding to utf-8 on windows?
sanscoeu_ has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
reber has quit [Remote host closed the connection]
cdg has joined #ruby
sanscoeur has quit [Ping timeout: 276 seconds]
Eiam has quit [Ping timeout: 265 seconds]
cdg_ has joined #ruby
suhdood has joined #ruby
masterasia has quit [Read error: Connection reset by peer]
masterasia has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
kobain has joined #ruby
sundhell is now known as sundhell_away
amatas has quit [Quit: amatas]
<Yxhuvud> methods ending with = also have the little oddity in that they are hardcoded to return their argument.
aintno_sunshine has quit [Ping timeout: 260 seconds]
safetypin has joined #ruby
Johnny has joined #ruby
John_Ivan has quit [Ping timeout: 256 seconds]
Johnny is now known as Guest73836
sameerynho has quit [Ping timeout: 256 seconds]
eckhardt has joined #ruby
despai has joined #ruby
Guest73836 has quit [Client Quit]
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
conta has quit [Remote host closed the connection]
cagomez has joined #ruby
andydna has quit [Remote host closed the connection]
morenoh149 has joined #ruby
Eiam has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
apeiros has quit []
snickers has joined #ruby
suhdood has quit [Remote host closed the connection]
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
despai has quit [Quit: ...]
apeiros_ has joined #ruby
jeffreylevesque_ has joined #ruby
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
Mike11 has quit [Quit: Leaving.]
<Fobhep> and my error is https://pastebin.com/wfnAGfNM
<ruby[bot]> Fobhep: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/8e0e0295d96176464092993528d13296
<ruby[bot]> Fobhep: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
venmx has quit [Ping timeout: 256 seconds]
venmx has joined #ruby
safetypin has quit [Quit: Textual IRC Client: www.textualapp.com]
shinnya has joined #ruby
clemens3 has joined #ruby
marmorkreb has joined #ruby
<weaksauce> is there an easy way to write to stdout and also to a file at the same time?
<weaksauce> something akin to tee but inside ruby
npgm has joined #ruby
marmorkreb has quit [Ping timeout: 240 seconds]
clemens3 has quit [Ping timeout: 260 seconds]
tcopeland has quit [Quit: tcopeland]
<havenwood> &ri Shell::Tee
tomphp has joined #ruby
clemens3 has joined #ruby
<havenwood> weaksauce: baweaver would recommend #tap
tomphp has quit [Client Quit]
desperek has quit [Quit: xoxo]
<weaksauce> interesting. not quite what i want so i will just abstract it a bit and do it manually
<weaksauce> thanks though
<weaksauce> tap is pretty useful and i forgot about it
arescorpio has joined #ruby
mikecmpbll has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
nowhereman_ has joined #ruby
mikecmpbll has quit [Client Quit]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lytol has quit [Remote host closed the connection]
eckhardt has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
eckhardt has quit [Client Quit]
tomphp has joined #ruby
Sembei has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
eroux has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 2.0.1]
<Eiam> Fobhep: yeah which is telling you that the rake.test file can't be found
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
Vapez has quit [Read error: Connection reset by peer]
minimalism has joined #ruby
cschneid has quit [Ping timeout: 248 seconds]
Dimik has quit [Ping timeout: 256 seconds]
sanscoeu_ has quit [Remote host closed the connection]
sanscoeur has joined #ruby
snath has quit [Ping timeout: 260 seconds]
arahael has joined #ruby
<arahael> Where's the documentation for the yaml module?
<arahael> Like, the actual documentation.
x77686d has quit [Ping timeout: 256 seconds]
<arahael> https://ruby-doc.org/stdlib-2.3.0/libdoc/yaml/rdoc/YAML.html <-- Doesn't seem to explain anything. :(
<vutral|kali> arahael, have you paid the bot?
c0ncealed has quit [Read error: Connection reset by peer]
<vutral|kali> :D
<havenwood> &ri Psych
<havenwood> arahael: ^
c0ncealed has joined #ruby
<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.
<havenwood> arahael: For what?