00:00
matthewd has quit [Ping timeout: 252 seconds]
00:00
matthewd has joined #ruby
00:03
TCZ has joined #ruby
00:05
millerti has quit [Ping timeout: 240 seconds]
00:05
ur5us has joined #ruby
00:06
davispuh has joined #ruby
00:06
dionysus69 has quit [Ping timeout: 265 seconds]
00:11
william1_ has joined #ruby
00:12
bmurt has joined #ruby
00:14
bambanx has quit [Quit: Leaving]
00:15
davidw has quit [Ping timeout: 260 seconds]
00:16
william1_ has quit [Ping timeout: 260 seconds]
00:20
ttoocs has joined #ruby
00:25
ttoocs has quit [Ping timeout: 268 seconds]
00:25
eddof13 has quit [Ping timeout: 258 seconds]
00:27
greengriminal has joined #ruby
00:28
genpaku has quit [Quit: Lost terminal]
00:28
sergioro has joined #ruby
00:29
genpaku has joined #ruby
00:31
mossplix has quit [Remote host closed the connection]
00:31
drincruz has quit [Ping timeout: 240 seconds]
00:35
mossplix has joined #ruby
00:41
mossplix has quit [Remote host closed the connection]
00:42
noizex has joined #ruby
00:45
greengriminal has quit [Quit: Leaving]
00:46
davidw has joined #ruby
00:46
davidw has quit [Changing host]
00:46
davidw has joined #ruby
00:47
meinside has joined #ruby
00:49
mossplix has joined #ruby
00:52
ttoocs has joined #ruby
00:56
kristofers has joined #ruby
00:57
ttoocs has quit [Ping timeout: 268 seconds]
01:08
bruce_lee has quit [Ping timeout: 258 seconds]
01:08
skryking_ has joined #ruby
01:08
skryking has quit [Ping timeout: 268 seconds]
01:10
DTZUZO_ has quit [Ping timeout: 265 seconds]
01:10
DTZUZO has joined #ruby
01:10
davidw has quit [Ping timeout: 240 seconds]
01:11
AJA4350 has quit [Quit: AJA4350]
01:12
bruce_lee has joined #ruby
01:15
mossplix has quit [Remote host closed the connection]
01:16
RiPuk has quit [Ping timeout: 268 seconds]
01:17
lupine has quit [Read error: Connection reset by peer]
01:17
lupine has joined #ruby
01:22
RiPuk has joined #ruby
01:24
ttoocs has joined #ruby
01:27
TCZ has quit [Quit: Bye Bye]
01:29
ttoocs has quit [Ping timeout: 260 seconds]
01:36
gnufr33d0m has quit [Quit: gnufr33d0m]
01:48
mossplix has joined #ruby
01:48
alexherbo26 has joined #ruby
01:48
kyrylo has joined #ruby
01:49
alex`` has quit [Ping timeout: 265 seconds]
01:50
alexherbo2 has quit [Ping timeout: 268 seconds]
01:50
alexherbo26 is now known as alexherbo2
01:51
alex`` has joined #ruby
01:52
anveo has joined #ruby
01:56
ttoocs has joined #ruby
01:56
duderonomy has joined #ruby
02:01
sgen has quit [Ping timeout: 260 seconds]
02:02
wildtrees has quit [Quit: Leaving]
02:06
jenrzzz has quit [Ping timeout: 260 seconds]
02:09
mossplix has quit [Remote host closed the connection]
02:11
william1_ has joined #ruby
02:14
rahult has joined #ruby
02:14
orbyt_ has joined #ruby
02:17
william1_ has quit [Ping timeout: 265 seconds]
02:22
bruce_lee has quit [Ping timeout: 260 seconds]
02:23
bruce_lee has joined #ruby
02:23
bruce_lee has quit [Changing host]
02:23
bruce_lee has joined #ruby
02:25
skryking_ has quit [Quit: Konversation terminated!]
02:26
pwnd_nsfw has quit [Ping timeout: 240 seconds]
02:32
kristofers has quit [Ping timeout: 268 seconds]
02:34
kristofers has joined #ruby
02:37
fphilipe_ has joined #ruby
02:38
mossplix has joined #ruby
02:39
gnufr33d0m has joined #ruby
02:41
mossplix has quit [Remote host closed the connection]
02:42
fphilipe_ has quit [Ping timeout: 268 seconds]
03:00
kevinburke has quit [Quit: Connection closed for inactivity]
03:00
im0nde_ has quit [Ping timeout: 246 seconds]
03:00
im0nde has joined #ruby
03:01
kristofers has quit [Quit: leaving]
03:06
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:07
factormystic has joined #ruby
03:07
bruce_lee has quit [Ping timeout: 260 seconds]
03:08
bruce_lee has joined #ruby
03:10
houhoulis has joined #ruby
03:10
jaequery has quit [Remote host closed the connection]
03:15
howdoi has quit [Quit: Connection closed for inactivity]
03:16
bsdbandit-01 has joined #ruby
03:16
bsdband41 has quit [Ping timeout: 245 seconds]
03:18
jaequery has joined #ruby
03:23
jaequery has quit [Ping timeout: 260 seconds]
03:37
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
03:43
bsdbandit-01 has joined #ruby
03:59
dinfuehr has quit [Ping timeout: 240 seconds]
04:00
dinfuehr has joined #ruby
04:01
NODE has quit [Excess Flood]
04:02
rahult has quit [Read error: Connection reset by peer]
04:02
NODE has joined #ruby
04:05
NODE has quit [Excess Flood]
04:05
NODE has joined #ruby
04:06
gix- has joined #ruby
04:06
gix has quit [Disconnected by services]
04:10
gix- has quit [Ping timeout: 260 seconds]
04:12
william1_ has joined #ruby
04:18
william1_ has quit [Ping timeout: 240 seconds]
04:31
jenrzzz has joined #ruby
04:33
Swyper has joined #ruby
04:35
jenrzzz has quit [Ping timeout: 265 seconds]
04:40
anveo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:50
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:02
ur5us has quit [Ping timeout: 260 seconds]
05:05
jenrzzz has joined #ruby
05:06
markopasha has quit [Remote host closed the connection]
05:06
drincruz has joined #ruby
05:20
Swyper has quit [Remote host closed the connection]
05:41
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:49
NODE has quit [Excess Flood]
05:50
NODE has joined #ruby
05:54
cloaked1 has joined #ruby
05:55
bvdw has quit [Read error: Connection reset by peer]
05:56
bvdw has joined #ruby
05:58
kyrylo has joined #ruby
06:01
cloaked1 has quit [Read error: Connection reset by peer]
06:02
ua has quit [Ping timeout: 265 seconds]
06:03
gnufr33d0m has quit [Quit: gnufr33d0m]
06:10
jenrzzz has quit [Ping timeout: 240 seconds]
06:14
william1_ has joined #ruby
06:17
sauvin has joined #ruby
06:19
william1_ has quit [Ping timeout: 268 seconds]
06:29
regedit has joined #ruby
06:30
drincruz has quit [Ping timeout: 260 seconds]
06:34
sergioro has quit [Ping timeout: 265 seconds]
06:39
schne1der has joined #ruby
06:39
houhoulis has quit [Remote host closed the connection]
06:43
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:44
s3nd1v0g1us has joined #ruby
06:46
i9zO5AP has quit [Quit: WeeChat 2.5]
06:51
schne1der has quit [Ping timeout: 240 seconds]
06:59
TomyWork has quit [Remote host closed the connection]
07:00
TomyWork has joined #ruby
07:00
william1_ has joined #ruby
07:02
abcdf has joined #ruby
07:06
mossplix has joined #ruby
07:16
andikr has joined #ruby
07:19
zdm has joined #ruby
07:27
infinityfye has joined #ruby
07:27
zdm has quit [Quit: Leaving]
07:32
jenrzzz has joined #ruby
07:33
buckworst has joined #ruby
07:33
conta has joined #ruby
07:35
schne1der has joined #ruby
07:35
conta has quit [Client Quit]
07:36
AndroidKitKat has quit [Ping timeout: 240 seconds]
07:36
mossplix has quit [Remote host closed the connection]
07:40
buckworst has quit [Quit: WeeChat 2.7]
07:42
AndroidKitKat has joined #ruby
07:47
jenrzzz has quit [Ping timeout: 265 seconds]
07:52
schne1der has quit [Ping timeout: 268 seconds]
07:55
s3nd1v0g1us has quit [Quit: WeeChat 2.6]
07:56
xco has joined #ruby
07:59
mossplix has joined #ruby
08:00
schne1der has joined #ruby
08:03
william1_ has quit [Ping timeout: 268 seconds]
08:04
conta has joined #ruby
08:10
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:12
xco has joined #ruby
08:17
dionysus69 has joined #ruby
08:20
kyrylo has quit [Ping timeout: 258 seconds]
08:21
conta has quit [Quit: conta]
08:24
DTZUZO has quit [Read error: Connection reset by peer]
08:26
jenrzzz has joined #ruby
08:29
phaul_ has joined #ruby
08:29
william1_ has joined #ruby
08:49
gitter1234 has joined #ruby
08:58
regedit has quit [Quit: Connection closed for inactivity]
09:00
buckworst has joined #ruby
09:09
dminuoso_ has left #ruby ["WeeChat 2.6"]
09:12
cthu| has quit [Ping timeout: 268 seconds]
09:13
chalkmonster has joined #ruby
09:20
rainmanjam has quit [Ping timeout: 265 seconds]
09:26
rainmanjam has joined #ruby
09:31
inkvar has joined #ruby
09:35
inkvar has quit [Client Quit]
09:40
ellcs has joined #ruby
09:47
<
chalkmonster >
gitter1234: the error tells you all you need to know, your @article is probably nil
09:49
<
gitter1234 >
nope actually its not.. but @comment is tho
09:52
<
chalkmonster >
gitter1234: are your routes set up correctly?
09:52
<
chalkmonster >
gitter1234: @comment should be Comment.new, did you initialize it
09:53
<
gitter1234 >
oops.. im so sorry, i forgot about the routes part !
09:53
<
chalkmonster >
it'll only work if you have nested routes set up
09:56
<
gitter1234 >
its working no chalkmonster - thank you very much!
09:57
<
chalkmonster >
happy to help, don't see much activity on IRC anymore
10:02
reber has joined #ruby
10:04
<
gitter1234 >
yeah me neither :/
10:04
<
gitter1234 >
slack seems to be taking over
10:11
fphilipe_ has joined #ruby
10:17
reber_ has joined #ruby
10:17
cd has quit [Quit: cd]
10:20
reber has quit [Ping timeout: 240 seconds]
10:20
<
chalkmonster >
gitter1234: yeah, sucks
10:22
fphilipe_ has quit [Ping timeout: 265 seconds]
10:24
mossplix has quit [Remote host closed the connection]
10:25
mossplix_ has joined #ruby
10:39
pwnd_nsfw has joined #ruby
10:41
reber__ has joined #ruby
10:43
reber_ has quit [Ping timeout: 265 seconds]
10:45
mossplix_ has quit [Remote host closed the connection]
10:52
NODE has quit [Excess Flood]
10:53
NODE has joined #ruby
10:55
TCZ has joined #ruby
10:56
NODE has quit [Excess Flood]
10:56
NODE has joined #ruby
11:05
turbo_choo has quit [Ping timeout: 268 seconds]
11:11
troulouliou_dev has joined #ruby
11:12
mossplix has joined #ruby
11:13
greengriminal has joined #ruby
11:15
feep[work] has left #ruby [#ruby]
11:15
bsdbandit-01 has quit [Remote host closed the connection]
11:16
mossplix has quit [Ping timeout: 240 seconds]
11:23
TCZ has quit [Quit: Bye Bye]
11:24
rahult has joined #ruby
11:32
rahult has joined #ruby
11:35
NODE has quit [Excess Flood]
11:35
NODE has joined #ruby
11:37
ua has joined #ruby
11:39
Tempesta has quit [Quit: AdiIRC is updating to v3.8 Beta Build (2020/01/13 UTC) 64 Bit]
11:40
Tempesta has joined #ruby
11:45
mossplix has joined #ruby
11:46
AJA4350 has joined #ruby
11:48
anthology has quit [Ping timeout: 268 seconds]
11:48
antholog has joined #ruby
11:49
iNs has quit [Remote host closed the connection]
11:49
iNs has joined #ruby
11:52
iNs has quit [Excess Flood]
11:52
iNs has joined #ruby
11:55
bvdw has quit [Read error: Connection reset by peer]
11:56
bvdw has joined #ruby
11:58
troulouliou_dev has quit [Remote host closed the connection]
12:00
vondruch_ has joined #ruby
12:01
mossplix has quit [Remote host closed the connection]
12:01
mossplix has joined #ruby
12:04
vondruch has quit [Ping timeout: 268 seconds]
12:04
vondruch_ is now known as vondruch
12:04
william11 has joined #ruby
12:06
mossplix has quit [Ping timeout: 265 seconds]
12:07
iNs has quit [Ping timeout: 240 seconds]
12:08
iNs has joined #ruby
12:19
NODE has quit [Excess Flood]
12:20
NODE has joined #ruby
12:21
catbusters has joined #ruby
12:23
turbo_choo has joined #ruby
12:33
mossplix has joined #ruby
12:37
markopasha has joined #ruby
12:41
NODE has quit [Excess Flood]
12:41
NODE has joined #ruby
12:43
william11 has quit [Ping timeout: 265 seconds]
12:43
fphilipe_ has joined #ruby
12:44
NODE has quit [Excess Flood]
12:44
NODE has joined #ruby
12:45
matheusmoreira has quit [Quit: leaving]
12:49
fphilipe_ has quit [Ping timeout: 268 seconds]
12:50
fuzzface has joined #ruby
12:50
fphilipe_ has joined #ruby
12:50
NODE has quit [Quit: changing servers]
12:51
NODE has joined #ruby
12:53
NODE has quit [Excess Flood]
12:54
NODE has joined #ruby
12:55
fphilipe_ has quit [Ping timeout: 260 seconds]
12:59
reber_ has joined #ruby
13:00
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:01
reber__ has quit [Ping timeout: 258 seconds]
13:07
fuzzface has quit [Quit: Leaving]
13:19
NODE has quit [Excess Flood]
13:20
NODE has joined #ruby
13:21
lucasb has joined #ruby
13:22
anveo has joined #ruby
13:23
dviola has joined #ruby
13:29
bmurt has joined #ruby
13:39
alexherbo29 has joined #ruby
13:40
TCZ has joined #ruby
13:40
alex`` has quit [Ping timeout: 265 seconds]
13:40
alexherbo2 has quit [Ping timeout: 240 seconds]
13:40
alexherbo29 is now known as alexherbo2
13:43
alex`` has joined #ruby
13:53
schne1der has quit [Ping timeout: 265 seconds]
13:55
guardian has quit [Ping timeout: 268 seconds]
14:11
dviola has quit [Quit: WeeChat 2.7]
14:15
bmurt has quit [Ping timeout: 272 seconds]
14:16
fphilipe_ has joined #ruby
14:22
gitter1234 has quit [Quit: Connection closed for inactivity]
14:23
fphilipe_ has quit [Ping timeout: 268 seconds]
14:25
fphilipe_ has joined #ruby
14:28
vondruch has quit [Quit: vondruch]
14:28
vondruch has joined #ruby
14:32
dionysus69 has quit [Quit: dionysus69]
14:33
mossplix has quit [Remote host closed the connection]
14:33
dionysus69 has joined #ruby
14:34
fphilipe_ has quit [Read error: Connection reset by peer]
14:34
mossplix has joined #ruby
14:38
mossplix has quit [Ping timeout: 268 seconds]
14:40
TCZ has quit [Quit: Bye Bye]
14:42
mossplix has joined #ruby
14:44
mossplix has quit [Remote host closed the connection]
14:51
dionysus69 has quit [Remote host closed the connection]
14:52
dionysus69 has joined #ruby
15:02
ropeney has joined #ruby
15:10
fphilipe_ has joined #ruby
15:13
BuildTheRobots has quit [Remote host closed the connection]
15:13
twodayslate has quit [Remote host closed the connection]
15:13
siasmj has quit [Remote host closed the connection]
15:13
d10n-work has quit [Remote host closed the connection]
15:14
schne1der has joined #ruby
15:15
fphilipe_ has quit [Ping timeout: 260 seconds]
15:17
fphilipe_ has joined #ruby
15:17
twodayslate has joined #ruby
15:17
dionysus69 has quit [Quit: dionysus69]
15:18
siasmj has joined #ruby
15:18
mossplix has joined #ruby
15:18
d10n-work has joined #ruby
15:18
BuildTheRobots has joined #ruby
15:18
dionysus69 has joined #ruby
15:20
catbusters has quit [Quit: Connection closed for inactivity]
15:22
fphilipe_ has quit [Ping timeout: 240 seconds]
15:22
DaRock has quit [Ping timeout: 258 seconds]
15:27
duderonomy has joined #ruby
15:29
gnufr33d0m has joined #ruby
15:30
markopasha has quit [Remote host closed the connection]
15:32
mwlang has joined #ruby
15:35
infinityfye has quit [Quit: Leaving]
15:38
greengriminal has quit [Quit: Leaving]
15:44
GodFather has joined #ruby
15:46
fig-le-deunch has joined #ruby
15:48
d10n-work has quit [Remote host closed the connection]
15:48
twodayslate has quit [Remote host closed the connection]
15:48
siasmj has quit [Remote host closed the connection]
15:48
BuildTheRobots has quit [Remote host closed the connection]
15:49
pizzaiolo has quit [Max SendQ exceeded]
15:50
teclator has quit [Ping timeout: 268 seconds]
15:51
twodayslate has joined #ruby
15:52
d10n-work has joined #ruby
15:52
siasmj has joined #ruby
15:53
BuildTheRobots has joined #ruby
15:53
NODE has quit [Excess Flood]
15:54
NODE has joined #ruby
15:54
pizzaiolo has joined #ruby
15:56
teclator has joined #ruby
15:56
NODE has quit [Remote host closed the connection]
15:57
NODE has joined #ruby
15:57
wald0 has joined #ruby
15:57
pwnd_nsfw` has joined #ruby
15:59
DTZUZO has joined #ruby
16:00
pwnd_nsfw has quit [Ping timeout: 240 seconds]
16:01
wald0 has quit [Read error: Connection reset by peer]
16:01
fphilipe_ has joined #ruby
16:02
wald0 has joined #ruby
16:03
anveo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:06
fig-le-deunch has quit [Quit: Konversation terminated!]
16:07
fig-le-deunch has joined #ruby
16:08
TomyWork has quit [Ping timeout: 256 seconds]
16:11
BTRE has quit [Ping timeout: 260 seconds]
16:11
tvw has joined #ruby
16:13
gigetoo has quit [Ping timeout: 260 seconds]
16:21
gix has joined #ruby
16:21
chalkmonster has quit [Quit: WeeChat 2.7]
16:21
chalkmonster has joined #ruby
16:22
chalkmonster has quit [Client Quit]
16:22
andikr has quit [Remote host closed the connection]
16:23
chalkmonster has joined #ruby
16:26
AJA4351 has joined #ruby
16:26
mossplix has quit [Remote host closed the connection]
16:27
AJA4350 has quit [Ping timeout: 240 seconds]
16:27
AJA4351 is now known as AJA4350
16:28
cthu| has joined #ruby
16:32
wald0 has quit [Read error: Connection reset by peer]
16:32
wald0 has joined #ruby
16:36
wald0 has quit [Read error: Connection reset by peer]
16:37
wald0 has joined #ruby
16:38
wald0 has quit [Read error: Connection reset by peer]
16:42
gigetoo has joined #ruby
16:42
wald0 has joined #ruby
16:46
davidw has joined #ruby
16:47
sergioro has joined #ruby
16:49
orbyt_ has joined #ruby
16:49
wald0 has quit [Read error: Connection reset by peer]
16:49
wald0 has joined #ruby
16:50
wald0 has quit [Read error: Connection reset by peer]
16:54
Swyper has joined #ruby
16:54
gitter1234 has joined #ruby
16:56
<
gitter1234 >
Do I put it in under `private`?
16:59
BTRE has joined #ruby
17:00
NODE has quit [Quit: changing servers]
17:00
fphilipe_ has quit [Ping timeout: 265 seconds]
17:01
NODE has joined #ruby
17:04
TCZ has joined #ruby
17:05
reber__ has joined #ruby
17:06
<
phaul >
gitter1234: have you tried? are there any errrors at which you are stuck?
17:07
chalkmonster has quit [Quit: WeeChat 2.7]
17:08
reber_ has quit [Ping timeout: 268 seconds]
17:10
<
gitter1234 >
phaul: I'm about to try now, im just always confused about the private/protected stuff, lacking a proper understanding of the funadmentals :/
17:11
NODE has quit [Excess Flood]
17:11
NODE has joined #ruby
17:12
<
phaul >
quick summary: normal method can be called on object like object.method or on self with self.method or simply method. The last bit (calling without an explicit receiver) is what's disabled in private. Otherwise they are the same.
17:12
<
al2o3-cr >
&ri Module#private Module#protected gitter1234
17:13
<
phaul >
&ri Module#private gitter1234
17:13
<
phaul >
oh we are without bots
17:13
<
al2o3-cr >
ah, that explains it then :P
17:14
NODE has quit [Excess Flood]
17:14
NODE has joined #ruby
17:15
<
al2o3-cr >
phaul: does &ri take multiple entries or just the one
17:15
<
phaul >
I think just one
17:16
<
al2o3-cr >
ah, ok ;)
17:17
NODE has quit [Excess Flood]
17:17
<
al2o3-cr >
i always forget because adaedra's version took 3 if i remember. noted though
17:17
NODE has joined #ruby
17:18
markopasha has joined #ruby
17:19
suukim has joined #ruby
17:19
<
phaul >
rubybot will do 4 then. :D
17:19
mossplix has joined #ruby
17:19
greengriminal has joined #ruby
17:20
NODE has quit [Excess Flood]
17:21
<
al2o3-cr >
hehe nice ;)
17:22
NODE has joined #ruby
17:22
<
al2o3-cr >
jhass: pretty please may we have version 2.7 soon ;)
17:22
endorama has quit [Quit: No Ping reply in 180 seconds.]
17:23
NODE has quit [Excess Flood]
17:23
ellcs has quit [Ping timeout: 258 seconds]
17:23
NODE has joined #ruby
17:24
endorama has joined #ruby
17:24
NODE has left #ruby [#ruby]
17:25
NODE has joined #ruby
17:26
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:26
markopasha has quit [Remote host closed the connection]
17:27
NODE has quit [Excess Flood]
17:27
xco has joined #ruby
17:28
NODE has joined #ruby
17:29
Swyper has quit [Remote host closed the connection]
17:30
NODE has quit [Client Quit]
17:32
NODE has joined #ruby
17:33
NODE has quit [Excess Flood]
17:34
NODE has joined #ruby
17:35
mossplix has quit [Remote host closed the connection]
17:37
NODE has quit [Client Quit]
17:39
NODE has joined #ruby
17:42
<
gitter1234 >
second one...
17:44
guardian` has joined #ruby
17:45
Swyper has joined #ruby
17:46
fphilipe_ has joined #ruby
17:47
phaul_ has quit [Ping timeout: 260 seconds]
17:50
fphilipe_ has quit [Ping timeout: 272 seconds]
17:52
zlogan has joined #ruby
17:53
TCZ has quit [Quit: Bye Bye]
17:55
bvdw has quit [Read error: Connection reset by peer]
17:56
bvdw has joined #ruby
17:58
fig-le-deunch has quit [Quit: Konversation terminated!]
17:58
<
adam12 >
gitter1234: Number of commits is probably a bad metric. More recent might be better.
17:59
<
gitter1234 >
adam12: the second one does seem to have more refined code as well though...
18:00
<
gitter1234 >
but i think im gonna ditch them both.. and just add display_name or something to my users table instead
18:04
kashike has quit [Ping timeout: 245 seconds]
18:07
FastJack has quit [Ping timeout: 264 seconds]
18:07
kashike has joined #ruby
18:08
mossplix has joined #ruby
18:13
antholog has quit [Ping timeout: 268 seconds]
18:16
antholog has joined #ruby
18:19
wildtrees has joined #ruby
18:20
rubydoc has joined #ruby
18:20
wildtrees has quit [Max SendQ exceeded]
18:20
wildtrees has joined #ruby
18:23
wildtrees has quit [Max SendQ exceeded]
18:23
wildtrees has joined #ruby
18:24
FastJack has joined #ruby
18:30
Emmanuel_Chanel has quit [Ping timeout: 268 seconds]
18:31
jaequery has joined #ruby
18:32
rubydoc has quit [Remote host closed the connection]
18:35
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:40
xco has joined #ruby
18:42
rubydoc has joined #ruby
18:44
<
phaul >
&ri BigDecimal.new
18:44
<
rubydoc >
Found no entry that matches class BigDecimal class method new
18:44
kujira has joined #ruby
18:45
suukim has quit [Quit: Konversation terminated!]
18:45
<
phaul >
&ri Enumerator::Producer
18:46
william11 has joined #ruby
18:47
william11 has quit [Client Quit]
18:48
william1 has joined #ruby
18:49
<
leftylink >
is it just my browser
18:49
<
leftylink >
or does that only say Producer and nothing else
18:50
<
phaul >
no, I haven't checked the link. I guess the documentation is still missing idk
18:50
sameerynho has joined #ruby
18:52
<
phaul >
I generate the list based on whats indexed at ruby-doc.org, and they prly just get the index from rdoc
18:52
<
havenwood >
phaul: nice!
18:52
<
phaul >
havenwood: thnx :) now all we need is a bump on carc.in version
18:53
<
jhass >
&>> RUBY_VERSION
18:54
<
jhass >
al2o3-cr: sure, I just always forget about it
18:54
<
jhass >
so feel free to ping me once archlinux has the package :P
18:55
<
havenwood >
&>> Enumerator.produce('yay', &:reverse).take(5)
18:55
<
phaul >
thank you jhass
18:55
<
al2o3-cr >
jhass: thank you very much jhass, greatly appreciated ;)
18:56
<
jhass >
it really takes me like 10mins so, yeah, keep poking :)
18:56
<
al2o3-cr >
i'm on arch too, didn't come into the repos until 8th i think ;)
18:57
<
al2o3-cr >
jhass: but anyway thanks. you too phaul ;)
18:58
<
leftylink >
so, what new things can we show off now that carcinogen is 2.7
18:58
<
leftylink >
we can show off tally I guess
18:58
<
leftylink >
I am happy to finally have tally.
18:58
<
al2o3-cr >
pattern matching is the one follow.
18:59
<
leftylink >
any bugs?
18:59
<
leftylink >
not that I want to show my lack of faith
19:00
<
jhass >
flip flop is no longer deprecated!
19:00
<
al2o3-cr >
well it's new, so i'd imagine it won't be squeeky clean.
19:00
<
jhass >
some might consider that a bug :D
19:03
daed has quit [Quit: leaving]
19:03
sameerynho has quit [Quit: WeeChat 2.6]
19:04
sameerynho has joined #ruby
19:04
stryek has joined #ruby
19:06
<
havenwood >
&>> Hash.new { :foo }.transform_values { :bar }[:wombat]
19:06
<
havenwood >
^ that's a bug
19:07
<
havenwood >
&>> Hash.new { :foo }.transform_values { :bar }[:wombat].call
19:09
<
adam12 >
havenwood: I wonder if that's related to the Rack/Grape bug from a few daysa go.
19:09
<
havenwood >
adam12: Ooh, good point! A Square eng found it and reported it and a few minutes later Nobu fixed it.
19:10
<
phaul >
&26>> Hash.new { :foo }.transform_values { :bar }[:wombat]
19:11
<
havenwood >
adam12: Ah, I hadn't seen the most recent comments
19:11
<
havenwood >
Interesting
19:12
howdoi has joined #ruby
19:14
<
phaul >
I don't fully get the 2.6 behaviour either. Hash.new { :foo } is just {} with special default proc right? then transform_values should do nothing to it as it's run on the empty hash. Then why do we get nil?
19:14
NODE has quit [Excess Flood]
19:15
NODE has joined #ruby
19:16
<
phaul >
&26>> (Hash.new { :foo })[:wombat]
19:16
<
phaul >
this ^ I understand
19:16
<
phaul >
the nil confuses me
19:21
<
jhass >
&26>> Hash.new {|h, k| h[k] = :foo }.transform_values { :bar }[:wombat]
19:21
<
jhass >
looks like it just strips the default proc
19:21
<
jhass >
&>> Hash.new {|h, k| h[k] = :foo }.transform_values { :bar }[:wombat]
19:22
<
jhass >
and does that incorrectly in 2.7? 🤷
19:23
Swyper has quit [Remote host closed the connection]
19:25
<
jhass >
maybe it just (incorrectly) assigns Hash#default_proc to Hash#default
19:25
sergioro has quit [Quit: leaving]
19:26
sauvin has quit [Read error: Connection reset by peer]
19:26
Emmanuel_Chanel has joined #ruby
19:31
markopasha has joined #ruby
19:36
NL3limin4t0r_ark has quit [Ping timeout: 265 seconds]
19:38
Emmanuel_Chanel has quit [Quit: Leaving]
19:38
NL3limin4t0r_ark has joined #ruby
19:42
<
howdoi >
when was the last time you used the space ship operator in production code?
19:44
<
phaul >
I think fairly common if one includes Comparable. Otherwise using it directly - never.
19:44
zdm has joined #ruby
19:46
<
havenwood >
howdoi: I agree with phaul. I define it when I include Comparable, and not otherwise.
19:47
<
howdoi >
phaul: havenwood okies, for Comparable, what were the production use cases? For test cases I can related, but trying to understand production use cases, thanks!
19:48
<
havenwood >
howdoi: It's only useful when you want to compare objects to see which is greater, less than or equal.
19:48
<
havenwood >
howdoi: More specifically, usually instances of objects.
19:49
<
havenwood >
howdoi: this_thing >= that_thing
19:49
reber__ has quit [Ping timeout: 272 seconds]
19:49
<
havenwood >
howdoi: It's used fairly extensively in Ruby core and stdlib, which is why you can compare things via ==, >=, <=, >, and <.
19:50
<
havenwood >
&>> Time.new > Time.new
19:50
<
havenwood >
howdoi: For example ^
19:51
<
howdoi >
nice, say you have an array of objects, that you need compare, will there be any such instance in production?
19:51
<
havenwood >
howdoi: If you implement #<=>, you can sort.
19:51
<
havenwood >
howdoi: (And include Comparable.)
19:52
Ai9zO5AP has joined #ruby
19:52
<
howdoi >
`how` part is kind of clear, tying to understand the `why` part, as in `why` in production one would want to compare, what would be the use cases. Caching? Network request comparison, schema validation? havenwood
19:53
<
havenwood >
howdoi: Why do you ever want to sort?
19:53
chalkmonster has joined #ruby
19:53
<
havenwood >
howdoi: It's used internally for things like #max, #min, #min_max, #sort, etc.
19:54
<
havenwood >
howdoi: Why would you ever want to know what's the most, or the least, or put things in order. That's wy.
19:54
<
havenwood >
howdoi: In production, you still need to know what's biggest, smallest, or be able to sort. Right?
19:54
<
havenwood >
howdoi: Maybe I don't understand what you're asking.
19:55
<
havenwood >
howdoi: What is the most expensive car? Order these flowers by the color wheel. Select the loudest yodel.
19:55
<
havenwood >
howdoi: Give us a fake production domain, and we can give examples why you'd want to compare.
19:56
TCZ has joined #ruby
19:56
<
adam12 >
I'm not sure I've ever seen a namespaced Minitest unit test or spec. Has anybody seen one in the wild? Everyone seems to flat-namespace them at the top level.
19:56
<
howdoi >
let me rephrase, I am trying to collect few use cases where you would have to compare objects in prod. [CS theory]
19:58
<
havenwood >
howdoi: Consider comparing money amounts with currency. To be able to sort, you need to compare by total value.
19:58
<
havenwood >
howdoi: Or times with a timezone.
19:59
chalkmonster has quit [Quit: WeeChat 2.7]
19:59
<
howdoi >
Nice, thanks, will think on those lines.
19:59
<
havenwood >
howdoi: Which gem is the newest?
19:59
<
howdoi >
havenwood: sort by time
19:59
<
havenwood >
&>> Gem::Version.new('4.2') > Gem::Version.new('4.2a')
20:00
<
havenwood >
&>> [Gem::Version.new('4.2'), Gem::Version.new('4.1-dev'), Gem::Version.new('4.2a')].sort
20:00
<
havenwood >
howdoi: You can look at tzinfo gem to see examples of Comparable in the wild there.
20:01
<
howdoi >
&>> [1,3,2] <=> [2,2,2]
20:02
<
howdoi >
return nil unless c.is_a?(Country)
20:02
<
howdoi >
code <=> c.code
20:04
greengriminal has quit [Quit: Leaving]
20:06
Emmanuel_Chanel has joined #ruby
20:08
<
phaul >
return unless c.is_a?(Country) without explicit nil is the same. I think rubocop tells you off for this
20:10
tvw has joined #ruby
20:14
<
phaul >
tbh the whole guarding is a bit meh. Why not just embrace duck typing and allow any other that responds to code. And just let it blow up if someone gives something incompatible. anyways ... wasn't the question... just random thoughts
20:15
<
phaul >
&>> 'a' <=> 1
20:15
<
phaul >
hm. this seems to be the std way
20:20
ur5us has joined #ruby
20:21
davispuh has joined #ruby
20:21
ellcs has joined #ruby
20:28
markopasha has quit [Remote host closed the connection]
20:28
vondruch has quit [Ping timeout: 240 seconds]
20:29
jaequery has quit [Remote host closed the connection]
20:31
kujira has joined #ruby
20:32
markopasha has joined #ruby
20:33
daed has joined #ruby
20:36
DTZUZO has quit [Ping timeout: 268 seconds]
20:42
jenrzzz has quit [Ping timeout: 265 seconds]
20:44
fphilipe_ has joined #ruby
20:45
cadeskywalker has quit [Ping timeout: 260 seconds]
20:49
fphilipe_ has quit [Ping timeout: 260 seconds]
20:51
zdm has quit [Quit: Leaving]
20:56
alex`` has quit [Ping timeout: 260 seconds]
20:56
alexherbo2 has quit [Ping timeout: 272 seconds]
20:58
cadeskywalker has joined #ruby
20:59
kujira has quit [Ping timeout: 268 seconds]
21:03
mossplix has quit [Remote host closed the connection]
21:03
jenrzzz has joined #ruby
21:05
alexherbo2 has joined #ruby
21:05
mossplix_ has joined #ruby
21:06
Guest25175 has joined #ruby
21:08
Rob__ has joined #ruby
21:08
pwnd_nsfw` has quit [Read error: Connection reset by peer]
21:10
silviu has quit [Remote host closed the connection]
21:10
silviu has joined #ruby
21:10
alexherbo20 has joined #ruby
21:12
alexherbo2 has quit [Ping timeout: 265 seconds]
21:12
alexherbo20 is now known as alexherbo2
21:12
Guest25175 has quit [Ping timeout: 268 seconds]
21:14
alexherbo2 has quit [Client Quit]
21:15
alexherbo2 has joined #ruby
21:17
cadeskywalker has quit [Ping timeout: 240 seconds]
21:23
mossplix_ has quit [Remote host closed the connection]
21:23
mossplix has joined #ruby
21:24
tvw has joined #ruby
21:25
schne1der has quit [Ping timeout: 260 seconds]
21:28
sameerynho has quit [Quit: WeeChat 2.6]
21:29
s2013 has joined #ruby
21:30
emilygch has joined #ruby
21:30
<
emilygch >
Hi, how can I convert d = "2019-04-01T00:00:00.000Z" to DateTime? DateTime.new(d) results inNameError: uninitialized constant DateTime
21:31
chalkmonster has joined #ruby
21:32
cadeskywalker has joined #ruby
21:32
<
emilygch >
oh, i forgot to require 'date'
21:32
<
emilygch >
it works now!
21:35
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:37
duderonomy has joined #ruby
21:39
jaequery has joined #ruby
21:43
sergioro has joined #ruby
21:44
cd has joined #ruby
21:48
william1_ has quit [Ping timeout: 265 seconds]
21:56
alex`` has joined #ruby
21:59
davispuh has quit [Ping timeout: 268 seconds]
22:00
jenrzzz has quit [Ping timeout: 265 seconds]
22:00
jenrzzz has joined #ruby
22:10
sameerynho has joined #ruby
22:11
sameerynho has quit [Client Quit]
22:12
sameerynho has joined #ruby
22:12
sameerynho has quit [Client Quit]
22:12
davispuh has joined #ruby
22:12
sameerynho has joined #ruby
22:13
sameerynho has quit [Client Quit]
22:14
sameerynho has joined #ruby
22:14
mossplix has quit [Remote host closed the connection]
22:17
fphilipe_ has joined #ruby
22:23
fphilipe_ has quit [Ping timeout: 265 seconds]
22:23
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:25
duderonomy has joined #ruby
22:27
rahult has joined #ruby
22:28
buckworst has quit [Ping timeout: 260 seconds]
22:30
rahult has quit [Client Quit]
22:30
buckworst has joined #ruby
22:31
FrankDW2 has quit [Read error: Connection reset by peer]
22:31
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:32
Guest97 has joined #ruby
22:32
xco has joined #ruby
22:32
xco has quit [Client Quit]
22:32
Guest97 is now known as estafermo
22:32
estafermo is now known as drake
22:33
drake has left #ruby [#ruby]
22:35
howdoi has quit [Quit: Connection closed for inactivity]
22:35
mossplix has joined #ruby
22:36
estafermo has joined #ruby
22:40
mossplix has quit [Ping timeout: 258 seconds]
22:46
buckworst has quit [Ping timeout: 265 seconds]
22:48
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:48
buckworst has joined #ruby
22:49
buckworst has quit [Client Quit]
22:53
mwlang has quit [Quit: mwlang]
22:56
NODE has quit [Excess Flood]
22:57
NODE has joined #ruby
23:00
NODE has quit [Excess Flood]
23:01
NODE has joined #ruby
23:01
phenom_ has quit [Ping timeout: 260 seconds]
23:02
rahult has joined #ruby
23:03
NODE has quit [Excess Flood]
23:03
william1 has quit [Ping timeout: 240 seconds]
23:03
NODE has joined #ruby
23:06
sgen has joined #ruby
23:11
emilygch has quit [Ping timeout: 260 seconds]
23:14
s3nd1v0g1us has joined #ruby
23:15
wald0 has joined #ruby
23:17
wald0 has quit [Read error: Connection reset by peer]
23:20
davispuh has quit [Ping timeout: 240 seconds]
23:20
markopasha has quit [Ping timeout: 268 seconds]
23:20
wald0 has joined #ruby
23:23
TCZ has quit [Quit: Bye Bye]
23:24
wald0 has quit [Read error: Connection reset by peer]
23:25
wald0 has joined #ruby
23:26
davispuh has joined #ruby
23:28
sergioro has quit [Quit: leaving]
23:28
wald0 has quit [Read error: Connection reset by peer]
23:29
sergioro has joined #ruby
23:30
wald0 has joined #ruby
23:31
howdoi has joined #ruby
23:31
ellcs has quit [Ping timeout: 260 seconds]
23:31
wald0 has quit [Read error: Connection reset by peer]
23:32
_phaul has joined #ruby
23:34
phaul has quit [Ping timeout: 240 seconds]
23:35
wald0 has joined #ruby
23:42
turbo_choo has quit [Ping timeout: 240 seconds]
23:42
wald0 has quit [Read error: Connection reset by peer]
23:42
wald0 has joined #ruby
23:45
wald0 has quit [Read error: Connection reset by peer]
23:47
wald0 has joined #ruby
23:48
wald0 has quit [Read error: Connection reset by peer]
23:50
phenom has joined #ruby
23:50
brool has joined #ruby
23:52
wald0 has joined #ruby
23:54
wald0 has quit [Client Quit]
23:56
TCZ has joined #ruby
23:56
DaRock has joined #ruby