havenwood changed the topic of #ruby to: Ruby 3.3.0, 3.2.3, 3.1.4 https://www.ruby-lang.org | Rules https://ruby-community.com | Logs https://libera.irclog.whitequark.org/ruby
<weaksauce> henk yeah **foo
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
<henk> yeah, couldn’t get it to work but found my mistake: didn’t actually make them keyword arguments, just normal arguments, i.e. forgot appending the colon …
rvalue has quit [Ping timeout: 255 seconds]
rvalue has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
<henk> is there some shortcut for having all keyword arguments given to the .new method be instance variables? i.e. shorter than http://pastie.org/p/73jHHlcuqkhinyoLt5e3gk
<adam12> henk: Nope. There are gems that might help you tho.
<adam12> henk: Or you could meta program it.
<weaksauce> henk i don't think by default but you could do a small mixin that takes each kw arg and makes a new instance var
<adam12> henk: I like it explicit.
hightower4 has joined #ruby
<weaksauce> explicit++
<henk> ok, thanks
hightower3 has quit [Ping timeout: 272 seconds]
donofrio_ has joined #ruby
donofrio__ has quit [Ping timeout: 246 seconds]
Linux_Kerio has quit [Ping timeout: 255 seconds]
brass has left #ruby [Leaving]
<adam12> henk: If it's a data-looking object, you can look at using `Data` class that's newish.
<adam12> Part of 3.1 or 3.2 I think.
<adam12> If you want to metaprogram the initialzer away, there's evt-initializer from Eventide and dry-initializer from dry-rb.
<adam12> (and a bunch others like Literal if you want some sort of types, etc)
<adam12> Cert = Data.define(:domain_names, :ca_account, :challenge, :primary_ns, :tsig_key)
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 264 seconds]
desnudopenguino1 is now known as desnudopenguino
cek has quit [Quit: Connection closed for inactivity]
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
ftajhii has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
ftajhii has joined #ruby
<henk> adam12: thanks
__jmcantrell__ has joined #ruby
__jmcantrell__ has quit [Client Quit]
mange has quit [Remote host closed the connection]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
_ht has joined #ruby
Aminda has quit [Read error: Connection reset by peer]
Aminda has joined #ruby
phenom has quit [Read error: Connection reset by peer]
hightower3 has joined #ruby
hightower4 has quit [Ping timeout: 255 seconds]
phenom has joined #ruby
grenierm has joined #ruby
Munto has quit [Ping timeout: 255 seconds]
trillion_exabyte has quit [Ping timeout: 256 seconds]
trillion_exabyte has joined #ruby
tromp has joined #ruby
Furai has quit [Quit: WeeChat 4.2.1]
tromp has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
eax_ has quit [Remote host closed the connection]
whereiseveryone has quit [Remote host closed the connection]
graemefawcett has quit [Remote host closed the connection]
g_sg has quit [Remote host closed the connection]
hwrd has quit [Remote host closed the connection]
tsujp has quit [Remote host closed the connection]
patrick__ has quit [Remote host closed the connection]
pjaspers has quit [Remote host closed the connection]
KOTP has quit [Write error: Connection reset by peer]
johnhamelink has quit [Remote host closed the connection]
Bounga has quit [Remote host closed the connection]
slondr has quit [Remote host closed the connection]
toonlink has quit [Remote host closed the connection]
fourstepper has quit [Write error: Broken pipe]
caleb has quit [Remote host closed the connection]
srushe has quit [Remote host closed the connection]
caleb_ is now known as caleb
goofansu has quit [Remote host closed the connection]
simonista has quit [Remote host closed the connection]
alexisg has quit [Remote host closed the connection]
matta has quit [Remote host closed the connection]
jmcantrell has quit [Remote host closed the connection]
graemefawcett has joined #ruby
goofansu has joined #ruby
KOTP has joined #ruby
patrick__ has joined #ruby
tsujp has joined #ruby
srushe has joined #ruby
slondr has joined #ruby
g_sg has joined #ruby
johnhamelink has joined #ruby
fourstepper has joined #ruby
whereiseveryone has joined #ruby
matta has joined #ruby
caleb_ has joined #ruby
alexisg has joined #ruby
pjaspers has joined #ruby
jmcantrell has joined #ruby
hwrd has joined #ruby
Bounga has joined #ruby
eax_ has joined #ruby
toonlink has joined #ruby
simonista has joined #ruby
Furai has joined #ruby
Munto has joined #ruby
TomyWork has joined #ruby
TomyWork has quit [Remote host closed the connection]
TomyWork has joined #ruby
user71 has joined #ruby
szkl has joined #ruby
TomyWork has quit [Remote host closed the connection]
TomyWork has joined #ruby
tromp has joined #ruby
Aminda has quit [Quit: Default quit message is difficult to set. If you don't see me returning, ask me? You will find me, if you want to]
Aminda has joined #ruby
pgib has quit [Remote host closed the connection]
grenierm has quit [Ping timeout: 250 seconds]
Linux_Kerio has joined #ruby
reset has quit [Quit: reset]
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
user71 has quit [Quit: Leaving]
Furai has quit [Quit: WeeChat 4.2.1]
Furai has joined #ruby
osc4rpt has quit [Quit: leaving]
osc4rpt has joined #ruby
donofrio has joined #ruby
tromp has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
donofrio_ has quit [Ping timeout: 240 seconds]
tromp has joined #ruby
infinityfye has joined #ruby
milouse has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
cek has joined #ruby
graywolf has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
Common-Lisp has joined #ruby
<Common-Lisp> Hi, does anyone know how to define hash schema in RBS for frozen constant assignments?
<Common-Lisp> If I don't freeze the hash RBS lets me define the schema (keys/values of the hash)
<Common-Lisp> But if I freeze it, steep rejects the assignment and asks me to define a generic type (which I don't want)
trillion_exabyte has quit [Ping timeout: 255 seconds]
trillion_exabyte has joined #ruby
szkl has joined #ruby
infinityfye has quit [Quit: Leaving]
milouse has left #ruby [#ruby]
graywolf has quit [Quit: WeeChat 4.0.4]
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue has joined #ruby
<adam12> Common-Lisp: Can you show what you've got?
graywolf has joined #ruby
tromp has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tromp has joined #ruby
hightower4 has joined #ruby
hightower3 has quit [Ping timeout: 252 seconds]
hightower4 has quit [Remote host closed the connection]
hightower3 has joined #ruby
<[0x1eef_]> One day 256 colors works in tmux, the next they don't. Seems hard to get right.
monr0e has joined #ruby
<monr0e> Figuring otu RubyMine, got a permission error on writing to /usr/lib/ruby/gems/3.0.0/cache. chmodded from gems down, issue still appears. Is there something super obvious that I haven't done? On Manjaro
<[0x1eef_]> That's a path only root can normally write to, and I don't recommend changing that.
<monr0e> so why does the bundler want to write to it?
<monr0e> should I specify an sdk in /opt where my workspace is?
<monr0e> er
<monr0e> ~/ rather?
cek has quit [Quit: Connection closed for inactivity]
<[0x1eef_]> By default bundler will install to your system gemset. You can try: 'bundle install --path .gems' to avoid it. Might also be worth adding 'gem: --user-install' to ~/.gemrc. You'll probably never want to install gems as root.
<monr0e> Hm. to be honest, I was lazy and used pamac. Or maybe it was yay? I forget. RubyMine seems to run the bundle from wherever the sdk is specified (I'll hafve to check that), so perhaps installing by hand is the solution.
<[0x1eef_]> Not sure. I haven't heard of either. Your distro should have a package for Ruby.
<monr0e> ya, both pamac and yay are endemic to arch/manjaro afaik. I forget the specifics, but I'm fairly certain I built fromm aur. I'll h ave a hunt around, ta
johnjaye has quit [Read error: Connection reset by peer]
<adam12> [0x1eef_]: I gave up on tmux for that exact reason. Tired of fucking around with 256 colors.
<[0x1eef_]> It's especially weird because it worked a few days ago.
<adam12> I still use it (or screen) on remote servers but it's just easier now to keep everything in Wez or even just neovim.
<adam12> I used tmux for years and years and years paired with vim, but once 256 color support came out, I was tired of doing the dance. t_Co? and other weird shit.
<[0x1eef_]> I want 256 colors for console emacs :)
rvalue has quit [Ping timeout: 255 seconds]
<adam12> I found tmux introduced an annoying latency too. I'm incredibly sensitive to it and I can notice keypress lag.
<[0x1eef_]> The lag with X11 forwarding is even worse.
polishdub has joined #ruby
hightower4 has joined #ruby
rvalue has joined #ruby
hightower3 has quit [Ping timeout: 268 seconds]
<[0x1eef_]> alias tmux='TERM=tmux-256color tmux' works.
johnjaye has joined #ruby
<adam12> I think I did that hack at one point in time.
<adam12> `tmux -2` or something
graywolf has quit [Ping timeout: 255 seconds]
graywolf has joined #ruby
hightower3 has joined #ruby
hightower4 has quit [Ping timeout: 260 seconds]
cek has joined #ruby
<[0x1eef_]> Yep :) I came across that suggestion too. Didn't seem to work. Neither did 'set -g default-terminal ...' and everything else that's usually suggested. I don't want to revert any of it in case it breaks again.
polishdub has quit [Read error: Connection reset by peer]
Linux_Kerio has quit [Ping timeout: 264 seconds]
[0x1eef_] has quit [Quit: Leaving]
[0x1eef] has joined #ruby
<adam12> default-terminal must have been the last trick I used at the time before my original MBA crashed. https://github.com/adam12/dotfiles-old/blob/8e57777e9aa008f19ed41d00b7b18b9ed4d4dd2d/tmux/.tmux.conf#L8
<adam12> lol
<adam12> I don't do any of that anymore, thankfully.
polishdub has joined #ruby
<Common-Lisp> adam12: I have something like "A = { b: 'c', d: 'e' }.freeze"
<Common-Lisp> I want to define RBS similar to "A: { b: String, d: String }", which I can do if and only if the ".freeze" is removed
<Common-Lisp> But of course, rubocop will yell at me if I remove the ".freez3e"
johnjaye has quit [Ping timeout: 260 seconds]
johnjaye has joined #ruby
<adam12> Common-Lisp: I see what you mean.
<adam12> Common-Lisp: Are you using Steep? https://github.com/soutaro/steep/issues/363
tromp has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tromp has joined #ruby
Linux_Kerio has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]
Linux_Kerio has quit [Ping timeout: 256 seconds]
brokkoli_origin has joined #ruby
CrazyEddy has quit [Ping timeout: 264 seconds]
monr0e has quit [Ping timeout: 272 seconds]
vls has quit [Ping timeout: 252 seconds]
sts has quit [Ping timeout: 252 seconds]
vls has joined #ruby
sts has joined #ruby
cek has quit [Quit: Connection closed for inactivity]
brokkoli_origin has quit [Ping timeout: 264 seconds]
_ht has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
coffeejunk has quit [Ping timeout: 252 seconds]
coffeejunk has joined #ruby
jposer has quit [Ping timeout: 252 seconds]
jposer has joined #ruby
cuppajoeman has quit [Ping timeout: 252 seconds]
cuppajoeman has joined #ruby
tromp has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tromp has joined #ruby
kwilczynski has quit [Ping timeout: 252 seconds]
kwilczynski has joined #ruby
graywolf has quit [Quit: WeeChat 4.0.4]
CrazyEddy has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
Obsdark has joined #ruby
Obsdark has quit [Changing host]
Obsdark has joined #ruby
tromp has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Vonter has quit [Ping timeout: 246 seconds]
Vonter has joined #ruby
TomyWork has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 4.2.1]