adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
michigan has joined #ruby
ua_ has joined #ruby
drincruz_ has quit [Ping timeout: 245 seconds]
mrkz_c has joined #ruby
ua_ has quit [Quit: Leaving]
ua_ has joined #ruby
AriT93 has quit [Remote host closed the connection]
weaksauce has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
ansimita has left #ruby [#ruby]
ansimita has joined #ruby
curdlesnoot has joined #ruby
goepsilongo has joined #ruby
goepsilongo has quit [Client Quit]
curdlesnoot has quit [Quit: = ""]
Rounin has quit [Ping timeout: 265 seconds]
P1RATEZ has joined #ruby
michigan has quit [Quit: Connection closed for inactivity]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
michigan has joined #ruby
reset has quit [Quit: reset]
ur5us has quit [Ping timeout: 240 seconds]
Guest9 has joined #ruby
P1RATEZ has quit [Remote host closed the connection]
jetchisel has joined #ruby
bandithijo has joined #ruby
Guest9 has quit [Quit: Client closed]
teclator has joined #ruby
Bounga has joined #ruby
_ht has joined #ruby
shokohsc has joined #ruby
Garo_ has joined #ruby
<Garo_> I have a Rails app which uses a gem. I want to modify this gem so that I can eventually send a github pull request. What's the right way of having a development version of this gem (aka. git clone) so that my rails app will use this gem, without having to repackage the gem every time I do a change?
reset has joined #ruby
bandithijo has quit [Ping timeout: 255 seconds]
michigan has quit [Quit: Connection closed for inactivity]
Rounin has joined #ruby
<Tuor> Hi, my code: https://gist.github.com/nod0n/9720ad5dfb31f9bf2d757500f003876a. I'm wondering if there is a simpler / more elegant way of doing the same...
ua_ has quit [Read error: Connection reset by peer]
<adam12> Tuor: Case would be fine here. You can case on `Integer`, fyi.
<Tuor> Ah that's better. Thank you!
<adam12> Tuor: `when Integer then @values[selector]`
<adam12> Tuor: Anything that responds to `===` can be used.
<Tuor> thank you! :)
<adam12> Garo_: Clone the gem locally, then use `gem "name of gem", path: "/path/to/your/local/copy"` in your Gemfile.
<adam12> Garo_: There's also a Bundler option that you could use, but I'll leave that to you to find. It's something like `bundle config gemname.path /path/to/your/local/copy`.
<Garo_> adam12: great, thanks a lot!
<adam12> Garo_: yw!
drincruz_ has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<adam12> Tuor: That works.
<Tuor> :) it's compact and easy to read. I'll keep it like that then.
bandithijo has joined #ruby
teclator has joined #ruby
bandithijo has quit [Ping timeout: 272 seconds]
jetchisel has quit [Ping timeout: 256 seconds]
rg1 is now known as rg
TomyWork has joined #ruby
bandithijo has joined #ruby
gearnode has quit [Quit: WeeChat 3.2]
gearnode has joined #ruby
drincruz has joined #ruby
bandithijo has quit [Ping timeout: 272 seconds]
drincruz_ has quit [Ping timeout: 252 seconds]
motherr has quit [Quit: motherr]
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
teclator has joined #ruby
jetchisel has joined #ruby
orbyt has joined #ruby
finsternis has quit [Remote host closed the connection]
raw-bean has joined #ruby
Guest588 has joined #ruby
Guest588 has quit [Quit: Client closed]
jetchisel has quit [Ping timeout: 250 seconds]
factor2 has joined #ruby
factor has quit [Ping timeout: 252 seconds]
factor2 is now known as factor
TomyWork has quit [Quit: Leaving]
chonkbit has joined #ruby
Bounga has quit [Ping timeout: 272 seconds]
bougyman has quit [Excess Flood]
bougyman has joined #ruby
kwilczynski has joined #ruby
raw-bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shokohsc has quit [Quit: Ping timeout (120 seconds)]
drincruz_ has quit [Ping timeout: 250 seconds]
orbyt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shokohsc has joined #ruby
drincruz_ has joined #ruby
raw-bean has joined #ruby
Liexei has joined #ruby
drincruz_ has quit [Ping timeout: 268 seconds]
raw-bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt has joined #ruby
_ht has quit [Remote host closed the connection]
finsternis has joined #ruby
<aesthetikx> Have a good weekend everyone!
<rg> aesthetikx: you too
<aesthetikx> rg I might have to write a blog post about your solution to 'quiet tests'
<aesthetikx> by adding $stderr I also got tests to fail that produce rails deprecation warnings
explorier has quit [Ping timeout: 252 seconds]
explorier has joined #ruby
drincruz_ has joined #ruby
bandithijo has joined #ruby
<rg> cool
uplime has quit [Ping timeout: 252 seconds]
uplime has joined #ruby
kenichi_ has joined #ruby
kenichi has quit [Ping timeout: 252 seconds]
gcd has quit [Ping timeout: 252 seconds]
gcd has joined #ruby
_axx has quit [Ping timeout: 252 seconds]
_axx6 has joined #ruby
drincruz_ has quit [Ping timeout: 252 seconds]
rhe9 has joined #ruby
rhe has quit [Ping timeout: 252 seconds]
rhe9 is now known as rhe
aighearach_ has joined #ruby
lzap7 has joined #ruby
aighearach has quit [Remote host closed the connection]
lzap has quit [Ping timeout: 265 seconds]
bandithijo has quit [Ping timeout: 256 seconds]
<havenwood> A joke, but it *almost* works to do: @values[selector.object_id / 2]
<havenwood> Pesky `true` would be `10` not `1` these days.
<aesthetikx> havenwood, what is @values and what is selector?
<weaksauce> reference to that i assume
<havenwood> aesthetikx: yeah, I meant the gist ^
<havenwood> I hash to prod constant is tempting. Is `nil` also a `0` key is a question too?
<havenwood> to proc*
<havenwood> I don’t like ternary, cross-class keys.
<aesthetikx> i never came across an actual use case for Hash#to_proc, care to demonstrate?
<aesthetikx> or do you mean a hash with proc values
raw-bean has joined #ruby
chonkbit has quit [Ping timeout: 250 seconds]
menace has quit [Ping timeout: 252 seconds]
raw-bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> aesthetikx: baweaver has a good write up https://dev.to/baweaver/understanding-ruby-toproc-and-function-interfaces-2o1d
orbyt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> it’s not clear how it’d work here, with “itself” being the value just tempted to use a Hash for this type of preknown value but maybe not quite a match.
<newton> thanks for the link, TIL numbered params