havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.3, 2.4.5, 2.3.8, 2.6.0-rc1: 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!
stooj has joined #ruby
cnsvc_ has joined #ruby
profetes has quit [Ping timeout: 252 seconds]
C-o is now known as Pascal
roshanavand1 has joined #ruby
patr0clus has quit [Quit: WeeChat 2.2]
roshanavand has quit [Ping timeout: 250 seconds]
roshanavand1 is now known as roshanavand
stooj has quit [Quit: ZNC 1.7.0 - https://znc.in]
stooj has joined #ruby
blackmesa has quit [Quit: WeeChat 2.3]
apow has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
dinfuehr has quit [Ping timeout: 244 seconds]
ellcs has joined #ruby
dinfuehr has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
dinfuehr has quit [Ping timeout: 246 seconds]
ellcs has quit [Ping timeout: 264 seconds]
dinfuehr has joined #ruby
hutch has joined #ruby
phaul has quit [Quit: bye]
dbz has quit [Ping timeout: 268 seconds]
t0xik has quit [Quit: Connection closed for inactivity]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 240 seconds]
serard has quit [Ping timeout: 252 seconds]
RougeR has quit [Quit: Leaving]
theVOguy has joined #ruby
jenrzzz has joined #ruby
apow has quit [Remote host closed the connection]
ogres has joined #ruby
SanguineAnomaly has quit [Ping timeout: 260 seconds]
dinfuehr has quit [Ping timeout: 244 seconds]
weird_error has joined #ruby
SanguineAnomaly has joined #ruby
dinfuehr has joined #ruby
cnsvc_ has joined #ruby
dinfuehr has quit [Ping timeout: 252 seconds]
arescorpio has joined #ruby
AJA4350 has quit [Remote host closed the connection]
dinfuehr has joined #ruby
krawchyk has quit [Quit: krawchyk]
hutch has quit [Ping timeout: 268 seconds]
hutch has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
dviola has quit [Quit: WeeChat 2.3]
ansraliant has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
serard has joined #ruby
weird_error has quit [Quit: weird_error]
nchambers has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
serard has quit [Read error: Connection reset by peer]
lucasb has quit [Quit: Connection closed for inactivity]
samort7 has quit [Ping timeout: 250 seconds]
arescorpio has quit [Read error: No route to host]
houhoulis has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
bambanx has quit [Quit: Leaving]
\void has quit [Quit: So long, and thanks for all the fish.]
orbyt_ has joined #ruby
elcontrastador has quit [Ping timeout: 246 seconds]
cnsvc_ has joined #ruby
samort7 has joined #ruby
tag has quit [Quit: Connection closed for inactivity]
esrse has joined #ruby
kapil____ has joined #ruby
nchambers has quit [Quit: WeeChat 2.2]
ur5us has joined #ruby
cd has joined #ruby
ivanskie has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
Ookma-Kyi has joined #ruby
<Ookma-Kyi> Just started a rails app, how do I make it apply a .html.erb file instead of the starter text?
<Radar> Ookma-Kyi: ?RubyOnRails
<Radar> ?RubyOnRails
<Radar> ?RubyOnRails
<ruby[bot]> Radar: I don't know anything about RubyOnRails
<Radar> oh my god
<Radar> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Radar> We got there in the end.
arescorpio has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
jtdowney has quit [Quit: jtdowney]
<Ookma-Kyi> Ok thanks
jtdowney has joined #ruby
jtdowney has quit [Client Quit]
jtdowney has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
jenrzzz has joined #ruby
dbz has joined #ruby
nchambers has joined #ruby
woodruffw has quit [Ping timeout: 246 seconds]
graphene has quit [Remote host closed the connection]
xall has joined #ruby
graphene has joined #ruby
code_zombie has quit [Quit: Leaving]
woodruffw has joined #ruby
nchambers has quit [Quit: WeeChat 2.2]
jenrzzz has quit [Ping timeout: 268 seconds]
nchambers has joined #ruby
jenrzzz has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
edwardly has joined #ruby
theVOguy has left #ruby [#ruby]
marmotini_ has joined #ruby
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #ruby
braincrash has quit [Quit: bye bye]
jenrzzz has quit [Ping timeout: 246 seconds]
braincrash has joined #ruby
Ookma-Kyi has quit [Quit: Quit]
ivanskie has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
Swyper has quit [Client Quit]
houhoulis has quit [Remote host closed the connection]
ogres has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
Inside has quit [Disconnected by services]
hurricanehrndz has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
cnsvc_ has joined #ruby
nchambers has quit [Quit: WeeChat 2.2]
ur5us has quit [Remote host closed the connection]
kapil____ has quit [Quit: Connection closed for inactivity]
<havenwood> So mruby ended up getting #then, #union and a #to_h block before they landed in Ruby 2.6. :)
brandonkal has quit [Quit: Textual IRC Client: www.textualapp.com]
brandonkal has joined #ruby
nickjj has quit [Ping timeout: 268 seconds]
lytol has quit [Remote host closed the connection]
arescorpio has quit [Read error: Connection reset by peer]
elcontrastador has joined #ruby
<elcontrastador> how do i use nokogiri builder when i have elements that use hyphens and not underscores?
<elcontrastador> what's the best way to handle these non-ruby-word element names?
<al2o3-cr> elcontrastador: x.send :"immediate-leave"
<elcontrastador> perfect
<elcontrastador> al2o3-cr: thanks!
xall has quit [Ping timeout: 244 seconds]
<al2o3-cr> elcontrastador: yw.
sauvin has joined #ruby
KeyJoo has joined #ruby
beef_erikson has joined #ruby
<beef_erikson> need to figure out how to script this irc client. autojoin is a thing that needs to happen lol
* beef_erikson adds that to the to-do list.
<beef_erikson> g'evening/morning/whatever.
marmotini_ has quit [Ping timeout: 250 seconds]
hutch has quit [Ping timeout: 244 seconds]
nickjj has joined #ruby
reber has joined #ruby
marmotini_ has joined #ruby
conta has joined #ruby
aupadhye has joined #ruby
themsay has quit [Ping timeout: 268 seconds]
_whitelogger has joined #ruby
noodle has quit [Quit: /quit]
marmotini has joined #ruby
noodle has joined #ruby
samort7 has quit [Read error: Connection reset by peer]
marmotini_ has quit [Ping timeout: 250 seconds]
marmotini has quit [Ping timeout: 246 seconds]
phaul has joined #ruby
marmotini has joined #ruby
vovs03 has joined #ruby
vovs03 has quit [Remote host closed the connection]
vovs03 has joined #ruby
brandonkal has quit [Quit: Textual IRC Client: www.textualapp.com]
KeyJoo has quit [Ping timeout: 250 seconds]
vovs03 has quit [Remote host closed the connection]
KeyJoo has joined #ruby
roshanavand has joined #ruby
neuraload has joined #ruby
neuraload has quit [Client Quit]
reber has quit [Remote host closed the connection]
marmotini has quit [Remote host closed the connection]
cnsvc_ has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
KeyJoo has quit [Ping timeout: 250 seconds]
Dbugger has joined #ruby
jenrzzz has joined #ruby
Sina has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
beef_erikson has quit [Quit: WeeChat 1.9.1]
beef_erikson has joined #ruby
paranoicsan has joined #ruby
themsay has joined #ruby
piks3l has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
cnsvc_ has joined #ruby
Tempesta has quit [Ping timeout: 250 seconds]
dbz has quit [Remote host closed the connection]
KeyJoo has joined #ruby
clemens3 has joined #ruby
arekushi has quit [Ping timeout: 268 seconds]
maufart__ has joined #ruby
Burgestrand has joined #ruby
neuraload has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
piks3l has quit [Quit: piks3l]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
piks3l has joined #ruby
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
jenrzzz has joined #ruby
paranoicsan has joined #ruby
neuraload has quit [Quit: Leaving]
piks3l has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
arekushi has joined #ruby
jenrzzz has joined #ruby
za1b1tsu has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
cnsvc_ has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
ansraliant has quit [Quit: My planet needs me]
yasserhussain111 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<yasserhussain111> hello guys
<yasserhussain111> I wanted your suggestion on what editor I should use to study ruby's source code
<yasserhussain111> I tried using Clion but didn't have an optimal experience with it.
conta has quit [Ping timeout: 252 seconds]
<beef_erikson> personally I've been using VS Code for the last year or so for any language
jenrzzz has joined #ruby
<beef_erikson> great linux support too if that's your thing
vovs03 has joined #ruby
<beef_erikson> (note: NOT visual studio itself, visual studio code)
KeyJoo has quit [Ping timeout: 250 seconds]
<beef_erikson> yasserhussain111: https://i.imgur.com/kfdW9Qc.png <-- example
yasserhussain111 has quit [Ping timeout: 252 seconds]
Renich has quit [Quit: Renich]
conta has joined #ruby
cnsvc_ has joined #ruby
akosednar has quit [Ping timeout: 268 seconds]
neuraload has joined #ruby
yasserhussain111 has joined #ruby
<yasserhussain111> thanks beef_erikson
<beef_erikson> certainly
<beef_erikson> takes a small bit of time to get used to but the payoff is well worth it
<yasserhussain111> understood
akosednar has joined #ruby
voice_ftp has joined #ruby
lxsameer has joined #ruby
<yasserhussain111> I am using vscode and I am already liking it
<yasserhussain111> Are there any other resources which can help me get upto speed with ruby source code?
<beef_erikson> I'm not a great person to ask. I'm very new to the language and kinda 'just passing through'. Reading a book that is briefly covering ruby
<yasserhussain111> ok. thanks anyway.
<beef_erikson> I've been idling here in case I run into questions. pretty straightforward language. I'd guess there are probably good tutorials out there, it doesn't seem complicated in comparison to others I've worked in
<yasserhussain111> Yeah I understand the language. I was just wondering if I could get help with its implementation details.
<beef_erikson> *nod* hopefully someone else here would be more knowledgable to assist
arekushi has quit [Quit: Gateway shutdown]
ellcs has joined #ruby
themsay has quit [Ping timeout: 272 seconds]
roshanavand has quit [Remote host closed the connection]
themsay has joined #ruby
GodFather has joined #ruby
dbz has joined #ruby
themsay has quit [Ping timeout: 246 seconds]
za1b1tsu has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
themsay has joined #ruby
sagax has quit [Ping timeout: 250 seconds]
dbz has quit [Ping timeout: 272 seconds]
themsay has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
arekushi has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
cnsvc_ has quit [Ping timeout: 256 seconds]
themsay has joined #ruby
jenrzzz has joined #ruby
khalella has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Remote host closed the connection]
paranoicsan is now known as paranoicsan[Away
lucasb has joined #ruby
paranoicsan[Away is now known as paranoicsan
jenrzzz has joined #ruby
profetes_ has quit [Ping timeout: 252 seconds]
profetes has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
<yasserhussain111> @balo
yasserhussain111 has quit [Quit: WeeChat 2.3]
jenrzzz has joined #ruby
conta has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
quipa has joined #ruby
nopolitica has quit [Ping timeout: 250 seconds]
keden has joined #ruby
nopolitica has joined #ruby
cnsvc_ has joined #ruby
jenrzzz has joined #ruby
esrse has quit [Remote host closed the connection]
yasserhussain111 has joined #ruby
yasserhussain111 has left #ruby [#ruby]
yasserhussain111 has joined #ruby
roshanavand has joined #ruby
yasserhussain111 has quit [Client Quit]
yasserhussain111 has joined #ruby
<yasserhussain111> join /python
conta has joined #ruby
yasserhussain111 has left #ruby [#ruby]
roshanavand has quit [Quit: Gone planting!]
cnsvc_ has quit [Ping timeout: 256 seconds]
masterasia has joined #ruby
reber has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
Guest14049 has joined #ruby
bak1an has joined #ruby
yasserhussain111 has joined #ruby
yasserhussain111 has quit [Client Quit]
Nicmavr has quit [Read error: Connection reset by peer]
weird_error has joined #ruby
Nicmavr has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
stooj has quit [Quit: ZNC 1.7.0 - https://znc.in]
stooj has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
saTchymoto has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
weird_error has quit [Quit: weird_error]
adlerdias_ has joined #ruby
roshanavand has joined #ruby
jcalla has quit [Remote host closed the connection]
adlerdias_ is now known as adlerdias
adlerdias has quit [Client Quit]
adlerdias has joined #ruby
cnsvc_ has joined #ruby
Emmanuel_Chanel has joined #ruby
adlerdias_ has joined #ruby
adlerdias has quit [Ping timeout: 240 seconds]
adlerdias_ is now known as adlerdias
AJA4350 has joined #ruby
jenrzzz has joined #ruby
leitz has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
leitz has left #ruby [#ruby]
<beef_erikson> ah hey, my first question. is there a better alternative to irb for a cli?
<tbuehlmann> I prefer pry over irb
<beef_erikson> I'll check it out, thanks
<jhass> ?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
<beef_erikson> beautiful, thank you
<beef_erikson> ahh yeah, much better. cheers.
<beef_erikson> st read the man, very nice indeed.
<beef_erikson> just*
blackswan has quit [Quit: Leaving.]
roshanavand has quit [Ping timeout: 250 seconds]
jcalla has joined #ruby
Tempesta has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
alan_w has joined #ruby
vovs03 has quit [Quit: vovs03]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Quit: AJA4350]
bvdw has joined #ruby
jenrzzz has joined #ruby
AJA4350 has joined #ruby
AJA4350 has quit [Client Quit]
awkwords has quit [Quit: sleepy time]
aupadhye has quit [Remote host closed the connection]
cnsvc_ has joined #ruby
Guest14049 has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
krawchyk has joined #ruby
saTchymoto has quit []
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 246 seconds]
roshanavand has quit [Ping timeout: 250 seconds]
nfk has joined #ruby
maryo has joined #ruby
AJA4350 has joined #ruby
AJA4350 has quit [Client Quit]
AJA4350 has joined #ruby
Fusl has quit [Remote host closed the connection]
Fusl has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
hutch has joined #ruby
roshanavand has joined #ruby
krawchyk_ has joined #ruby
krawchyk has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
Inline has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
krawchyk_ has quit [Client Quit]
conta has quit [Ping timeout: 244 seconds]
krawchyk has joined #ruby
roshanavand has quit [Remote host closed the connection]
polishdub has joined #ruby
eclm has joined #ruby
za1b1tsu has joined #ruby
alan_w has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
chouhoulis has joined #ruby
jenrzzz has joined #ruby
jsral has joined #ruby
jsral has left #ruby [#ruby]
polishdub has quit [Remote host closed the connection]
kapil____ has joined #ruby
keden has quit [Ping timeout: 250 seconds]
keden has joined #ruby
AJA4350 has quit [Remote host closed the connection]
polishdub has joined #ruby
neuraload has quit [Quit: Leaving]
maryo has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
Ookma-Kyi has joined #ruby
<Ookma-Kyi> i have a server running on 0.0.0.0:3000 but i can't access it from my domain help!
cnsvc_ has joined #ruby
paranoicsan has left #ruby [#ruby]
nowhere_man has joined #ruby
<Ookma-Kyi> oops it kicked me into ruby instead of rails sorry
<SeepingN> try 127.0.0.1 instead
krawchyk has quit [Quit: krawchyk]
<Ookma-Kyi> thing is it's a vm with a public ip, how do i get ruby/rails to use my public ip instead?
<bougyman> if it's bound to 0.0.0.0 it would be serving all ips.
<bougyman> You don't have a reverse proxy in front of it?
<kaleido> probly a firewall or security-group somewhere
<Ookma-Kyi> no
<Ookma-Kyi> no reverse proxy
<Ookma-Kyi> am i supposed to use a reverse proxy?
<mnemon> Ookma-Kyi: iptables -L, unless empty you prolly need to add iptables rule for port 3000
cschneid has joined #ruby
<Ookma-Kyi> added and i'm up
<Ookma-Kyi> ty
<mnemon> np
jenrzzz has quit [Ping timeout: 246 seconds]
cschneid has quit [Ping timeout: 252 seconds]
krawchyk has joined #ruby
jenrzzz has joined #ruby
paranoicsan has joined #ruby
maufart__ has quit [Ping timeout: 245 seconds]
Exuma has joined #ruby
kaleido has quit [Quit: out]
kaleido has joined #ruby
phaul has quit [Quit: bye]
arekushi is now known as Guest33581
cnsvc_ has quit [Ping timeout: 256 seconds]
Inside has joined #ruby
Ookma-Kyi has left #ruby [#ruby]
cnsvc_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
lxsameer has quit [Ping timeout: 240 seconds]
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
lxsameer has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
paranoicsan has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
akaiiro has quit [Remote host closed the connection]
jenrzzz has joined #ruby
krawchyk has quit [Quit: krawchyk]
roshanavand has joined #ruby
Fusl has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
Fusl has joined #ruby
code_zombie has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
graphene has quit [Remote host closed the connection]
nakuku has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
gregf_ has quit [Ping timeout: 256 seconds]
graphene has joined #ruby
akaiiro has joined #ruby
Puffball has joined #ruby
Burgestrand has quit [Quit: Closing time!]
ellcs has quit [Ping timeout: 250 seconds]
Renich has joined #ruby
masterasia has quit [Ping timeout: 245 seconds]
roshanavand has quit [Quit: Gone planting!]
clemens3 has quit [Ping timeout: 240 seconds]
nakuku has quit [Ping timeout: 250 seconds]
lxsameer has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Remote host closed the connection]
hutch has quit [Ping timeout: 250 seconds]
jmcgnh has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
themsay has quit [Ping timeout: 240 seconds]
themsay has joined #ruby
keden has quit [Quit: WeeChat 2.3]
chouhoulis has quit [Ping timeout: 250 seconds]
themsay has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
krawchyk has joined #ruby
jmcgnh has joined #ruby
hutch has joined #ruby
lytol has joined #ruby
themsay has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
akaiiro has quit [Ping timeout: 246 seconds]
venmx has joined #ruby
krawchyk has quit [Quit: krawchyk]
krawchyk has joined #ruby
krawchyk has quit [Client Quit]
Aqo has joined #ruby
themsay has quit [Ping timeout: 246 seconds]
eckhardt_ has joined #ruby
venmx has quit [Ping timeout: 246 seconds]
venmx has joined #ruby
krawchyk has joined #ruby
dbz has joined #ruby
dbz has quit [Remote host closed the connection]
paranoicsan has quit [Quit: paranoicsan]
nakuku has joined #ruby
Dbugger has quit [Quit: Leaving]
venmx has quit [Ping timeout: 245 seconds]
sauvin has quit [Remote host closed the connection]
venmx has joined #ruby
krawchyk has quit [Quit: krawchyk]
nopolitica has quit [Ping timeout: 246 seconds]
elcontrastador has quit [Quit: Textual IRC Client: www.textualapp.com]
krawchyk has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
za1b1tsu has quit [Ping timeout: 240 seconds]
cnsvc_ has joined #ruby
<nakuku> Hello guys! Could anyone give me some advice concerning unit testing? I prepared a piece of code to look and questions are included. I don't even know what question should i ask, i just have some code smell and need some advice. Basically, how do i unit test such code? And i don't ask about 'how to use expect etc.', i mean more general principles.
<nakuku> It's little bit of ruby and some pseudocode also so don't mind the mistakes
<ruby[bot]> nakuku: 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
RougeR has joined #ruby
hiroaki has joined #ruby
venmx has quit [Quit: Changing server]
\void has joined #ruby
<havenwood> nakuku: Yes, those seem like good things to test.
<havenwood> nakuku: No need for #tap here and use #present? instead of #presence when you're not using the return value, so just `unless removed_team.present?`: https://gist.github.com/naku-i386/7b675cced14a299e1f013d3dbe6d3f45#file-sdad-rb-L8-L11
adlerdias has quit [Quit: adlerdias]
lxsameer has joined #ruby
<havenwood> nakuku: It's ever-so-slightly nicer to use `Time.current` instead of `Time.zone.now`.
<havenwood> nakuku: There are some internal discrepancies in your code, but I guess you pointed out it's psuedo-code.
<havenwood> nakuku: You might want to read through some open source specs that test similar things, for ideas and patterns. For example, Discourse's services specs: https://github.com/discourse/discourse/tree/master/spec/services
<nakuku> Oh, you're so right regarding presence. Will change to Time.current. Thank you very much, i needed some insight because sometimes i just get stuck thinking too much.
<nakuku> I will look it up!
<nakuku> Thank you <3
eugenmayer has joined #ruby
<eugenmayer> Is there a way with Dir.glob to e.g. find all "Grunfile.js" in all subfolders, but not in all subfolders which have node_modules in the path?
<havenwood> &ri Find
<havenwood> eugenmayer: One option would be to use Find.find ^
sameerynho has joined #ruby
<eugenmayer> i could probably use **/Gruntfile.js and then negate **/node_modules/**/Gruntfile.js from this set
sameerynho is now known as Guest61854
<eugenmayer> find looks very interesting indeed.
<havenwood> eugenmayer: Yeah, **/Gruntfile.js with a #grep_v should do the trick
<havenwood> eugenmayer: .grep_v(/\/node_modules\//)
<havenwood> eugenmayer: Find has the benefit of not looking in all lthe node_modulles/ dirs, if it matters.
gheegh has joined #ruby
maufart__ has joined #ruby
bambanx has joined #ruby
cloaked1 has joined #ruby
Guest61854 has quit [Ping timeout: 272 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
gix has joined #ruby
<havenwood> eugenmayer: Here's a little abstraction on top of Find.find for your case: https://gist.github.com/havenwood/f34a4b2b9f1a578b89d89f657fb7668b
patr0clus has joined #ruby
patr0clus is now known as s3nd1v0g1us
za1b1tsu has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
SeepingN has joined #ruby
cthulchu has left #ruby ["Leaving"]
maufart__ has quit [Ping timeout: 272 seconds]
bambanxx has joined #ruby
bambanx has quit [Ping timeout: 250 seconds]
<eugenmayer> havenwood: solved it with Find.find which is by far more elegant
<eugenmayer> Thanks!
<eugenmayer> esp the skipping part is a huge plus, so that on finding the first node_modules, we do not look deeper - thats just a winner
venmx has joined #ruby
venmx has quit [Client Quit]
venmx has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
StarLord__ has joined #ruby
voice_ftp has quit [Ping timeout: 240 seconds]
bambanxx has quit [Ping timeout: 244 seconds]
voiceftp has joined #ruby
venmx has quit [Quit: leaving]
venmx has joined #ruby
<havenwood> eugenmayer: Nice! You're welcome.
eugenmayer has quit [Quit: Leaving.]
hutch has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
hutch has joined #ruby
cnsvc_ has joined #ruby
Mike11 has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
duckpuppy has joined #ruby
duckpupp- has quit [Ping timeout: 250 seconds]
smhuber has joined #ruby
venmx has quit [Ping timeout: 250 seconds]
venmx has joined #ruby
tag has joined #ruby
cnsvc_ has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
cnsvc_ has quit [Ping timeout: 256 seconds]
cow[away] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leftylink has quit [Quit: decommission]
cow[moo] has joined #ruby
leftylink has joined #ruby
venmx has quit [Ping timeout: 246 seconds]
venmx has joined #ruby
conta has joined #ruby
cow[moo] has quit [Ping timeout: 250 seconds]
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
awkwords has joined #ruby
evdubs_ is now known as evdubs
cnsvc_ has joined #ruby
voiceftp has quit [Read error: Connection reset by peer]
themsay has joined #ruby
voiceftp has joined #ruby
<smhuber> testing
conta has quit [Quit: conta]
<al2o3-cr> 123
Mike11 has quit [Quit: Leaving.]
Exuma has joined #ruby
ellcs has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
nopolitica has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Read error: Connection reset by peer]
<smhuber> Would anyone mind sharing some feedback on the proposed syntax in this proof of concept? https://github.com/LendingHome/pipe_operator#-pipe_operator
<smhuber> It looks pretty similar to the syntax used in Matz' other language https://github.com/matz/streem
<smhuber> Is this something that you could imagine using regularly? Or too confusing? I would love to hear other thoughts to see if its worth exploring further, thank you!
roshanavand has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
reber has quit [Remote host closed the connection]
nopolitica has quit [Quit: WeeChat 2.2]
SeepingN has quit [Ping timeout: 240 seconds]
Freshnuts has joined #ruby
SeepingN has joined #ruby
Exuma has joined #ruby
roshanavand has quit [Quit: Gone planting!]
lxsameer has quit [Ping timeout: 240 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
roshanavand has joined #ruby
venmx has quit [Read error: Connection reset by peer]
hiroaki has quit [Ping timeout: 245 seconds]
awkwords has quit [Quit: sleepy time]
<smhuber> also hello al2o3-cr - been awhile!
orbyt_ has joined #ruby
venmx has joined #ruby
<al2o3-cr> smhuber: for sure =)
crankharder has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
dmitch has joined #ruby
blackswan has joined #ruby
Exuma has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
<dmitch> What is the normal means for building a Ruby CLI app? Do most people just build a gem? The only reason I question it is that this gem would not be a dependency for any other project. It truly would be standalone.
<orbyt_> yes
<orbyt_> that said i prefer node for cli apps
<orbyt_> heroku also released their nifty little framework
<dmitch> True, there are other great options. This is a special case where some already-written code needs to get moved out of an existing project.
blackswan has quit [Ping timeout: 268 seconds]
<dmitch> And since this is standalone, then would this be a case where the Gemfile.lock *should* be checked in? I'd assume so. Normally that's not advised so-as to prevent apps from having dependency versions locked down, but in this case it feels like dependencies should be locked down.
Renich has quit [Quit: Renich]
Renich has joined #ruby
<orbyt_> yes to your first question
Renich has quit [Client Quit]
<orbyt_> that second part sounds backwards
Renich has joined #ruby
<dmitch> Let me restate that second thought: Normally if you're building a gem, you'd specify the dependencies in the gemspec file and *not* check in the Gemfile.lock file. You'd have your versioning restrictions in the gemspec only so as to allow another app using your gem the ability to have some flexibility around the exact transitive dependency versions. In my particular case, there are no consumers of this gem in the form of a dependency; it's strictly a CLI. And
<dmitch> since that's the case and it's basically treated like a real app, I'd want to versioning locked down to ensure all users of the CLI gem have the exact same dependencies.
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
venmx has quit [Ping timeout: 250 seconds]
GodFather has quit [Ping timeout: 250 seconds]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
SeepingN has joined #ruby
blackswan has joined #ruby
krawchyk has quit [Quit: krawchyk]
quipa has quit [Ping timeout: 240 seconds]
polishdub has quit [Quit: leaving]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
<Radar> dmitch: how do the people running this CLI run the CLI? Do they clone down the repo and then run `bin/<your app>`?
crankharder has quit [Ping timeout: 246 seconds]
venmx has joined #ruby
eckhardt_ has joined #ruby
hutch has quit [Ping timeout: 272 seconds]
quipa has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
SeepingN has joined #ruby
bsamorim has joined #ruby
NightMonkey has quit [Quit: ZNC - http://znc.in]
bijan_ has joined #ruby
nine_milli has joined #ruby
bijan_ has quit [Remote host closed the connection]
<nine_milli> is php better?
<SeepingN> no
bijan_ has joined #ruby
<nine_milli> they say it is
<nine_milli> they say ruby is garbage even bash beats it
<bsamorim> How can a ruby process silently die?
<nine_milli> bsamorim, switch to php
<bsamorim> Aside from simply returning with status code 0
NightMonkey has joined #ruby
<bsamorim> nine_milli: ok
<Radar> !ban nine_milli
nine_milli was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
<Radar> Bye.
<Inside> does ruby[bot] run on ruby?
<Radar> Yup.
<Inside> Niiiiice
orbyt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<Inside> Bet you bash couldn't do that
<Inside> :D
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bsamorim> Actually, it prolly runs on ruby so that it can easily eval ruby code
Fusl has quit [Remote host closed the connection]
<bsamorim> #foo's bot runs in foo
<Radar> bsamorim: It actually uses eval.in to do that, but eval.in has... glitches.
<Radar> &>> puts "hi"
<rubydoc> # => hi ...check link for more (https://carc.in/#/r/5rp2)
<baweaver> phaul rewired it.
<Radar> which is why we have rubydoc instead, which runs on carc.in.
<baweaver> It runs on a different one now
<baweaver> Ah, you did know
Fusl has joined #ruby
<Radar> yeah I follow the news :D
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
bijan__ has quit [Ping timeout: 264 seconds]
gheegh has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
SeepingN has joined #ruby
code_zombie has quit [Quit: Leaving]
bijan_ has quit [Ping timeout: 252 seconds]
Fusl has quit [Read error: Connection reset by peer]
cnsvc_ has quit [Read error: Connection reset by peer]
cnsvc_ has joined #ruby
Fusl has joined #ruby
ellcs has quit [Ping timeout: 268 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bsamorim has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
<al2o3-cr> &18>> "foo"
<rubydoc> I'm terribly sorry, I could not evaluate your code because of an error: StandardError:Couldn't match lang/mode
<al2o3-cr> &19>> "foo"
<rubydoc> I'm terribly sorry, I could not evaluate your code because of an error: StandardError:Couldn't match lang/mode
<al2o3-cr> &20>> "foo"
<rubydoc> # => "foo" (https://carc.in/#/r/5rpk)
hutch has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
phaul has joined #ruby
bijan_ has joined #ruby