<weaksauce>
i like books much more for this kinda thing
<adam12>
Yeah. I flip flop. I buy physical books for ones I figure I'll likely care about.
<adam12>
But some books have been interesting to find lately. I've been getting a ton from Seattle Goodwill, which sounds strange but makes sense considering their geographic location.
<adam12>
ie. Ruby Under a Microscope and Elegant Ruby are both out of print (afaik) and I sourced them from there (via ebay)
<weaksauce>
mainly the code formatting is always terrible
<weaksauce>
yeah i bought mine a long time ago and it was probably full price
<adam12>
I have a local book place that has great deals on books, but very few Ruby ones. https://bookoutlet.ca
<adam12>
But I got Ask Your Developer, The Right It, and a bunch of other good ones there.
ouestbillie has quit [Remote host closed the connection]
_ht has quit [Remote host closed the connection]
_ht has joined #ruby
shokohsc has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
RemoteHost is now known as A_Dragon
maroloccio has joined #ruby
ouestbillie has joined #ruby
bluedust has joined #ruby
infernix has joined #ruby
royo25 has joined #ruby
maroloccio has quit [Quit: WeeChat 3.0]
bluedust_ has joined #ruby
bluedust has quit [Remote host closed the connection]
bluedust has joined #ruby
bluedust_ has quit [Ping timeout: 256 seconds]
bluedust has quit [Ping timeout: 240 seconds]
gproto23 has joined #ruby
bluedust has joined #ruby
fef has quit [Ping timeout: 276 seconds]
Sheilong has joined #ruby
fef has joined #ruby
bluedust has quit [Remote host closed the connection]
perrierjouet has quit [Quit: WeeChat 3.4]
bluedust has joined #ruby
BSaboia has joined #ruby
<Sheilong>
what is a good resource(s) to learn Ruby on reasonable fast pace?
<adam12>
Sheilong: Can't go wrong with Eloquent Ruby (book)
perrierjouet has joined #ruby
unyu has quit [Quit: Reboot.]
gr33n7007h has quit [Quit: WeeChat 3.4]
gr33n7007h has joined #ruby
xyhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #ruby
Henry151 has joined #ruby
<Henry151>
howdy. Brand new to ruby. Trying to do a "pod install" command while following a tutorial. Getting this traceback: https://pastebin.com/BjPrjyWg any information or guidance on how to resolve much appreciated
<ruby[bot]>
Henry151: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<adam12>
Henry151: The only suggestion I can offer is to not use system ruby (the one that came with your Mac). Install a separate one, which will be newer.
<Henry151>
ah, excellent guidance, i'll give that a shot
<Henry151>
is there some sort of version manager or recommended process for having multiple ruby installs? or do i just upgrade my system install to the latest?
<adam12>
It's a good catch-all, with few moving parts.
unyu has joined #ruby
<Henry151>
thanks for the guidance adam12 .. i've installed ruby 3.1.0, but when i run "pod install" it still is trying to use 2.6.0... could you point me at how to specify the correct version?
<Henry151>
ah i just had to scroll down the page further
<Henry151>
"OpenSSL is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources"
<Henry151>
then, trying to solve that, I ran "gem source -r https://rubygems.org" and tried to run "gem source -a https://rubygems.org" but the second command failed with that same openssl error, so now i don't have a repository source XD
<Henry151>
i'm a debian linux user typically, this is my first week with a macbook.
<Henry151>
without further guidance, i am now uninstalling and reinstalling ruby, through frum
<rapha>
hmm
<rapha>
is there a(n undocumented) way to tell JSON's #pretty_generate to be a little more ... compact ... with its output?
<rapha>
like, '{"II": "reference"},' is being split up across 3 lines
ouestbillie has quit [Remote host closed the connection]
<adam12>
Henry151: Right; I was wondering if you would run into that issue. I thought frum had fixed it, but you have the correct fix.
<adam12>
rapha: #generate won't work for you?
kaleido has quit [Quit: peas]
TomyWork has joined #ruby
kaleido has joined #ruby
kaleido has quit [Changing host]
kaleido has joined #ruby
<adam12>
Gemdocs.org has 1440 gems documented at ~ 6 GB uncompressed currently. I should start tracking metrics to measure growth.
<adam12>
Apparently, there are 169,877 Rubygems in total. If I take the average I've seen with the current corpus, and only store the latest version of each, I'm looking at 700 GB uncompressed.
<adam12>
Doesn't seem too bad.
<adam12>
(the average is likely useless and I probably should use the mean but oh well)
Furai has quit [Quit: WeeChat 3.4]
<Henry151>
still failing to get this going..
henninb has joined #ruby
Furai has joined #ruby
henninb has quit [Client Quit]
<adam12>
Henry151: pod issue or ruby issue?
<Henry151>
installled ruby with "frum install 3.0.3 --with-openssl-dir=`brew --prefix openssl`" .. when i do gem install cocoapods i get "openssl is not available" error
<adam12>
Henry151: Confirm ruby version with `ruby --version`
henninb has joined #ruby
<Henry151>
3.0.3
<adam12>
ruby -S gem install cocoapods
<adam12>
Does that work?
<Henry151>
"openssl not available"
<adam12>
This is gonna burn your ass, but I bet it's because it linked to the wrong OpenSSL version.
<adam12>
Which might require a re-install of Ruby.
<Henry151>
hmm ok
<Henry151>
i've reinstalled ruby 6 times so far during this attempt :) so that's fine
<Henry151>
i guess the brew --prefix openssl is giving the wrong path?
<adam12>
Henry151: Instead of --prefix openssl, you probably need openssl@1.1
<Henry151>
it is pointing at /opt/homebrew/opt/openssl1@3
<adam12>
Ruby doesn't support openssl3 yet
<adam12>
ls /opt/homebrew/opt/openssl*
<Henry151>
i have two folders, /opt/homebrew/opt/openssl and /opt/homebrew/opt/openssl@3
<adam12>
Oh. No 1.1? Hmm...
<Henry151>
... brew install openssl1.1 ? or similar?
<Henry151>
i'm brand new to mac world, been a debian linux daily-driver for 18 years..
<adam12>
Henry151: What does `brew info openssl@1.1` say?
<adam12>
I mean, it will say a bunch
<adam12>
but does it mention `Not installed` in the first few lines?
<Henry151>
it does say Not installed
<Henry151>
yep
<Henry151>
`brew install openssl@1.1` ?
<adam12>
OK. `brew install openssl@1.1`, then recompile ruby using `brew --prefix openssl@1.1`
<adam12>
In _theory_ that should work. If it doesn't, I'd say just disable frum, brew install ruby, and go on with your life for now. I'd definitely not use brew ruby long term, but it would unblock you since I bet this isn't what you want to do all day.
<adam12>
But those instructions I just showed you are what I use for installing Ruby as of a few days ago, so I'm presuming they should work.
<Henry151>
this is fine i'm enjoying learning, thank you for your help, i'll let you know how this works in a moment
<Henry151>
seems to have worked
<Henry151>
thank you!
roshanavand has joined #ruby
<adam12>
Henry151: Awesome! I guess we'll see now if the pod works. Heh.
<Henry151>
it worked!
<adam12>
Huzzah!
bluedust has quit [Remote host closed the connection]
madmike has joined #ruby
madmike has quit [Read error: Connection reset by peer]
unyu has quit [Quit: brb]
unyu has joined #ruby
madmike has joined #ruby
henninb has quit [Quit: leaving]
victori has quit [Ping timeout: 240 seconds]
<rapha>
adam12: i think the options #pretty_generate invokes #generate with are already pretty much the optimum given what options are available. the rule i would like to apply is too complex ("leave all hashes with only one key as one single line") for what they make available.
masticass has joined #ruby
masticass has quit [Client Quit]
oxfuxxx has joined #ruby
TomyWork has quit [Remote host closed the connection]
royo25 has quit [Quit: Bye]
madmike has quit [Quit: Leaving]
bluedust has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
BSaboia has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
lucasb has joined #ruby
cpk33 has joined #ruby
infinityfye has quit [Quit: Leaving]
bluedust has quit [Remote host closed the connection]
roadie has joined #ruby
cpk33 is now known as zZen33
bluedust has joined #ruby
bluedust has quit [Remote host closed the connection]
axisys has quit [Remote host closed the connection]
axisys has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
<rapha>
is there an idiomatic one-liner for removing a certain key (which may or may not exist) from all hashes in an array of hashes?
<rapha>
been trying around for a bit now but can't get it done in one line :|
<rapha>
this has got to be _really_ simple
* rapha
is probably too tired
<rapha>
ooooooooooh, just do it in #each ... no #map hullahballoo
<rapha>
ooooooooooh, just do it in #each ... no #map hullahballoo
<rapha>
whoops, this is not a terminal. you don't hit "up" and "enter" here unchecked
<rapha>
well, don't do that in your terminals either, kids
roadie has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
<Hess>
please, continue. I enjoy monologues
<gr33n7007h>
rapha: obj.map { _1.except(key) }
<Hess>
Hash#except is Rails
<gr33n7007h>
Hess: in core now :)
<Hess>
noice
<Hess>
til
roadie has quit [Ping timeout: 240 seconds]
fef has quit [Ping timeout: 276 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 252 seconds]
zZen33 has quit [Quit: Client closed]
CeNedra has joined #ruby
<rapha>
oh cool
<rapha>
i love rails, but only when it contributes something useful back to core. otherwise i pretend it doesn't exist :)
<rapha>
Hess: yeah, welcome to my ADHD world :P
zacts has quit [Ping timeout: 250 seconds]
John_Ivan has quit [Read error: Connection reset by peer]
dstein64- has joined #ruby
cpk33 has joined #ruby
cpk33 is now known as zZen33
duderonomy has quit [Ping timeout: 240 seconds]
dstein64 has quit [Ping timeout: 256 seconds]
dstein64- is now known as dstein64
duderonomy has joined #ruby
John_Ivan has joined #ruby
ouestbillie has joined #ruby
___nick___ has quit [Ping timeout: 256 seconds]
BSaboia has joined #ruby
<ox1eef>
Rails7 should be interesting, it's encourging to see Rails carve its own path when it comes to the frontend, while still being capable of being a React or Vue heavy application.
ua__ has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
ua_ has quit [Ping timeout: 268 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
_ht has quit [Remote host closed the connection]
zZen33 has quit [Quit: Client closed]
<adam12>
If Rails switched ActiveRecord for Sequel I'd move back in a second. Or ROM. But I'm not sure I could go back to raw SQL or Arel.
<rapha>
if people stopped inventing new frontend paradigms at the rate at which they're hopefully changing their underwear i might consider moving back into web development in a second
<rapha>
isn't Sequel usable with rails tho?
Bounga has joined #ruby
Aylat has joined #ruby
<adam12>
rapha: usable, but the experience is definitely limited since so much depends on activerecord.