00:01
lbwski has joined #ruby
00:04
splud has joined #ruby
00:06
lbwski has quit [Ping timeout: 260 seconds]
00:07
codespectator has quit [Ping timeout: 260 seconds]
00:10
ur5us_ has joined #ruby
00:12
kristian_on_linu has quit [Remote host closed the connection]
00:12
jenrzzz has quit [Remote host closed the connection]
00:17
lbwski has joined #ruby
00:18
bucareli has joined #ruby
00:20
gearnode has quit [Ping timeout: 272 seconds]
00:22
znz_jp has joined #ruby
00:22
goepsilongo has quit [Quit: WeeChat 3.0]
00:26
split-brain has quit [Remote host closed the connection]
00:33
lbwski has quit [Ping timeout: 246 seconds]
00:44
niv has joined #ruby
01:00
lbwski has joined #ruby
01:03
neonloop2 has quit [Quit: Bridge terminating on SIGTERM]
01:04
neonloop has joined #ruby
01:05
orbyt_ has joined #ruby
01:05
mniip has quit [Ping timeout: 600 seconds]
01:05
GankMove has quit [Ping timeout: 245 seconds]
01:06
_merlim_ has quit [Quit: Connection closed]
01:07
ttoocs has quit [Quit: WeeChat 3.0.1]
01:09
lbwski has quit [Ping timeout: 276 seconds]
01:22
lbwski has joined #ruby
01:25
slowly_s1 has quit [Ping timeout: 276 seconds]
01:25
slowly_s1 has joined #ruby
01:31
lbwski has quit [Ping timeout: 276 seconds]
01:44
kinduff4 has joined #ruby
01:44
kinduff has quit [Read error: Connection reset by peer]
02:00
DTZUZU has joined #ruby
02:00
shtirlic_ has joined #ruby
02:01
_merlim_ has joined #ruby
02:01
hiroaki_ has quit [Ping timeout: 272 seconds]
02:02
s3nd1v0g1us has quit [Quit: WeeChat 3.0.1]
02:03
postmodern has joined #ruby
02:04
shtirlic has quit [Ping timeout: 264 seconds]
02:04
niv has quit [Ping timeout: 240 seconds]
02:09
Rudd0 has quit [Ping timeout: 240 seconds]
02:14
niv has joined #ruby
02:15
gix has quit [Ping timeout: 260 seconds]
02:32
universa1 has quit [Ping timeout: 245 seconds]
02:33
Fridtjof has quit [Ping timeout: 240 seconds]
02:43
Fridtjof has joined #ruby
02:44
universa1 has joined #ruby
02:48
jenrzzz has joined #ruby
03:05
neshpion has joined #ruby
03:13
neshpion has quit [Quit: neshpion]
03:14
neshpion has joined #ruby
03:18
havenwood has joined #ruby
03:18
havenwood has joined #ruby
03:21
bucareli has quit [Ping timeout: 276 seconds]
03:26
lbwski has joined #ruby
03:31
Mia has quit [Ping timeout: 245 seconds]
03:35
deviantfero has joined #ruby
03:43
_merlim_ has quit [Quit: Connection closed]
03:45
lbwski has quit [Ping timeout: 260 seconds]
03:56
yann-kaelig has quit []
03:56
bucareli has joined #ruby
03:59
jenrzzz has quit [Ping timeout: 246 seconds]
03:59
ChmEarl has quit [Quit: Leaving]
04:03
_aeris has joined #ruby
04:04
_aeris_ has quit [Ping timeout: 268 seconds]
04:04
_aeris is now known as _aeris_
04:04
iamgr00t_ has quit [Ping timeout: 260 seconds]
04:07
DaRock has quit [Remote host closed the connection]
04:11
howdoi has quit [Quit: Connection closed for inactivity]
04:12
Rudd0 has joined #ruby
04:16
DaRock has joined #ruby
04:18
mwlang has joined #ruby
04:18
mwlang has quit [Client Quit]
04:19
iamgr00t has joined #ruby
04:19
ur5us_ has quit [Ping timeout: 240 seconds]
04:22
cuerbot has joined #ruby
04:25
elcuervo has quit [Ping timeout: 264 seconds]
04:25
jenrzzz has joined #ruby
04:34
dinfuehr has quit [Ping timeout: 240 seconds]
04:35
dinfuehr has joined #ruby
04:40
bucareli has quit [Quit: leaving]
05:00
mniip has joined #ruby
05:03
m27frogy has quit [Ping timeout: 260 seconds]
05:17
jenrzzz has quit [Ping timeout: 264 seconds]
05:22
endorama has quit [Ping timeout: 272 seconds]
05:23
neshpion has quit [Quit: neshpion]
05:26
Adele-bot has joined #ruby
05:28
Adele-bot has left #ruby [#ruby]
05:36
actuallybatman has joined #ruby
05:37
DaRock has quit [Ping timeout: 245 seconds]
05:42
lbwski has joined #ruby
05:42
actuallybatman has quit [Ping timeout: 245 seconds]
05:43
jenrzzz has joined #ruby
05:43
Adele-bot has joined #ruby
05:43
<
Adele-bot >
Hello there #ruby!
05:44
endorama has joined #ruby
05:47
lbwski has quit [Ping timeout: 276 seconds]
05:48
Adele-bot has left #ruby [#ruby]
05:52
ramfjord has quit [Ping timeout: 256 seconds]
05:52
Rudd0 has quit [Ping timeout: 260 seconds]
05:52
jenrzzz has quit [Ping timeout: 240 seconds]
05:52
siery has quit [Ping timeout: 260 seconds]
05:54
jenrzzz has joined #ruby
05:58
lbwski has joined #ruby
06:00
jenrzzz has quit [Ping timeout: 276 seconds]
06:01
hsmath has joined #ruby
06:02
Mia has joined #ruby
06:02
Mia has joined #ruby
06:02
Mia has quit [Changing host]
06:04
jenrzzz has joined #ruby
06:06
Mrgoose has quit [Ping timeout: 260 seconds]
06:07
CrazyEddy has quit [Remote host closed the connection]
06:09
CrazyEddy has joined #ruby
06:16
lbwski has quit [Ping timeout: 245 seconds]
06:17
CrazyEddy has quit [Remote host closed the connection]
06:18
jenrzzz has quit [Ping timeout: 245 seconds]
06:19
jenrzzz has joined #ruby
06:26
CrazEd_ has joined #ruby
06:26
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
06:27
jenrzzz has quit [Ping timeout: 256 seconds]
06:28
CrazEd_ has quit [Quit: Reconnecting]
06:33
zap_ has joined #ruby
06:39
deviantfero has quit [Ping timeout: 264 seconds]
06:41
jenrzzz has joined #ruby
06:44
Emmanuel_Chanel has joined #ruby
06:47
jenrzzz has quit [Ping timeout: 260 seconds]
06:51
trautwein has joined #ruby
06:54
jenrzzz has joined #ruby
06:58
jenrzzz has quit [Ping timeout: 245 seconds]
07:04
jenrzzz has joined #ruby
07:07
peteretep_ has joined #ruby
07:08
peteretep_ has quit [Client Quit]
07:09
peteretep has joined #ruby
07:15
landakram has joined #ruby
07:24
jenrzzz has quit [Ping timeout: 246 seconds]
07:26
teclator has joined #ruby
07:30
jenrzzz has joined #ruby
07:37
dviola has quit [Ping timeout: 264 seconds]
07:39
dviola has joined #ruby
07:39
jenrzzz has quit [Ping timeout: 260 seconds]
07:44
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:49
jenrzzz has joined #ruby
07:58
olferino has joined #ruby
07:58
olferino has quit [Excess Flood]
08:02
jla has joined #ruby
08:03
olferino has joined #ruby
08:03
olferino has quit [Excess Flood]
08:03
nofxx_ has joined #ruby
08:07
nofxx__ has quit [Ping timeout: 264 seconds]
08:14
bamdad_ has quit [Remote host closed the connection]
08:14
lbwski has joined #ruby
08:15
Rounin has joined #ruby
08:16
bamdad has joined #ruby
08:16
fernando-basso has joined #ruby
08:23
vondruch has joined #ruby
08:23
vondruch has quit [Read error: Connection reset by peer]
08:24
vondruch has joined #ruby
08:27
landakram has quit [Ping timeout: 240 seconds]
08:29
orbyt_ has joined #ruby
08:29
legahc- has joined #ruby
08:29
r3my_ has joined #ruby
08:29
Kilobyte22 has joined #ruby
08:29
lol768_ has joined #ruby
08:29
AutomationD_ has joined #ruby
08:29
FluffyFoxeh has joined #ruby
08:30
Phoebus__ has joined #ruby
08:30
manveru_ has joined #ruby
08:30
englishm__ has joined #ruby
08:30
ec_ has joined #ruby
08:31
hsmath has quit [Quit: Connection closed for inactivity]
08:32
infernixx has joined #ruby
08:32
newton_ has joined #ruby
08:32
Hien_ has joined #ruby
08:32
ljarvis_ has joined #ruby
08:32
ashby has joined #ruby
08:33
olferino has joined #ruby
08:33
olferino has quit [Max SendQ exceeded]
08:33
russt_ has joined #ruby
08:34
marahin_ has joined #ruby
08:34
nemesit|znc_ has joined #ruby
08:34
TheMoonMaster_ has joined #ruby
08:34
nertzy has quit [Read error: Connection reset by peer]
08:34
matthewd_ has joined #ruby
08:34
tekmaster has joined #ruby
08:34
twe4ked_ has joined #ruby
08:34
GGMethos_ has joined #ruby
08:34
lbwski has quit [Ping timeout: 264 seconds]
08:35
nertzy has joined #ruby
08:43
Kilo`byte has quit [*.net *.split]
08:43
Hien has quit [*.net *.split]
08:43
Phoebus_ has quit [*.net *.split]
08:43
infernix has quit [*.net *.split]
08:43
lol768 has quit [*.net *.split]
08:43
legahc has quit [*.net *.split]
08:43
Frogging101 has quit [*.net *.split]
08:43
manveru has quit [*.net *.split]
08:43
ec has quit [*.net *.split]
08:43
r3my has quit [*.net *.split]
08:43
englishm_ has quit [*.net *.split]
08:43
nemesit|znc has quit [*.net *.split]
08:43
tekacs has quit [*.net *.split]
08:43
AutomationD has quit [*.net *.split]
08:43
newton has quit [*.net *.split]
08:43
russt has quit [*.net *.split]
08:43
GGMethos has quit [*.net *.split]
08:43
JoshAshby has quit [*.net *.split]
08:43
twe4ked has quit [*.net *.split]
08:43
TheMoonMaster has quit [*.net *.split]
08:43
marahin has quit [*.net *.split]
08:43
matthewd has quit [*.net *.split]
08:43
FluffyFoxeh is now known as Frogging101
08:43
infernixx is now known as infernix
08:43
Phoebus__ is now known as Phoebus_
08:43
matthewd_ is now known as matthewd
08:43
manveru_ is now known as manveru
08:43
AutomationD_ is now known as AutomationD
08:43
r3my_ is now known as r3my
08:43
ec_ is now known as ec
08:48
fercell has joined #ruby
08:50
ferr_ has quit [Ping timeout: 264 seconds]
08:51
gearnode has joined #ruby
08:53
fercell has quit [Ping timeout: 245 seconds]
08:53
ferr_ has joined #ruby
08:58
bamdad has quit [Remote host closed the connection]
08:59
bamdad has joined #ruby
09:16
jla has left #ruby [#ruby]
09:20
camilasan has joined #ruby
09:21
camilasan_ has joined #ruby
09:23
blob64 has joined #ruby
09:27
dviola has left #ruby ["WeeChat 3.0.1"]
09:28
dviola has joined #ruby
09:33
marahin_ is now known as marahin
09:33
marahin has joined #ruby
09:33
marahin has quit [Changing host]
09:36
jenrzzz has quit [Ping timeout: 256 seconds]
09:38
naftilos76 has joined #ruby
09:44
<
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?
09:45
<
naftilos76 >
like a default value that the user would usually not have to enter but instead just press Enter for the execution to proceed
09:47
<
leah2 >
not with gets
09:47
<
naftilos76 >
leah2: is there another method that you know of?
09:49
<
naftilos76 >
ok thanks so much
09:57
TCZ has joined #ruby
10:00
ramfjord has joined #ruby
10:04
Rudd0 has joined #ruby
10:10
fercell has joined #ruby
10:22
extrowerk has joined #ruby
10:22
extrowerk has left #ruby [#ruby]
10:30
lbwski has joined #ruby
10:48
lbwski has quit [Ping timeout: 246 seconds]
11:01
blob64 has quit [Ping timeout: 265 seconds]
11:06
va5c0 has joined #ruby
11:14
tekku has joined #ruby
11:31
LtHummus has quit [Ping timeout: 264 seconds]
11:33
jenrzzz has joined #ruby
11:38
jenrzzz has quit [Ping timeout: 260 seconds]
11:38
al2o3-cr has joined #ruby
11:39
LtHummus has joined #ruby
11:50
gearnode has quit [Ping timeout: 258 seconds]
12:01
m27frogy has joined #ruby
12:10
postmodern has quit [Quit: Leaving]
12:12
BTRE has quit [Read error: Connection reset by peer]
12:14
zap_ is now known as CrazyEddy
12:16
lbwski has joined #ruby
12:19
<
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.
12:22
kinduff4 has quit [Changing host]
12:22
kinduff4 has joined #ruby
12:25
kinduff4 is now known as kinduff
12:26
<
leah2 >
tempate: for main.rb, no need to use globals here. adding ./ is also not really useful (and breaks absolute paths)
12:27
siery has joined #ruby
12:27
<
leah2 >
and use require_relative instead of load
12:28
<
tempate >
leah2: can I use $options in mus.rb without it being global?
12:28
<
leah2 >
tempate: for mus.rb, you can use [...]*4 to duplicate an array
12:28
<
leah2 >
tempate: ah you use it there. i'd use a Constant then
12:28
<
tempate >
leah2: oh, alright
12:29
<
leah2 >
for remove_cards_from_deck, deck - cards may work, not sure about recurring values
12:29
<
tempate >
leah2: oh, right, and that way I don't need to flatten
12:29
kinduff has joined #ruby
12:29
<
tempate >
leah2: yeah, deck - cards removes all instances of the elements in cards from deck
12:29
<
leah2 >
and you just want the first one as far as i see
12:29
<
tempate >
which is not what I want to do
12:32
lbwski has quit [Ping timeout: 245 seconds]
12:35
gearnode has joined #ruby
12:36
<
tempate >
leah2: thank you very much for all of your comments
12:37
<
leah2 >
tempate: for count_repetitions look at Array#tally from 2.7
12:37
<
tempate >
leah2: oh, right, I had used that before and completely forgot about it
12:38
<
leah2 >
in line 189 printf would be more elegant
12:46
<
tempate >
leah2: yeah, that's true
12:46
<
tempate >
is there a more elegant way to do it?
12:46
shtirlic_ has quit [Quit: leaving]
12:47
shtirlic has joined #ruby
12:49
vasilakisfil has joined #ruby
12:49
<
leah2 >
a.each_with_index.max[1]
12:50
<
vasilakisfil >
do I need to look inside the args and branch depending on what I find inside ?
13:06
TCZ has quit [Quit: Szukalem wlasnie takich cytatow, wielkie dzieki]
13:33
bougyman has quit [Excess Flood]
13:33
bougyman has joined #ruby
13:33
jenrzzz has joined #ruby
13:36
siery-bot has joined #ruby
13:38
jenrzzz has quit [Ping timeout: 260 seconds]
13:39
lbwski has joined #ruby
13:39
siery-bot has left #ruby [#ruby]
13:39
siery-bot has joined #ruby
13:48
al2o3-cr has quit [Ping timeout: 256 seconds]
13:51
dinfuehr has quit [Ping timeout: 260 seconds]
13:51
dinfuehr has joined #ruby
13:56
ruby_noob has joined #ruby
14:06
TCZ has joined #ruby
14:09
siery-bot has left #ruby [#ruby]
14:17
BTRE has joined #ruby
14:17
akem has quit [Ping timeout: 246 seconds]
14:19
akem has joined #ruby
14:22
deviantfero has joined #ruby
14:28
lbwski has quit [Ping timeout: 260 seconds]
14:39
gremax- is now known as gremax
14:46
lbwski has joined #ruby
15:03
croberts has joined #ruby
15:14
ruby_noob has quit [Ping timeout: 240 seconds]
15:20
AndreYuhai has joined #ruby
15:22
ChmEarl has joined #ruby
15:22
<
AndreYuhai >
Which one is better?
15:26
michael_mbp has quit [Ping timeout: 260 seconds]
15:29
va5c0 has quit [Ping timeout: 264 seconds]
15:32
va5c0 has joined #ruby
15:33
jenrzzz has joined #ruby
15:34
<
adam12 >
AndreYuhai: Chain your enumerable. 30.times.map { Person.new }
15:34
<
AndreYuhai >
adam12, Oh didn't know that! Thank you!
15:36
al2o3-cr has joined #ruby
15:36
michael_mbp has joined #ruby
15:37
al2o3-cr has quit [Client Quit]
15:38
jenrzzz has quit [Ping timeout: 276 seconds]
15:39
va5c0 has quit [Ping timeout: 256 seconds]
15:39
al2o3-cr has joined #ruby
15:41
va5c0 has joined #ruby
15:48
gray_-_wolf has joined #ruby
15:49
<
vasilakisfil >
thanks adam12
15:50
fercell has quit [Ping timeout: 245 seconds]
15:53
fercell has joined #ruby
16:00
naftilos76 has quit [Ping timeout: 276 seconds]
16:07
_dg1727 has joined #ruby
16:07
split-brain has joined #ruby
16:08
dg1727_ has quit [Ping timeout: 268 seconds]
16:16
hiroaki_ has joined #ruby
16:19
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
16:20
ashby is now known as JoshAshby
16:30
va5c0 has quit [Ping timeout: 264 seconds]
16:32
teardown has quit [Ping timeout: 268 seconds]
16:32
deviantfero has quit [Quit: WeeChat 3.0]
16:34
ramfjord has quit [Ping timeout: 265 seconds]
16:38
teardown has joined #ruby
16:49
TCZ has quit [Quit: Czesc]
16:54
dfucci has quit [Ping timeout: 245 seconds]
16:54
cuerbot has quit [Read error: Connection reset by peer]
16:54
elcuervo has joined #ruby
16:58
dfucci has joined #ruby
16:59
Emmanuel_Chanel has joined #ruby
17:04
dfucci has quit [Ping timeout: 264 seconds]
17:07
ramfjord has joined #ruby
17:12
trautwein has quit [Ping timeout: 264 seconds]
17:16
siery has quit [Ping timeout: 246 seconds]
17:17
jonhg has joined #ruby
17:20
dfucci has joined #ruby
17:22
jonhg has quit [Ping timeout: 260 seconds]
17:25
dfucci has quit [Ping timeout: 246 seconds]
17:28
jla has joined #ruby
17:28
lbwski has quit [Ping timeout: 260 seconds]
17:33
lbwski has joined #ruby
17:33
jenrzzz has joined #ruby
17:37
deviantfero has joined #ruby
17:37
GodFather has quit [Ping timeout: 256 seconds]
17:42
jenrzzz has quit [Ping timeout: 264 seconds]
17:44
jonhg has joined #ruby
17:45
shtirlic_ has joined #ruby
17:48
shtirlic has quit [Ping timeout: 256 seconds]
17:49
jonhg has quit [Ping timeout: 245 seconds]
17:50
shtirlic has joined #ruby
17:51
dfucci has joined #ruby
17:52
shtirlic_ has quit [Ping timeout: 264 seconds]
17:53
neshpion has joined #ruby
17:54
lbwski has quit [Ping timeout: 246 seconds]
17:55
gearnode has quit [Ping timeout: 240 seconds]
17:56
jla has left #ruby [#ruby]
17:58
dfucci has quit [Ping timeout: 264 seconds]
18:06
cheezy-1 has joined #ruby
18:09
shtirlic_ has joined #ruby
18:10
cheezy-1 has left #ruby [#ruby]
18:12
jonhg has joined #ruby
18:12
WA9ACE has joined #ruby
18:13
shtirlic has quit [Ping timeout: 264 seconds]
18:16
jenrzzz has joined #ruby
18:21
cd has joined #ruby
18:22
bvdw has joined #ruby
18:23
lbwski has joined #ruby
18:23
dfucci has joined #ruby
18:26
cow[moo] has joined #ruby
18:32
evdubs_ has joined #ruby
18:34
evdubs has quit [Ping timeout: 264 seconds]
18:37
evdubs has joined #ruby
18:37
lbwski has quit [Ping timeout: 245 seconds]
18:39
evdubs_ has quit [Ping timeout: 240 seconds]
18:45
SuperLag has quit [Ping timeout: 265 seconds]
18:46
SuperLag has joined #ruby
18:48
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:52
lbwski has joined #ruby
18:54
deviantfero has quit [Ping timeout: 265 seconds]
18:56
cow[moo] has joined #ruby
18:58
lbwski has quit [Ping timeout: 245 seconds]
19:01
akem_ has joined #ruby
19:02
dfucci has quit [Ping timeout: 246 seconds]
19:03
akem_ has quit [Client Quit]
19:03
akem_ has joined #ruby
19:05
akem has quit [Ping timeout: 260 seconds]
19:06
jenrzzz has quit [Read error: Connection reset by peer]
19:11
lbwski has joined #ruby
19:15
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:18
deviantfero has joined #ruby
19:22
hiroaki_ has quit [Ping timeout: 272 seconds]
19:25
dinfuehr has quit [Ping timeout: 245 seconds]
19:25
cow[moo] has joined #ruby
19:25
nertzy_ has joined #ruby
19:25
jonhg has quit [Remote host closed the connection]
19:26
jonhg has joined #ruby
19:26
dinfuehr has joined #ruby
19:26
nertzy has quit [Ping timeout: 246 seconds]
19:28
jla has joined #ruby
19:29
naftilos76 has joined #ruby
19:30
jonhg has quit [Ping timeout: 245 seconds]
19:30
lbwski has quit [Ping timeout: 260 seconds]
19:33
newton_ is now known as newton
19:34
TCZ has joined #ruby
19:34
dfucci has joined #ruby
19:34
hiroaki_ has joined #ruby
19:39
Nahra has joined #ruby
19:45
fandre1986 has joined #ruby
19:45
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:50
rafadc has joined #ruby
19:50
jenrzzz has joined #ruby
19:57
lbwski has joined #ruby
20:01
ur5us_ has joined #ruby
20:03
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:06
cow[moo] has joined #ruby
20:07
howdoi has joined #ruby
20:12
snickers has joined #ruby
20:14
ruby_noob has joined #ruby
20:16
lbwski has quit [Ping timeout: 260 seconds]
20:20
<
adam12 >
snickers: Looks like a bug with the gem itself.
20:20
AndreYuhai has quit [Remote host closed the connection]
20:21
<
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.
20:23
<
snickers >
it not work either
20:25
<
snickers >
It's also looks that gem don't create branch, but not log any error on it
20:26
tpanarch1st has joined #ruby
20:26
tpanarch1st_ has joined #ruby
20:27
dfucci has quit [Ping timeout: 245 seconds]
20:27
jonhg has joined #ruby
20:30
<
snickers >
adam12 I tried older version of this gam, but it fail in the same way.
20:31
<
adam12 >
snickers: And `git status` works inside /Users/snickers/repo ?
20:31
<
snickers >
adam12 yes
20:31
vondruch has quit [Read error: Connection reset by peer]
20:33
<
adam12 >
snickers: is it this gem
20:33
<
snickers >
adam12 yes
20:38
bergalath has joined #ruby
20:39
actuallybatman has joined #ruby
20:41
<
weaksauce >
are you sure you don't want Git.open(...)
20:43
<
snickers >
weaksauce I try Git.open also. Generally I start with empty directory and want to init git, create branch and copy file
20:44
lbwski has joined #ruby
20:44
naftilos76 has quit [Quit: Leaving]
20:44
fandre1986 has quit [Quit: Connection closed]
20:46
<
weaksauce >
snickers do you have write permissions?
20:47
<
snickers >
weaksauce yes
20:48
<
snickers >
it's also look that after Git.init it create .git directory
20:50
<
weaksauce >
perhaps check in on those and see if you are doing something differently
20:54
bergalath has quit [Quit: Leaving]
20:56
split-brain has quit [Remote host closed the connection]
20:57
Lyubo1 has quit [Ping timeout: 265 seconds]
20:57
Lyubo1 has joined #ruby
21:00
<
snickers >
weaksauce I can find any difference.
21:00
gix has joined #ruby
21:03
<
weaksauce >
it seems that git didn't work either though?
21:04
lbwski has quit [Ping timeout: 260 seconds]
21:09
actuallybatman has quit [Ping timeout: 276 seconds]
21:10
cloud69 has joined #ruby
21:12
<
snickers >
weaksauce git in command like works
21:12
<
snickers >
s/like/line/
21:14
jla has quit [Ping timeout: 260 seconds]
21:16
<
weaksauce >
snickers you should commit first
21:17
<
snickers >
weaksauce create and checkout branch from this gem don't work either
21:18
<
weaksauce >
snickers git.status will error until git.add(...) and git.commit("some message") are done
21:18
<
weaksauce >
and then it works
21:20
<
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
21:21
<
weaksauce >
snickers you are on master branch
21:21
<
snickers >
but I don't want commit anything to master
21:22
<
weaksauce >
i don't know then... use a different gem?
21:22
<
weaksauce >
use bare git first
21:23
<
weaksauce >
as in shell out the initial commands
21:24
<
snickers >
weaksauce I just start to use system and command line git
21:26
<
weaksauce >
snickers your other option is to fork their gem and fix it for your use case
21:28
<
snickers >
weaksauce I know, but this is to hard for my :(
21:28
gearnode has joined #ruby
21:29
<
weaksauce >
snickers pragmatically i'd just use system and check if it succeeded with some kind of File or Dir command
21:30
<
snickers >
system call works for me
21:36
s3nd1v0g1us has joined #ruby
21:37
<
tempate >
Is there a way to list all dependencies to install for a project or something?
21:37
<
tempate >
or all the requirements?
21:37
<
tempate >
So you can just run something like "gem install requirements.txt"
21:37
<
snickers >
Gemfile?
21:37
<
weaksauce >
tempate Gemfiles
21:37
<
weaksauce >
and gemfile.lock specifically will have everything
21:38
<
weaksauce >
bundle install will take care of that
21:39
<
tempate >
can I automatically generate it?
21:40
<
weaksauce >
tempate not to my knowledge
21:40
<
weaksauce >
gem list would show you all the gems installed
21:40
<
weaksauce >
but that's globally and not for one particular project and not the format that a gemfile is in
21:41
<
adam12 >
tempate: Is this for an existing project or a new project?
21:41
<
tempate >
adam12: an existing project I started like 3 days ago
21:42
<
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.
21:42
<
weaksauce >
tempate you just make it now... 3 days is not a lot of gems being installed
21:43
<
weaksauce >
in your project root. bundle init
21:43
<
weaksauce >
bundle add "some gem"
21:43
<
weaksauce >
bundle exec ruby "your script"
21:43
<
weaksauce >
and be done with it
21:43
<
tempate >
adam12: it's a project to be cloned. Just to clarify, it's not a webapp.
21:43
<
adam12 >
tempate: You want the bundle steps that weaksauce pasted above.
21:45
<
tempate >
Thanks a lot to both of you!
21:45
<
tempate >
So should I always run the code with bundle exec ruby main.rb from now on?
21:46
<
adam12 >
tempate: You can add `require "bundler/setup"` at the top of main.rb and then it will do it for you.
21:46
<
adam12 >
tempate: But `bundle exec` (or even better, generating a "binstub") is a good practice to ensure you're using the specified versions.
21:47
<
tempate >
adam12: hmmm, so which one should I stick with?
21:47
<
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.
21:47
<
adam12 >
tempate: It doesnt' matter, but for consistency, `bundle exec`.
21:47
<
tempate >
adam12: oh, alright, thank you very much
21:48
<
adam12 >
At least until you get a bit more familiar with bundler.
21:48
<
tempate >
Right now I'm only using slop and json. I just wanted to get the hang of it before moving on.
21:50
deviantfero has quit [Ping timeout: 246 seconds]
21:51
va5c0 has joined #ruby
21:54
Nahra has quit [Quit: leaving]
21:57
va5c0 has quit [Ping timeout: 260 seconds]
22:02
siery has joined #ruby
22:23
dfucci has joined #ruby
22:29
dfucci has quit [Ping timeout: 245 seconds]
22:38
TCZ has quit [Quit: Czesc]
22:39
vasilakisfil has left #ruby ["Konversation terminated!"]
22:55
dfucci has joined #ruby
23:00
lbwski has joined #ruby
23:02
dfucci has quit [Ping timeout: 260 seconds]
23:03
orbyt_ has joined #ruby
23:12
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:12
cow[moo] has joined #ruby
23:13
lipoqil_ has joined #ruby
23:14
towo_ has joined #ruby
23:15
lipoqil has quit [Ping timeout: 240 seconds]
23:15
towo has quit [Quit: No Ping reply in 180 seconds.]
23:24
Rounin has quit [Ping timeout: 265 seconds]
23:26
lbwski has quit [Ping timeout: 260 seconds]
23:29
dfucci has joined #ruby
23:31
bucareli has joined #ruby
23:35
jonhg has quit [Remote host closed the connection]
23:36
jonhg has joined #ruby
23:37
dfucci has quit [Ping timeout: 264 seconds]
23:39
rwb has quit [Remote host closed the connection]
23:40
ur5us_ has quit [Ping timeout: 240 seconds]
23:40
jonhg has quit [Ping timeout: 245 seconds]
23:40
rwb has joined #ruby
23:43
rwb has quit [Remote host closed the connection]
23:43
rwb has joined #ruby
23:48
rwb has quit [Remote host closed the connection]
23:53
TCZ has joined #ruby
23:54
rwb has joined #ruby