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