<pi2>
hi, i'm trying to disable all color output in irb, but not having much luck
<pi2>
is this type of thing controlled from shell variables, terminfo, the terminal emulator, or something ruby itself is doing
<adam12>
pi2: What have you tried?
<adam12>
There was talks about NOCOLOR support but I am not sure it ever happened.
<pi2>
um idk i'm just trying random things. using lxterminal in x11 atm. i tried like running sh which ignores .bashrc. setting LS_COLORS to nonsense
<pi2>
also like TERM=xterm-mono irb
<pi2>
the problem is the colors don't look good with this background and i can't read some stuff
<pi2>
i'm wondering if somehow irb itself is doing something and overriding it
<adam12>
pi2: Does --nocolorize not work?
<pi2>
YES that works
<pi2>
thanks
<adam12>
They are working on fixing that. Maybe we'll get lucky with next Ruby release.
why-naming-thing has joined #ruby
<pi2>
the issue is it puts numbers in blue which i can't read
<pi2>
i'd have to swap my terminal background or something
crax23 has joined #ruby
Y05hito__ has joined #ruby
cartdrige has quit [Ping timeout: 240 seconds]
crax23 has quit [Ping timeout: 240 seconds]
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 260 seconds]
cahoots has joined #ruby
quintasan has quit []
quintasan has joined #ruby
eddof13 has joined #ruby
cahoots has quit [Ping timeout: 272 seconds]
eddof13 has quit [Client Quit]
Y05hito__ has joined #ruby
reset has quit [Quit: reset]
why-naming-thing has quit [Quit: Client closed]
grokify has joined #ruby
crax23 has quit [Ping timeout: 272 seconds]
grokify has quit [Ping timeout: 250 seconds]
cartdrige has joined #ruby
Y05hito__ has quit [Ping timeout: 250 seconds]
grokify has joined #ruby
crax23 has joined #ruby
grokify has quit [Remote host closed the connection]
cartdrige has quit [Ping timeout: 250 seconds]
pi2 is now known as johnjaye
markong has quit [Ping timeout: 272 seconds]
grokify has joined #ruby
aeris has quit [Remote host closed the connection]
cahoots has joined #ruby
crax23 has quit [Ping timeout: 240 seconds]
cahoots has quit [Ping timeout: 272 seconds]
grokify has quit [Ping timeout: 240 seconds]
grokify has joined #ruby
cahoots has joined #ruby
cahoots has quit [Ping timeout: 272 seconds]
grokify has quit [Ping timeout: 250 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 272 seconds]
rndChars has joined #ruby
John_Ivan__ has quit [Read error: Connection reset by peer]
John_Ivan has joined #ruby
cahoots has joined #ruby
cartdrige has joined #ruby
crax23 has joined #ruby
rndChars has quit [Remote host closed the connection]
cahoots has quit [Ping timeout: 260 seconds]
cartdrige has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
cahoots has quit [Ping timeout: 272 seconds]
dviola has quit [Ping timeout: 246 seconds]
shokohsc4 has joined #ruby
shokohsc has quit [Ping timeout: 260 seconds]
shokohsc4 is now known as shokohsc
cahoots has joined #ruby
grokify has joined #ruby
Demafleshim has joined #ruby
cahoots has quit [Ping timeout: 252 seconds]
johnjaye has quit [Ping timeout: 272 seconds]
grokify has quit [Ping timeout: 252 seconds]
johnjaye has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 244 seconds]
<Demafleshim>
Let's say I have a method that receives some args and inside has a `(collab.pass?(args)) ? do_a : do_b`. How would you test the method and why? 1. Passing args that will make pass the condition and then the oposite? 2. Mocking the `pass?` to return true, and then to return false? 3. another way?
dviola has joined #ruby
<Demafleshim>
I don't care if it is testing the integration or if its going to be less performant like in the first option. I'm thinking more in which one is more easy to maintain and less prone turn into a false positive...
<Demafleshim>
Using mocks is going to remove the chance of false positives, but leads to more complex test code...
cahoots has joined #ruby
cahoots has quit [Ping timeout: 252 seconds]
Demafleshim has quit [Quit: Client closed]
grokify has joined #ruby
grokify has quit [Ping timeout: 244 seconds]
cartdrige has joined #ruby
cahoots has joined #ruby
Y05hito__ has quit [Ping timeout: 250 seconds]
cahoots has quit [Ping timeout: 246 seconds]
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Demasha-flesim has joined #ruby
Demasha-flesim is now known as Demafleshim
ur5us has quit [Ping timeout: 244 seconds]
D_A_N has quit [Quit: leaving]
Demafleshim has quit [Quit: Client closed]
cahoots has joined #ruby
ur5us has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
ur5us has joined #ruby
grokify has joined #ruby
teclator has quit [Ping timeout: 255 seconds]
teclator has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 240 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
jpn has joined #ruby
_aeris_ has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
reset has joined #ruby
<cxl>
Hi all, if I `begin ... rescue`, how do I throw the exception again in the rescue block to not swallow it? My use case is a state machine, and I want to transition to a failed state if anything goes wrong but I still want the rest of the code to get the exception.
<leftylink>
"With no arguments, raises the exception in $!"
<leftylink>
so there you go
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 260 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 272 seconds]
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 244 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
gonix has joined #ruby
gonix has quit [Client Quit]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
some14u has joined #ruby
<cxl>
leftylink: thanks
fandre1986 has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
grokify has quit [Remote host closed the connection]
fandre1986 has quit [Quit: Connection closed]
crax23 has quit [Ping timeout: 250 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 244 seconds]
markong has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpn has quit [Ping timeout: 244 seconds]
idkwtf has joined #ruby
TomyWork has joined #ruby
cartdrige has joined #ruby
jpn has joined #ruby
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 260 seconds]
D_A_N has joined #ruby
D_A_N_ has joined #ruby
D_A_N_ has quit [Client Quit]
D_A_N has quit [Quit: Lost terminal]
D_A_N has joined #ruby
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 252 seconds]
gnafu has left #ruby [#ruby]
cartdrige has joined #ruby
Y05hito__ has quit [Ping timeout: 260 seconds]
<adam12>
Morning
<idkwtf>
Howdy
<adam12>
idkwtf: how goes
<idkwtf>
Really good thanks for asking
<idkwtf>
Will hopefully be launching a new site tonight
<idkwtf>
yourself?
<adam12>
idkwtf: Oh nice. What kind of site?
<adam12>
idkwtf: I'm archiving more things on gemdocs.org; published source, and eventually rdoc output. But to do that, I need to unify my "experiment" from btrfs to zfs. Some of that is moving a billion files, and some of it is tweaking Rack::Static to support the new folder structure. Fun stuff.
<idkwtf>
this one is the package search index for the openbsd operating system. The aim is for it to eventually take over all of openbsd.org. And also it's gonna be massive PR for ruby
<idkwtf>
aha i see
<adam12>
Oh nice. Sounds a bit like freshports?
<idkwtf>
well i hope that the site/layout im using now can be used for the new gemdocs as well. its really really simple
<idkwtf>
yeah kinda i guess, but for openbsd
<idkwtf>
there sure are a lot of port indexes
<adam12>
Heh. Kind of like Ruby documentation sites :P
<idkwtf>
lol
<idkwtf>
yeah thats true :)
ccapndave has joined #ruby
crax23 has joined #ruby
otisolsen70 has quit [Quit: Leaving]
Y05hito__ has joined #ruby
cartdrige has quit [Ping timeout: 252 seconds]
jpn has quit [Ping timeout: 244 seconds]
crax23 has quit [Ping timeout: 272 seconds]
jpn has joined #ruby
cartdrige has joined #ruby
Y05hito__ has quit [Ping timeout: 272 seconds]
Demasha-flesim has joined #ruby
crax23 has joined #ruby
Demasha-flesim is now known as Demafleshim
Y05hito__ has joined #ruby
cartdrige has quit [Ping timeout: 244 seconds]
crax23 has quit [Ping timeout: 260 seconds]
ccapndave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]