00:01
TheBloke has joined #ruby
00:07
tdy has joined #ruby
00:15
kapil____ has joined #ruby
00:18
nchambers has quit [Ping timeout: 244 seconds]
00:19
xfbs has quit [Quit: afk]
00:21
gix has quit [Ping timeout: 268 seconds]
00:23
elphe has joined #ruby
00:26
apeiros has quit []
00:29
venmx has quit [Ping timeout: 252 seconds]
00:32
mangold has joined #ruby
00:33
nchambers has joined #ruby
00:44
nchambers has quit [Ping timeout: 245 seconds]
00:53
weaksauce has joined #ruby
00:57
TheBloke has joined #ruby
01:12
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:13
lxsameer has quit [Ping timeout: 268 seconds]
01:17
cagomez has joined #ruby
01:18
cagomez has quit [Remote host closed the connection]
01:19
cagomez has joined #ruby
01:23
jasmith has quit [Quit: Leaving]
01:39
orbyt_ has joined #ruby
01:42
mangold has quit [Quit: This computer has gone to sleep]
01:43
cagomez has quit [Remote host closed the connection]
01:44
cagomez has joined #ruby
01:44
cagomez has quit [Remote host closed the connection]
01:47
roshanavand has quit [Remote host closed the connection]
01:48
roshanavand has joined #ruby
01:50
nchambers has joined #ruby
01:53
AJA4350 has quit [Quit: AJA4350]
01:57
scrooloose has quit [Quit: Connection closed for inactivity]
02:00
esrse has joined #ruby
02:02
jetchisel has quit [Ping timeout: 252 seconds]
02:03
mangold has joined #ruby
02:04
roshanavand has quit [Remote host closed the connection]
02:07
jetchisel has joined #ruby
02:09
cagomez has joined #ruby
02:19
cagomez has quit [Remote host closed the connection]
02:20
RougeR has quit [Ping timeout: 240 seconds]
02:20
cagomez has joined #ruby
02:25
TheBloke has joined #ruby
02:25
agent_white has quit [Quit: Lost terminal]
02:44
houhoulis has joined #ruby
02:58
arescorpio has joined #ruby
02:58
roshanavand has joined #ruby
03:00
mangold has quit [Quit: This computer has gone to sleep]
03:02
za1b1tsu has joined #ruby
03:15
jetchisel has quit [Ping timeout: 252 seconds]
03:17
jetchisel has joined #ruby
03:20
elphe has quit [Ping timeout: 246 seconds]
03:21
houhoulis has quit [Remote host closed the connection]
03:46
elphe has joined #ruby
03:47
roshanavand has quit [Remote host closed the connection]
03:48
roshanavand has joined #ruby
03:51
elphe has quit [Ping timeout: 272 seconds]
03:52
arescorpio has quit [Quit: Leaving.]
04:01
mangold has joined #ruby
04:04
roshanavand has quit [Ping timeout: 260 seconds]
04:05
braincrash has quit [Quit: bye bye]
04:08
braincrash has joined #ruby
04:12
cagomez has quit []
04:13
Dimik has quit [Remote host closed the connection]
04:17
asphyxia has quit [Ping timeout: 252 seconds]
04:22
elphe has joined #ruby
04:26
elphe has quit [Ping timeout: 252 seconds]
04:39
elphe has joined #ruby
04:47
lytol has quit [Remote host closed the connection]
04:53
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
04:56
Liothen has joined #ruby
05:01
elphe has quit [Ping timeout: 244 seconds]
05:15
jasmith has joined #ruby
05:17
elphe has joined #ruby
05:18
hurricanehrndz has quit [Quit: Goodbye]
05:20
asphyxia has joined #ruby
05:26
elphe has quit [Ping timeout: 246 seconds]
05:32
elphe has joined #ruby
05:38
apparition has quit [Quit: Bye]
05:43
elphe has quit [Ping timeout: 244 seconds]
05:45
elphe has joined #ruby
05:48
cgfbee has joined #ruby
05:57
elphe has quit [Ping timeout: 240 seconds]
06:00
elphe has joined #ruby
06:06
asphyxia has quit [Ping timeout: 268 seconds]
06:08
elphe has quit [Ping timeout: 240 seconds]
06:10
elphe has joined #ruby
06:17
elphe has quit [Ping timeout: 250 seconds]
06:19
devyn has joined #ruby
06:22
elphe has joined #ruby
06:27
elphe has quit [Ping timeout: 244 seconds]
06:32
devyn has quit [Ping timeout: 260 seconds]
06:32
elphe has joined #ruby
06:32
devyn has joined #ruby
06:37
elphe has quit [Ping timeout: 240 seconds]
06:39
mangold has quit [Quit: This computer has gone to sleep]
06:39
elphe has joined #ruby
06:39
mangold has joined #ruby
06:41
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:42
conta has joined #ruby
06:52
elphe has quit [Ping timeout: 260 seconds]
06:53
paranoidaditya has joined #ruby
06:54
paranoidaditya has quit [Client Quit]
07:06
elphe has joined #ruby
07:07
Inline has quit [Quit: Leaving]
07:08
aufi has joined #ruby
07:11
donofrio has quit [Remote host closed the connection]
07:14
kapil____ has quit [Quit: Connection closed for inactivity]
07:25
elphe has quit [Ping timeout: 268 seconds]
07:26
elphe has joined #ruby
07:38
JustForgotten has joined #ruby
07:38
nchambers has quit [Ping timeout: 252 seconds]
07:40
kent\n has quit [Quit: taking IRC off for a bit for database/kernel updates]
07:45
DTZUZO has joined #ruby
07:49
elphe has quit [Ping timeout: 252 seconds]
07:49
alem0lars has joined #ruby
07:49
alem0lars has quit [Max SendQ exceeded]
07:50
alem0lars has joined #ruby
07:53
clemens3 has quit [Ping timeout: 252 seconds]
07:53
alem0lars has quit [Remote host closed the connection]
08:02
gothicsouth has joined #ruby
08:03
za1b1tsu has quit [Ping timeout: 246 seconds]
08:03
gothicsouth has quit [Client Quit]
08:04
DoubleMalt has joined #ruby
08:04
DoubleMalt has quit [Remote host closed the connection]
08:04
elphe has joined #ruby
08:09
elphe has quit [Ping timeout: 264 seconds]
08:10
venmx has joined #ruby
08:11
nchambers has joined #ruby
08:14
clemens3 has joined #ruby
08:15
za1b1tsu has joined #ruby
08:17
asphyxia has joined #ruby
08:20
elphe has joined #ruby
08:29
elphe has quit [Ping timeout: 246 seconds]
08:34
elphe has joined #ruby
08:35
vondruch has quit [Quit: vondruch]
08:38
phaul has joined #ruby
08:39
elphe has quit [Ping timeout: 252 seconds]
08:39
RougeR has joined #ruby
08:41
sylario has joined #ruby
08:44
elphe has joined #ruby
08:44
jamied has joined #ruby
08:44
nchambers has quit [Ping timeout: 250 seconds]
08:45
RougeR has quit [Ping timeout: 268 seconds]
08:49
elphe has quit [Ping timeout: 252 seconds]
08:51
gix has joined #ruby
08:53
elphe has joined #ruby
08:55
Nicmavr has joined #ruby
08:56
code_zombie has joined #ruby
09:07
vondruch has joined #ruby
09:08
aaltohenrik has quit [Quit: WeeChat 2.3]
09:10
whysthatso has joined #ruby
09:12
elphe has quit [Ping timeout: 246 seconds]
09:17
lxsameer has joined #ruby
09:17
elphe has joined #ruby
09:31
cd has joined #ruby
09:41
themsay has joined #ruby
09:57
xfbs has joined #ruby
10:09
mangold has quit [Quit: This computer has gone to sleep]
10:10
mangold has joined #ruby
10:19
jlebrech has joined #ruby
10:19
<
jlebrech >
Iambchop: hi, thanks for the help on friday
10:21
<
jlebrech >
i have api calls that take 18 seconds, i'm thinking of implementing some kind of double buffering cache invalidation, where i retrieve the cache but immediately refresh that cache for next time.
10:23
nowhere_man has joined #ruby
10:27
code_zombie has quit [Quit: Leaving]
10:29
clemens3 has quit [Remote host closed the connection]
10:39
rubydoc has quit [Remote host closed the connection]
10:39
rubydoc has joined #ruby
10:39
<
phaul >
ri Array al2o3-cr
10:39
<
phaul >
&ri Array al2o3-cr
10:41
nchambers has joined #ruby
10:41
<
phaul >
also relaxed the syntax with the `,' after the class name and such, so its more accepting for suffixes
10:46
esrse has quit [Ping timeout: 240 seconds]
10:51
asphyxia has quit [Ping timeout: 250 seconds]
10:52
jlebrech has quit [Remote host closed the connection]
10:55
nahra has joined #ruby
11:00
Cthulu201 has quit [Read error: Connection reset by peer]
11:11
<
al2o3-cr >
phaul: that's better, now people will be notified when you want to reference the docs to them ;)
11:14
nchambers has quit [Ping timeout: 244 seconds]
11:18
Cthulu201 has joined #ruby
11:19
rippa has joined #ruby
11:19
JustForgotten has quit [Quit: This computer has gone to sleep]
11:25
elphe has quit [Ping timeout: 250 seconds]
11:35
nchambers has joined #ruby
11:40
elphe has joined #ruby
11:41
anikras has joined #ruby
11:46
elphe has quit [Ping timeout: 260 seconds]
11:50
elphe has joined #ruby
11:56
elphe has quit [Ping timeout: 272 seconds]
11:57
AJA4350 has joined #ruby
12:01
elphe has joined #ruby
12:05
elphe has quit [Ping timeout: 240 seconds]
12:08
nchambers has quit [Ping timeout: 252 seconds]
12:11
elphe has joined #ruby
12:17
drale2k_ has joined #ruby
12:25
<
quintasan >
Any idea why does
http://rubular.com/r/MC53HATjNL but when I do /\S*(Daal Tarka|Jeera Aloo|Chana Masala)\S*/.match("dzisiaj w karmie Daal Tarka i Jeera Aloo") I get only one match?
12:29
<
al2o3-cr >
hmm, cumin potatoes ;)
12:31
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:34
themsay has quit [Ping timeout: 252 seconds]
12:35
themsay has joined #ruby
12:36
k0mpa has quit [Remote host closed the connection]
12:38
za1b1tsu_ has joined #ruby
12:39
themsay has quit [Ping timeout: 244 seconds]
12:41
za1b1tsu has quit [Ping timeout: 252 seconds]
12:42
<
al2o3-cr >
quintasan: Regex.union will stop on first match, thus giving you back Daal Tarka. it's basically saying (Daal Tarka or Jeera Aloo or Chana Masala) so to speak.
12:42
<
al2o3-cr >
if you'd like all captures use String#scan
12:42
<
al2o3-cr >
"dzisiaj w karmie Daal Tarka i Jeera Aloo".scan /\S*(Daal Tarka|Jeera Aloo|Chana Masala)\S*/
12:47
<
al2o3-cr >
the use of \S* and () captures is not neccesary when using scan.
12:55
conta has quit [Ping timeout: 246 seconds]
12:56
cd has quit [Quit: cd]
13:00
<
quintasan >
al2o3-cr: Thanks!
13:02
<
al2o3-cr >
yw quintasan.
13:03
ta_ has joined #ruby
13:04
cd has joined #ruby
13:04
TheBloke has joined #ruby
13:05
k0mpa has joined #ruby
13:07
drale2k_ has joined #ruby
13:10
z64 has joined #ruby
13:11
wildermind has joined #ruby
13:12
conta has joined #ruby
13:16
scrooloose has joined #ruby
13:16
za1b1tsu has joined #ruby
13:17
clemens3 has joined #ruby
13:18
vondruch_ has joined #ruby
13:18
za1b1tsu_ has quit [Ping timeout: 244 seconds]
13:18
jcalla has quit [Ping timeout: 240 seconds]
13:20
vondruch has quit [Ping timeout: 260 seconds]
13:20
vondruch_ is now known as vondruch
13:21
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:28
aufi has quit [Ping timeout: 268 seconds]
13:38
dmitch has joined #ruby
13:39
TheBloke has joined #ruby
13:42
inky has left #ruby [#ruby]
13:51
lytol has joined #ruby
13:54
jamied has joined #ruby
13:54
Tempesta has quit [Quit: See ya!]
13:55
nchambers has joined #ruby
13:55
bmurt has joined #ruby
13:58
mangold has quit [Quit: This computer has gone to sleep]
13:59
aufi has joined #ruby
14:00
DoubleMalt has joined #ruby
14:00
DoubleMalt has quit [Read error: Connection reset by peer]
14:01
ta_ has quit [Read error: Connection reset by peer]
14:02
Tempesta has joined #ruby
14:06
mangold has joined #ruby
14:07
desperek has joined #ruby
14:08
DoubleMalt has joined #ruby
14:09
DoubleMalt has quit [Client Quit]
14:13
jlebrech has joined #ruby
14:14
<
jlebrech >
anyone know how to keep the same session throughout capybara tests?
14:17
desperek has quit [Quit: xoxo]
14:20
jcalla has joined #ruby
14:28
kapil____ has joined #ruby
14:29
vondruch has quit [Quit: vondruch]
14:30
vondruch has joined #ruby
14:30
apeiros_ has joined #ruby
14:31
mangold has quit [Quit: This computer has gone to sleep]
14:33
za1b1tsu has quit [Ping timeout: 252 seconds]
14:35
k0mpa has quit [Ping timeout: 256 seconds]
14:41
thebetrayer has joined #ruby
14:42
donofrio has joined #ruby
14:46
phaul has quit [Ping timeout: 252 seconds]
14:46
apeiros_ is now known as apeiros
14:46
Rapture has joined #ruby
14:48
phaul has joined #ruby
14:49
nchambers has quit [Ping timeout: 252 seconds]
14:50
nchambers has joined #ruby
14:54
thebetrayer has quit [Ping timeout: 252 seconds]
14:56
gnufied has joined #ruby
14:56
cow[moo] has joined #ruby
15:04
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:04
mangold has joined #ruby
15:05
za1b1tsu has joined #ruby
15:06
spiette has joined #ruby
15:09
gnufied has quit [Quit: Leaving]
15:10
za1b1tsu has quit [Ping timeout: 260 seconds]
15:12
Inline has joined #ruby
15:15
Dbugger has joined #ruby
15:17
gnufied has joined #ruby
15:23
drale2k_ has joined #ruby
15:25
whysthatso has quit [Quit: whysthatso]
15:35
za1b1tsu has joined #ruby
15:36
conta has quit [Ping timeout: 252 seconds]
15:44
GodFather has joined #ruby
15:45
vondruch has quit [Read error: Connection reset by peer]
15:46
vondruch has joined #ruby
15:46
vondruch has quit [Client Quit]
15:47
vondruch has joined #ruby
15:47
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:49
cow[moo] has joined #ruby
15:50
anikras has quit [Quit: Ex-Chat]
15:51
phaul has quit [Ping timeout: 244 seconds]
15:51
jsc has joined #ruby
15:51
jsc is now known as status402
15:51
tdy has quit [Ping timeout: 268 seconds]
15:55
status402 has quit [Client Quit]
15:55
apeiros has quit [Remote host closed the connection]
15:56
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:58
tdy has joined #ruby
16:09
Inside has joined #ruby
16:12
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:23
conta has joined #ruby
16:26
apeiros has joined #ruby
16:27
stan has joined #ruby
16:34
chouhoulis has joined #ruby
16:35
voolik has joined #ruby
16:38
conta has quit [Quit: conta]
16:41
clemens3 has quit [Ping timeout: 240 seconds]
16:45
aufi has quit [Quit: Leaving]
16:45
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:49
desperek has joined #ruby
16:56
conta has joined #ruby
17:01
jlebrech has quit [Remote host closed the connection]
17:06
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:07
whysthatso has joined #ruby
17:08
mangold has quit [Quit: This computer has gone to sleep]
17:17
darkhanb has joined #ruby
17:19
lxsameer has quit [Ping timeout: 252 seconds]
17:19
mangold has joined #ruby
17:21
mangold has quit [Client Quit]
17:24
Wojnar has joined #ruby
17:26
mniip has quit [Quit: This page is intentionally left blank.]
17:29
mniip has joined #ruby
17:30
cthulchu has joined #ruby
17:34
prestorium has joined #ruby
17:35
Eiam has joined #ruby
17:39
k0mpa has joined #ruby
17:44
lxsameer has joined #ruby
17:46
ivanskie has joined #ruby
17:47
Fusl has quit [Ping timeout: 256 seconds]
17:49
lxsameer has quit [Ping timeout: 252 seconds]
17:50
Fusl has joined #ruby
17:56
orbyt_ has joined #ruby
18:00
lxsameer has joined #ruby
18:02
claudiuinberlin has joined #ruby
18:17
sauvin has quit [Read error: Connection reset by peer]
18:20
Sembei has joined #ruby
18:20
Pisuke has quit [Ping timeout: 244 seconds]
18:21
roshanavand has joined #ruby
18:22
Mike11 has joined #ruby
18:23
prestorium has quit [Quit: prestorium]
18:23
Rapture has joined #ruby
18:26
eddof13 has joined #ruby
18:28
desperek has quit [Quit: xoxo]
18:30
mostlybadfly has joined #ruby
18:35
beefjoe has joined #ruby
18:37
reber has joined #ruby
18:38
za1b1tsu has quit [Ping timeout: 276 seconds]
18:41
venmx has quit [Ping timeout: 246 seconds]
18:43
eckhardt has joined #ruby
18:44
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:47
conta has quit [Quit: conta]
18:48
<
JasonO >
why is it okay to use to_s method to print out a class when .to_s is already a Ruby method? Shouldn't this kind of thing be avoided? Would it not be similar to creating a method called puts? def puts, print etc.?
18:52
<
orbyt_ >
JasonO It's a simple override
18:52
roshanavand1 has joined #ruby
18:52
<
orbyt_ >
Also I think .inspect is often preferred
18:53
roshanavand has quit [Ping timeout: 240 seconds]
18:54
<
JasonO >
orbyt_: I see. That's interesting. So convention is to always name this method to_s? I could never use inspect for the method name?
18:54
roshanavand1 is now known as roshanavand
18:55
k0mpa has quit [Ping timeout: 256 seconds]
18:55
<
JasonO >
is inspect not simply used for debugging? and .to_s the preferred or accepted method? O_o
19:06
roshanavand has quit [Ping timeout: 272 seconds]
19:06
<
JasonO >
orbyt_: I read an accepted response on StackOverflow that stated inspect is for debugging and to_s is the acceptable method
19:09
<
orbyt_ >
JasonO `to_s` simply returns a String representation of the object, while `.inspect` will do the same in addition to printing any instance variables.
19:10
go|dfish has quit [Ping timeout: 260 seconds]
19:13
za1b1tsu has joined #ruby
19:13
go|dfish has joined #ruby
19:16
beefjoe has quit [Remote host closed the connection]
19:16
<
JasonO >
orbyt_: thanks!
19:17
bootstrappm has joined #ruby
19:18
za1b1tsu has quit [Ping timeout: 268 seconds]
19:20
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
19:28
despai has joined #ruby
19:32
eddof13 has quit [Quit: eddof13]
19:33
Nicmavr has quit [Read error: Connection reset by peer]
19:34
nofxx has quit [Ping timeout: 252 seconds]
19:35
Nicmavr has joined #ruby
19:36
nofxx has joined #ruby
19:38
nowhereman has joined #ruby
19:39
nowhereman is now known as Guest70792
19:39
nowhere_man has quit [Ping timeout: 260 seconds]
19:51
defarge has joined #ruby
19:52
sanscoeur has joined #ruby
19:57
cow[moo] has joined #ruby
19:59
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:01
despai has quit [Quit: ...]
20:01
sanscoeur has quit [Remote host closed the connection]
20:01
bootstrappm has quit [Ping timeout: 250 seconds]
20:07
eddof13 has joined #ruby
20:09
nfk has joined #ruby
20:11
levifig has joined #ruby
20:13
claudiuinberlin has joined #ruby
20:14
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:15
cow[moo] has joined #ruby
20:15
jamied has joined #ruby
20:16
k0mpa has joined #ruby
20:20
jamied has quit [Ping timeout: 252 seconds]
20:26
apeiros has quit [Read error: Connection reset by peer]
20:26
apeiros__ has joined #ruby
20:29
Mike11 has quit [Quit: Leaving.]
20:30
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
20:30
Dbugger has quit [Remote host closed the connection]
20:30
sanscoeur has joined #ruby
20:32
eddof13 has quit [Quit: eddof13]
20:36
weaksauce has joined #ruby
20:40
mostlybadfly has quit [Quit: Connection closed for inactivity]
20:44
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:51
elphe has quit [Ping timeout: 240 seconds]
20:56
reber has quit [Remote host closed the connection]
21:01
za1b1tsu has joined #ruby
21:03
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:03
orbyt_ has joined #ruby
21:06
za1b1tsu has quit [Ping timeout: 252 seconds]
21:10
postmodern has joined #ruby
21:10
voolik has quit [Ping timeout: 260 seconds]
21:14
sagax has joined #ruby
21:15
eddof13 has joined #ruby
21:15
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
21:23
venmx has joined #ruby
21:26
apeiros__ has quit [Read error: Connection reset by peer]
21:26
apeiros has joined #ruby
21:31
cow[moo] has joined #ruby
21:33
lytol has quit [Remote host closed the connection]
21:37
kapil____ has quit [Quit: Connection closed for inactivity]
21:37
eddof13 has quit [Quit: eddof13]
21:40
eddof13 has joined #ruby
21:42
themsay has joined #ruby
21:43
bmurt has joined #ruby
21:46
vondruch has quit [Ping timeout: 245 seconds]
21:46
d10n-work has joined #ruby
21:46
themsay has quit [Ping timeout: 244 seconds]
21:46
SeepingN has joined #ruby
21:53
hightower3 has joined #ruby
21:54
<
hightower3 >
Hey, how can I conveniently change hash keys and values while iterating over it? (Or rather, how can I conveniently do a deep clone and then modify one after iterating another)?
21:54
<
hightower3 >
I would need to transform both keys and values in some places, and end up with the modified hash or its copy in the end
21:55
themsay has joined #ruby
21:58
roshanavand has joined #ruby
22:00
TheBloke has joined #ruby
22:01
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:01
themsay has quit [Read error: Connection reset by peer]
22:02
themsay has joined #ruby
22:03
weaksauce has quit [Ping timeout: 252 seconds]
22:11
eckhardt has joined #ruby
22:11
eckhardt has quit [Client Quit]
22:11
despai has joined #ruby
22:12
<
wnd >
hightower3, something like i = { :a => 'abc', 1 => :bar }; Hash[i.map { |k, v| [k.to_s.to_sym, v.to_s.reverse] } ] ?
22:13
<
wnd >
somehow I'd expect that evaluation to be expensive, though
22:14
<
hightower3 >
with hash.inject
22:14
themsay has quit [Ping timeout: 268 seconds]
22:14
<
wnd >
i.each_with_object({}) { |(k, v), out| out[k.to_s.to_sym] = v.to_s.reverse } ?-)
22:15
<
wnd >
ah, same approach with each_with_object, just without having to return memo object each time
22:15
themsay has joined #ruby
22:20
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:22
jesfre has joined #ruby
22:26
RougeR has joined #ruby
22:31
wildermind has quit [Quit: Connection closed for inactivity]
22:39
za1b1tsu has joined #ruby
22:39
samort7 has joined #ruby
22:42
elphe has joined #ruby
22:43
despai has quit [Ping timeout: 250 seconds]
22:44
za1b1tsu has quit [Ping timeout: 252 seconds]
22:44
phaul has joined #ruby
22:48
elphe has quit [Ping timeout: 268 seconds]
22:51
orbyt_ has quit [Read error: Connection reset by peer]
22:52
elphe has joined #ruby
22:56
jesfre has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:57
elphe has quit [Ping timeout: 240 seconds]
23:04
ivanskie has joined #ruby
23:04
<
ivanskie >
o hai there
23:04
<
ivanskie >
anyone considers themselves a Thor expert? lol
23:05
<
ivanskie >
i hijacked the bin executable, and renamed the main one so that I can do stuff in parant shell in a certain situation.
23:05
<
Inside >
ivanskie: I prefer silver age Thor over the other versions
23:06
<
ivanskie >
anyway now all help / error outputs the name of the renamed executable (i added '_'. in my case).
23:06
<
ivanskie >
is there anyway to override that behaviour?
23:07
elphe has joined #ruby
23:16
c-c has quit [Ping timeout: 244 seconds]
23:17
hurricanehrndz has joined #ruby
23:23
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:34
<
havenwood >
hightower3: Modern Ruby now has #transform_keys and #transform_values.
23:35
<
hightower3 >
havenwood, ah, good one, thanks!
23:35
<
havenwood >
hightower3: Ruby 2.6 will have #to_h, which is like #transform_keys_and_values.
23:36
<
havenwood >
{aim: true}.to_h { |k, v| [k.to_s, v.to_s] } #=> {"aim"=>"true"}
23:37
elphe has quit [Ping timeout: 245 seconds]
23:39
<
havenwood >
ivanskie: You did what? I don't follow. Have an example of how you use the hacked version?
23:40
<
ivanskie >
my main executable lets say was exe/`command` i renamed it `_command` and added `command` which just has an if/else block in it. if second argumant matches it runs something else. otherwise it just starts `_command`.
23:41
GodFather has quit [Ping timeout: 244 seconds]
23:41
<
ivanskie >
so now `$ command help` says `'_command help' - show help`
23:41
<
ivanskie >
if that makes any sense
23:43
cow[moo] has joined #ruby
23:43
<
havenwood >
ivanskie: So it's the help banner that's messed up?
23:44
cow[moo] has quit [Client Quit]
23:46
<
havenwood >
ivanskie: I wonder if redefining `self.basename` would cause trouble ;)
23:47
<
ivanskie >
lets see
23:51
venmx has quit [Ping timeout: 246 seconds]
23:52
eddof13 has quit [Quit: eddof13]
23:52
chouhoulis has quit [Ping timeout: 252 seconds]
23:53
<
ivanskie >
it worked for main command
23:53
eddof13 has joined #ruby
23:53
asphyxia has joined #ruby
23:55
<
ivanskie >
heh, have to add in every command class. alright cool. thanks havenwood