havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
davidw has quit [Ping timeout: 240 seconds]
sgen has quit [Quit: Leaving]
neot has quit [Quit: Goodbye!]
neot has joined #ruby
pinpox- has joined #ruby
pinpox has quit [Ping timeout: 265 seconds]
ur5us has quit [Ping timeout: 240 seconds]
turbo_choo has quit [Ping timeout: 272 seconds]
john2496 has joined #ruby
robscomputer has quit [Quit: Textual IRC Client: www.textualapp.com]
bukkitgerman8 has quit [Quit: Du Mongo]
sergioro has joined #ruby
ur5us has joined #ruby
sagax has quit [Remote host closed the connection]
davidw has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
Lyubo1 has quit [Ping timeout: 260 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
TCZ has joined #ruby
Lyubo1 has joined #ruby
citizentwo has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
bukkitgerman8 has joined #ruby
dasher00 has quit [Ping timeout: 260 seconds]
ChmEarl has joined #ruby
splud_wurk has quit [Quit: splud_wurk]
ged has quit [Quit: WeeChat 2.5]
ged has joined #ruby
xco has joined #ruby
snuz_ has quit [Read error: Connection reset by peer]
drincruz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
skryking_ has joined #ruby
skryking has quit [Ping timeout: 260 seconds]
cc__ has quit [Remote host closed the connection]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldepandis has joined #ruby
ldepandis has quit [Client Quit]
drincruz has quit [Ping timeout: 272 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
citizentwo has joined #ruby
gavlee has quit [Excess Flood]
gavlee has joined #ruby
splud_wurk has joined #ruby
citizentwo has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Quit: dionysus69]
wildtrees has quit [Quit: Leaving]
duderonomy has joined #ruby
leitz has quit [Quit: Leaving]
fercell has quit [Quit: WeeChat 2.7]
pwnd_nsfw` has joined #ruby
ChmEarl has quit [Ping timeout: 240 seconds]
pwnd_nsfw has quit [Ping timeout: 265 seconds]
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
thebananaking has joined #ruby
davidw has quit [Ping timeout: 268 seconds]
siery has joined #ruby
jenrzzz has joined #ruby
drincruz has joined #ruby
citizentwo has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
citizentwo has quit [Ping timeout: 240 seconds]
drincruz has quit [Ping timeout: 268 seconds]
john2496 has quit [Read error: Connection reset by peer]
john2496 has joined #ruby
sagax has joined #ruby
cthulchu_ has quit [Ping timeout: 265 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
davispuh has quit [Read error: Connection reset by peer]
davispuh has joined #ruby
DaRock has joined #ruby
citizentwo has joined #ruby
turbo_choo has joined #ruby
citizentwo has quit [Remote host closed the connection]
john2496 has quit [Remote host closed the connection]
hutch has quit [Ping timeout: 268 seconds]
drincruz has joined #ruby
alfiemax has joined #ruby
hutch has joined #ruby
ogres has joined #ruby
TCZ has quit [Quit: Bye Bye]
alfiemax has quit [Ping timeout: 272 seconds]
tpanarch1st has quit [Ping timeout: 255 seconds]
zlogan has quit [Remote host closed the connection]
zlogan has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
lineus has quit [Ping timeout: 240 seconds]
galaxie has quit [Ping timeout: 240 seconds]
genpaku has quit [Ping timeout: 268 seconds]
genpaku has joined #ruby
turbo_choo has quit [Remote host closed the connection]
turbo_choo has joined #ruby
citizentwo has joined #ruby
citizentwo has quit [Remote host closed the connection]
fmccann has quit [Ping timeout: 268 seconds]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
lineus has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
splud_wurk has quit [Quit: splud_wurk]
coffeex3 has joined #ruby
galaxie has joined #ruby
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
pama has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
ttoocs has joined #ruby
postmodern has joined #ruby
titanbiscuit has quit [Ping timeout: 260 seconds]
titanbiscuit has joined #ruby
gix has quit [Ping timeout: 268 seconds]
citizentwo has joined #ruby
citizentwo has quit [Remote host closed the connection]
donofrio has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
buckworst has quit [Quit: WeeChat 2.7]
ogres has quit [Quit: Connection closed for inactivity]
buckworst has joined #ruby
ooheitooh has quit [Ping timeout: 260 seconds]
ooheitooh has joined #ruby
darkstardevx has joined #ruby
sergioro has quit [Quit: leaving]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
sergioro has joined #ruby
sauvin has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 2.6]
<jeromelanteri> ratah, it was your nice helpfull comment yestarday on RubyOnRails channel: "I don't think you're gonna get help that way. It's much easier if you provide all the relevant code necessary in a stripped down version, preferably presented in a short and concise sentence with a corresponding Gist or even GitHub repo." But i can see here that it is a favour (i don't know why...) and not currently usual. Thank you for
<jeromelanteri> make me laught.
fmccann has joined #ruby
<ratah> jeromelanteri: you sure they made you laugh?
<ratah> jeromelanteri: i didnt mean to hurt your feelings. i was just telling the truth though, it's the best way to get help. who taught me how to get help that way? the people who helped me
<ratah> jeromelanteri: also please stop PMing me with your passive-aggressive insults
<jeromelanteri> ratah, yes, i told you allready. I didn't understand, but i choose the way to laugth and not thinking the bad way. It is a choice everybody can do.
<jeromelanteri> God also tell the true by the time...
<jeromelanteri> i don't insult you and i'm not passive when i do something.
<jeromelanteri> please ratah choose to become positive and friendly.
<jeromelanteri> consider myself as other user, and if one day you really want to help me,you will be very welcome.
<ratah> like its positive and friendly attacking me publically in front of everybody here. you obviously have an agenda to smear me. and doing so in a very passive-aggressive childish way
<jeromelanteri> ratah, again, i don't consider or never want to "attack you". You feel yourself attacked and i'm very sorry.
<ratah> all because i asked you to please provide context, and provided you with tips on how to better get help
<ratah> look just leave me alone
<jeromelanteri> not because of your ask who was perfect my friend, but because quickly you said "you don't trust me..."
<ratah> stop talking to me
<ratah> crazy person
<jeromelanteri> i trust everybody and i did it also... can you please read it again ?
<jeromelanteri> you feel very negative about me. i don't know why.
<jeromelanteri> i also don't know why you insuilt me. I'm not agressive, i'm not crazy, etc...
<jeromelanteri> and i never insult you.
<jeromelanteri> ratah, please rata, become friendly with me and consider i want to be friendly with you to. I sorry for you feel so nervous and for you insulted me, i pardon you my friend.
coffeex3 has quit [Ping timeout: 272 seconds]
bvdw has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
bvdw has joined #ruby
ldepandis has joined #ruby
johnny56_ has quit [Ping timeout: 240 seconds]
johnny56 has joined #ruby
turbo_choo has quit [Ping timeout: 268 seconds]
turbo_choo has joined #ruby
<baweaver> 👀
<baweaver> jeromelanteri: That was valid advice they gave you yesterday
<baweaver> jeromelanteri: Also enough with ratah. Leave them alone.
<baweaver> It's in the channel rules that you need to provide reproducible examples
<jeromelanteri> baweaver, sure it was, and i did it also (the proof i trust him, everythink is writing, it is impossible to miss understand or to deny facts). The next step was not. Yes, enough, i do ignore himm because i don't want to be insulted or target of bad thinking.
<jeromelanteri> baweaver, i did share a repoductible examplke code to...
<jeromelanteri> i also resolve my problem and explain why it did happen.
<baweaver> Then why are they saying you're DMing them?
<jeromelanteri> it was a ruby-2.7 way to treat regexp
<jeromelanteri> i tryed yesterday to know if he was a robot (i thank he was) and to get an explain of his reaction. i send only one PM without any insult. I never had response.
<jeromelanteri> nothing bad.
<jeromelanteri> i think, it is a communication problem because i'm not english and maybe because of humility problem. But i don't understand the reaction of yesterday and this day to...
<jeromelanteri> baweaver, thank you for try to understand the problem. have a good day.
<jeromelanteri> ho... i do understand also than no one is perfect and that some people absolutly doesn't support any critic (they feel injured and speak abnout insult... where there is no insult) but in the same time, they provide critical sentences on first place and insult next. All is writing there, it is a facvt and wow... it is out of the rule to. I choose to speak because i see this channel doesn't have a lot of
<jeromelanteri> frequentation (maybe because of that ?). Hope ity can help to "slow down babies" and be more tolerent has we like the other are with us. Peace.
jeromelanteri has quit [Quit: Leaving]
Intelo has joined #ruby
fercell has joined #ruby
Azure has quit [Ping timeout: 272 seconds]
Azure has joined #ruby
fanta1 has joined #ruby
chalkmonster has joined #ruby
akemrir has joined #ruby
Ven`` has joined #ruby
conta has joined #ruby
clemens3 has joined #ruby
impermanence has quit [Remote host closed the connection]
fphilipe_ has quit [Ping timeout: 246 seconds]
schne1der has joined #ruby
Guest99060 has quit [Quit: All for nothing]
olspookishmagus has joined #ruby
olspookishmagus is now known as Guest91950
Guest91950 has quit [Client Quit]
Intelo has quit [Ping timeout: 265 seconds]
olspookishmagus has joined #ruby
royal_screwup21 has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
cd has quit [Quit: cd]
mikecmpbll has joined #ruby
alfiemax has quit [Remote host closed the connection]
fanta1 has quit [Quit: fanta1]
sergioro has quit [Read error: Connection reset by peer]
sergioro has joined #ruby
fphilipe_ has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
grr12314 has joined #ruby
alfiemax has joined #ruby
conta has quit [Quit: conta]
conta has joined #ruby
cisco has joined #ruby
zlogan has quit [Read error: Connection reset by peer]
TomyWork has joined #ruby
skryking_ has quit [Remote host closed the connection]
skryking_ has joined #ruby
alexherbo2 has joined #ruby
alfiemax has quit [Remote host closed the connection]
sergioro has quit [Quit: leaving]
alfiemax has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
fanta1 has joined #ruby
xco has joined #ruby
pwnd_nsfw has joined #ruby
Jonopoly has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
fanta1 has quit [Quit: fanta1]
turbo_choo has quit [Ping timeout: 268 seconds]
alfiemax has quit [Remote host closed the connection]
banisterfiend has joined #ruby
Guest51 has joined #ruby
akemhp has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
postmodern has quit [Quit: Leaving]
jinie has joined #ruby
timmow has quit [Ping timeout: 255 seconds]
clemens3 has quit [Read error: Connection reset by peer]
timmow has joined #ruby
DaRock has quit [Ping timeout: 268 seconds]
clemens3 has joined #ruby
SeepingN has quit [Disconnected by services]
SeepingN_ has joined #ruby
chalkmonster has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
silviu has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
silviu22 has quit [Read error: Connection reset by peer]
Spitfire has quit [Ping timeout: 260 seconds]
cxl has quit [Ping timeout: 260 seconds]
shansen_ has joined #ruby
gbristol has quit [Ping timeout: 246 seconds]
turbo_choo has joined #ruby
pwnd_nsfw` has joined #ruby
ammar_ has quit [Ping timeout: 260 seconds]
ammar has joined #ruby
gbristol has joined #ruby
shansen has quit [Ping timeout: 260 seconds]
cxl has joined #ruby
pwnd_nsfw has quit [Ping timeout: 265 seconds]
Spitfire has joined #ruby
Spitfire has quit [Changing host]
Spitfire has joined #ruby
leitz has joined #ruby
DaRock has joined #ruby
TCZ has joined #ruby
donofrio has joined #ruby
akemhp has quit [Read error: Connection reset by peer]
akemhp has joined #ruby
<leitz> With a case, is there a way to compare the case value numerically? https://gist.github.com/LeamHall/269af1e6fb40fe4898fa29668359fc3d
<leitz> if "soc" is less than 5, the case falls through to the else.
<ytti> i think you'd need to remove 'case soc' and repalce with 'case'
<ytti> and then have truthy when statemennts
<ytti> i don't think what you want to do can be done
<ytti> is your example realistic? Is your specific problem taht 'soc' can be arbitrarily small number
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> leitz: the only comparison that can be used in case statements is ===
<leitz> ytti, soc isn't totally arbitrary, bit the test for less than seemed reasonable.
<ytti> &>> puts "moi" if (-Float::INFINITY..4) === -12345
<rubydoc> # => moi... check link for more (https://carc.in/#/r/8jfj)
<ytti> if it's not arbitrary, just set the range you need?
<al2o3-cr> leitz: just do your comparison in the else block
<al2o3-cr> &>> case soc; when 5..10; "Citizen"; else; if soc < 5 then "Other" else "Noble" end end
<rubydoc> stderr: -e:4:in `<main>': undefined local variable or method `soc' for main:Object (NameError)... check link for more (https://carc.in/#/r/8jfk)
<al2o3-cr> &>> soc = 4; case soc; when 5..10; "Citizen"; else; if soc < 5 then "Other" else "Noble" end end
<rubydoc> # => "Other" (https://carc.in/#/r/8jfl)
<ytti> i prefer my solution
<ytti> seems more idiomatic and clean
<leitz> The range works, I was just hoping for a little more open.
<ytti> either (-123..4) or (-Float::INFINITY..4) which is <4
<ytti> <5
xco has joined #ruby
<ytti> ruby2.6 seems to be abl to do (..4) too
<ytti> (didn't verify)
<ytti> nope, only (4..)
<al2o3-cr> leitz: you can also use proc/lambda
<al2o3-cr> &>> soc = 4; case soc; when -> (n) { n < 5}; "Other"; when 5..10; "Citizen"; else "Noble" end
<rubydoc> # => "Other" (https://carc.in/#/r/8jfn)
<leitz> al2o3-cr, I'm not there yet, skill wise.
<al2o3-cr> leitz: just throwing ideas out.
<leitz> Thanks! Hearing about the things I have no idea how to do keeps me learning.
fanta1 has joined #ruby
royal_screwup21 has joined #ruby
markopasha has joined #ruby
<al2o3-cr> leitz: you learn something new everyday ;)
troulouliou_div2 has quit [Quit: Leaving]
_phaul has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 268 seconds]
cisco has quit [Ping timeout: 268 seconds]
burningserenity has joined #ruby
lucasb has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
xco has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
bvdw has joined #ruby
neuroapt has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
neuroapt has quit [Quit: neuroapt]
Ven`` has quit [Quit: Textual IRC Client: www.textualapp.com]
davispuh has joined #ruby
chalkmonster has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Connection closed for inactivity]
xco has joined #ruby
TCZ has quit [Quit: Bye Bye]
<grr12314> &>> -1/0
<rubydoc> stderr: -e:4:in `/': divided by 0 (ZeroDivisionError)... check link for more (https://carc.in/#/r/8jg4)
<grr12314> &>> -1/0.0
<rubydoc> # => -Infinity (https://carc.in/#/r/8jg5)
schne1der has quit [Ping timeout: 265 seconds]
royal_screwup21 has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
Intelo has joined #ruby
drincruz has quit [Ping timeout: 272 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
royal_screwup21 has quit [Remote host closed the connection]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
davispuh has joined #ruby
johnny56 has joined #ruby
RingtailedFox has quit [Read error: Connection reset by peer]
johnny56 has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
cisco has joined #ruby
cisco is now known as Guest55554
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
grr12314 has quit [Remote host closed the connection]
royal_screwup21 has joined #ruby
alfiemax has quit [Remote host closed the connection]
citizentwo has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.7]
conta has quit [Quit: conta]
al2o3-cr has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
cc_ has joined #ruby
drincruz has joined #ruby
johnny56 has joined #ruby
markopasha has quit [Ping timeout: 246 seconds]
cc__ has joined #ruby
phaul has joined #ruby
cc_ has quit [Ping timeout: 268 seconds]
johnny56 has quit [Ping timeout: 240 seconds]
_phaul has quit [Ping timeout: 268 seconds]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schne1der has joined #ruby
citizentwo has quit [Remote host closed the connection]
citizentwo has joined #ruby
akemrir has quit [Quit: WeeChat 2.7]
dionysus69 has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
GodFather has joined #ruby
cow[moo] has joined #ruby
ttoocs has quit [Ping timeout: 265 seconds]
_phaul has joined #ruby
notarubyst has joined #ruby
notarubyst has quit [Client Quit]
chalkmonster has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
royal_screwup21 has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
cc__ has quit [Quit: Leaving]
markopasha has joined #ruby
clemens3 has quit [Quit: WeeChat 2.1]
clemens3 has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
spacesuitdiver has joined #ruby
skryking has joined #ruby
turbo_choo has quit [Ping timeout: 268 seconds]
skryking_ has quit [Ping timeout: 272 seconds]
Fernando-Basso has quit [Quit: Leaving]
SeepingN_ has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
DaRock has quit [Ping timeout: 272 seconds]
alfiemax has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
cow[moo] has quit [Ping timeout: 272 seconds]
za1b1tsu has joined #ruby
spacesuitdiver has quit [Quit: Textual IRC Client: www.textualapp.com]
ruschlem has joined #ruby
ruschlem has left #ruby [#ruby]
hutch has quit [Quit: WeeChat 2.7]
conta1 has joined #ruby
davidw has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
dviola has joined #ruby
hutch has joined #ruby
happyhans has joined #ruby
citizentwo has quit [Remote host closed the connection]
fanta1 has quit [Quit: fanta1]
cthulchu_ has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.5]
TomyWork has quit [Ping timeout: 256 seconds]
chalkmonster has joined #ruby
Intelo has quit [Ping timeout: 260 seconds]
splud_wurk has joined #ruby
cow[moo] has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
john2496 has joined #ruby
gix has joined #ruby
fercell has quit [Quit: WeeChat 2.7]
citizentwo has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
schne1der has quit [Ping timeout: 272 seconds]
chalkmonster has joined #ruby
woodruffw has quit [Ping timeout: 265 seconds]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
citizentwo has quit [Remote host closed the connection]
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
fphilipe_ has quit [Ping timeout: 240 seconds]
tpanarch1st has joined #ruby
citizentwo has joined #ruby
royal_screwup21 has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
conta1 has quit [Quit: conta1]
clemens3 has quit [Quit: WeeChat 2.1]
drincruz has joined #ruby
drincruz_ has quit [Ping timeout: 240 seconds]
wildtrees has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #ruby
_phaul has joined #ruby
Guest55554 has quit [Ping timeout: 260 seconds]
happyhans has quit [Ping timeout: 260 seconds]
donofrio has quit [Remote host closed the connection]
darkf has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
siery has quit [Quit: WeeChat 2.7]
coffeex3 has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
johnny56 has joined #ruby
jmcgnh has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 265 seconds]
chalkmonster has quit [Quit: WeeChat 2.7]
Intelo has joined #ruby
nst^ has quit []
pwnd_nsfw has joined #ruby
dviola has quit [Quit: WeeChat 2.7]
<dreamreal> gah. I'm trying to get a toolset for ruby working well, and I have IDEA Ultimate so I'm using the Ruby plugin - which I understand is basically RubyMine. Yet require and require_relative don't resolve at all.
<dreamreal> ah ha!
fphilipe_ has joined #ruby
<dreamreal> Still a few oddities: It's set to use Ruby 2.6.5 (from brew) but still complains about safe navigation operator requiring at least ruby 2.3
<havenwood> dreamreal: Sanity check which Ruby you're using?
<havenwood> dreamreal: ruby -v
<havenwood> dreamreal: Is your Homebrew Ruby gem dir in path?
<dreamreal> ruby -v says "ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin19]", which ruby shows `/usr/local/opt/ruby/bin/ruby`, which is the ruby set for the project
<dreamreal> and as to your last question, that's a fine question, it sure is, sir! It's a great question.
<dreamreal> .... how do I tell?
<havenwood> dreamreal: Check if PATH contains: `gem env gemdir`/bin
<havenwood> dreamreal: printenv PATH
<havenwood> dreamreal: gem env gemdir
<dreamreal> it does not!
<dreamreal> straight up PATH modification?
<havenwood> We should change brew instructions to suggest prepending it to PATH.
<havenwood> dreamreal: Another option would be to install chruby and us it to set PATH, etc.
* havenwood dreamreal: Here's an example of configuring brew Ruby with chruby: https://gist.github.com/havenwood/ba31f67c1d89ac236400
<havenwood> dreamreal: Or, something like: export PATH="$(gem env gemdir)/bin:$PATH"
fphilipe_ has quit [Ping timeout: 245 seconds]
ccooke has quit [Ping timeout: 260 seconds]
hutch has quit [Ping timeout: 240 seconds]
<dreamreal> I wonder if I'm simply not knowing enough of what I'm looking at in IDEA, though - it has a gems bin directory (set to /usr/local/lib/ruby/gems/2.6.0/bin), and a *classpath* set to /usr/local/lib/ruby/2.6.5/lib/ruby/2.6.0/ among others
citizentwo has quit [Remote host closed the connection]
citizentwo has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
<havenwood> dreamreal: Looks like /usr/local/lib/ruby/gems/2.6.0/bin is the gem bin dir that you'd want in PATH. I'd suggest just setting up chruby but prepending that dir to your PATH in a dotfile should work too.
bvdw has joined #ruby
<dreamreal> but why would that make it so IDEA didn't understand the safe navigation operator?
<dreamreal> I mean, everything else seems to be okay
<havenwood> dreamreal: Does it need to be pointed at the correct Ruby? Did you launch it from the command line after setting PATH?
<havenwood> dreamreal: I don't use IDEA so someone else might have better suggestions.
<havenwood> dreamreal: Many editors detect and respect chruby, RVM and/or rbenv.
<havenwood> dreamreal: I'm curious if it works if you set up chruby, restart and try again.
<dreamreal> havenwood: It's set to use the "correct ruby" in the project
ur5us has joined #ruby
<dreamreal> *nod* will try
happyhans has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
ratah has quit [Quit: Connection closed for inactivity]
happyhans has quit [Ping timeout: 240 seconds]
sauvin has quit [Read error: Connection reset by peer]
citizentwo has quit [Remote host closed the connection]
citizentwo has joined #ruby
fphilipe_ has joined #ruby
dasher00 has joined #ruby
happyhans has joined #ruby
impermanence has joined #ruby
TCZ has joined #ruby
coffeex3 has quit [Changing host]
coffeex3 has joined #ruby
Nahra has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
Nahra has quit [Quit: leaving]
Nahra has joined #ruby
Nahra has quit [Quit: leaving]
royal_screwup21 has joined #ruby
Nahra has joined #ruby
citizentwo has quit [Remote host closed the connection]
citizentwo has joined #ruby
_whitelogger has joined #ruby
citizentwo has quit [Remote host closed the connection]
citizentwo has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
burningserenity has quit [Quit: Leaving.]
burningserenity has joined #ruby
happyhans has quit [Remote host closed the connection]
alexherbo22 has joined #ruby
impermanence has quit [Remote host closed the connection]
Nahra has quit [Quit: leaving]
alexherbo2 has quit [Ping timeout: 246 seconds]
alexherbo2 has joined #ruby
impermanence has joined #ruby
alexherbo22 has quit [Ping timeout: 265 seconds]
Exuma has joined #ruby
burningserenity has quit [Remote host closed the connection]
brool has joined #ruby
jenrzzz has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
DTZUZU has quit [Quit: WeeChat 2.7]
DTZUZU has joined #ruby
cisco has joined #ruby
cisco is now known as Guest67251
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coffeex3 has quit [Ping timeout: 272 seconds]
VeryBewitching has joined #ruby
stryek has joined #ruby
poontangmessiah has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
hiroaki has joined #ruby
ccooke has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
Guest9046 has quit [Quit: leaving]
VeryBewitching has quit [Quit: Konversation terminated!]
rprimus has joined #ruby
brool has quit [Quit: yeet]
poontangmessiah has quit [Ping timeout: 240 seconds]
Guest67251 has quit [Ping timeout: 272 seconds]
dviola has joined #ruby
buckworst has quit [Quit: WeeChat 2.7]
cisco has joined #ruby
cisco is now known as Guest5216
john2496 has quit [Remote host closed the connection]
hiroaki has quit [Ping timeout: 272 seconds]
hutch has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
impermanence has quit [Ping timeout: 272 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
citizentwo has quit [Remote host closed the connection]
romanlevin2 has quit [Quit: Ping timeout (120 seconds)]
romanlevin has joined #ruby
poontangmessiah has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Axy has quit [Ping timeout: 240 seconds]
citizentwo has joined #ruby
leitz has quit [Quit: Leaving]
cc_ has joined #ruby
markopasha has quit [Ping timeout: 272 seconds]
cc__ has joined #ruby
poontangmessiah has quit [Ping timeout: 240 seconds]
cc_ has quit [Ping timeout: 272 seconds]
apotheon has joined #ruby
<apotheon> What's a good place to find some very simple, illustrative examples of using C libraries in Ruby gems? The documentation is a bit hard to translate into action, in some respects, and I'd like to see examples of it done well that are pretty basic-level for ease of reading.
TCZ has quit [Quit: Bye Bye]
<_phaul> while I am completely unable to answer your question, if no better answer comes, I know that the widely used nokogiri gem uses C libs to achieve what it does
<havenwood> apotheon: Trying to bind to an existing C library or writing some C?
<havenwood> apotheon: You might look at Typhoeus for FFI bindings done nicely.
<havenwood> apotheon: Or look at Oga to see an alternative style to Nokogiri.
<havenwood> Or say more.
<apotheon> I'm planning to rewrite a Ruby library as a C library, for use by C programs, but also provide a gem.
<apotheon> (my own Ruby library)
<apotheon> I'll look at those. Thanks.
DaRock has joined #ruby
<apotheon> It looks like the actual C-consuming code is in the ethon library, re: Typhoeus.
hutch has quit [Ping timeout: 240 seconds]
<adam12> apotheon: The bcrypt-ruby gem might be worth a look too.
<apotheon> Ah, thanks.
* apotheon makes a list.