havenwood changed the topic of #ruby to: Ruby 3.2.2, 3.1.4, 3.3.0-preview1: https://www.ruby-lang.org | Rules: https://ruby-community.com | Logs: https://libera.irclog.whitequark.org/ruby
eddof13 has quit [Ping timeout: 258 seconds]
Exa has quit [Server closed connection]
Exa has joined #ruby
hrberg has quit [Ping timeout: 255 seconds]
hrberg has joined #ruby
dalan0382283 has joined #ruby
dalan0382283 has quit [Client Quit]
yziquel has quit [Ping timeout: 245 seconds]
dalan0382283 has joined #ruby
hightower3 has joined #ruby
hightower4 has quit [Ping timeout: 246 seconds]
OverCoder has joined #ruby
brokkoli_origin has quit [Ping timeout: 245 seconds]
brokkoli_origin has joined #ruby
Vonter has joined #ruby
weaksauc_ has quit [Ping timeout: 246 seconds]
weaksauce has joined #ruby
_ht has joined #ruby
Vonter has quit [Ping timeout: 255 seconds]
Linux_Kerio has joined #ruby
Vonter has joined #ruby
OverCoder has quit [Quit: Connection closed for inactivity]
grenierm has joined #ruby
u0_a115 has joined #ruby
u0_a115 has quit [Ping timeout: 244 seconds]
grenierm has quit [Quit: Client closed]
grenierm has joined #ruby
dsdxtech has joined #ruby
_ht has quit [Quit: _ht]
Pixi` has joined #ruby
Pixi has quit [Ping timeout: 246 seconds]
Arthur has quit [Quit: Ping timeout (120 seconds)]
Arthur has joined #ruby
teclator has joined #ruby
Linux_Kerio has quit [Ping timeout: 245 seconds]
konsolebox has joined #ruby
duderonomy has quit [Ping timeout: 246 seconds]
duderonomy_ has joined #ruby
dostoyevsky2 has quit [Server closed connection]
dostoyevsky2 has joined #ruby
yziquel has joined #ruby
taupiqueur_shiny has joined #ruby
yziquel has quit [Client Quit]
konsolebox has quit [Quit: Leaving]
yziquel has joined #ruby
CrazyEddy has quit [Ping timeout: 246 seconds]
unveiledly has joined #ruby
taupiqueur_shiny has quit [Remote host closed the connection]
willfish has joined #ruby
taupiqueur_shiny has joined #ruby
yziquel has quit [Ping timeout: 245 seconds]
pvalenta has quit [Remote host closed the connection]
pvalenta has joined #ruby
pvalenta has quit [Changing host]
pvalenta has joined #ruby
Vonter has quit [Ping timeout: 258 seconds]
micro has quit [Ping timeout: 260 seconds]
grenierm has quit [Ping timeout: 245 seconds]
duderonomy_ has quit [Quit: Textual IRC Client: www.textualapp.com]
micro has joined #ruby
nikkys has quit [Server closed connection]
nikkys has joined #ruby
hansolo has quit [Ping timeout: 245 seconds]
brokkoli_origin has quit [Ping timeout: 255 seconds]
hansolo has joined #ruby
brokkoli_origin has joined #ruby
Vonter has joined #ruby
Guest10 has joined #ruby
<Guest10> ruby is dead?
BSaboia has quit [Server closed connection]
BSaboia has joined #ruby
MalusVulgaris has joined #ruby
yziquel has joined #ruby
Guest10 has quit [Quit: Client closed]
teclator has quit [Ping timeout: 255 seconds]
yziquel has quit [Quit: Client closed]
yziquel has joined #ruby
taupiqueur_shiny has quit [Remote host closed the connection]
yziquel has quit [Quit: Client closed]
Vonter has quit [Ping timeout: 248 seconds]
Vonter has joined #ruby
Linux_Kerio has joined #ruby
graywolf has joined #ruby
dsdxtech has quit [Quit: Leaving]
egality has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
Huckleberry777 has quit [Quit: Huckleberry777]
nmollerup has quit [Quit: Leaving]
yziquel has joined #ruby
<adam12> It's dead? Oh noes. :( RIP
<adam12> good morning
MalusVulgaris has quit [Ping timeout: 246 seconds]
OverCoder has joined #ruby
yziquel has quit [Ping timeout: 245 seconds]
yziquel has joined #ruby
<ox1eef_> o/ adam12
taupiqueur_shiny has joined #ruby
taupiqueur_shiny has quit [Remote host closed the connection]
<adam12> ox1eef_: Happy friday!
<johnjaye> which is more influential on ruby, eiffel or smalltalk. there must be an answer
<johnjaye> also where in the doc is block syntax discussed? i thought a block to a function was using each(), but I've been informed that is not true and you can give a block to any object.
Huckleberry777 has joined #ruby
Vonter has quit [Ping timeout: 248 seconds]
Vonter has joined #ruby
yziquel has quit [Ping timeout: 245 seconds]
sarna has joined #ruby
taupiqueur_shiny has joined #ruby
yziquel has joined #ruby
taupiqueur_shiny has quit [Remote host closed the connection]
yziquel has quit [Quit: Client closed]
Vonter has quit [Ping timeout: 246 seconds]
<weaksauce> johnjaye block is something you can pass to any function
_ht has joined #ruby
unveiledly has quit [Ping timeout: 258 seconds]
desnudopenguino1 has joined #ruby
yziquel has joined #ruby
desnudopenguino has quit [Ping timeout: 258 seconds]
desnudopenguino1 is now known as desnudopenguino
yziquel has quit [Client Quit]
Vonter has joined #ruby
willfish has quit [Ping timeout: 248 seconds]
_whitelogger has joined #ruby
yziquel has joined #ruby
<nona> ox1eef_: that's exactly what i meant, yes. one of the two main purposes of concerns is to allow method re-use between controllers. if all methods of a concern are only used once, then the only remaining purpose of it is to group topically similar things together. in that case, where do you draw the line, and for what reason? is 1 single method that serves a topic enough to warrant a concern file? are
<nona> 3? a dozen?
<nona> johnjaye: prolly would need to ask Matz and see what he feels he read/wrote in more before starting Ruby...
<nona> johnjaye: also, if you want to be real ruby-esque, you'd say #each instead of each() :)
<adam12> I'd probably have 1 method in a module (I don't use Rails so I wouldn't consider it a _concern_).
<adam12> If it's shared logic, why not. Sometimes I might have an Initializer module that sets `def initialize(attrs = {}); attrs.each do |attr, value| public_send("#{attr}=", value)` or similar.
<weaksauce> johnjaye if you want to know where it's defined: https://ruby-doc.org/3.2.1/syntax/methods_rdoc.html
yziquel has quit [Quit: Client closed]
yziquel has joined #ruby
Linux_Kerio has quit [Ping timeout: 246 seconds]
<adam12> Anybody use rr for mocking? I normally use mocha but I wonder how rr might be (or flexmock, if you've used that, speak up)
pgib has joined #ruby
willfish has joined #ruby
<ox1eef_> nona: It depends on the specifics. But sounds like each method could go directly to the controller. But again, it really depends on the context. Don't think there's any hard rules.
<ox1eef_> adam12: I use rspec-mocks most of the time. In my own personal projects, I don't think I ever had a need for a mocking library.
<adam12> ox1eef_: do you normally use rspec?
<adam12> ox1eef_: I don't mock a lot, but I do sometimes.
<ox1eef_> At $work it always seems to be rspec. In my personal projects I have moved away from it, towards test-unit. I think I have one project still on rspec, and just too much work to switch over.
<ox1eef_> Sometimes I need a fake filesystem, and rather than using FakeFS, I just set it up myself within test/. Usually test/fakeroot/ or something like that.
adam12 has quit [Server closed connection]
adam12 has joined #ruby
<adam12> ox1eef_: Ooo. Test-unit? Interesting. I haven't used it since like 2008.
<ox1eef_> Yep. From stdlib.
willfish has quit [Ping timeout: 255 seconds]
<ox1eef_> I don't know why, but minitest wasn't included (altho test-unit was). I thought minitest was suppose to be stdlib. The decision was not much deeper than that.
constxqt has quit [Ping timeout: 258 seconds]
lucerne has joined #ruby
lucerne has quit [Client Quit]
lucerne has joined #ruby
<adam12> There's some deep drama in there I think. I don't even believe ruby-core knows which runner to use.
<adam12> I kind of wish Ruby had a test runner built-in. Like how node has adopted one.
<adam12> s/runner to use/framework to use/
<leah2> hm? minitest is a standard gem no
<gr33n7007h> leah2: minitest is a bundled gem
<leah2> so it should be around everywhere
willfish has joined #ruby
<gr33n7007h> bundled gems are automatically installed when you install ruby, but they can be uninstalled and are maintained outside of ruby core
<gr33n7007h> default gems on the other hand are part of ruby
<gr33n7007h> maintained by ruby core and can't be uninstalled
hrberg has quit [Ping timeout: 240 seconds]
<ox1eef_> When it comes to a test runner for test-unit, I carry around a shell script into each project (eg https://github.com/0x1eef/cmd.rb/blob/main/bin/test-runner)
<ox1eef_> leah2: Yep, I understood it should be available by default, but for whatever reason it didn't seem to be the case for me.
pgib has quit [Ping timeout: 255 seconds]
<weaksauce> gr33n7007h some bundled gems are maintained by ruby core too
<leah2> i didnt install it for sure and i have it :p
<leah2> ox1eef_: why break on first error?
<gr33n7007h> weaksauce: oh yeah :)
<adam12> leah2: We need more bacon, but with (imho) assert style methods.
<leah2> idk, adding one #should seemed reasonable :)
<adam12> heh
<leah2> with test_equal it's never clear which one you are checking against
<adam12> You mean (expected, actual)? indeed, an issue.
<leah2> yes
<weaksauce> kinda interesting
<adam12> I like the idea of a single tool.
<weaksauce> what kind of magic is this guy doing to get those speeds
<weaksauce> and it be a drop in replacement for all of that
willfish has quit [Ping timeout: 248 seconds]
<ox1eef_> leah2: That's usually my workflow - fix what fails first. But agreed, for CI it is not particularly helpful.
<ox1eef_> I like test-unit because it's vanilla, and in my old age, I like boring things.
<ox1eef_> I also never really grasped why speed was made a feature, because that's not normally the bottleneck, the code being tested is, not really the framework itself.
OverCoder has quit [Quit: Connection closed for inactivity]
Bish has quit [Server closed connection]
Bish has joined #ruby
taupiqueur_shiny has joined #ruby
taupiqueur_shiny has quit [Remote host closed the connection]
Vonter has quit [Ping timeout: 248 seconds]
constxqt has joined #ruby
Vonter has joined #ruby
_ht has quit [Quit: _ht]
constxqt has quit [Ping timeout: 255 seconds]
yziquel has quit [Quit: Client closed]
<johnjaye> ah i see
pgib has joined #ruby
yziquel has joined #ruby
axsuul has quit [Quit: 👋]
axsuul has joined #ruby
axsuul has quit [Quit: 👋]
axsuul has joined #ruby
taupiqueur_shiny has joined #ruby
graywolf has quit [Quit: WeeChat 4.0.4]
pgib has quit [Ping timeout: 245 seconds]
graywolf has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
taupiqueur_shiny has quit [Remote host closed the connection]
pgib has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Artea has quit [Server closed connection]
Artea has joined #ruby
yziquel has quit [Quit: Client closed]
yziquel has joined #ruby
desnudopenguino has quit [Ping timeout: 248 seconds]
desnudopenguino has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 248 seconds]
desnudopenguino1 is now known as desnudopenguino
graywolf has quit [Quit: WeeChat 4.0.4]
<adam12> Thought I'd see how this Ruby script I am writing targets older versions. Normally use Docker but figured i'd just compile latest of 2.3, etc. 2.3, 2.4, 2.5 all won't compile today. Which I guess should be expected due to their ages, but the bit rot is real