00:00
oleo has quit [Quit: Verlassend]
00:00
yock has quit [Ping timeout: 252 seconds]
00:01
Musashi007 has quit [Read error: Connection reset by peer]
00:01
Musashi007 has joined #ruby-lang
00:08
tmi_ has joined #ruby-lang
00:08
symm- has quit [Ping timeout: 256 seconds]
00:09
caseypatrickdris has quit [Remote host closed the connection]
00:10
RickHull has joined #ruby-lang
00:11
oleo has joined #ruby-lang
00:13
mcclurmc has joined #ruby-lang
00:15
koderok has joined #ruby-lang
00:15
koderok has quit [Client Quit]
00:16
caseypatrickdris has joined #ruby-lang
00:17
Technodrome has joined #ruby-lang
00:18
mcclurmc has quit [Ping timeout: 252 seconds]
00:21
yfeldblum has quit [Remote host closed the connection]
00:21
tmi_ has quit [Quit: .]
00:23
loincloth has joined #ruby-lang
00:24
symm- has joined #ruby-lang
00:26
claudiuinberlin has quit [Quit: Leaving.]
00:26
mistym has quit [Remote host closed the connection]
00:28
loincloth has quit [Ping timeout: 272 seconds]
00:29
caseypatrickdris has quit [Remote host closed the connection]
00:29
ta has joined #ruby-lang
00:29
caseypatrickdris has joined #ruby-lang
00:30
caseypatrickdris has quit [Remote host closed the connection]
00:33
charliesome has joined #ruby-lang
00:35
Technodrome has quit [Quit: Technodrome]
00:37
devgiant_ has quit [Quit: Leaving]
00:41
kiyote23 has joined #ruby-lang
00:41
shubhamg_ has quit [Remote host closed the connection]
00:50
banister has joined #ruby-lang
00:50
<
brixen >
whitequark: turn off coverage
00:51
<
brixen >
whitequark: you're running rbx with the slowest possible interpreter
00:51
<
brixen >
it's basically making a function call at every instruction pointer advance
00:51
<
brixen >
I'm fixing that soon
00:51
<
brixen >
but that's your issue
00:51
<
whitequark >
mri and jruby don't get the slowdown, no?
00:51
kiyote23 has quit [Remote host closed the connection]
00:52
<
whitequark >
both run coverage
00:52
<
brixen >
rbx has a very naive coverage implementation at the moment
00:52
<
brixen >
rbx can basically do zero-cost production coverage
00:52
<
brixen >
but that's not how Coverage was implemented
00:52
<
brixen >
it's using the tooling interpreter, which has a function hook at every IP
00:53
<
brixen >
like I said, I'm fixing that soon
00:53
caseypatrickdris has joined #ruby-lang
00:54
|jemc| has joined #ruby-lang
00:57
mcclurmc has joined #ruby-lang
00:57
nisscrooge has quit [Changing host]
00:57
nisscrooge has joined #ruby-lang
00:58
nisscrooge is now known as nisstyre
01:03
shubhamg_ has joined #ruby-lang
01:03
Sadin has quit [Remote host closed the connection]
01:05
j4cknewt has quit [Remote host closed the connection]
01:09
Sadin has joined #ruby-lang
01:10
yfeldblum has joined #ruby-lang
01:10
marr has quit [Ping timeout: 255 seconds]
01:11
Menorah has joined #ruby-lang
01:15
yfeldblum has quit [Ping timeout: 255 seconds]
01:17
boadie has quit [Read error: Connection reset by peer]
01:17
boadie has joined #ruby-lang
01:21
caseypatrickdris has quit [Remote host closed the connection]
01:22
micmus has quit [Ping timeout: 265 seconds]
01:23
djbkd has joined #ruby-lang
01:23
mcclurmc has quit [Remote host closed the connection]
01:23
mcclurmc has joined #ruby-lang
01:24
loincloth has joined #ruby-lang
01:24
mcclurmc has quit [Remote host closed the connection]
01:27
djbkd has quit [Ping timeout: 244 seconds]
01:28
havenwood has quit [Remote host closed the connection]
01:28
loincloth has quit [Ping timeout: 245 seconds]
01:28
charliesome has quit [Quit: zzz]
01:29
caseypatrickdris has joined #ruby-lang
01:31
symm- has quit [Ping timeout: 252 seconds]
01:37
Menorah has quit [Quit: This computer has gone to sleep]
01:37
daften has joined #ruby-lang
01:38
daften has left #ruby-lang [#ruby-lang]
01:46
mistym has joined #ruby-lang
01:46
Menorah has joined #ruby-lang
01:48
charliesome has joined #ruby-lang
01:50
cornerma1 has joined #ruby-lang
01:53
cornerman has quit [Ping timeout: 245 seconds]
01:53
cornerma1 is now known as cornerman
01:53
[H]unt3r has joined #ruby-lang
01:57
yock has joined #ruby-lang
02:02
yock has quit [Ping timeout: 244 seconds]
02:02
Technodrome has joined #ruby-lang
02:18
tombroomfield has joined #ruby-lang
02:20
red_menace has joined #ruby-lang
02:24
mcclurmc has joined #ruby-lang
02:25
loincloth has joined #ruby-lang
02:26
djbkd_ has quit [Read error: Connection reset by peer]
02:26
djbkd has joined #ruby-lang
02:28
pwelch has quit [Quit: Connection closed for inactivity]
02:29
loincloth has quit [Ping timeout: 245 seconds]
02:30
mcclurmc has quit [Ping timeout: 244 seconds]
02:31
djbkd has quit [Ping timeout: 244 seconds]
02:33
Bedov-Kutoniva has joined #ruby-lang
02:58
spastorino has quit [Quit: Connection closed for inactivity]
02:58
yfeldblum has joined #ruby-lang
03:03
yfeldblum has quit [Ping timeout: 240 seconds]
03:03
apeiros_ has joined #ruby-lang
03:04
apeiros_ has quit [Remote host closed the connection]
03:04
apeiros_ has joined #ruby-lang
03:10
apeiros_ has quit [Remote host closed the connection]
03:11
apeiros_ has joined #ruby-lang
03:13
|jemc| has quit [Ping timeout: 250 seconds]
03:13
Jet4Fire has quit []
03:16
yfeldblum has joined #ruby-lang
03:18
mistym_ has joined #ruby-lang
03:18
lsegal has quit [Read error: Connection reset by peer]
03:18
lsegal has joined #ruby-lang
03:18
mistym has quit [Disconnected by services]
03:18
mistym_ is now known as mistym
03:21
yfeldblum has quit [Ping timeout: 258 seconds]
03:22
kiyote23 has joined #ruby-lang
03:22
hotpancakes has quit []
03:31
j4cknewt has joined #ruby-lang
03:32
j4cknewt has quit [Remote host closed the connection]
03:32
Menorah has quit [Quit: This computer has gone to sleep]
03:34
Menorah has joined #ruby-lang
03:38
j4cknewt has joined #ruby-lang
03:42
Musashi007 has quit [Quit: Musashi007]
03:45
shubhamg_ has quit [Remote host closed the connection]
03:49
<
RickHull >
has inkjet been around? i notice slop went 4.0 :)
03:50
weaksauce has joined #ruby-lang
03:53
Lewix has joined #ruby-lang
03:55
tombroomfield has quit [Read error: No route to host]
03:55
tombroomfield has joined #ruby-lang
03:57
dane has joined #ruby-lang
03:57
red_menace has quit [Quit: Quit]
03:58
yock has joined #ruby-lang
03:59
Musashi007 has joined #ruby-lang
03:59
<
dane >
How can I use a method within a class to access tbe method with a nested class
04:00
<
dane >
need help pls can go further without the solution
04:03
kiyote23 has quit [Remote host closed the connection]
04:03
yock has quit [Ping timeout: 264 seconds]
04:10
yfeldblum has joined #ruby-lang
04:12
dane has quit [Ping timeout: 244 seconds]
04:14
charliesome has quit [Quit: zzz]
04:15
yfeldblum has quit [Ping timeout: 255 seconds]
04:16
dane has joined #ruby-lang
04:22
dane has quit [Ping timeout: 245 seconds]
04:24
futilegames has joined #ruby-lang
04:27
caseypatrickdris has quit [Remote host closed the connection]
04:27
mcclurmc has joined #ruby-lang
04:28
caseypatrickdris has joined #ruby-lang
04:29
Musashi007 has quit [Quit: Musashi007]
04:31
mcclurmc has quit [Ping timeout: 244 seconds]
04:32
<
whitequark >
RickHull: ljarvis ^
04:32
caseypatrickdris has quit [Ping timeout: 252 seconds]
04:37
djbkd has joined #ruby-lang
04:37
<
RickHull >
ljarvis: aha, i tried leejarvis :)
04:38
<
RickHull >
what's new in slop 4.0 aside from ruby 2.0? I didn't see a changelog
04:38
shubhamgoyal has joined #ruby-lang
04:38
<
RickHull >
whitequark: thanks
04:39
|jemc| has joined #ruby-lang
04:39
<
RickHull >
i have a slop dependency at ~> 3.0, and i think I am 4.0 compatible. should I change it to >= 3.0 or ~> 4.0 or?
04:41
djbkd has quit [Ping timeout: 244 seconds]
04:43
tombroomfield has quit [Read error: Connection reset by peer]
04:44
tombroomfield has joined #ruby-lang
04:49
|jemc| has quit [Ping timeout: 272 seconds]
04:50
tombroomfield has quit [Read error: Connection reset by peer]
04:51
tombroomfield has joined #ruby-lang
04:54
[H]unt3r has quit [Ping timeout: 258 seconds]
04:56
shubhamgoyal has quit [Remote host closed the connection]
04:56
shubhamgoyal has joined #ruby-lang
04:58
shubhamgoyal has quit [Remote host closed the connection]
04:58
djbkd has joined #ruby-lang
05:03
Musashi007 has joined #ruby-lang
05:03
gjaldon has joined #ruby-lang
05:05
yfeldblum has joined #ruby-lang
05:07
shubhamgoyal has joined #ruby-lang
05:07
Musashi007 has quit [Ping timeout: 265 seconds]
05:09
yfeldblum has quit [Ping timeout: 244 seconds]
05:14
shubhamg_ has joined #ruby-lang
05:15
yfeldblum has joined #ruby-lang
05:16
shubhamgoyal has quit [Ping timeout: 245 seconds]
05:19
shubhamg_ has quit [Remote host closed the connection]
05:23
Musashi007 has joined #ruby-lang
05:25
jxie has quit [Ping timeout: 252 seconds]
05:25
Lewix has quit [Remote host closed the connection]
05:26
charliesome has joined #ruby-lang
05:27
jxie has joined #ruby-lang
05:28
mcclurmc has joined #ruby-lang
05:29
caseypatrickdris has joined #ruby-lang
05:32
mcclurmc has quit [Ping timeout: 256 seconds]
05:33
rbrs has joined #ruby-lang
05:34
caseypatrickdris has quit [Ping timeout: 244 seconds]
05:38
Menorah has quit [Quit: This computer has gone to sleep]
05:39
jxie has quit [Remote host closed the connection]
05:40
klmlfl has joined #ruby-lang
05:41
klmlfl has quit [Remote host closed the connection]
05:46
<
RickHull >
note, having a problem with `banner` in a Slop.parse block: undefined method `banner' for main:Object (NoMethodError)
05:46
revath has joined #ruby-lang
05:49
ubermonkey has joined #ruby-lang
05:51
mistym has quit [Remote host closed the connection]
05:53
ubermonkey has quit []
05:54
jxie has joined #ruby-lang
05:55
dabradley has quit [Ping timeout: 250 seconds]
05:56
Sgeo has quit [Read error: Connection reset by peer]
05:56
Sgeo has joined #ruby-lang
05:59
charliesome has quit [Quit: zzz]
06:00
yock has joined #ruby-lang
06:00
jxie has quit [Ping timeout: 245 seconds]
06:01
shubhamgoyal has joined #ruby-lang
06:02
jxie has joined #ruby-lang
06:04
yock has quit [Ping timeout: 245 seconds]
06:13
shubhamg_ has joined #ruby-lang
06:14
klmlfl has joined #ruby-lang
06:16
klmlfl has quit [Remote host closed the connection]
06:16
dabradley has joined #ruby-lang
06:16
shubhamgoyal has quit [Ping timeout: 256 seconds]
06:25
djbkd has quit [Remote host closed the connection]
06:28
drewdavis has quit [Remote host closed the connection]
06:28
mcclurmc has joined #ruby-lang
06:29
chinmay_dd has joined #ruby-lang
06:29
drewdavis has joined #ruby-lang
06:31
centrx has joined #ruby-lang
06:33
mcclurmc has quit [Ping timeout: 245 seconds]
06:46
mistym has joined #ruby-lang
06:46
Forgetful_Lion has joined #ruby-lang
06:49
boadie has joined #ruby-lang
06:52
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
07:00
wallerdev has quit [Read error: Connection reset by peer]
07:00
wallerdev has joined #ruby-lang
07:01
pwnz0r has joined #ruby-lang
07:03
kiyote23 has joined #ruby-lang
07:05
gjaldon has quit [Remote host closed the connection]
07:05
hahuang61 has quit [Quit: WeeChat 1.0.1]
07:06
rahul_j has joined #ruby-lang
07:08
kiyote23 has quit [Ping timeout: 264 seconds]
07:08
rahul_j has quit [Client Quit]
07:11
rahul_j has joined #ruby-lang
07:14
hahuang61 has joined #ruby-lang
07:16
ikrima has joined #ruby-lang
07:16
gjaldon has joined #ruby-lang
07:17
Forgetful_Lion has quit [Ping timeout: 244 seconds]
07:17
Menorah has joined #ruby-lang
07:23
gjaldon has quit [Remote host closed the connection]
07:24
ikrima has quit [Ping timeout: 245 seconds]
07:26
djbkd has joined #ruby-lang
07:29
mcclurmc has joined #ruby-lang
07:30
ikrima has joined #ruby-lang
07:31
djbkd has quit [Ping timeout: 250 seconds]
07:34
mcclurmc has quit [Ping timeout: 258 seconds]
07:39
Musashi007 has quit [Quit: Musashi007]
07:44
Sadin has quit [Remote host closed the connection]
07:45
chinmay_dd has quit [Quit: Leaving]
07:47
RickHull has quit [Ping timeout: 246 seconds]
07:48
fusillicode has joined #ruby-lang
07:52
AmirolAhmad has joined #ruby-lang
07:52
fusillicode has quit [Ping timeout: 264 seconds]
07:53
Musashi007 has joined #ruby-lang
07:55
futilegames has quit [Ping timeout: 252 seconds]
07:56
futilegames has joined #ruby-lang
07:56
nofxx has quit [Ping timeout: 244 seconds]
07:57
Technodrome has quit [Read error: Connection reset by peer]
08:01
druznek has joined #ruby-lang
08:01
yock has joined #ruby-lang
08:05
pwnz0r has quit [Remote host closed the connection]
08:05
tkuchiki has joined #ruby-lang
08:05
ikrima has quit [Ping timeout: 240 seconds]
08:06
yock has quit [Ping timeout: 252 seconds]
08:07
Missphoenix has joined #ruby-lang
08:07
fusillicode has joined #ruby-lang
08:08
Miphix has quit [Read error: Connection reset by peer]
08:08
gjaldon has joined #ruby-lang
08:09
rahul_j has quit [Quit: rahul_j]
08:15
onlyme has joined #ruby-lang
08:15
rahul_j has joined #ruby-lang
08:15
Bwild has quit [Ping timeout: 244 seconds]
08:19
gjaldon has quit [Remote host closed the connection]
08:23
GBrawl has joined #ruby-lang
08:26
onlyme has quit [Quit: Be back later ...]
08:29
shubhamg_ has quit [Remote host closed the connection]
08:30
shubhamgoyal has joined #ruby-lang
08:30
mcclurmc has joined #ruby-lang
08:32
druznek has quit [Ping timeout: 244 seconds]
08:33
rippa has joined #ruby-lang
08:34
shubhamgoyal has quit [Ping timeout: 244 seconds]
08:35
mcclurmc has quit [Ping timeout: 264 seconds]
08:36
rahul_j has quit [Quit: rahul_j]
08:39
shubhamgoyal has joined #ruby-lang
08:41
ur5us has joined #ruby-lang
08:42
rahul_j has joined #ruby-lang
08:46
yfeldblum has quit [Remote host closed the connection]
08:47
ta has quit [Remote host closed the connection]
08:53
rahul_j has quit [Quit: rahul_j]
08:54
rahul_j has joined #ruby-lang
08:55
kapil__ has joined #ruby-lang
08:58
amclain has quit [Quit: Leaving]
08:59
tkuchiki has quit [Remote host closed the connection]
09:06
Menorah has quit [Quit: This computer has gone to sleep]
09:07
rahul_j has quit [Quit: rahul_j]
09:10
onlyme has joined #ruby-lang
09:16
Menorah has joined #ruby-lang
09:17
yfeldblum has joined #ruby-lang
09:19
solars has joined #ruby-lang
09:21
djbkd has joined #ruby-lang
09:21
yfeldblum has quit [Ping timeout: 250 seconds]
09:26
djbkd has quit [Ping timeout: 255 seconds]
09:31
mcclurmc has joined #ruby-lang
09:32
futilegames has quit [Ping timeout: 240 seconds]
09:36
mcclurmc has quit [Ping timeout: 272 seconds]
09:39
ledestin has joined #ruby-lang
09:42
j4cknewt has quit [Ping timeout: 240 seconds]
09:42
tombroomfield has quit [Read error: Connection reset by peer]
09:43
tombroomfield has joined #ruby-lang
09:44
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
09:44
j4cknewt_ has joined #ruby-lang
09:46
gjaldon has joined #ruby-lang
09:48
j4cknewt_ has quit [Read error: Connection reset by peer]
09:53
Blaguvest has joined #ruby-lang
09:54
druznek has joined #ruby-lang
09:55
revath has quit [Ping timeout: 258 seconds]
10:00
rahul_j has joined #ruby-lang
10:03
yock has joined #ruby-lang
10:05
ta has joined #ruby-lang
10:07
j4cknewt has joined #ruby-lang
10:07
yock has quit [Ping timeout: 240 seconds]
10:08
ta_ has joined #ruby-lang
10:12
ta has quit [Ping timeout: 272 seconds]
10:13
yfeldblum has joined #ruby-lang
10:13
ta_ has quit [Ping timeout: 264 seconds]
10:16
gogooo has joined #ruby-lang
10:16
aa_ has joined #ruby-lang
10:17
yfeldblum has quit [Ping timeout: 272 seconds]
10:18
gogooo has quit [Remote host closed the connection]
10:18
aaaa has joined #ruby-lang
10:18
gogooo has joined #ruby-lang
10:18
gjaldon has quit [Remote host closed the connection]
10:19
aaaa has quit [Client Quit]
10:19
gogooo has quit [Remote host closed the connection]
10:20
loincloth has joined #ruby-lang
10:21
aa_ has quit [Ping timeout: 246 seconds]
10:21
gjaldon has joined #ruby-lang
10:25
loincloth has quit [Ping timeout: 244 seconds]
10:25
mistym has quit [Remote host closed the connection]
10:26
symm- has joined #ruby-lang
10:31
ur5us has quit [Remote host closed the connection]
10:31
mcclurmc has joined #ruby-lang
10:36
mcclurmc has quit [Ping timeout: 256 seconds]
10:36
revath has joined #ruby-lang
10:40
ikrima has joined #ruby-lang
10:52
donove has joined #ruby-lang
10:55
ikrima has quit [Ping timeout: 244 seconds]
10:56
Forgetful_Lion has joined #ruby-lang
11:04
gjaldon has quit []
11:05
rahul_j has quit [Quit: rahul_j]
11:06
rahul_j has joined #ruby-lang
11:07
yfeldblum has joined #ruby-lang
11:11
yfeldblum has quit [Ping timeout: 240 seconds]
11:16
ihme-TTilus is now known as TTilus
11:17
dellavg_ has joined #ruby-lang
11:20
oleo is now known as Guest96167
11:20
oleo__ has joined #ruby-lang
11:21
loincloth has joined #ruby-lang
11:22
Forgetful_Lion has quit [Remote host closed the connection]
11:23
Guest96167 has quit [Ping timeout: 265 seconds]
11:24
oleo__ has quit [Read error: Connection reset by peer]
11:25
oleo__ has joined #ruby-lang
11:25
oleo__ is now known as oleo
11:26
loincloth has quit [Ping timeout: 265 seconds]
11:36
apeiros_ has quit [Remote host closed the connection]
11:36
apeiros_ has joined #ruby-lang
11:36
wigggle has joined #ruby-lang
11:37
<
wigggle >
Do you guys prefer if ! or unless?
11:38
<
chris2 >
use what reads better
11:38
<
chris2 >
and dont use unless with else
11:39
<
wigggle >
Feels like unless takes a little bit more time to read
11:46
oak1 has quit [Ping timeout: 258 seconds]
11:46
<
apeiros_ >
wigggle: I generally keep the condition "positive"
11:47
<
apeiros_ >
and composite conditions -> almost always `if`
11:47
<
apeiros_ >
`unless a`, `unless a == b`, `if a == b && b != c`
11:48
<
wigggle >
Ahaa I see
11:49
rahul_j has quit [Quit: rahul_j]
11:49
<
wigggle >
Yeah that seems like a good rule
11:49
tombroomfield has quit [Read error: Connection reset by peer]
11:50
tombroom_ has joined #ruby-lang
11:50
<
wigggle >
Just that every time I read unless my brain has to go "what was unless again?", "oh it's like if !"
11:50
<
apeiros_ >
though I tend to move long conditions into methods, or at least break them out into local variable assignments
11:50
<
wigggle >
Vs just going straight to if !
11:50
<
wigggle >
* has to go like
11:51
<
wigggle >
apeiros_: I see you pros like breaking stuff up into smaller pieces, one day I hope to be able to do the same
11:52
AmirolAhmad has quit []
11:53
charliesome has joined #ruby-lang
11:53
rahul_j has joined #ruby-lang
11:56
druznek has quit [Ping timeout: 272 seconds]
11:57
wallerdev has quit [Quit: wallerdev]
11:58
<
apeiros_ >
wigggle: nothing stops you from starting right now ;-)
12:01
yfeldblum has joined #ruby-lang
12:05
yfeldblum has quit [Ping timeout: 244 seconds]
12:09
tombroom_ has quit [Remote host closed the connection]
12:21
tombroomfield has joined #ruby-lang
12:31
rahul_j has quit [Quit: rahul_j]
12:33
mcclurmc has joined #ruby-lang
12:38
mcclurmc has quit [Ping timeout: 265 seconds]
12:39
tombroomfield has quit [Remote host closed the connection]
12:51
dorei has joined #ruby-lang
12:56
<
wigggle >
% /bin/replace "unless " "if !"
12:57
rahul_j has joined #ruby-lang
12:57
<
godd2 >
great talk for learning how to break things up
12:58
<
wigggle >
Awesome thank you
12:58
<
godd2 >
also, replacing "unless " with "if !" wont work every time
12:59
[spoiler] has joined #ruby-lang
12:59
caseypatrickdris has joined #ruby-lang
13:00
<
godd2 >
it won't work whenever there's more than one thing
13:00
<
godd2 >
you'd need to wrap the predicate in parentheses
13:09
Musashi007 has quit [Quit: Musashi007]
13:11
ikrima has joined #ruby-lang
13:14
caseypatrickdris has quit [Remote host closed the connection]
13:18
<
wigggle >
godd2: Wow I did not know that
13:20
<
wigggle >
godd2: Or I could do this right? if !user.logged_in? && !home_page.modified?
13:20
lsegal has quit [Read error: Connection reset by peer]
13:20
lsegal has joined #ruby-lang
13:21
<
godd2 >
you'd also have to change the && to ||
13:22
<
wigggle >
That's deep =)
13:23
loincloth has joined #ruby-lang
13:23
<
godd2 >
think of it like distribution in math
13:23
<
godd2 >
when you "multiply" by a not, ands become ors and ors become ands
13:25
djbkd has joined #ruby-lang
13:27
loincloth has quit [Ping timeout: 255 seconds]
13:27
<
wigggle >
I remember that stuff from elem school
13:27
ledestin has quit [Quit: ledestin]
13:29
djbkd has quit [Ping timeout: 272 seconds]
13:30
caseypatrickdris has joined #ruby-lang
13:32
djbkd has joined #ruby-lang
13:34
mcclurmc has joined #ruby-lang
13:34
yfeldblum has joined #ruby-lang
13:37
rahul_j has quit [Quit: rahul_j]
13:38
mcclurmc has quit [Ping timeout: 244 seconds]
13:38
yfeldblum has quit [Ping timeout: 240 seconds]
13:40
go|dfish has joined #ruby-lang
13:40
lsegal has quit [Read error: Connection reset by peer]
13:40
houhoulis has quit [Remote host closed the connection]
13:40
lsegal has joined #ruby-lang
13:42
rahul_j has joined #ruby-lang
13:48
mattwildig has joined #ruby-lang
13:52
arBmind1 has quit [Quit: Leaving.]
14:00
spastorino has joined #ruby-lang
14:05
chills42 has joined #ruby-lang
14:10
red_menace has joined #ruby-lang
14:12
mattwildig has quit []
14:16
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
14:17
rippa has joined #ruby-lang
14:19
GBrawl has quit [Quit: (null)]
14:20
druznek has joined #ruby-lang
14:28
yfeldblum has joined #ruby-lang
14:29
ikrima has quit [Ping timeout: 240 seconds]
14:30
jxie has quit [Ping timeout: 244 seconds]
14:31
chills42 has quit [Remote host closed the connection]
14:32
revath has quit [Ping timeout: 265 seconds]
14:33
jxie has joined #ruby-lang
14:33
yfeldblum has quit [Ping timeout: 245 seconds]
14:34
mcclurmc has joined #ruby-lang
14:39
mcclurmc has quit [Ping timeout: 252 seconds]
14:40
tombroomfield has joined #ruby-lang
14:40
onlyme has quit [Quit: Be back later ...]
14:44
cornerma1 has joined #ruby-lang
14:44
arBmind has joined #ruby-lang
14:44
tombroomfield has quit [Ping timeout: 240 seconds]
14:47
cornerman has quit [Ping timeout: 258 seconds]
14:47
cornerma1 is now known as cornerman
14:48
kiyote23 has joined #ruby-lang
14:50
kiyote23 has quit [Remote host closed the connection]
14:51
caseypatrickdris has quit [Quit: Leaving...]
14:52
rahul_j has quit [Quit: rahul_j]
14:54
symm- has quit [Ping timeout: 256 seconds]
14:55
charliesome has quit [Quit: zzz]
14:56
rahul_j has joined #ruby-lang
15:03
xcesariox has joined #ruby-lang
15:09
lexruee has joined #ruby-lang
15:14
shubhamgoyal has quit [Remote host closed the connection]
15:15
druznek has quit [Ping timeout: 240 seconds]
15:22
yfeldblum has joined #ruby-lang
15:24
onlyme has joined #ruby-lang
15:25
nofxx has joined #ruby-lang
15:25
nofxx has quit [Changing host]
15:25
nofxx has joined #ruby-lang
15:27
yfeldblum has quit [Ping timeout: 250 seconds]
15:34
shubhamg_ has joined #ruby-lang
15:35
mcclurmc has joined #ruby-lang
15:40
mcclurmc has quit [Ping timeout: 244 seconds]
15:42
onlyme has quit [Quit: Be back later ...]
15:44
djbkd has quit [Remote host closed the connection]
15:46
jkad has joined #ruby-lang
15:47
<
jkad >
does anyone use gentoos eselect ruby function to manage ruby versions?
15:48
rahul_j has quit [Quit: rahul_j]
15:49
rahul_j has joined #ruby-lang
15:51
symm- has joined #ruby-lang
16:02
tsou has quit [Ping timeout: 245 seconds]
16:08
tsou has joined #ruby-lang
16:17
diegoviola has joined #ruby-lang
16:18
neurodamage has quit [Ping timeout: 258 seconds]
16:20
houhoulis has joined #ruby-lang
16:27
klmlfl has joined #ruby-lang
16:30
<
nofxx >
Where should static data files (yml,csv whatever) should go in a gem? ./data ? ./lib/gem/data ? The later no? Isn't there a 'only lib shoud get in load path thingy?'
16:30
<
nofxx >
often see it on root path tho
16:30
<
bougyman >
if I need data I create ./data
16:31
<
nofxx >
bougyman, and require with File.dir(__FILE__ ?
16:31
<
nofxx >
join '..' heh
16:31
<
bougyman >
no I always know where my ROOT is
16:31
<
bougyman >
so it would be R 'data/file.json'
16:32
<
nofxx >
bougyman, hum... but shouldn't your root be lib/mygem/ ?
16:32
<
bougyman >
that's LIBROOT
16:36
mcclurmc has joined #ruby-lang
16:37
<
bougyman >
then those helper models so I can use use L 'libname', R 'path/to/thing', M 'model_name'
16:37
<
bougyman >
er helper methods
16:40
mcclurmc has quit [Ping timeout: 245 seconds]
16:44
<
apeiros_ >
nofxx: I usually have a 3 level mechanism: pass location explicitly > env variable > backup in gem/data
16:44
<
apeiros_ >
nofxx: and for gem/data, there's Gem.data_dir which expects GEM_ROOT/data/GEM_NAME
16:45
<
apeiros_ >
sorry, Gem.datadir
16:50
symm- has quit [Ping timeout: 255 seconds]
16:55
djbkd has joined #ruby-lang
16:57
[spoiler] has quit [Quit: Leaving]
16:57
fsvehla has quit [Quit: fsvehla]
16:58
<
nofxx >
bougyman, apeiros_ thank you
16:59
djbkd has quit [Ping timeout: 244 seconds]
17:00
slawrenc_ has joined #ruby-lang
17:00
slawren__ has joined #ruby-lang
17:00
mcclurmc has joined #ruby-lang
17:01
jkad has left #ruby-lang ["WeeChat 0.4.3"]
17:03
klmlfl has quit [Remote host closed the connection]
17:06
lexruee has quit [Quit: Verlassend]
17:11
yfeldblum has joined #ruby-lang
17:15
mcclurmc has quit [Remote host closed the connection]
17:15
mcclurmc has joined #ruby-lang
17:15
yfeldblum has quit [Ping timeout: 244 seconds]
17:15
bougytoo has joined #ruby-lang
17:16
mcclurmc has quit [Remote host closed the connection]
17:17
bougyman has quit [Ping timeout: 258 seconds]
17:17
ruby-lang746 has joined #ruby-lang
17:18
spastorino has quit [Quit: Connection closed for inactivity]
17:19
symm- has joined #ruby-lang
17:21
kapil__ has quit [Quit: Connection closed for inactivity]
17:21
ruby-lang746 has quit [Ping timeout: 246 seconds]
17:26
loincloth has joined #ruby-lang
17:31
<
nofxx >
In minitest I'm supposed to have all my tests in spec/ ? w/o subfolders?
17:31
loincloth has quit [Ping timeout: 244 seconds]
17:31
<
nofxx >
what a mess
17:31
<
ljarvis >
nofxx: I don't believe minitest has such restriction
17:31
<
ljarvis >
they're just ruby files
17:32
<
nofxx >
ljarvis, I mean, per convention.... like in rspec you just require 'spec_helper'
17:32
<
ljarvis >
ah, I use minitest and have my tests in test/ with _test.rb suffix
17:33
<
nofxx >
I prefer rspec way, if you got lib/slop/parser.rb the unit for it is spec/slop/parser_spec.rb
17:33
<
ljarvis >
well,you can do that for minitest too
17:33
<
nofxx >
makes more sense, and also , my emacs is aware of that
17:33
havenwood has joined #ruby-lang
17:34
<
nofxx >
ljarvis, but nothing built in I mean, going need to File.join my path to find the spec helper on each test file
17:34
<
ljarvis >
just use require
17:34
bennyklotz has quit [Quit: leaving]
17:35
<
nofxx >
must be calling it wrong than... it's not finding spec/spec_helper.rb
17:35
<
nofxx >
just the rake task
17:35
<
ljarvis >
that's what I do, if you want to run just 1 single spec you can do so by running `ruby -Itest test/foo_test.rb`
17:35
bennyklotz has joined #ruby-lang
17:35
<
ljarvis >
nofxx: just use 'spec_helper' for the require, and then ensure 'spec' is in LOAD_PATH
17:36
<
nofxx >
ljarvis, ah thanks, but in the rakefile? $LOAD_PATH << ?
17:36
<
ljarvis >
nofxx: see my Rakefile, I use t.libs << 'test' which does that for me
17:36
<
nofxx >
ljarvis, thank you
17:36
<
ljarvis >
nofxx: np
17:38
SHyx0rmZ has joined #ruby-lang
17:38
RickHull has joined #ruby-lang
17:38
rahul_j has quit [Quit: rahul_j]
17:39
<
RickHull >
ljarvis: does slop 4.0 have the ability to use the option type and default in the help/usage output?
17:39
<
RickHull >
if not, would it be plausible as a feature?
17:40
rahul_j has joined #ruby-lang
17:40
<
RickHull >
e.g. no need to restate the default as in: `o.int '-p', '--port', 'port (default: 80)', default: 80`
17:40
<
ljarvis >
RickHull: it doesn't, I'd definitely consider it as a feature (and it was requested for v3), the problem is there are so many variations and options to consider, that I usually just end up saying writing your own help would be simpler
17:41
<
RickHull >
gotcha. wasn't that a feature of slop in the early days?
17:41
<
RickHull >
i like the changes for 4.0 :)
17:42
<
ljarvis >
it supported 'custom' help messages, but never inserted the default
17:44
Rodya_ has joined #ruby-lang
17:45
<
RickHull >
i've always liked slop for being terse and easy to use. but i'm thinking reasonably-sophisiticated-self-documenting is my goal for non-prototypes
17:45
<
RickHull >
sophisticated, even
17:46
<
RickHull >
any recommendations? i came across a multi-lang text-based option parser about a year ago
17:46
<
RickHull >
can't remember what it's called. i played around with it a little bit.
17:46
<
RickHull >
sort of the inverse, you write the documentation and it generates the parser, IIRC
17:48
<
ljarvis >
RickHull: I built something into v3 that supported just writing the help string and the parser then did the rest, but it's not really very customizable that way
17:49
<
ljarvis >
I generally think that when people want something bigger than Slop they probably want something custom
17:49
<
RickHull >
yeah, i've never been totally happy with the autodoc parsers -- always some limitation at odds with my needs
17:49
<
RickHull >
but it's been a long time since i've done any thorough evaluations
17:49
<
ljarvis >
I've built a couple of custom parsers that wrap around slop, but of course i'm quite bias
17:50
<
ljarvis >
thor is obviously a popular 'larger' alternative
17:51
kiyote23 has joined #ruby-lang
17:51
<
godd2 >
plus it has a way cooler name
17:52
<
RickHull >
ah, docopt is the one i was looking at a year ago
17:53
mattyohe has joined #ruby-lang
17:55
<
RickHull >
it's missing arg types and defaults AFAICT
17:55
kiyote23 has quit [Ping timeout: 264 seconds]
17:56
<
RickHull >
for a slop feature, i'd be happy with a reasonable way to display: text_str (type) [default] for each option
17:57
<
RickHull >
i'm happy to handle defaults outside of the option parser, but types are tedious to coerce and validate manually
17:57
jds has joined #ruby-lang
17:58
<
jds >
Is anyone maintaining the builder gem any more?
18:00
donove has quit [Quit: Leaving]
18:01
<
RickHull >
jds: have you considered nokogiri as an alternative?
18:02
<
jds >
Funny story: yes, and it halved the memory usage of my Rails instances, which were generating some pretty heavy RSS feeds
18:03
<
jds >
but I thought I ought to investigate why Builder did so badly at it, and I found a few places where its memory usage can be much improved
18:03
bougytoo has quit [Changing host]
18:03
bougytoo has joined #ruby-lang
18:03
<
RickHull >
what is Builder based on? nokogiri wraps libxml2, basically, so it is feature complete and performant, etc.
18:03
bougytoo is now known as bougyman
18:04
<
RickHull >
unless Builder has a compelling advantage, it might be time to wave goodbye
18:04
<
jds >
It's just ruby. Interestingly, it's actually slightly faster than nokogiri for my use case
18:04
<
jds >
but I'm planning to drop it just based on the memory allocations
18:05
yfeldblum has joined #ruby-lang
18:07
<
RickHull >
ljarvis: did you drop support for Float type?
18:07
<
ljarvis >
RickHull: aha, shit.
18:08
<
ljarvis >
I knew I'd missed something
18:08
<
ljarvis >
well, at least with the new system it's really easy to add yourself :)
18:09
<
RickHull >
how does that work? is it in the README?
18:09
Rodya_ has quit [Ping timeout: 244 seconds]
18:09
<
RickHull >
also, i'm thinking augmenting the text description with type and default shouldn't be too tough
18:09
yfeldblum has quit [Ping timeout: 240 seconds]
18:09
<
RickHull >
thx, afk brb
18:12
houhoulis has quit [Remote host closed the connection]
18:19
andrewvos has joined #ruby-lang
18:20
<
andrewvos >
Anyone know activerecord (asked this in RubyOnRails too)? #to_sql has the $1 $2 replacements in it. Is there any way I can get the raw sql executed?
18:20
GBrawl has joined #ruby-lang
18:24
Rodya_ has joined #ruby-lang
18:27
loincloth has joined #ruby-lang
18:27
iamninja has joined #ruby-lang
18:28
Menorah has quit [Quit: This computer has gone to sleep]
18:28
djbkd has joined #ruby-lang
18:31
loincloth has quit [Ping timeout: 244 seconds]
18:33
djbkd has quit [Ping timeout: 258 seconds]
18:42
Jet4Fire has joined #ruby-lang
18:50
amclain has joined #ruby-lang
18:52
neurodamage has joined #ruby-lang
18:54
Menorah has joined #ruby-lang
18:59
yfeldblum has joined #ruby-lang
18:59
GBrawl has quit [Ping timeout: 244 seconds]
19:03
yfeldblum has quit [Ping timeout: 240 seconds]
19:07
donove has joined #ruby-lang
19:07
donove has quit [Changing host]
19:07
donove has joined #ruby-lang
19:13
RickHull has quit [Ping timeout: 246 seconds]
19:20
j4cknewt has quit [Remote host closed the connection]
19:21
j4cknewt has joined #ruby-lang
19:22
wallerdev has joined #ruby-lang
19:25
chouhoulis has joined #ruby-lang
19:28
loincloth has joined #ruby-lang
19:33
loincloth has quit [Ping timeout: 258 seconds]
19:34
chouhoulis has quit [Remote host closed the connection]
19:39
yfeldblum has joined #ruby-lang
19:43
ozialien_ has quit [Remote host closed the connection]
19:45
pwnz0r has joined #ruby-lang
19:51
symm- has quit [Ping timeout: 255 seconds]
19:56
diegoviola has quit [Remote host closed the connection]
20:07
mcclurmc has joined #ruby-lang
20:07
Missphoenix has quit [Read error: Connection reset by peer]
20:08
Musashi007 has joined #ruby-lang
20:08
Missphoenix has joined #ruby-lang
20:10
symm- has joined #ruby-lang
20:11
rbrs has quit [Quit: Leaving]
20:13
iamninja has quit [Quit: ZZZzzz…]
20:17
Menorah has quit [Quit: This computer has gone to sleep]
20:17
Menorah has joined #ruby-lang
20:19
micmus has joined #ruby-lang
20:19
mistym has joined #ruby-lang
20:26
ur5us has joined #ruby-lang
20:30
djbkd has joined #ruby-lang
20:33
tmi_ has joined #ruby-lang
20:34
djbkd has quit [Ping timeout: 240 seconds]
20:36
jds has quit [Quit: Connection closed for inactivity]
20:38
havenwood has quit [Remote host closed the connection]
20:39
Bwild has joined #ruby-lang
20:41
pwnz0r has quit [Remote host closed the connection]
20:44
Blaguvest has quit []
20:44
yfeldblum has quit [Remote host closed the connection]
20:48
j4cknewt has quit [Remote host closed the connection]
20:51
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
20:59
Jet4Fire has quit []
21:05
j4cknewt has joined #ruby-lang
21:09
mcclurmc has quit [Remote host closed the connection]
21:11
yock has joined #ruby-lang
21:13
rahul_j has quit [Quit: rahul_j]
21:16
yock has quit [Ping timeout: 264 seconds]
21:16
yfeldblum has joined #ruby-lang
21:18
Asher has quit [Quit: Leaving.]
21:20
dangerousdave has joined #ruby-lang
21:26
dangerousdave has quit [Read error: No route to host]
21:30
loincloth has joined #ruby-lang
21:31
dangerou_ has joined #ruby-lang
21:31
wallerdev has quit [Quit: wallerdev]
21:32
mcclurmc has joined #ruby-lang
21:33
dangerou_ has quit [Read error: Connection reset by peer]
21:34
djbkd has joined #ruby-lang
21:34
wallerdev has joined #ruby-lang
21:34
loincloth has quit [Ping timeout: 240 seconds]
21:35
yield_rb has joined #ruby-lang
21:36
lsegal has joined #ruby-lang
21:43
levifig has quit [Ping timeout: 240 seconds]
21:45
Rodya_ has quit [Remote host closed the connection]
21:47
havenwood has joined #ruby-lang
21:47
levifig has joined #ruby-lang
21:56
mcclurmc has quit [Remote host closed the connection]
22:00
mattyohe has quit [Quit: Connection closed for inactivity]
22:06
Asher has joined #ruby-lang
22:17
chouhoulis has joined #ruby-lang
22:17
mattyohe has joined #ruby-lang
22:20
j4cknewt has quit [Remote host closed the connection]
22:20
LBo has quit [Read error: Connection reset by peer]
22:25
LBo has joined #ruby-lang
22:31
loincloth has joined #ruby-lang
22:31
fusillicode has quit [Ping timeout: 255 seconds]
22:35
loincloth has quit [Ping timeout: 252 seconds]
22:37
yatish27 has joined #ruby-lang
22:38
ta has joined #ruby-lang
22:49
marr has joined #ruby-lang
22:50
ta_ has joined #ruby-lang
22:57
Sadin has joined #ruby-lang
23:01
donove has quit [Quit: Leaving]
23:08
yfeldblum has quit [Ping timeout: 272 seconds]
23:11
micmus has quit [Ping timeout: 264 seconds]
23:13
yock has joined #ruby-lang
23:16
solars has quit [Ping timeout: 244 seconds]
23:17
yock has quit [Ping timeout: 256 seconds]
23:18
ta_ has quit [Remote host closed the connection]
23:22
Menorah has quit [Quit: This computer has gone to sleep]
23:22
djbkd has quit [Quit: My people need me...]
23:24
djbkd has joined #ruby-lang
23:26
ta_ has joined #ruby-lang
23:29
djbkd has quit [Ping timeout: 252 seconds]
23:30
Menorah has joined #ruby-lang
23:34
yfeldblum has joined #ruby-lang
23:35
arBmind has quit [Ping timeout: 245 seconds]
23:36
arBmind has joined #ruby-lang
23:37
yfeldblu_ has joined #ruby-lang
23:38
Musashi007 has quit [Quit: Musashi007]
23:39
yfeldblum has quit [Ping timeout: 240 seconds]
23:40
Musashi007 has joined #ruby-lang
23:48
chouhoul_ has joined #ruby-lang
23:50
chouhoulis has quit [Ping timeout: 250 seconds]
23:54
mcclurmc has joined #ruby-lang
23:55
Musashi007 has quit [Quit: Musashi007]
23:55
Menorah has quit [Quit: This computer has gone to sleep]
23:59
Menorah has joined #ruby-lang