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]
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]
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
<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?
<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]
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…]