00:01
NoidedSuper has quit [Remote host closed the connection]
00:01
\void has quit [Quit: So long, and thanks for all the fish.]
00:03
orbyt_ has joined #ruby
00:03
cthu| has joined #ruby
00:06
cthulchu_ has quit [Ping timeout: 246 seconds]
00:06
cthulchu_ has joined #ruby
00:09
cthu| has quit [Ping timeout: 246 seconds]
00:17
AJA4351 has joined #ruby
00:18
AJA4350 has quit [Ping timeout: 240 seconds]
00:18
AJA4351 is now known as AJA4350
00:28
Eiam has joined #ruby
00:28
sylario has quit [Quit: Connection closed for inactivity]
00:30
r29v has quit [Quit: r29v]
00:31
lxsameer has quit [Ping timeout: 245 seconds]
00:45
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:45
blaguvest has joined #ruby
00:54
def_jam has joined #ruby
00:54
AJA4351 has joined #ruby
00:55
eb0t_ has joined #ruby
00:55
eblip has quit [Ping timeout: 240 seconds]
00:55
eb0t has quit [Ping timeout: 244 seconds]
00:56
def_jam is now known as eblip
00:56
AJA4350 has quit [Ping timeout: 240 seconds]
00:56
AJA4351 is now known as AJA4350
00:56
cd has quit [Ping timeout: 256 seconds]
00:57
xco has quit [Quit: xco]
00:59
eb0t has joined #ruby
01:00
def_jam has joined #ruby
01:01
eblip has quit [Ping timeout: 246 seconds]
01:01
eb0t_ has quit [Ping timeout: 250 seconds]
01:02
eb0t has quit [Client Quit]
01:06
eb0t has joined #ruby
01:07
eb0t has quit [Client Quit]
01:08
def_jam has quit [Ping timeout: 240 seconds]
01:09
cd has joined #ruby
01:21
gix has quit [Ping timeout: 250 seconds]
01:24
dviola has quit [Quit: WeeChat 2.3]
01:26
xall has joined #ruby
01:36
AJA4350 has quit [Ping timeout: 245 seconds]
01:39
AJA4350 has joined #ruby
01:50
orbyt_ has joined #ruby
01:57
SeepingN has quit [Quit: The system is going down for reboot NOW!]
02:02
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:12
scrptktty has quit [Quit: Connection closed for inactivity]
02:14
tdy has joined #ruby
02:29
asphyxia has quit [Quit: Lost terminal]
02:31
asphyxia has joined #ruby
02:36
asphyxia has quit [Quit: Lost terminal]
02:36
orbyt_ has joined #ruby
02:42
AJA4351 has joined #ruby
02:43
AJA4350 has quit [Ping timeout: 240 seconds]
02:43
AJA4351 is now known as AJA4350
02:45
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:49
robscomputer has joined #ruby
02:52
xco has joined #ruby
02:55
duckpuppy has joined #ruby
02:56
duckpupp- has quit [Ping timeout: 246 seconds]
02:58
code_zombie has quit [Quit: Leaving]
03:01
mikecmpbll has quit [Quit: inabit. zz.]
03:02
AJA4350 has quit [Remote host closed the connection]
03:06
cd has quit [Ping timeout: 256 seconds]
03:08
cd has joined #ruby
03:08
renich has quit [Ping timeout: 272 seconds]
03:08
xco has quit [Quit: xco]
03:14
arescorpio has joined #ruby
03:23
marmotini_ has joined #ruby
03:28
marmotini_ has quit [Ping timeout: 250 seconds]
03:36
Swyper has joined #ruby
03:37
volkov has joined #ruby
03:38
houhoulis has joined #ruby
03:58
kapil____ has joined #ruby
03:59
Swyper has quit [Remote host closed the connection]
03:59
ellcs has quit [Ping timeout: 240 seconds]
04:00
Swyper has joined #ruby
04:03
ogres has joined #ruby
04:05
braincrash has quit [Quit: bye bye]
04:09
braincrash has joined #ruby
04:14
ellcs has joined #ruby
04:22
v01d4lph4 has joined #ruby
04:30
_whitelogger has joined #ruby
04:37
v01d4lph4 has quit [Remote host closed the connection]
04:38
v01d4lph4 has joined #ruby
04:39
v01d4lph4 has quit [Remote host closed the connection]
04:39
v01d4lph4 has joined #ruby
04:47
ellcs has quit [Ping timeout: 264 seconds]
04:48
ellcs has joined #ruby
04:49
arescorpio has quit [Remote host closed the connection]
05:03
volkov has quit [Remote host closed the connection]
05:10
dellavg__ has joined #ruby
05:12
Azure has quit [Ping timeout: 268 seconds]
05:15
\void has joined #ruby
05:20
ghormoon has quit [Ping timeout: 246 seconds]
05:21
Azure has joined #ruby
05:23
ghormoon has joined #ruby
05:26
johnny56 has quit [Ping timeout: 272 seconds]
05:33
_whitelogger has joined #ruby
05:47
SuperLag has quit [Ping timeout: 240 seconds]
05:50
SuperLag has joined #ruby
05:51
elcontrastador has joined #ruby
05:53
dellavg__ has quit [Ping timeout: 245 seconds]
06:00
DTZUZO has quit [Ping timeout: 250 seconds]
06:04
\void has quit [Quit: So long, and thanks for all the fish.]
06:10
lytol_ has quit [Remote host closed the connection]
06:14
agent_white has quit [Quit: bbl]
06:15
johnny56 has joined #ruby
06:18
conta has joined #ruby
06:25
reber has joined #ruby
06:34
sauvin has joined #ruby
06:35
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
06:35
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:37
kapil____ has quit [Quit: Connection closed for inactivity]
06:37
Swyper has quit [Read error: Connection reset by peer]
06:37
ogres has quit [Quit: Connection closed for inactivity]
06:39
marmotini_ has joined #ruby
06:41
moei has joined #ruby
06:43
mcspud has quit [Ping timeout: 252 seconds]
06:44
orbyt_ has joined #ruby
06:46
mcspud has joined #ruby
06:47
lunarkitty7 has joined #ruby
06:51
Inline has quit [Quit: Leaving]
06:55
ogres has joined #ruby
07:00
renich has joined #ruby
07:00
renich has quit [Remote host closed the connection]
07:01
renich has joined #ruby
07:04
aufi has joined #ruby
07:05
hahuang6- has quit [Ping timeout: 240 seconds]
07:05
dan64 has quit [Ping timeout: 240 seconds]
07:06
hahuang6- has joined #ruby
07:07
dan64 has joined #ruby
07:13
ellcs has quit [Ping timeout: 246 seconds]
07:14
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:15
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:17
themsay has joined #ruby
07:17
za1b1tsu has joined #ruby
07:18
duderonomy has joined #ruby
07:23
houhoulis has quit [Remote host closed the connection]
07:23
aupadhye has joined #ruby
07:25
mangold has joined #ruby
07:25
renich has quit [Quit: renich]
07:32
renich has joined #ruby
07:32
renich has quit [Remote host closed the connection]
07:39
clemens3 has joined #ruby
07:50
clemens3 has quit [Ping timeout: 240 seconds]
07:54
kapil____ has joined #ruby
07:57
apparition has joined #ruby
08:00
nowhere_man has quit [Ping timeout: 252 seconds]
08:07
mangold has quit [Ping timeout: 250 seconds]
08:08
mangold has joined #ruby
08:09
status402 has joined #ruby
08:12
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:13
clemens3 has joined #ruby
08:15
cd has quit [Quit: cd]
08:18
renich has joined #ruby
08:19
renich has quit [Remote host closed the connection]
08:21
duderonomy has joined #ruby
08:25
status402_ has joined #ruby
08:25
status402 has quit [Read error: Connection reset by peer]
08:28
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:28
cnsvc has quit [Ping timeout: 256 seconds]
08:31
sylario has joined #ruby
08:36
xall has quit [Ping timeout: 250 seconds]
08:37
mangold has quit [Quit: This computer has gone to sleep]
08:38
FastJack has quit [Remote host closed the connection]
08:39
reber has quit [Remote host closed the connection]
08:39
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:40
mangold has joined #ruby
08:46
BH23 has joined #ruby
08:47
wildermind has joined #ruby
08:53
themsay has quit [Ping timeout: 250 seconds]
08:57
ansraliant has quit [Quit: My planet needs me]
09:04
jmcgnh has joined #ruby
09:16
lunarkitty7 has quit [Ping timeout: 252 seconds]
09:17
FastJack has joined #ruby
09:22
madhatter has quit [Remote host closed the connection]
09:22
ep4sh2k has joined #ruby
09:23
<
ep4sh2k >
What is wrong?
09:26
<
ep4sh2k >
if i comment this code - status Ok
09:27
<
TvL2386 >
doesn't logstash print anything useful?
09:27
tdy has quit [Ping timeout: 240 seconds]
09:28
<
TvL2386 >
I can see double quotes to encapsulate your ruby code, but in the code you use double quotes as well... I'd at least change "::" to '::'
09:29
<
TvL2386 >
and I think the \s*? is also weird in the regexp
09:29
<
TvL2386 >
but that may be me, I'm no regexp guru
09:29
<
canton7 >
TvL2386, that's "whitespace zero or more times, non-greedy match"
09:30
<
TvL2386 >
canton7: ah ack! ty
09:30
pierrethierry has joined #ruby
09:30
<
canton7 >
granted the '?' isn't needed in this case
09:30
pierrethierry has quit [Client Quit]
09:30
<
TvL2386 >
I also think field.strip! || field is weird
09:30
<
ep4sh2k >
enought just field.strip, right?
09:31
<
TvL2386 >
I take that back, I thought strip! always returned nil, but that's not true
09:31
mangold has quit [Ping timeout: 250 seconds]
09:32
lunarkitty7 has joined #ruby
09:32
<
TvL2386 >
I think your double quotes in the ruby code confuse logstash, since the ruby code stops at the first " and logstash configuration syntax continues afterwards and doesn't like the ::"
09:34
xco has joined #ruby
09:34
xco has quit [Client Quit]
09:34
pierrethierry has joined #ruby
09:34
<
ep4sh2k >
Thanks i will try it
09:36
helpa has quit [Remote host closed the connection]
09:36
helpa has joined #ruby
09:36
helpa has quit [Remote host closed the connection]
09:36
helpa has joined #ruby
09:37
lunarkitty7 has quit [Ping timeout: 245 seconds]
09:37
ogres has quit [Quit: Connection closed for inactivity]
09:39
lunarkitty7 has joined #ruby
09:40
pierrethierry has quit [Quit: Leaving]
09:43
Nicmavr has quit [Read error: Connection reset by peer]
09:44
Guest16678 has joined #ruby
09:44
<
ep4sh2k >
but i cant determine where is specified line and column in code (with error)
09:45
Nicmavr has joined #ruby
09:45
<
ep4sh2k >
if i just comment ruby code - logstash starts fine
09:50
xall has joined #ruby
09:53
nowhere_man has joined #ruby
09:56
ellcs has joined #ruby
09:58
xall has quit [Quit: xall]
10:08
roshanavand has joined #ruby
10:15
AJA4350 has joined #ruby
10:17
mikecmpbll has joined #ruby
10:20
mikecmpbll has quit [Client Quit]
10:27
marmotini_ has quit [Ping timeout: 240 seconds]
10:28
madhatter has joined #ruby
10:30
ellcs has quit [Ping timeout: 272 seconds]
10:35
v01d4lph4 has quit [Remote host closed the connection]
10:36
v01d4lph4 has joined #ruby
10:37
v01d4lph4 has quit [Remote host closed the connection]
10:37
v01d4lph4 has joined #ruby
10:38
v01d4lph4 has quit [Read error: Connection reset by peer]
10:38
marmotini_ has joined #ruby
10:38
v01d4lph4 has joined #ruby
10:39
sauvin has quit [Ping timeout: 245 seconds]
10:40
eb0t has joined #ruby
10:41
sauvin has joined #ruby
10:43
Emmanuel_Chanel has quit [Ping timeout: 250 seconds]
10:45
eb0t has left #ruby [#ruby]
10:51
<
Bish >
isn't there a do missing?
10:51
<
Bish >
well it seems to be optional
10:51
<
Bish >
for x in y do;...;end
11:02
soyeomul^bionic has joined #ruby
11:05
thinkpad has quit [Ping timeout: 244 seconds]
11:05
Emmanuel_Chanel has joined #ruby
11:08
thinkpad has joined #ruby
11:11
Swyper has joined #ruby
11:16
Swyper has quit [Ping timeout: 272 seconds]
11:17
dviola has joined #ruby
11:20
madhatter has quit [Quit: leaving]
11:21
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
11:22
conta has quit [Ping timeout: 240 seconds]
11:23
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
11:23
madhatter has joined #ruby
11:32
Dbugger has joined #ruby
11:32
conta has joined #ruby
11:35
pierrethierry has joined #ruby
11:38
<
ep4sh2k >
yeah, it works! thanks!
11:39
Guest16678 has quit [Ping timeout: 246 seconds]
11:46
status402_ has quit [Quit: status402_]
11:47
status402 has joined #ruby
11:48
pierrethierry has quit [Quit: This computer has gone to sleep]
11:52
apparition has joined #ruby
11:53
Guest16678 has joined #ruby
11:54
BH23 has quit [Ping timeout: 250 seconds]
11:58
Guest16678 has quit [Ping timeout: 272 seconds]
12:02
Guest16678 has joined #ruby
12:03
BH23 has joined #ruby
12:06
Hess has joined #ruby
12:06
Hess has left #ruby [#ruby]
12:06
Guest16678 has quit [Ping timeout: 240 seconds]
12:14
kapil____ has quit [Quit: Connection closed for inactivity]
12:16
Guest16678 has joined #ruby
12:23
Guest16678 has quit [Ping timeout: 268 seconds]
12:24
jottr has joined #ruby
12:26
jottr_ has quit [Ping timeout: 245 seconds]
12:32
soyeomul^bionic has quit [Quit: ERC (IRC client for Emacs 26.1)]
12:34
blackmesa has joined #ruby
12:41
segy has joined #ruby
12:42
roshanavand has quit [Remote host closed the connection]
12:46
blackmesa has quit [Ping timeout: 240 seconds]
12:54
Guest16678 has joined #ruby
12:59
blackmesa has joined #ruby
13:00
Swyper has joined #ruby
13:06
za1b1tsu has quit [Ping timeout: 272 seconds]
13:13
old_relik has joined #ruby
13:14
<
old_relik >
Is it idiomatic to memoize constants like this: APP_HOST ||= ENV.fetch('APP_HOST')
13:14
lucasb has joined #ruby
13:16
<
phaul >
for memoizing no. for conditionally setting it yes. but I would freeze it too
13:17
<
phaul >
depends on where that code is. if it only runs once then why not.
13:17
<
old_relik >
so it's technically a rails "concern"
13:18
<
old_relik >
and is under the "included" block
13:18
<
old_relik >
and hence gets loaded a few times (esp during tests)
13:19
<
old_relik >
and hence throws the re-assign warning
13:19
<
phaul >
then its not idiomatic
13:19
<
phaul >
especially with throwing warnings
13:19
AJA4351 has joined #ruby
13:20
<
old_relik >
what would you recommend?
13:20
<
phaul >
acessor. can live in the singleton class
13:21
<
phaul >
class Blah; class < self; attr_accessor :app_host; end; end
13:21
AJA4350 has quit [Ping timeout: 250 seconds]
13:21
AJA4351 is now known as AJA4350
13:22
<
phaul >
old_relik: Blah.app_host ||= '...'
13:22
<
dionysus69 >
I am sure the encoded message is correct, so far I was unable to find any other xdr library in ruby
13:22
<
old_relik >
oh like a self accessor
13:22
<
old_relik >
however this must sit in a module (rails concern)
13:22
blackmesa has quit [Ping timeout: 240 seconds]
13:22
thinkpad has quit [Ping timeout: 250 seconds]
13:23
za1b1tsu has joined #ruby
13:24
ua has quit [Ping timeout: 250 seconds]
13:25
<
phaul >
old_relik: that's not a problem. Concerns are just dressed up modules, right?
13:25
<
phaul >
modules can have singleton classes
13:26
<
phaul >
but extend or include wont pick up the accessor, you would have to write Modulename.host_path
13:27
thinkpad has joined #ruby
13:28
<
phaul >
I guess you can put it in class_method { } block, if it works by included hook extending with a sub module. Then include would also pick up the accessor. I guess easyest is to try
13:33
<
old_relik >
phaul: hm
13:33
<
old_relik >
so I just moved the constants from "included do" to out in the normal module scope
13:33
<
old_relik >
and it works
13:33
<
old_relik >
they are accessible in the included block
13:34
<
old_relik >
I'm not entirely sure why that worked though
13:35
<
phaul >
but your thing can also be correct.
13:35
<
phaul >
actually the result is 17 not 13 at the end
13:36
<
old_relik >
so that works
13:36
<
old_relik >
(which was throwing warnings)
13:37
ua has joined #ruby
13:37
<
old_relik >
[apologies if this is rails domain]
13:37
<
phaul >
yeah, but then it only runs once, when it's loaded. I thought it was a requirement to be able to assign multiple times
13:37
<
phaul >
anyways, if that works that's the right way
13:37
<
old_relik >
yeah, I might have not made that clear
13:37
<
old_relik >
apologies
13:37
<
old_relik >
it's completely ok for it to be init'd once
13:38
<
phaul >
that's cool, then constant makes more sense than a var
13:38
Emmanuel_Chanel has joined #ruby
13:40
old_relik has quit [Quit: Page closed]
13:42
ep4sh2k has quit [Quit: Connection closed for inactivity]
13:43
gregf_ has joined #ruby
13:48
_whitelogger has joined #ruby
13:48
blaguvest has quit [Remote host closed the connection]
13:49
pierrethierry has joined #ruby
13:55
blackmesa has joined #ruby
13:59
blackmesa has quit [Ping timeout: 252 seconds]
14:01
GinoMan has joined #ruby
14:03
rubydoc has quit [Remote host closed the connection]
14:03
rubydoc has joined #ruby
14:03
Swyper has quit [Ping timeout: 246 seconds]
14:05
GinoMan2440 has quit [Ping timeout: 245 seconds]
14:06
nowhereman has joined #ruby
14:08
v01d4lph4 has quit [Remote host closed the connection]
14:10
pierrethierry has quit [Ping timeout: 268 seconds]
14:10
nowhere_man has quit [Ping timeout: 272 seconds]
14:12
fanta7531 has joined #ruby
14:21
aupadhye has quit [Quit: Leaving]
14:21
dinfuehr has quit [Ping timeout: 272 seconds]
14:22
dinfuehr has joined #ruby
14:25
clemens3 has quit [Remote host closed the connection]
14:27
marmotini_ has quit [Ping timeout: 240 seconds]
14:27
AJA4350 has quit [Ping timeout: 272 seconds]
14:33
conta has quit [Quit: conta]
14:38
aupadhye has joined #ruby
14:38
BH23 has quit [Ping timeout: 250 seconds]
14:44
pierrethierry has joined #ruby
14:52
Rapture has joined #ruby
14:58
aupadhye has quit [Ping timeout: 272 seconds]
14:58
apparition has quit [Quit: Bye]
14:59
polishdub has joined #ruby
14:59
cubillosxy_py has joined #ruby
15:01
rippa has joined #ruby
15:01
status402 has quit [Quit: status402]
15:01
status402 has joined #ruby
15:03
marmotini_ has joined #ruby
15:04
status402 has quit [Remote host closed the connection]
15:04
status402_ has joined #ruby
15:12
AJA4350 has joined #ruby
15:14
sirecote has joined #ruby
15:24
kapil____ has joined #ruby
15:32
elcontrastador has joined #ruby
15:33
elcontrastador has quit [Client Quit]
15:33
jottr has quit [Read error: Connection reset by peer]
15:34
Inline has joined #ruby
15:34
jottr has joined #ruby
15:39
cubillosxy_py has quit [Quit: leaving]
15:45
duderonomy has joined #ruby
15:48
galaxie has joined #ruby
15:48
<
galaxie >
What's a good HTML templating engine that works in both Ruby and Lua and is cross-platform?
15:49
<
galaxie >
I mean, not necessarily HTML, but I am using Liquid so far.
15:53
aufi has quit [Ping timeout: 246 seconds]
15:53
<
galaxie >
Mustache would've been perfect except it's logic-less, as in, no if statements, for loops, etc.
15:54
status402_ has quit [Quit: status402_]
15:57
grvgr has joined #ruby
15:57
multi_io has quit [Ping timeout: 252 seconds]
16:02
tdy has joined #ruby
16:06
SuperLag has quit [Quit: leaving]
16:07
<
galaxie >
Hmmm, there appears to be a port of Liquid to Lua that's slightly different, I'll look into that.
16:09
galaxie has quit [Quit: ircII EPIC4-2.10.6 -- Are we there yet?]
16:10
jottr has quit [Ping timeout: 246 seconds]
16:12
clemens3 has joined #ruby
16:12
SuperLag has joined #ruby
16:15
<
Iambchop >
dionysus69: "are you decoding the right xdr type?" how was that message encoded?
16:15
<
Iambchop >
nEnvelope&network=test
16:15
<
Iambchop >
https://www.stellar.org/laboratory/#xdr-viewer ?input=AAAAAFugE4m5G6atiR3UnMAowKubzTCrhbm1uRXNXElbXnIIAAAAZAACv7oAA3rJAAAAAAAAAAEAAAAQVGVzdCBUcmFuc2FjdGlvbgAAAAEAAAAAAAAAAQAAAAAMF%2FX3w8lITxPE60OCt6GzPVeEL2IVmq5Cz6%2FggDlPZAAAAAFITlkAAAAAAJyzpxsbHjlm33tVyNgwYLBOw9%2B35z5yQ%2BeiqdRkBROZAAAAAEIpQYAAAAAAAAAAAVtecggAAABA2%2B8Zm43h9NEYi2ReXwK%2Bg9ZHLvjklferCHotyXg2Tv%2BjYfqgipPTfrwdRlvXDwMwLP0YhgMReJLLF80VcYVUAQ%3D%3D&type=Transactio
16:16
ua has quit [Ping timeout: 250 seconds]
16:18
AJA4351 has joined #ruby
16:19
AJA4350 has quit [Ping timeout: 268 seconds]
16:19
AJA4351 is now known as AJA4350
16:20
Silex has joined #ruby
16:30
arup_r has joined #ruby
16:33
pierrethierry has quit [Ping timeout: 240 seconds]
16:35
ua has joined #ruby
16:36
nowhereman has quit [Ping timeout: 272 seconds]
16:38
jottr has joined #ruby
16:40
orbyt_ has joined #ruby
16:41
dinfuehr has quit [Ping timeout: 245 seconds]
16:42
dinfuehr has joined #ruby
16:42
orbyt_ has quit [Client Quit]
16:46
v01d4lph4 has joined #ruby
16:47
\void has joined #ruby
16:49
conta has joined #ruby
16:50
marmotini_ has quit [Ping timeout: 272 seconds]
16:50
fanta7531 has quit [Quit: fanta7531]
16:56
silent_freak has joined #ruby
16:59
v01d4lph4 has quit [Ping timeout: 250 seconds]
17:08
Silex has quit [Ping timeout: 256 seconds]
17:12
Fridtjof has quit [Ping timeout: 268 seconds]
17:12
skyikot has joined #ruby
17:14
aldodelgado has joined #ruby
17:16
BH23 has joined #ruby
17:18
d10n-work has joined #ruby
17:24
akem__ has quit [Read error: Connection reset by peer]
17:24
akem__ has joined #ruby
17:25
AJA4351 has joined #ruby
17:27
AJA4350 has quit [Ping timeout: 240 seconds]
17:27
AJA4351 is now known as AJA4350
17:32
hiroaki has quit [Ping timeout: 250 seconds]
17:33
kapil____ has quit [Quit: Connection closed for inactivity]
17:36
Swyper has joined #ruby
17:37
[Butch] has joined #ruby
17:38
Swyper has quit [Remote host closed the connection]
17:41
Guest16678 has quit [Ping timeout: 268 seconds]
17:42
orbyt_ has joined #ruby
17:42
themsay has joined #ruby
17:43
clemens3 has quit [Ping timeout: 250 seconds]
17:44
hiroaki has joined #ruby
17:47
Guest16678 has joined #ruby
17:48
orbyt_ has quit [Ping timeout: 246 seconds]
17:49
octos has joined #ruby
17:49
krawchyk has joined #ruby
17:49
marmotini_ has joined #ruby
17:51
Guest16678 has quit [Ping timeout: 240 seconds]
17:51
conta has quit [Quit: conta]
17:56
fanta7531 has joined #ruby
17:58
marmotini_ has quit [Remote host closed the connection]
17:58
marmotini_ has joined #ruby
18:00
jobewan has joined #ruby
18:02
volkov has joined #ruby
18:04
valadares has joined #ruby
18:04
orbyt_ has joined #ruby
18:05
octos has quit [Read error: Connection reset by peer]
18:08
marmotini_ has quit [Ping timeout: 245 seconds]
18:10
volkov has quit [Remote host closed the connection]
18:11
Xeago has quit [Ping timeout: 245 seconds]
18:11
marmotini_ has joined #ruby
18:11
robscomputer has joined #ruby
18:12
marmotini has joined #ruby
18:13
robscomputer has quit [Client Quit]
18:14
robscomputer has joined #ruby
18:14
<
up|ime >
i don't think google+ is their auth component?
18:14
Xeago has joined #ruby
18:16
marmotini_ has quit [Ping timeout: 246 seconds]
18:16
blackmesa has joined #ruby
18:19
valadares has quit [Ping timeout: 272 seconds]
18:21
valadares has joined #ruby
18:26
silent_freak has quit [Remote host closed the connection]
18:27
v01d4lph4 has joined #ruby
18:31
v01d4lph4 has quit [Ping timeout: 240 seconds]
18:34
fanta7531 has quit [Quit: fanta7531]
18:38
v01d4lph4 has joined #ruby
18:39
code_zombie has joined #ruby
18:41
reber has joined #ruby
18:42
AJA4350 has quit [Ping timeout: 250 seconds]
18:44
d^sh has quit [Ping timeout: 250 seconds]
18:46
d^sh has joined #ruby
18:49
wildermind has quit [Quit: Connection closed for inactivity]
18:53
blackmesa has quit [Ping timeout: 250 seconds]
18:57
marmotini has quit [Ping timeout: 246 seconds]
19:00
dviola has quit [Quit: WeeChat 2.3]
19:01
rippa has quit [Read error: Connection reset by peer]
19:01
marmotini has joined #ruby
19:04
rippa has joined #ruby
19:07
dviola has joined #ruby
19:13
marmotini has quit [Ping timeout: 240 seconds]
19:16
jobewan has quit [Ping timeout: 240 seconds]
19:18
sauvin has quit [Remote host closed the connection]
19:23
v01d4lph4 has quit [Remote host closed the connection]
19:24
v01d4lph4 has joined #ruby
19:27
aldodelgado has quit [Quit: aldodelgado]
19:28
v01d4lph4 has quit [Ping timeout: 245 seconds]
19:35
sezuan has quit [Quit: ____]
19:37
AJA4350 has joined #ruby
19:40
spacesuitdiver has joined #ruby
19:43
blackmesa has joined #ruby
19:47
gix has joined #ruby
19:49
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
19:52
jobewan has joined #ruby
19:57
Swyper has joined #ruby
19:59
orbyt_ has quit [Ping timeout: 244 seconds]
20:03
Swyper has quit [Remote host closed the connection]
20:04
blackmesa has quit [Ping timeout: 252 seconds]
20:05
tdy has quit [Ping timeout: 245 seconds]
20:06
robscomputer has quit [Ping timeout: 244 seconds]
20:08
agent_white has joined #ruby
20:11
SeepingN has joined #ruby
20:15
AJA4351 has joined #ruby
20:16
AJA4350 has quit [Ping timeout: 250 seconds]
20:16
AJA4351 is now known as AJA4350
20:17
za1b1tsu has quit [Ping timeout: 246 seconds]
20:18
valadares has quit [Remote host closed the connection]
20:19
octos has joined #ruby
20:20
gaussblurinc1 has joined #ruby
20:20
<
gaussblurinc1 >
Hi!
20:20
<
phaul >
gaussblurinc1: hi
20:21
<
gaussblurinc1 >
is it possible to pass block as a last parameter to an operator with one extra parameter.
20:21
<
gaussblurinc1 >
Example: def > (a, &b); end
20:22
<
baweaver >
Why would you?
20:22
<
baweaver >
What's the use case?
20:23
Nicmavr has quit [Read error: Connection reset by peer]
20:24
<
phaul >
&>> x = Object.new; def x.>(a, &b); p self: self, a: a; b.call; end; x > s { puts ' hello' }
20:24
<
gaussblurinc1 >
a | b | c {|value| value}
20:24
<
phaul >
&>> x = Object.new; def x.>(a, &b); p self: self, a: a; b.call; end; x > x { puts ' hello' }
20:24
<
baweaver >
Just use `then`
20:24
<
gaussblurinc1 >
baweaver: custom objects + dsl
20:25
Nicmavr has joined #ruby
20:25
<
baweaver >
Trying to be too clever in DSLs tends to be hard to test and maintain
20:25
<
baweaver >
and functional piping isn't really necessary anymore, we have << and >> for composition in 2.6
20:26
<
gaussblurinc1 >
baweaver: could you share a link?
20:26
<
phaul >
&>> x = Object.new; def x.>(a, &b); p self: self, a: a; b.call; end; x.>(x) { puts ' hello' }
20:26
<
baweaver >
You're thinking about it backwards.
20:26
<
baweaver >
a | b | c { ... }
20:27
<
baweaver >
a, b, and c are all entities. | is an operator that works on those entities. The clock doesn't belong to |, it belongs to c
20:28
<
baweaver >
&>> adds = -> x { -> y { x + y } }; multiplies = -> x { -> y { x * y } }; [1, 2, 3].map(&adds[1] >> multiplies[5])
20:28
<
baweaver >
<< composes in the other direction
20:28
<
baweaver >
&>> adds = -> x { -> y { x + y } }; multiplies = -> x { -> y { x * y } }; [1, 2, 3].map(&adds[1] << multiplies[5])
20:28
kapil____ has joined #ruby
20:29
<
phaul >
yeah, as baweaver says it. technically it's possible though, as demonstrated.
20:29
<
baweaver >
which is more accurately what people mean with `compose` in functional languages.
20:29
<
baweaver >
It's less of "Can Ruby do X" than "Should you be doing X?"
20:29
<
phaul >
sure. I was curius myself what it will do tbh :)
20:29
<
gaussblurinc1 >
phaul: thanks! parentheses are the keys
20:30
za1b1tsu has joined #ruby
20:30
<
baweaver >
Though I'm 95% they just ignored that
20:30
<
phaul >
gaussblurinc1: as baweaver says it works but you shouldn't do it
20:30
<
baweaver >
which is why often times I don't show how it's done
20:31
<
baweaver >
The reason the parens are needed is the difference between `{ ... }` blocks and `do ... end` blocks
20:31
<
baweaver >
The former creates ambiguity for the parser between that and a hash / kw param
20:32
<
baweaver >
It's the same reason you can't do this in RSpec: `let :value { ... }`
20:32
<
gaussblurinc1 >
baweaver: even when I pass parameters names to a block?
20:32
<
baweaver >
Give it a try in a REPL
20:35
<
gaussblurinc1 >
baweaver: it dies at curly bracer even with named parameter in block
20:35
<
baweaver >
Figured, didn't remember.
20:36
<
gaussblurinc1 >
ah, wait, ruby version 2.4.1
20:36
<
baweaver >
REPLs are great for answering questions and experimenting.
20:37
thinkpad has quit [Ping timeout: 245 seconds]
20:39
thinkpad has joined #ruby
20:48
lxsameer has joined #ruby
20:50
houhoulis has joined #ruby
20:51
AJA4350 has quit [Ping timeout: 245 seconds]
20:51
AJA4350 has joined #ruby
20:55
sticaz has quit [Ping timeout: 245 seconds]
21:04
orbyt_ has joined #ruby
21:17
e is now known as edk-dsgikortej
21:17
edk-dsgikortej is now known as e
21:17
gaussblurinc1 has quit [Quit: Leaving.]
21:20
cnsvc has joined #ruby
21:22
frem has joined #ruby
21:22
<
darix >
<3 binding.pry or binding.irb
21:22
tdy has joined #ruby
21:22
reber has quit [Remote host closed the connection]
21:25
Dbugger has quit [Remote host closed the connection]
21:29
<
Eiam >
pry changed the way I debug ruby =)
21:29
<
Eiam >
these days I write most of my code INSIDE a halted pry session, then pop it back into the file
21:29
<
Eiam >
sad but true
21:32
r29v has joined #ruby
21:35
<
SeepingN >
I do that in irb/console but haven't bothered dealing with pry
21:36
dviola has quit [Quit: WeeChat 2.3]
21:38
<
Eiam >
I halt right where the new code would go so it operates in the right context
21:38
<
Eiam >
state is 'as it should be' when its running
21:44
tdy has quit [Ping timeout: 268 seconds]
21:44
lucasb has quit [Quit: Connection closed for inactivity]
21:53
AJA4350 has quit [Ping timeout: 240 seconds]
21:56
robscomputer has joined #ruby
22:00
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:01
robscomputer has quit [Ping timeout: 244 seconds]
22:04
robscomputer has joined #ruby
22:09
r29v has quit [Quit: r29v]
22:12
tdy has joined #ruby
22:28
blackmesa has joined #ruby
22:28
<
al2o3-cr >
baweaver: curry dude!
22:29
perique has joined #ruby
22:32
Fusl has quit [Remote host closed the connection]
22:34
Fusl has joined #ruby
22:43
<
leah2 >
did ARGF.lineno reset at some point? it doesnt seem to anymore
22:44
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:44
tde has joined #ruby
22:45
<
leah2 >
hm not in 1.9.3 either
22:46
<
leah2 >
oh duh, ARGF.file.lineno
22:46
robscomputer has joined #ruby
22:47
tde has quit [Quit: leaving]
22:47
nowhereman has joined #ruby
22:48
tde has joined #ruby
22:58
tde has quit [Quit: Lost terminal]
22:58
tdy has quit [Remote host closed the connection]
22:58
za1b1tsu has quit [Remote host closed the connection]
23:05
perique has quit [Quit: PHX->SJC]
23:10
houhoulis has quit [Remote host closed the connection]
23:10
darix has quit [Quit: brb]
23:13
AJA4350 has joined #ruby
23:13
r29v has joined #ruby
23:16
code_zombie has quit [Quit: Leaving]
23:18
polishdub has quit [Quit: leaving]
23:20
bruul has joined #ruby
23:23
Emmanuel_Chanel has quit [Quit: Leaving]
23:24
cd has joined #ruby
23:31
frem has quit [Quit: Connection closed for inactivity]
23:32
Emmanuel_Chanel has joined #ruby
23:56
lxsameer has quit [Ping timeout: 240 seconds]
23:58
bruul has quit [Ping timeout: 268 seconds]