baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
darkhanb has joined #ruby
s2013 has joined #ruby
sgen has joined #ruby
fluxAeon has joined #ruby
axsuul has quit [Ping timeout: 260 seconds]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
Creatornator has joined #ruby
marmotini_ has joined #ruby
sgen has quit [Quit: Leaving]
axsuul has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has joined #ruby
jic has left #ruby ["Leaving"]
vonfry has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ascarter_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quazimodo has quit [Ping timeout: 260 seconds]
quazimodo has joined #ruby
sgen has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
orbyt_ has joined #ruby
darkhanb has joined #ruby
Fusl__ is now known as Fusl
sgen has quit [Quit: Leaving]
DTZUZU has joined #ruby
weaksauce has quit [Ping timeout: 240 seconds]
ghormoon has quit [Ping timeout: 276 seconds]
weaksauce has joined #ruby
m27frogy has quit [Ping timeout: 252 seconds]
agent_white has quit [Ping timeout: 245 seconds]
DTZUZU has quit [Quit: WeeChat 1.9]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
tdy has quit [Ping timeout: 260 seconds]
DTZUZU has joined #ruby
ghormoon has joined #ruby
ur5us has joined #ruby
fluxAeon has quit [Ping timeout: 252 seconds]
<hays> havenwood: one would hope jq and yq could be the same API heh
AJA4350 has quit [Remote host closed the connection]
vonfry has quit [Ping timeout: 245 seconds]
ur5us has quit [Ping timeout: 272 seconds]
<hays> although i guess ruby's json and yaml classes are quite different
vonfry has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m27frogy has joined #ruby
esrse has joined #ruby
Hobbyboy has quit [Read error: Connection reset by peer]
Hobbyboy has joined #ruby
mynameisdebian has joined #ruby
mynameisdebian has quit [Client Quit]
mynameisdebian has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
agent_white has quit [Ping timeout: 246 seconds]
marmotini_ has quit [Quit: brb]
marmotini_ has joined #ruby
agent_white has joined #ruby
marmotini_ has quit [Remote host closed the connection]
agent_white has quit [Ping timeout: 245 seconds]
marmotini_ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
mkroman has quit [Ping timeout: 240 seconds]
mkroman has joined #ruby
mkroman has quit [Remote host closed the connection]
mkroman has joined #ruby
agent_white has joined #ruby
marmotini_ has quit [Ping timeout: 272 seconds]
marmotini_ has joined #ruby
\void has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
herbert_cyborg has joined #ruby
edwardly has quit [Read error: Connection reset by peer]
marmotini_ has quit [Quit: brb]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
comet23 has joined #ruby
marmotini_ has joined #ruby
gnufied has quit [Ping timeout: 252 seconds]
duderonomy has joined #ruby
za1b1tsu has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
vonfry has quit [Quit: WeeChat 2.2]
dar123 has joined #ruby
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
marmotini_ has quit [Ping timeout: 244 seconds]
marmotini_ has joined #ruby
prometheus_falli has quit [Remote host closed the connection]
gix has joined #ruby
prometheus_falli has joined #ruby
edwardly has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
edwardly has quit [Quit: ??????????]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkroman has quit [Remote host closed the connection]
al2o3-cr has quit [Quit: WeeChat 2.2]
mkroman has joined #ruby
tdy has joined #ruby
al2o3-cr has joined #ruby
hck_ has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
<hck_> hi+
<hck_> amlma
<hck_> samsmk
<hck_> alkksñlkas
<hck_> aksñlkañ
<hck_> alksñkla
<hck_> ñalsñlaks
<hck_> aslalks
marmotini_ has quit [Ping timeout: 240 seconds]
edwardly has joined #ruby
agent_white has quit [Quit: brb]
<zenspider> !kick hck_
hck_ was kicked from #ruby by ruby[bot] [kickable offense, see http://ruby-community.com/pages/user_rules]
savolla has joined #ruby
agent_white has joined #ruby
arekushi has quit [Ping timeout: 252 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dbz has joined #ruby
orbyt_ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbz has quit [Ping timeout: 244 seconds]
za1b1tsu has quit [Ping timeout: 244 seconds]
dbz has joined #ruby
savolla has quit [Quit: Lost terminal]
duderonomy has joined #ruby
pskosinski_ has joined #ruby
pskosinski is now known as Guest93121
pskosinski_ is now known as pskosinski
Guest93121 has quit [Read error: Connection reset by peer]
duderonomy has quit [Client Quit]
dbz has quit [Ping timeout: 252 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has joined #ruby
aniarya82 has joined #ruby
dbz has joined #ruby
s2013 has joined #ruby
herbert_cyborg has quit [Quit: WeeChat 2.2]
dbz has quit [Ping timeout: 272 seconds]
P1RATEZ has quit []
doubledup has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
sauvin has joined #ruby
lomex has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
MoritaShinobu has joined #ruby
apeiros has quit [Remote host closed the connection]
ascarter has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ascarter has quit [Client Quit]
ascarter has joined #ruby
ascarter has quit [Client Quit]
doubledup has quit [Quit: Leaving]
mike11 has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has quit [Client Quit]
s2013 has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
ascarter has quit [Client Quit]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
arup_r has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
ascarter has quit [Client Quit]
Nicmavr has quit [Read error: Connection reset by peer]
snickers has joined #ruby
Nicmavr has joined #ruby
fran__ has joined #ruby
Fr4n has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
aufi has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
ascarter has quit [Client Quit]
nickjj_ has joined #ruby
nickjj has quit [Ping timeout: 252 seconds]
venmx has quit [Ping timeout: 246 seconds]
moei has quit [Ping timeout: 252 seconds]
aufi has quit [Ping timeout: 240 seconds]
arup_r has quit []
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
dbz has joined #ruby
beefjoe has joined #ruby
Dbugger has joined #ruby
dbz has quit [Ping timeout: 252 seconds]
Dbugger has quit [Remote host closed the connection]
aniarya82 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
m27frogy has quit [Ping timeout: 252 seconds]
stoffus has joined #ruby
clemens3 has joined #ruby
beefjoe has quit [Quit: <3]
marz_d`ghostman has joined #ruby
<marz_d`ghostman> I have a method that calls %x. I'm currently testing it to make sure it doesn't throw any Exception when that %x succeeds, or expect and Exception when it fails. How do I stub %x?
beefjoe has joined #ruby
<universa1> marz_d`ghostman: expect(some_object).to receive(:%x).and_return(true) ?! a little bit more context would help
johnny56 has quit [Ping timeout: 272 seconds]
aniarya82 has joined #ruby
<universa1> marz_d`ghostman: ignore the first part
comet23 has quit [Quit: Connection closed for inactivity]
<universa1> marz_d`ghostman: not sure how to stub those "special syntax methods", did you try to just stub :%x on the object / instance you are testing?
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
<universa1> marz_d`ghostman: output of that test?
<marz_d`ghostman> universa1: Tried allow_any_instance_of(MyObject).to receive(:`).with('qwerty').and_return(0)
<universa1> marz_d`ghostman: expect(mirror_sync).to reive(:`).with("querty").and_return(0)
m27frogy has joined #ruby
<universa1> marz_d`ghostman: you might as well try replacing %x(something) with `something`
<universa1> but that should not be necessary
yohji has joined #ruby
<marz_d`ghostman> expect { mirror_sync.execute_custom_script('qwerty') }.to_not raise_error expected no Exception, got #<Rise::MirrorManager::Error::CmdError: Rise::MirrorManager::Err or::CmdError> with backtrace:
<universa1> marz_d`ghostman: could you add the output to the gist?
<universa1> marz_d`ghostman: since you use the "magic" variable $?, you can not simple stub the method...
<universa1> marz_d`ghostman: because that is then not set!
<marz_d`ghostman> universa1: Oh, I see
<marz_d`ghostman> I thought the return(0) would take care of that
<universa1> marz_d`ghostman: no, that is the return value of %x(...
<universa1> marz_d`ghostman: but as a side effect %x normally sets $?
<marz_d`ghostman> universa1: any thoughts on how to test the method? :)
<universa1> marz_d`ghostman: i guess I would create two dummy scripts, one successfull and one returning a different exitstatus and call those and not stub anythings...
aniarya82 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<universa1> marz_d`ghostman: or replace the magic with an explicit form using Open3.popen
<universa1> marz_d`ghostman: the raise CmdError.new(e.message) will also fail most likely ;)
<marz_d`ghostman> I'll take a look at it
<marz_d`ghostman> universa1: thanks
<universa1> marz_d`ghostman: or you could just call: 'true' and 'false' as your custom scripts ;) at least on a unix machine
<marz_d`ghostman> universa1: that 'true' and 'false' seems like a good bypass hehe
<marz_d`ghostman> universa1: Now, got to look into blocks to refactor these execute_pre_cmd, execute_post_cmd, and execute_custom_script methods
<marz_d`ghostman> Think these methods are redundant
<universa1> marz_d`ghostman: :-)
<marz_d`ghostman> universa1: thanks man
<universa1> marz_d`ghostman: yw :-)
nowhereman_ has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
t0adst00l has joined #ruby
xfbs has joined #ruby
prometheus_falli has quit [Ping timeout: 256 seconds]
prestorium has joined #ruby
im0nde has quit [Ping timeout: 260 seconds]
DTZUZO has quit [Ping timeout: 252 seconds]
tdy has joined #ruby
za1b1tsu has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
deathwishdave has joined #ruby
schneider- has joined #ruby
schneider- has quit [Client Quit]
tdy has quit [Ping timeout: 260 seconds]
schneider- has joined #ruby
venmx has joined #ruby
tdy has joined #ruby
beefjoe has quit [Quit: <3]
johnny56 has joined #ruby
beefjoe has joined #ruby
lxsameer has joined #ruby
za1b1tsu has joined #ruby
KeyJoo has joined #ruby
schneider- has quit [Quit: WeeChat 2.0.1]
ellcs has joined #ruby
za1b1tsu_ has joined #ruby
moei has joined #ruby
za1b1tsu has quit [Ping timeout: 244 seconds]
ansraliant has quit [Quit: My planet needs me]
KeyJoo has quit [Quit: KeyJoo]
beefjoe has quit [Quit: <3]
akem has quit [Ping timeout: 252 seconds]
ellcs has quit [Ping timeout: 252 seconds]
ellcs has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
beefjoe has joined #ruby
paraxial has quit [Ping timeout: 252 seconds]
ellcs has quit [Ping timeout: 252 seconds]
xfbs has quit [Quit: afk]
t0adst00l has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
nickjj_ is now known as nickjj
ta_ has quit [Quit: Leaving...]
ta_ has joined #ruby
beefjoe has quit [Quit: <3]
prestorium has quit [Ping timeout: 264 seconds]
t0adst00l has joined #ruby
prestorium has joined #ruby
venmx has quit [Ping timeout: 252 seconds]
madhatter has quit [Quit: leaving]
apparition has joined #ruby
madhatter has joined #ruby
DTZUZO has joined #ruby
venmx has joined #ruby
xfbs has joined #ruby
ellcs has joined #ruby
venmx has quit [Ping timeout: 245 seconds]
yohji has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
esrse has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
mudphone has quit [Quit: Connection closed for inactivity]
reber has joined #ruby
moei has quit [Read error: Connection reset by peer]
moei has joined #ruby
Lytol has quit [Remote host closed the connection]
weaksauce has quit [Read error: Connection reset by peer]
Lytol has joined #ruby
BrainWork has joined #ruby
jottr has joined #ruby
MoritaShinobu has quit [Ping timeout: 244 seconds]
TomyLobo has joined #ruby
dbz has joined #ruby
dbz has quit [Ping timeout: 240 seconds]
Psy-Q has joined #ruby
akem has joined #ruby
MoritaShinobu has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheBrayn has quit [Quit: poof]
AJA4350 has joined #ruby
TheBrayn has joined #ruby
braincrash has quit [Ping timeout: 244 seconds]
yohji has joined #ruby
braincrash has joined #ruby
deathwishdave has joined #ruby
tdy has joined #ruby
tdy has quit [Ping timeout: 244 seconds]
xfbs has quit [Quit: afk]
ta_ has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
ellcs has joined #ruby
ellcs has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
wojnar has quit [Ping timeout: 244 seconds]
venmx has joined #ruby
wojnar has joined #ruby
za1b1tsu_ has quit [Read error: Connection reset by peer]
za1b1tsu_ has joined #ruby
ta_ has quit [Remote host closed the connection]
beefjoe has joined #ruby
beefjoe has quit [Quit: <3]
vrtra has joined #ruby
venmx has quit [Quit: leaving]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
wildermind has joined #ruby
venmx has joined #ruby
deathwishdave has joined #ruby
akorodos has joined #ruby
blackmesa has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deathwishdave has joined #ruby
deathwishdave has quit [Client Quit]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
prestorium has quit [Ping timeout: 240 seconds]
prestorium has joined #ruby
wojnar has quit [Read error: Connection reset by peer]
wojnar has joined #ruby
marz_d`ghostman has quit [Quit: Page closed]
stoffus has quit [Ping timeout: 252 seconds]
snickers has joined #ruby
fluxAeon has joined #ruby
Creatornator has joined #ruby
akorodos has quit [Quit: leaving]
stoffus has joined #ruby
Creatornator has quit [Client Quit]
jcalla has joined #ruby
stoffus has quit [Ping timeout: 260 seconds]
yokel has quit [Remote host closed the connection]
gnufied has joined #ruby
soniya29 has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
yokel has joined #ruby
blackmesa1 has joined #ruby
mike11 has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
reber__ has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
reber has quit [Ping timeout: 240 seconds]
blackmesa1 has quit [Ping timeout: 252 seconds]
madhatter has quit [Quit: leaving]
madhatter has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
mgraf has joined #ruby
mgraf has left #ruby [#ruby]
blackmesa has joined #ruby
Miron_ has joined #ruby
mgraf has joined #ruby
xfbs has joined #ruby
blackmesa1 has quit [Ping timeout: 252 seconds]
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
blackmesa1 has quit [Ping timeout: 252 seconds]
blackmes1 has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
apeiros has joined #ruby
mgraf has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 252 seconds]
cyberRodent has quit [Ping timeout: 252 seconds]
blackmes1 has quit [Ping timeout: 250 seconds]
hays_ has joined #ruby
hays_ has left #ruby [#ruby]
cyberRodent has joined #ruby
xfbs has quit [Quit: afk]
mgraf has joined #ruby
xfbs has joined #ruby
marmotini_ has joined #ruby
<za1b1tsu_> anyone knows how add completion to options with optparse? I press -TAB put nothing shows up. In the documentation it simply says: "For modern shells (e.g. bash, zsh, etc.), you can use shell completion for command line options."
marmotini_ has quit [Read error: Connection reset by peer]
troys has joined #ruby
agent_white has quit [Quit: bbl]
mikecmpbll has quit [Quit: inabit. zz.]
DLSteve has joined #ruby
wojnar has quit [Remote host closed the connection]
<mgraf> Favorite uses of `.inject` ?
wojnar has joined #ruby
apparition has quit [Quit: Bye]
mikecmpbll has joined #ruby
<za1b1tsu_> ahh nevermind, I need to learn how shell functions
<havenwood> za1b1tsu_: complete -C "$path_to_script" -o default "${path_to_script##*/}"
mgraf has quit [Ping timeout: 264 seconds]
<za1b1tsu_> interesting
<za1b1tsu_> thank you havenwood
yohji has quit [Ping timeout: 252 seconds]
Miron_ is now known as Miron
marmotini_ has joined #ruby
mgraf has joined #ruby
dmitch has joined #ruby
spiette_ is now known as spiette
xfbs has quit [Quit: afk]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
Gestahlt has joined #ruby
<Gestahlt> Hi
<Gestahlt> Im currently trying to make my code cleaner with rubocop
<Gestahlt> now im a bit confused with guard clauses
<mgraf> How so?
<Gestahlt> I have a loop inside a if clause
<Gestahlt> if hash key exist, do something
<mgraf> Throw it on here, and post the link: https://pastebin.com/
<Gestahlt> is it possible to put the guard clause behind the loop?
<ruby[bot]> Gestahlt: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<Gestahlt> I dont want to trigger the validations when there is no matching element on both sides
soniya29 has quit [Ping timeout: 250 seconds]
<mgraf> Ok. I think I see
<mgraf> give me a sec
<ruby[bot]> mgraf: as I told you already, please use https://gist.github.com
<mgraf> That satisfies the guard stuff
P1RATEZ has joined #ruby
<Gestahlt> ah i see.. next is interesting. But what about the if around the loop?
graphene has quit [Remote host closed the connection]
<mgraf> It depends what you want to do, really. That `if` is fine. Without context it's hard to understand further...
graphene has joined #ruby
<Gestahlt> well, i compare if both hashes contain the same key, if so, i loop over the keys of the event hash, and if i have a configuration for this event, i validate the config
ellcs has joined #ruby
Creatornator has joined #ruby
<mgraf> traditionally, ruby should read like English. So, you could create a (private) method that would clean it up a little further, if you're interested in removing the && from the first line.
chouhoulis has joined #ruby
<mgraf> It also depends on the ruby version you're using. You could use dig in the @event hash, and remove the first line entirely
Creatornator has quit [Client Quit]
mgraf has quit [Ping timeout: 252 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
k0mpa has joined #ruby
ivanskie has joined #ruby
mgraf has joined #ruby
knight33 has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
cd has quit [Quit: cd]
lanky_leguan has joined #ruby
ascarter has joined #ruby
mgraf has quit [Ping timeout: 252 seconds]
MoritaShinobu has quit [Quit: Leaving]
clemens3 has quit [Ping timeout: 250 seconds]
lanky_leguan has quit [Quit: Page closed]
graphene has quit [Remote host closed the connection]
soniya29 has joined #ruby
graphene has joined #ruby
beowuff has joined #ruby
darkhanb has joined #ruby
hogetaro has quit [Quit: Leaving...]
lxsameer has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 252 seconds]
millerti has joined #ruby
DTZUZO has quit [Ping timeout: 245 seconds]
tdy has joined #ruby
orbyt_ has joined #ruby
soniya29 has quit [Quit: Leaving]
quazimodo has quit [Ping timeout: 272 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has quit [Ping timeout: 260 seconds]
tdy has quit [Ping timeout: 272 seconds]
Creatornator has joined #ruby
weaksauce has joined #ruby
tdy has joined #ruby
xfbs has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Puffball has quit [Remote host closed the connection]
sameerynho has joined #ruby
doubledup has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xfbs has quit [Quit: byebye]
doubledup has quit [Quit: Leaving]
nogic has joined #ruby
venmx has quit [Ping timeout: 252 seconds]
t0adst00l has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
ua_ has quit [Ping timeout: 245 seconds]
desperek has joined #ruby
Puffball has joined #ruby
ascarter_ has joined #ruby
ascarter has quit [Ping timeout: 250 seconds]
IanMalcolm has joined #ruby
mikecmpbll has joined #ruby
ua_ has joined #ruby
wildermind has quit [Quit: Connection closed for inactivity]
clemens3 has joined #ruby
roshanavand has joined #ruby
nofxx has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
madhatter has quit [Quit: leaving]
sgen has joined #ruby
madhatter has joined #ruby
ShekharReddy has joined #ruby
quintasan has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
graphene has quit [Remote host closed the connection]
ascarter has joined #ruby
graphene has joined #ruby
ascarter_ has quit [Ping timeout: 250 seconds]
dbugger_ has joined #ruby
SeepingN has joined #ruby
blackmes1 has joined #ruby
sgen has quit [Remote host closed the connection]
Creatornator has joined #ruby
Gestahlt has quit [Remote host closed the connection]
IanMalcolm has quit [Ping timeout: 252 seconds]
fran__ has quit [Read error: Connection reset by peer]
Fr4n has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ziggylazer has quit [Excess Flood]
Fr4n has quit [Quit: Fr4n]
ziggylazer has joined #ruby
graphene has quit [Remote host closed the connection]
Fusl has quit [Excess Flood]
graphene has joined #ruby
Fusl has joined #ruby
DTZUZO has joined #ruby
postmodern has joined #ruby
DTZUZO has quit [Ping timeout: 252 seconds]
thinkpad has quit [Ping timeout: 264 seconds]
wasanzy has joined #ruby
<wasanzy> hello
<wasanzy> am having some issues with passenger
thinkpad has joined #ruby
<apeiros> ok
DTZUZO has joined #ruby
<wasanzy> Please someone help me out: https://dpaste.de/MH5v
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> wasanzy: sounds like bundler is not installed for the ruby you're trying to run passenger with
orbyt_ has joined #ruby
brendan- has joined #ruby
<cthu|> hey folks!
<apeiros> hi cthupipe
<cthu|> could you recommend a good mitm proxy with ruby interface? Maybe even implemented as a gem
<cthu|> I want to make my automation (web, android, ios) run through a mitm
<cthu|> so that I could modify server responses in tests
<cthu|> also read what is sent to where
<apeiros> that will stop to work the moment you - responsible as you are - turn on https
<sparc> Are we allowed to put classes from different files into the same module?
<sparc> I'm wondering if I'm forced to put several classes into the same file, or I can keep my one file per class style.
<apeiros> sparc: that's the norm.
<apeiros> if you have Foo::Bar, Foo::Baz, Foo::Quuz, they'll be in 3 files: foo/bar.rb, foo/baz.rb and foo/quuz.rb
<apeiros> that is, if you follow conventions.
<sparc> oh ok, that's cool, thanks apeiros
<sparc> I can just put 'module Foo' around a class in every file
<cthu|> apeiros, very good note
<cthu|> I need the proxy to generate fake ssl certificates too
<apeiros> sparc: exactly
<cthu|> and then make them trust the certificates
<cthu|> that's the most awkward thing
<cthu|> hell I hate https, but we don't have a choice
DTZUZO has quit [Ping timeout: 240 seconds]
<apeiros> yeah. it'd be nice if we didn't have to. it'd remove a lot of hassle. but as it is, securing data streams is the only sensible thing :-/
* apeiros afk, bye ppls
synaps3 has joined #ruby
apeiros has quit [Ping timeout: 246 seconds]
Creatornator has quit [Quit: Textual IRC Client: www.textualapp.com]
<wasanzy> apeiros: # bundler -v
<wasanzy> Bundler version 1.16.5
<wasanzy> # bundle exec rake rails:update:bin
<wasanzy> Could not locate Gemfile or .bundle/ directory
<wasanzy> ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-linux]
<wasanzy> sorry my bad. I was not in the app directory before running the update command.
<wasanzy> exist bin identical bin/bundle identical bin/rails identical bin/rake identical bin/setup
reber__ has quit [Remote host closed the connection]
akem__ has joined #ruby
NightMonkey_ has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NightMonkey has quit [Ping timeout: 245 seconds]
dbugger_ has quit [Ping timeout: 240 seconds]
synaps3 has quit [Remote host closed the connection]
akem has quit [Ping timeout: 252 seconds]
NightMonkey_ is now known as NightMonkey
desperek has quit [Ping timeout: 246 seconds]
akem__ has quit [Quit: Leaving]
akem__ has joined #ruby
darkhanb has joined #ruby
desperek has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akosednar has quit [Ping timeout: 252 seconds]
knight33 has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
za1b1tsu_ has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
desperek has quit [Quit: xoxo]
za1b1tsu_ has joined #ruby
millerti has quit [Ping timeout: 244 seconds]
blackmes1 has quit [Ping timeout: 252 seconds]
Azure has quit [Ping timeout: 245 seconds]
ShekharReddy has quit [Quit: Connection closed for inactivity]
knight33 has quit [Ping timeout: 252 seconds]
jcalla has quit [Quit: Leaving]
orbyt_ has joined #ruby
Fernando-Basso has joined #ruby
za1b1tsu_ has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
wolfshappen has joined #ruby
agent_white has joined #ruby
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
wojnar has quit [Remote host closed the connection]
knight33 has joined #ruby
knight33 has quit [Max SendQ exceeded]
blackmes1 has joined #ruby
ogotai has joined #ruby
<ogotai> anyone knows if it's possible to have httpclient connect to an IP but request a canonical FQDN server name / url once connected?
fluxAeon has quit [Quit: Textual IRC Client: www.textualapp.com]
Fridtjof has quit [Ping timeout: 245 seconds]
Fridtjof has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> ogotai: What's the httpclient involvement? Can you just use Resolv to find the DN from the IP?
<havenwood> ogotai: require 'resolv'; Resolv.getname '1.1.1.1'
<havenwood> #=> "one.one.one.one"
clemens3 has quit [Ping timeout: 252 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
duderonomy has joined #ruby
<ogotai> havenwood: I'm using httpclient already, I suppose all I'm trying to do is use HTTPS and SNI, but the actual TCP connection is tunnelled and therefore the IP/name is different than what should be requested via SNI once connected
<ogotai> specifically, it's a Virtualbox VM, and I port forward 443/tcp to 127.0.0.1 from guest to host, and code connects to 127.0.0.1:443, but should GET "https://fqdn/path", instead of "https://127.0.0.1/path"
<ogotai> so was wondering if anyone had experience with httpclient gem specifically and knows how to set connection and SNI details separately
<ogotai> in a way I don't want it to resolve anything, just connect to IP:port, then use specific SNI server name
venmx has joined #ruby
darix has quit [Quit: may the packets be with you...]
skwurl has joined #ruby
<skwurl> hello anyone!
<skwurl> noob troubles. trying to retrive a string from inside a method to use globally. been skimming through docs for a while to no avail, yet. any insight?
<skwurl> check it out. https://codeshare.io/5ZjzKe
jottr has quit [Ping timeout: 260 seconds]
fluxAeon has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
venmx has quit [Ping timeout: 240 seconds]
<SeepingN> return [fname, lname]
<SeepingN> fname, lname = getname
<SeepingN> may want to return fname.strip to get run of extra spaces on the ends, etc.
<baweaver> return is also not needed.
ellcs has joined #ruby
<skwurl> great it works. now i learn why. thanks
roshanavand has quit [Ping timeout: 244 seconds]
ellcs has quit [Ping timeout: 240 seconds]
<SeepingN> indeed but it helps when you're new to things
<skwurl> so the [] brackets make an array correct?
chouhoulis has quit [Ping timeout: 246 seconds]
leitz has joined #ruby
fluxAeon has quit [Ping timeout: 246 seconds]
<leitz> Can I get some help translating rdoc output? Trying to find the undocumented modules. https://github.com/makhidkarun/ftl_chargen/blob/master/docs/rdoc_c.txt#L457
fluxAeon has joined #ruby
<leitz> This seems possible, but odd, since the module is commented in it's own space. https://github.com/makhidkarun/ftl_chargen/blob/master/docs/rdoc_c.txt#L457
fschuindt has quit [Quit: WeeChat 2.2]
jottr has joined #ruby
lxsameer has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 252 seconds]
sameerynho has quit [Ping timeout: 252 seconds]
<leitz> Found one; hiding in a bad namespace!
fluxAeon has quit [Ping timeout: 252 seconds]
funnel has joined #ruby
spectra has quit [Ping timeout: 260 seconds]
beowuff has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
orbyt_ has joined #ruby
k0mpa has quit [Ping timeout: 256 seconds]
orbyt_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
spectra has joined #ruby
darix has joined #ruby
marmotini_ has quit [Remote host closed the connection]
leitz has quit [Quit: Leaving]
ansraliant has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Read error: Connection reset by peer]
nogic has quit [Ping timeout: 240 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]