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.
<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
<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