adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 2.7.2, 2.6.6, 3.0.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
TCZ has quit [Remote host closed the connection]
<arahael> I think this changed between Xcode 12.2 and Xcode 12.3.
hiroaki has quit [Ping timeout: 265 seconds]
panorain has joined #ruby
<arahael> nakilon: I think you're "nobu" in the github? Very impressive work in ruby.
ErhardtMundt has quit [Remote host closed the connection]
ErhardtMundt has joined #ruby
<arahael> Maybe that's indeed because of the flags the macports ruby used.
braincrash has quit [Ping timeout: 265 seconds]
<nakilon> arahael lol no
<nakilon> my github username is the same
<nakilon> I'm a random stranger
<arahael> Ah, no worries, sorry for the mistaken identity then! (Wouldn't change much, though, although nobu did review some of the M1 specific changes - doesn't seem to be many though)
<nakilon> did you install ruby after xcode upgrade or before?
<arahael> In any case, changing the "SDK11.0" to "SDK11.1" in the configure test cases fixed it, but that was a manual process, for that specific test.
<arahael> Hmm. I installed ruby after, but it was a binary install, so I suspect the version it was built against was indeed SDK 11.0
adu has joined #ruby
<arahael> Going to do some shopping, seeing what the macports guys say, but I suspect I might well need to return to homebrew.
<arahael> macports hasn't figured out how to respond to eg, Apple removing the default SDK, for some 15 months.
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<arahael> nakilon: You're right in that macport seems broken - this is still open: https://trac.macports.org/ticket/59113
Azure|dc is now known as Azure
Technodrome has joined #ruby
ErhardtMundt has quit [Remote host closed the connection]
ErhardtMundt has joined #ruby
ur5us has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
<arahael> Ok, macports guys got back to me. It works fine, the problem is that ruby bakes in the SDK are build time.
<arahael> Next question is why? To test this myself, I rebuilt ruby using macports. The new, rebuilt version, works fine.
<arahael> (And uses the correct SDK's)
<apotheon> What does "ruby bakes in the SDK are build time" mean?
<arahael> apotheon: It's trying to set the wrong -isysroot when building gems.
<arahael> apotheon: As it turns out, it's setting them from something baked into ruby when *ruby* is compiled.
<arahael> Come to think of it, this is possibly gems trying to ensure it's being built in the same environment.
<apotheon> oh
<arahael> But it's still awkward.
<apotheon> "are build time" is supposed to be "at build time"
<apotheon> Is that what happened?
<arahael> Ah, yeah - typo on my part. It's indeed supposed to be 'at build time'.
<apotheon> Okay, thanks for clearing that up.
<arahael> If I use macports binaries for ruby, and then install gems using that, it tries to use the SDK that the ruby binary was built against. But I have a slightly newer one, at a slightly different location.
<arahael> brb - going shopping, will talk more later, but on the plus side, now I know to use macports to rebuild things *from source* for ruby.
ellcs has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has joined #ruby
nowhere_man has quit [Ping timeout: 272 seconds]
nowhere_man has joined #ruby
ellcs has quit [Ping timeout: 268 seconds]
al2o3-cr has quit [Ping timeout: 256 seconds]
woodruffw has quit [Ping timeout: 272 seconds]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
dfucci has joined #ruby
mnathani has joined #ruby
<nakilon> also you probably could install older xcode
dfucci has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
sagax has quit [Read error: Connection reset by peer]
ChmEarl has quit [Quit: Leaving]
carbone5 has joined #ruby
ian| has quit [Quit: Exiting]
TCZ has quit [Quit: Wawel - Czujesz sie dobrze, czynisz dobrze]
<arahael> nakilon: The oldest is Xcode 12.
gix- has joined #ruby
gix has quit [Disconnected by services]
prion has joined #ruby
Swyper has quit [Remote host closed the connection]
carbone5 has quit [Quit: carbone5]
prion has quit [Ping timeout: 240 seconds]
powerhouse has quit [Quit: Leaving]
adu has quit [Quit: adu]
akem has quit [Ping timeout: 246 seconds]
akem has joined #ruby
adu has joined #ruby
adu has quit [Client Quit]
TomyLobo has quit [Read error: Connection reset by peer]
cd has quit [Quit: cd]
adu has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
orbyt_ has joined #ruby
Technodrome has joined #ruby
_whitelogger has joined #ruby
cnsvc has quit [Remote host closed the connection]
cnsvc has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
naftilos76 has joined #ruby
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 264 seconds]
<panorain> hi
ByronJohnson has quit [Ping timeout: 268 seconds]
ByronJohnson has joined #ruby
adu has quit [Quit: adu]
akem_ has joined #ruby
akem has quit [Ping timeout: 268 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
panorain has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
stemid has joined #ruby
<stemid> I'm no rails dev, just wondering if rails_admin can be connected to any rails app via the database? or does it have to be embedded by the devs of the original app? I was hoping to run it in a separate container and just connect it to the DB of my rails app.
<stemid> to get some better interface than what I have now
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
fanta1 has joined #ruby
braincrash has joined #ruby
hiroaki has joined #ruby
naftilos76_ has joined #ruby
jenrzzz has joined #ruby
naftilos76 has quit [Ping timeout: 256 seconds]
Swyper has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
Swyper has quit [Ping timeout: 260 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
_whitelogger has joined #ruby
duderonomy has quit [Client Quit]
dfucci has joined #ruby
Hien has quit [Ping timeout: 264 seconds]
nowhere_man has quit [Ping timeout: 272 seconds]
prion has joined #ruby
panorain has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
bvdw has quit [Quit: The Lounge - https://thelounge.chat]
bvdw has joined #ruby
Hien has joined #ruby
panorain has quit [Ping timeout: 264 seconds]
panorain has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
akem_ has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
al2o3-cr has quit [Client Quit]
al2o3-cr has joined #ruby
Swyper has joined #ruby
akem has joined #ruby
somazero has joined #ruby
Rudd0 has quit [Ping timeout: 246 seconds]
naftilos76_ has quit [Quit: Leaving]
naftilos76 has joined #ruby
<naftilos76> Hi everyone, is there a way to evaluate a condition before user-defined methods in class and take some action like raising an exception?
cloud69 has joined #ruby
<naftilos76> Supposing that i have a class Foo and methods def1, def2 & def3 and i want to check if an object instance variable @set is true before actually executing a def of that class
clemens3 has quit [Quit: WeeChat 2.7]
stemid has left #ruby [#ruby]
jenrzzz has joined #ruby
reaVer has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 256 seconds]
reaVer has joined #ruby
titanbiscuit has quit [Remote host closed the connection]
titanbiscuit has joined #ruby
Technodrome has joined #ruby
<adam12> naftilos76: Nothing built in, but probably do-able. Module.method_added hook + some fancy metaprogamming.
<naftilos76> adam12: i have seen some scenarios including but not limited to requiring rails and using some functionality like before_action. Stil looking into it. Thanks.
TCZ has joined #ruby
<adam12> naftilos76: Maybe this article from baweaver would help. https://dev.to/baweaver/decorating-ruby-part-two-method-added-decoration-48mj
<naftilos76> thanks!
prion has quit [Ping timeout: 264 seconds]
shokohsc has quit [Quit: The Lounge - https://thelounge.chat]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shokohsc has joined #ruby
prion has joined #ruby
Rudd0 has joined #ruby
TCZ has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Ping timeout: 260 seconds]
somazero has quit [Quit: Leaving]
jenrzzz has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
powerhouse has joined #ruby
<adam12> havenwood: nice!
havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.0-rc1, 2.7.2, 2.6.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
jenrzzz has quit [Ping timeout: 264 seconds]
<havenwood> adam12: Just five day 'till the Ruby 3.0 era.
<havenwood> adam12: 2.0 has treated us well.
ua_ has quit [Ping timeout: 260 seconds]
<adam12> havenwood: indeed it has.
ChmEarl has joined #ruby
ua_ has joined #ruby
<prion> what's more likely
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
Emmanuel_Chanel has joined #ruby
dfucci has quit [Ping timeout: 246 seconds]
<naftilos76> Will ruby 3.0 be parallelism-ready instead of concurrency-ready? Did i read right?
<adam12> naftilos76: It's working to improve both; Ractors for parallelism and Fiber enhancements for Concurrency (used by Async gem and others)
<naftilos76> Nice thanks
chouhoulis has quit [Quit: Leaving...]
chouhoulis has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
dfucci has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
howdoi has joined #ruby
cd has joined #ruby
lucasb has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
phaul has quit [Remote host closed the connection]
phaul has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
panorain has quit [Quit: Leaving]
phaul has quit [Ping timeout: 260 seconds]
rubydoc has quit [Ping timeout: 240 seconds]
rubydoc has joined #ruby
phaul has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
phaul has quit [Ping timeout: 246 seconds]
rubydoc has quit [Ping timeout: 268 seconds]
phaul has joined #ruby
rubydoc has joined #ruby
rubydoc has quit [Excess Flood]
rubydoc has joined #ruby
naftilos76 has quit [Quit: Leaving]
<prion> how long do new ruby versions generally take to be added to rbenv
adu has joined #ruby
rubydoc has quit [Excess Flood]
rubydoc has joined #ruby
phaul has quit [Ping timeout: 256 seconds]
phaul has joined #ruby
zapata has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
orbyt_ has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
<adam12> prion: They get added to ruby-build (tho you might use a plugin for rbenv?). https://github.com/rbenv/ruby-build#readme
<adam12> prion: Here's the PR for it. https://github.com/rbenv/ruby-build/pull/1690
prion has quit [Ping timeout: 260 seconds]
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
ur5us has joined #ruby
jenrzzz has joined #ruby
Technodrome has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
dfucci has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
prion has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Ping timeout: 256 seconds]
CrazyEdd has quit [Remote host closed the connection]
dfucci has joined #ruby
cloud69 has quit [Quit: Connection closed for inactivity]
nowhere_man has joined #ruby
jenrzzz has joined #ruby
jerome___ has joined #ruby
cliluw has joined #ruby
jeromelanteri has quit [Ping timeout: 256 seconds]
elcuervo has joined #ruby
cuerbot has quit [Ping timeout: 246 seconds]
cliluw has quit [Ping timeout: 268 seconds]
fanta1 has quit [Remote host closed the connection]
ellcs has joined #ruby
CrazyEdd has joined #ruby
dfucci has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby
adu has quit [Quit: adu]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
jerome___ has quit [Quit: Leaving]
ruurd has joined #ruby
al2o3-cr has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfucci has joined #ruby
CrazyEdd has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
prion has quit [Ping timeout: 260 seconds]
braincrash has quit [Ping timeout: 256 seconds]
<tempate> Is there a way to merge together 2d arrays? So if I have [[1, 2, 3], [-1, -2, -3]] and [[4, 5, 6], [-4, -5, -6]] I want to get [[1, 2, 3, 4, 5, 6], [-1, -2, -3, -4, -5, -6]]
<leftylink> the first step is to do a transpose. when you look at the result of the transpose, the next step should be clear.
<leftylink> oh no, they're nested in a way I don't like
prion has joined #ruby
<leftylink> never mind then
<al2o3-cr> (a.transpose + b.transpose).transpose
jenrzzz has joined #ruby
<tempate> Hmmm
ruurd has quit [Quit: bye folks]
akem_ has joined #ruby
<tempate> al2o3-cr: I'm guessing that will work for the general case, right? row.sum{ |cell| cell.transpose }.transpose
<tempate> cell being the 2d array
<al2o3-cr> tempate: should do, yes.
<tempate> nice
<tempate> Thank you very much
jenrzzz has quit [Ping timeout: 264 seconds]
akem has quit [Ping timeout: 272 seconds]
adu has joined #ruby
galiusk has joined #ruby
galiusk has quit [Remote host closed the connection]
<phaul> &>> [[1, 2, 3], [-1, -2, -3]].zip([[4, 5, 6], [-4, -5, -6]]).map(&:flatten)
<rubydoc> stderr: playpen: timeout triggered! (https://carc.in/#/r/a5ax)
dfucci has quit [Ping timeout: 265 seconds]
<phaul> &>> [[1, 2, 3], [-1, -2, -3]].zip([[4, 5, 6], [-4, -5, -6]]).map(&:flatten)
<rubydoc> # => [[1, 2, 3, 4, 5, 6], [-1, -2, -3, -4, -5, -6]] (https://carc.in/#/r/a5b0)
<tempate> oh, nice too
jhass has quit [Ping timeout: 272 seconds]
adu has quit [Quit: adu]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
weaksauce has joined #ruby
ruurd has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.9]
al2o3-cr has joined #ruby
dfucci has joined #ruby
mich9x has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Technodrome has joined #ruby
KramerC has quit [Quit: Leaving]
KramerC has joined #ruby
dfucci has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
cliluw has joined #ruby
dfucci has joined #ruby
dfucci has quit [Ping timeout: 246 seconds]
cloud69 has joined #ruby
ian| has joined #ruby
mich9x has quit [Quit: mich9x]
dfucci has joined #ruby
jhass has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
cnsvc has joined #ruby
mich9x has joined #ruby
adu has joined #ruby
mnathani has quit []
mich9x has quit [Quit: mich9x]