havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.0, 2.7.2, 2.6.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
lbwski has joined #ruby
splud has joined #ruby
lbwski has quit [Ping timeout: 260 seconds]
codespectator has quit [Ping timeout: 260 seconds]
ur5us_ has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
jenrzzz has quit [Remote host closed the connection]
lbwski has joined #ruby
bucareli has joined #ruby
gearnode has quit [Ping timeout: 272 seconds]
znz_jp has joined #ruby
goepsilongo has quit [Quit: WeeChat 3.0]
split-brain has quit [Remote host closed the connection]
lbwski has quit [Ping timeout: 246 seconds]
niv has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
lbwski has joined #ruby
neonloop2 has quit [Quit: Bridge terminating on SIGTERM]
neonloop has joined #ruby
orbyt_ has joined #ruby
mniip has quit [Ping timeout: 600 seconds]
GankMove has quit [Ping timeout: 245 seconds]
_merlim_ has quit [Quit: Connection closed]
ttoocs has quit [Quit: WeeChat 3.0.1]
lbwski has quit [Ping timeout: 276 seconds]
lbwski has joined #ruby
slowly_s1 has quit [Ping timeout: 276 seconds]
slowly_s1 has joined #ruby
lbwski has quit [Ping timeout: 276 seconds]
kinduff4 has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
DTZUZU has joined #ruby
shtirlic_ has joined #ruby
_merlim_ has joined #ruby
hiroaki_ has quit [Ping timeout: 272 seconds]
s3nd1v0g1us has quit [Quit: WeeChat 3.0.1]
postmodern has joined #ruby
shtirlic has quit [Ping timeout: 264 seconds]
niv has quit [Ping timeout: 240 seconds]
Rudd0 has quit [Ping timeout: 240 seconds]
niv has joined #ruby
gix has quit [Ping timeout: 260 seconds]
universa1 has quit [Ping timeout: 245 seconds]
Fridtjof has quit [Ping timeout: 240 seconds]
Fridtjof has joined #ruby
universa1 has joined #ruby
jenrzzz has joined #ruby
neshpion has joined #ruby
neshpion has quit [Quit: neshpion]
neshpion has joined #ruby
havenwood has quit [Quit: ZNC - https://znc.in]
havenwood has joined #ruby
havenwood has joined #ruby
bucareli has quit [Ping timeout: 276 seconds]
lbwski has joined #ruby
Mia has quit [Ping timeout: 245 seconds]
deviantfero has joined #ruby
_merlim_ has quit [Quit: Connection closed]
lbwski has quit [Ping timeout: 260 seconds]
yann-kaelig has quit []
bucareli has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ChmEarl has quit [Quit: Leaving]
_aeris has joined #ruby
_aeris_ has quit [Ping timeout: 268 seconds]
_aeris is now known as _aeris_
iamgr00t_ has quit [Ping timeout: 260 seconds]
DaRock has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
Rudd0 has joined #ruby
DaRock has joined #ruby
mwlang has joined #ruby
mwlang has quit [Client Quit]
iamgr00t has joined #ruby
ur5us_ has quit [Ping timeout: 240 seconds]
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
bucareli has quit [Quit: leaving]
mniip has joined #ruby
m27frogy has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
endorama has quit [Ping timeout: 272 seconds]
neshpion has quit [Quit: neshpion]
Adele-bot has joined #ruby
Adele-bot has left #ruby [#ruby]
actuallybatman has joined #ruby
DaRock has quit [Ping timeout: 245 seconds]
lbwski has joined #ruby
actuallybatman has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
Adele-bot has joined #ruby
<Adele-bot> Hello there #ruby!
endorama has joined #ruby
lbwski has quit [Ping timeout: 276 seconds]
<Adele-bot> Cya!
Adele-bot has left #ruby [#ruby]
ramfjord has quit [Ping timeout: 256 seconds]
Rudd0 has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
siery has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
lbwski has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
hsmath has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
jenrzzz has joined #ruby
Mrgoose has quit [Ping timeout: 260 seconds]
CrazyEddy has quit [Remote host closed the connection]
CrazyEddy has joined #ruby
lbwski has quit [Ping timeout: 245 seconds]
CrazyEddy has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
CrazEd_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
CrazEd_ has quit [Quit: Reconnecting]
zap_ has joined #ruby
deviantfero has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
Emmanuel_Chanel has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
trautwein has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
peteretep_ has joined #ruby
peteretep_ has quit [Client Quit]
peteretep has joined #ruby
landakram has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
teclator has joined #ruby
jenrzzz has joined #ruby
dviola has quit [Ping timeout: 264 seconds]
dviola has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
olferino has joined #ruby
olferino has quit [Excess Flood]
jla has joined #ruby
olferino has joined #ruby
olferino has quit [Excess Flood]
nofxx_ has joined #ruby
nofxx__ has quit [Ping timeout: 264 seconds]
bamdad_ has quit [Remote host closed the connection]
lbwski has joined #ruby
Rounin has joined #ruby
bamdad has joined #ruby
fernando-basso has joined #ruby
vondruch has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
landakram has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
legahc- has joined #ruby
r3my_ has joined #ruby
Kilobyte22 has joined #ruby
lol768_ has joined #ruby
AutomationD_ has joined #ruby
FluffyFoxeh has joined #ruby
Phoebus__ has joined #ruby
manveru_ has joined #ruby
englishm__ has joined #ruby
ec_ has joined #ruby
hsmath has quit [Quit: Connection closed for inactivity]
infernixx has joined #ruby
newton_ has joined #ruby
Hien_ has joined #ruby
ljarvis_ has joined #ruby
ashby has joined #ruby
olferino has joined #ruby
olferino has quit [Max SendQ exceeded]
russt_ has joined #ruby
marahin_ has joined #ruby
nemesit|znc_ has joined #ruby
TheMoonMaster_ has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
matthewd_ has joined #ruby
tekmaster has joined #ruby
twe4ked_ has joined #ruby
GGMethos_ has joined #ruby
lbwski has quit [Ping timeout: 264 seconds]
nertzy has joined #ruby
Kilo`byte has quit [*.net *.split]
Hien has quit [*.net *.split]
Phoebus_ has quit [*.net *.split]
infernix has quit [*.net *.split]
lol768 has quit [*.net *.split]
legahc has quit [*.net *.split]
Frogging101 has quit [*.net *.split]
manveru has quit [*.net *.split]
ec has quit [*.net *.split]
r3my has quit [*.net *.split]
englishm_ has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
tekacs has quit [*.net *.split]
AutomationD has quit [*.net *.split]
newton has quit [*.net *.split]
russt has quit [*.net *.split]
GGMethos has quit [*.net *.split]
JoshAshby has quit [*.net *.split]
twe4ked has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
marahin has quit [*.net *.split]
matthewd has quit [*.net *.split]
FluffyFoxeh is now known as Frogging101
infernixx is now known as infernix
Phoebus__ is now known as Phoebus_
matthewd_ is now known as matthewd
manveru_ is now known as manveru
AutomationD_ is now known as AutomationD
r3my_ is now known as r3my
ec_ is now known as ec
fercell has joined #ruby
ferr_ has quit [Ping timeout: 264 seconds]
gearnode has joined #ruby
fercell has quit [Ping timeout: 245 seconds]
ferr_ has joined #ruby
bamdad has quit [Remote host closed the connection]
bamdad has joined #ruby
jla has left #ruby [#ruby]
camilasan has joined #ruby
camilasan_ has joined #ruby
ferr_ has quit [Quit: ZNC - https://znc.in]
blob64 has joined #ruby
dviola has left #ruby ["WeeChat 3.0.1"]
dviola has joined #ruby
marahin_ is now known as marahin
marahin has joined #ruby
marahin has quit [Changing host]
jenrzzz has quit [Ping timeout: 256 seconds]
naftilos76 has joined #ruby
<naftilos76> Is there a way to execute STDIN.gets and somehow force a string to be printed as if i did that (after executing STDIN.gets) but without having pressed ENTER?
<naftilos76> like a default value that the user would usually not have to enter but instead just press Enter for the execution to proceed
<leah2> not with gets
<naftilos76> leah2: is there another method that you know of?
<naftilos76> ok thanks so much
TCZ has joined #ruby
ramfjord has joined #ruby
Rudd0 has joined #ruby
fercell has joined #ruby
extrowerk has joined #ruby
extrowerk has left #ruby [#ruby]
lbwski has joined #ruby
lbwski has quit [Ping timeout: 246 seconds]
blob64 has quit [Ping timeout: 265 seconds]
va5c0 has joined #ruby
tekku has joined #ruby
LtHummus has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
al2o3-cr has joined #ruby
LtHummus has joined #ruby
gearnode has quit [Ping timeout: 258 seconds]
m27frogy has joined #ruby
postmodern has quit [Quit: Leaving]
BTRE has quit [Read error: Connection reset by peer]
zap_ is now known as CrazyEddy
lbwski has joined #ruby
<tempate> Hello there. I just started a Ruby project a few days ago: https://github.com/tempate/Mus . It's the first project I write in Ruby, notwithstanding silly scripts and 2020's Advent of Code. If anyone has any comments or suggestions I would love to hear them.
kinduff4 has quit [Changing host]
kinduff4 has joined #ruby
kinduff4 is now known as kinduff
<leah2> tempate: for main.rb, no need to use globals here. adding ./ is also not really useful (and breaks absolute paths)
siery has joined #ruby
<leah2> and use require_relative instead of load
<tempate> leah2: can I use $options in mus.rb without it being global?
<leah2> tempate: for mus.rb, you can use [...]*4 to duplicate an array
<leah2> tempate: ah you use it there. i'd use a Constant then
<tempate> leah2: oh, alright
kinduff has quit [Quit: The Lounge - https://thelounge.chat]
<leah2> for remove_cards_from_deck, deck - cards may work, not sure about recurring values
<tempate> leah2: oh, right, and that way I don't need to flatten
<leah2> yes
kinduff has joined #ruby
<tempate> leah2: yeah, deck - cards removes all instances of the elements in cards from deck
<leah2> and you just want the first one as far as i see
<tempate> which is not what I want to do
lbwski has quit [Ping timeout: 245 seconds]
gearnode has joined #ruby
<tempate> leah2: thank you very much for all of your comments
<leah2> tempate: for count_repetitions look at Array#tally from 2.7
<tempate> leah2: oh, right, I had used that before and completely forgot about it
<leah2> in line 189 printf would be more elegant
<tempate> leah2: yeah, that's true
<tempate> leah2: what do you think about https://bpa.st/4CNA ?
<tempate> is there a more elegant way to do it?
shtirlic_ has quit [Quit: leaving]
shtirlic has joined #ruby
vasilakisfil has joined #ruby
<leah2> a.each_with_index.max[1]
<vasilakisfil> hi, I have this simple gist https://gist.github.com/vasilakisfil/efddaa5d6143859e3ca1991ab521faf7 and I want to convert it to support 3.0 with the minimal changes. But it seems like it's not that easy because I might call the method with 2 different ways
<vasilakisfil> do I need to look inside the args and branch depending on what I find inside ?
TCZ has quit [Quit: Szukalem wlasnie takich cytatow, wielkie dzieki]
bougyman has quit [Excess Flood]
bougyman has joined #ruby
jenrzzz has joined #ruby
siery-bot has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
lbwski has joined #ruby
siery-bot has left #ruby [#ruby]
siery-bot has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
dinfuehr has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
ruby_noob has joined #ruby
TCZ has joined #ruby
siery-bot has left #ruby [#ruby]
<vasilakisfil> actually my case looks more like that: https://gist.github.com/vasilakisfil/0f1cffd45fa651e1f3e5c5a697c15d81 This gist works OK in Ruby 2.x but in 3.x it won't. And I really don't think I ll make it work, being able to call the same method (eventually for all cases method_missing is being called) with hash, keywords, no arguments or an array.
BTRE has joined #ruby
akem has quit [Ping timeout: 246 seconds]
akem has joined #ruby
deviantfero has joined #ruby
lbwski has quit [Ping timeout: 260 seconds]
gremax- is now known as gremax
lbwski has joined #ruby
<adam12> vasilakisfil: Hard to follow your example, but have you seen Benoit's article on delegation? https://eregon.me/blog/2021/02/13/correct-delegation-in-ruby-2-27-3.html
croberts has joined #ruby
ruby_noob has quit [Ping timeout: 240 seconds]
AndreYuhai has joined #ruby
ChmEarl has joined #ruby
<AndreYuhai> Which one is better?
michael_mbp has quit [Ping timeout: 260 seconds]
va5c0 has quit [Ping timeout: 264 seconds]
va5c0 has joined #ruby
gray_-_wolf has quit [Quit: ZNC 1.7.1 - https://znc.in]
jenrzzz has joined #ruby
<adam12> AndreYuhai: Chain your enumerable. 30.times.map { Person.new }
<AndreYuhai> adam12, Oh didn't know that! Thank you!
al2o3-cr has joined #ruby
michael_mbp has joined #ruby
al2o3-cr has quit [Client Quit]
jenrzzz has quit [Ping timeout: 276 seconds]
va5c0 has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
va5c0 has joined #ruby
gray_-_wolf has joined #ruby
<vasilakisfil> thanks adam12
fercell has quit [Ping timeout: 245 seconds]
fercell has joined #ruby
naftilos76 has quit [Ping timeout: 276 seconds]
_dg1727 has joined #ruby
split-brain has joined #ruby
dg1727_ has quit [Ping timeout: 268 seconds]
hiroaki_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
ashby is now known as JoshAshby
va5c0 has quit [Ping timeout: 264 seconds]
teardown has quit [Ping timeout: 268 seconds]
deviantfero has quit [Quit: WeeChat 3.0]
ramfjord has quit [Ping timeout: 265 seconds]
teardown has joined #ruby
TCZ has quit [Quit: Czesc]
dfucci has quit [Ping timeout: 245 seconds]
cuerbot has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
dfucci has joined #ruby
Emmanuel_Chanel has joined #ruby
dfucci has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
trautwein has quit [Ping timeout: 264 seconds]
siery has quit [Ping timeout: 246 seconds]
jonhg has joined #ruby
dfucci has joined #ruby
jonhg has quit [Ping timeout: 260 seconds]
dfucci has quit [Ping timeout: 246 seconds]
jla has joined #ruby
lbwski has quit [Ping timeout: 260 seconds]
lbwski has joined #ruby
jenrzzz has joined #ruby
deviantfero has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
jonhg has joined #ruby
shtirlic_ has joined #ruby
shtirlic has quit [Ping timeout: 256 seconds]
jonhg has quit [Ping timeout: 245 seconds]
shtirlic has joined #ruby
dfucci has joined #ruby
shtirlic_ has quit [Ping timeout: 264 seconds]
neshpion has joined #ruby
lbwski has quit [Ping timeout: 246 seconds]
gearnode has quit [Ping timeout: 240 seconds]
jla has left #ruby [#ruby]
dfucci has quit [Ping timeout: 264 seconds]
cheezy-1 has joined #ruby
shtirlic_ has joined #ruby
cheezy-1 has left #ruby [#ruby]
jonhg has joined #ruby
WA9ACE has joined #ruby
shtirlic has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
bvdw has quit [Quit: The Lounge - https://thelounge.chat]
cd has joined #ruby
bvdw has joined #ruby
lbwski has joined #ruby
dfucci has joined #ruby
cow[moo] has joined #ruby
evdubs_ has joined #ruby
evdubs has quit [Ping timeout: 264 seconds]
evdubs has joined #ruby
lbwski has quit [Ping timeout: 245 seconds]
evdubs_ has quit [Ping timeout: 240 seconds]
SuperLag has quit [Ping timeout: 265 seconds]
SuperLag has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lbwski has joined #ruby
deviantfero has quit [Ping timeout: 265 seconds]
cow[moo] has joined #ruby
lbwski has quit [Ping timeout: 245 seconds]
akem_ has joined #ruby
dfucci has quit [Ping timeout: 246 seconds]
akem_ has quit [Client Quit]
akem_ has joined #ruby
akem has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Read error: Connection reset by peer]
lbwski has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deviantfero has joined #ruby
hiroaki_ has quit [Ping timeout: 272 seconds]
dinfuehr has quit [Ping timeout: 245 seconds]
cow[moo] has joined #ruby
nertzy_ has joined #ruby
jonhg has quit [Remote host closed the connection]
jonhg has joined #ruby
dinfuehr has joined #ruby
nertzy has quit [Ping timeout: 246 seconds]
jla has joined #ruby
naftilos76 has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
lbwski has quit [Ping timeout: 260 seconds]
newton_ is now known as newton
TCZ has joined #ruby
dfucci has joined #ruby
hiroaki_ has joined #ruby
Nahra has joined #ruby
fandre1986 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rafadc has joined #ruby
jenrzzz has joined #ruby
lbwski has joined #ruby
ur5us_ has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
howdoi has joined #ruby
snickers has joined #ruby
ruby_noob has joined #ruby
<snickers> Hi, I try to use git gem, but have some problems. https://pastebin.pl/view/09474e33 someone have a clue whats I do wrong?
lbwski has quit [Ping timeout: 260 seconds]
<adam12> snickers: Looks like a bug with the gem itself.
AndreYuhai has quit [Remote host closed the connection]
<adam12> snickers: I'd see if you can get the output of the command it's running and see if it works running in a shell.
<snickers> it not work either
<snickers> It's also looks that gem don't create branch, but not log any error on it
tpanarch1st has joined #ruby
tpanarch1st_ has joined #ruby
dfucci has quit [Ping timeout: 245 seconds]
jonhg has joined #ruby
<snickers> adam12 I tried older version of this gam, but it fail in the same way.
<adam12> snickers: And `git status` works inside /Users/snickers/repo ?
<snickers> adam12 yes
vondruch has quit [Read error: Connection reset by peer]
<adam12> snickers: is it this gem
<snickers> adam12 yes
bergalath has joined #ruby
actuallybatman has joined #ruby
<weaksauce> are you sure you don't want Git.open(...)
<snickers> weaksauce I try Git.open also. Generally I start with empty directory and want to init git, create branch and copy file
lbwski has joined #ruby
naftilos76 has quit [Quit: Leaving]
fandre1986 has quit [Quit: Connection closed]
<weaksauce> snickers do you have write permissions?
<snickers> weaksauce yes
<snickers> it's also look that after Git.init it create .git directory
<weaksauce> perhaps check in on those and see if you are doing something differently
bergalath has quit [Quit: Leaving]
split-brain has quit [Remote host closed the connection]
Lyubo1 has quit [Ping timeout: 265 seconds]
Lyubo1 has joined #ruby
<snickers> weaksauce I can find any difference.
gix has joined #ruby
<weaksauce> it seems that git didn't work either though?
lbwski has quit [Ping timeout: 260 seconds]
actuallybatman has quit [Ping timeout: 276 seconds]
cloud69 has joined #ruby
<snickers> weaksauce git in command like works
<snickers> s/like/line/
jla has quit [Ping timeout: 260 seconds]
<weaksauce> snickers you should commit first
<snickers> weaksauce create and checkout branch from this gem don't work either
<weaksauce> snickers git.status will error until git.add(...) and git.commit("some message") are done
<weaksauce> and then it works
<snickers> weaksauce first, before commit I need to create branch and checkout to it, then I can do git add and commit. But git checkout don't work
<weaksauce> snickers you are on master branch
<snickers> but I don't want commit anything to master
<weaksauce> i don't know then... use a different gem?
<weaksauce> use bare git first
<weaksauce> as in shell out the initial commands
<snickers> weaksauce I just start to use system and command line git
<weaksauce> snickers your other option is to fork their gem and fix it for your use case
<snickers> weaksauce I know, but this is to hard for my :(
gearnode has joined #ruby
<weaksauce> snickers pragmatically i'd just use system and check if it succeeded with some kind of File or Dir command
<snickers> system call works for me
croberts has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
s3nd1v0g1us has joined #ruby
<tempate> Is there a way to list all dependencies to install for a project or something?
<tempate> or all the requirements?
<tempate> So you can just run something like "gem install requirements.txt"
<snickers> Gemfile?
<weaksauce> tempate Gemfiles
<weaksauce> and gemfile.lock specifically will have everything
<weaksauce> bundle install will take care of that
<tempate> can I automatically generate it?
<weaksauce> tempate not to my knowledge
<weaksauce> gem list would show you all the gems installed
<weaksauce> but that's globally and not for one particular project and not the format that a gemfile is in
<adam12> tempate: Is this for an existing project or a new project?
<tempate> adam12: an existing project I started like 3 days ago
<adam12> tempate: Is it a project that someone would use a package manager to install (like a CLI tool?) or a web app that they might clone source to run.
<weaksauce> tempate you just make it now... 3 days is not a lot of gems being installed
<weaksauce> in your project root. bundle init
<weaksauce> bundle add "some gem"
<weaksauce> bundle exec ruby "your script"
<weaksauce> and be done with it
<tempate> adam12: it's a project to be cloned. Just to clarify, it's not a webapp.
<adam12> tempate: You want the bundle steps that weaksauce pasted above.
<tempate> Fabulous
<tempate> Thanks a lot to both of you!
<tempate> So should I always run the code with bundle exec ruby main.rb from now on?
<adam12> tempate: You can add `require "bundler/setup"` at the top of main.rb and then it will do it for you.
<adam12> tempate: But `bundle exec` (or even better, generating a "binstub") is a good practice to ensure you're using the specified versions.
<tempate> adam12: hmmm, so which one should I stick with?
<adam12> tempate: Ruby uses an array called $LOAD_PATH to look for files. When you bundle exec (or require bundle/setup) it makes the $LOAD_PATH look correct, for the versions of dependencies you specify.
<adam12> tempate: It doesnt' matter, but for consistency, `bundle exec`.
<tempate> adam12: oh, alright, thank you very much
<adam12> At least until you get a bit more familiar with bundler.
<tempate> Right now I'm only using slop and json. I just wanted to get the hang of it before moving on.
deviantfero has quit [Ping timeout: 246 seconds]
va5c0 has joined #ruby
Nahra has quit [Quit: leaving]
va5c0 has quit [Ping timeout: 260 seconds]
siery has joined #ruby
dfucci has joined #ruby
dfucci has quit [Ping timeout: 245 seconds]
TCZ has quit [Quit: Czesc]
vasilakisfil has left #ruby ["Konversation terminated!"]
dfucci has joined #ruby
lbwski has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
lipoqil_ has joined #ruby
towo_ has joined #ruby
lipoqil has quit [Ping timeout: 240 seconds]
towo has quit [Quit: No Ping reply in 180 seconds.]
Rounin has quit [Ping timeout: 265 seconds]
lbwski has quit [Ping timeout: 260 seconds]
dfucci has joined #ruby
bucareli has joined #ruby
jonhg has quit [Remote host closed the connection]
jonhg has joined #ruby
dfucci has quit [Ping timeout: 264 seconds]
rwb has quit [Remote host closed the connection]
ur5us_ has quit [Ping timeout: 240 seconds]
jonhg has quit [Ping timeout: 245 seconds]
rwb has joined #ruby
rwb has quit [Remote host closed the connection]
rwb has joined #ruby
rwb has quit [Remote host closed the connection]
TCZ has joined #ruby
rwb has joined #ruby