adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://libera.irclog.whitequark.org/ruby/
grokify has joined #ruby
grokify has quit [Ping timeout: 272 seconds]
cahoots has joined #ruby
pi2 has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
<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]
rvalue has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
grokify has joined #ruby
teclator has joined #ruby
grokify has quit [Ping timeout: 244 seconds]
grokify has joined #ruby
tankf33der has left #ruby [the lounge - https://webirc.envs.net]
ur5us has joined #ruby
ssh0732 has quit [Ping timeout: 258 seconds]
ur5us has quit [Ping timeout: 244 seconds]
polishdub has quit [Ping timeout: 240 seconds]
otisolsen70 has joined #ruby
grokify has quit [Remote host closed the connection]
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
kerunaru has joined #ruby
jpn has quit [Ping timeout: 250 seconds]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
grokify 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
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> pandabot: ri Kernel#raise
<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…]
grokify has joined #ruby
crax23 has joined #ruby
grokify has quit [Ping timeout: 244 seconds]
Y05hito__ has quit [Ping timeout: 240 seconds]
some14u has joined #ruby
supay has joined #ruby
Demafleshim has quit [Quit: Client closed]
ccapndave has joined #ruby
Demasha-flesim has joined #ruby
Demasha-flesim is now known as Demafleshim
gonix has joined #ruby
ccapndave has quit [Quit: Textual IRC Client: www.textualapp.com]
gonix has quit [Ping timeout: 244 seconds]
kerunaru has quit [Remote host closed the connection]
some14u has joined #ruby
Demafleshim has quit [Quit: Client closed]
grokify has joined #ruby
polishdub has joined #ruby
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 244 seconds]
grokify has quit [Remote host closed the connection]
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 244 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 244 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
legit has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_ht has joined #ruby
dionysus69 has joined #ruby
Y05hito__ has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
cartdrige has joined #ruby
crax23 has quit [Ping timeout: 244 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
Y05hito__ has quit [Ping timeout: 240 seconds]
crax23 has joined #ruby
crax23 has quit [Client Quit]
cartdrige has quit [Ping timeout: 244 seconds]
jpn has quit [Ping timeout: 250 seconds]
cartdrige has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
supay has quit [Quit: Connection closed for inactivity]
gonix has joined #ruby
grokify has quit [Remote host closed the connection]
crax23 has joined #ruby
grokify has joined #ruby
cartdrige has quit [Ping timeout: 240 seconds]
crax23 has quit [Ping timeout: 244 seconds]
gonix has quit [Ping timeout: 240 seconds]
johnjaye has quit [Ping timeout: 252 seconds]
cartdrige has joined #ruby
johnjaye has joined #ruby
markong has quit [Ping timeout: 244 seconds]
<cxl> What am I missing here: https://gist.github.com/coaxial/252863f8b84d6fd419788b5cfe9f6771? putter has a default value yet it's undefined when called without arguments?
<adam12> cxl: You can't pass a method like that.
<cxl> adam12: how do I make the default putter be `puts` then?
<adam12> cxl: You could get a reference to it, then call it maybe. putter = method(:puts) and putter.call "Hello"
<cxl> fg
<cxl> wrong window :)
<cxl> adam12: Oh I see...
<cxl> adam12: how do I express it if the method is in a module? like I want putter = MyModule::Whatever.puts?
<adam12> cxl: MyModule::Whatever.method(:puts) should work?
<cxl> alrigh, thanks
dionysus69 has joined #ruby
D_A_N has quit [Ping timeout: 244 seconds]
Sankalp has quit [Ping timeout: 260 seconds]
D_A_N has joined #ruby
Sankalp has joined #ruby
some14u has joined #ruby
TomyWork has quit [Remote host closed the connection]
Synthead has joined #ruby
<Synthead> Is there a way I can document individual key expectations in YARD?
<Synthead> for a hash param?
<adam12> Synthead: @option I believe.
<Synthead> here's a better example
<Synthead> say I have def my_method(option_hash, something_else); end
<Synthead> option_hash is expected to be a Hash, and requires :this_one and :that_one keys with String values
<Synthead> something_else is supposed to be an Array
<Synthead> how would I use @option here?
<Synthead> I think I may have found an answer: @param option_hash[Hash{this_one: String, that_one: String}] Hash with this_one and that_one values
<Synthead> ^ adam12
<Synthead> ultimately, this is somewhat of a smell, because I should be using keywords, but this is due to the constraints of a lib
<Synthead> I can't **option_hash, unfortunately
<adam12> @option option_hash [String] :this_one
<adam12> @option option_hash [String] :that_one
<Synthead> how would :this_one be documented? add text after?
<adam12> Right.
<Synthead> oh interesting! let me play with that!
<adam12> @option option_hash [String] :this_one This one is a String and has no default.
<adam12> Technically it can be on a new line too, as the usual YARD parsing provisions apply.
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Synthead> oh that's wonderful! it looks great in the html!
<Synthead> thanks a ton adam12!
<Synthead> <3
<adam12> Synthead: yw!
svdasein_ has quit [Remote host closed the connection]
some14u has joined #ruby
conjuncture has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
cocalero has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
crax23 has joined #ruby
Y05hito__ has joined #ruby
cartdrige has quit [Ping timeout: 244 seconds]
crax23 has quit [Ping timeout: 272 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
cartdrige has joined #ruby
Y05hito__ has quit [Ping timeout: 272 seconds]
crax23 has joined #ruby
heartburn has quit [Ping timeout: 255 seconds]
cartdrige has quit [Ping timeout: 260 seconds]
heartburn has joined #ruby
___nick___ has quit [Ping timeout: 272 seconds]
_ht has quit [Quit: _ht]
crax23 has quit [Ping timeout: 260 seconds]
cartdrige has joined #ruby
scriptonaut has quit [Read error: No route to host]
ur5us has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cartdrige has quit [Ping timeout: 272 seconds]
cartdrige has joined #ruby
some14u has joined #ruby
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
grokify has quit [Remote host closed the connection]
crax23 has quit [Ping timeout: 244 seconds]
weaksauc_ has joined #ruby
weaksauce has quit [Ping timeout: 255 seconds]
cartdrige has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
crax23 has joined #ruby
Y05hito__ has joined #ruby
cartdrige has quit [Ping timeout: 240 seconds]
crax23 has quit [Ping timeout: 244 seconds]
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
niv has quit [Client Quit]
niv has joined #ruby
dviola has quit [Ping timeout: 240 seconds]
markong has joined #ruby
cartdrige has joined #ruby
dviola has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Y05hito__ has quit [Ping timeout: 250 seconds]
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 244 seconds]
Y05hito__ has joined #ruby
Y05hito__ has quit [Client Quit]
crax23 has quit [Ping timeout: 244 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 250 seconds]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
cocalero has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
_aeris_ is now known as aeris
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
jpn has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
jpn has quit [Ping timeout: 260 seconds]
Synthead has quit [Quit: Leaving]
eddof13 has joined #ruby
darkstardevx has quit [Remote host closed the connection]
darkstardevx has joined #ruby
hellstabber has joined #ruby
darkstardevx has quit [Max SendQ exceeded]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
darkstardevx has joined #ruby
darkstardevx has quit [Max SendQ exceeded]
darkstardevx has joined #ruby
idkwtf has quit [Quit: Lost terminal]