havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.1, 2.6.6, 2.5.8: 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!
wymillerlinux has quit [Ping timeout: 256 seconds]
nowaker_ has quit [Quit: No Ping reply in 180 seconds.]
Nowaker has joined #ruby
cassolas has joined #ruby
_whitelogger has joined #ruby
cassolas has quit [Ping timeout: 260 seconds]
oddp has quit [Ping timeout: 260 seconds]
gix has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
cassolas has joined #ruby
<AndreYuhai> Does active record return nil when a timestamp column has '0000-00-00 00:00:00'? Or am I just doing something wrong :D
meinside has joined #ruby
dfucci has quit [Ping timeout: 258 seconds]
stdedos has quit [Quit: Connection closed]
ur5us has joined #ruby
cassolas has quit [Ping timeout: 264 seconds]
AndreYuhai has quit [Quit: Leaving]
dfucci has joined #ruby
cassolas has joined #ruby
cassolas has quit [Ping timeout: 256 seconds]
<havenwood> I think doing something wrong.
cassolas has joined #ruby
bmo has joined #ruby
blobsson has joined #ruby
ignorand has quit [Remote host closed the connection]
bmo has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bmo has joined #ruby
nicholaslyang has joined #ruby
seaef has joined #ruby
bmo has quit [Quit: Textual IRC Client: www.textualapp.com]
seaef has quit [Quit: I am functioning within established parameters.]
BitMac has joined #ruby
Milos has quit [Ping timeout: 256 seconds]
Milos has joined #ruby
quazimodo has quit [Read error: Connection reset by peer]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quazimodo has joined #ruby
nicholaslyang has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ChmEarl has quit [Quit: Leaving]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
nicholaslyang has joined #ruby
alfiemax has joined #ruby
cassolas has quit [Ping timeout: 256 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
memcorrupt has joined #ruby
memcorrupt has quit [Changing host]
memcorrupt has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
tau has joined #ruby
tau has joined #ruby
sevvie has joined #ruby
sevvie has joined #ruby
sevvie has quit [Changing host]
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
_whitelogger has joined #ruby
alfiemax has joined #ruby
cassolas has joined #ruby
donofrio has quit [Remote host closed the connection]
_whitelogger has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guardianx has joined #ruby
envex has quit []
blobsson has quit [Quit: Leaving]
Archenoth has joined #ruby
Technodrome has joined #ruby
guardianx has quit [Quit: Konversation terminated!]
ur5us has quit [Ping timeout: 240 seconds]
nicholaslyang has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicholaslyang has joined #ruby
guardianx has joined #ruby
guardianx has quit [Quit: Konversation terminated!]
howdoi has quit [Quit: Connection closed for inactivity]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
grimgnr has left #ruby ["ERC (IRC client for Emacs 26.1)"]
kent\n has quit [Remote host closed the connection]
kent\n has joined #ruby
<dorian> okay question: what would cause a ruby program to just hang and hang and hang and hang, and when you finally hit ^C, the backtrace is somewhere in `rubygems/bundler/version_finder.rb`
roadie has joined #ruby
sarna has joined #ruby
nicholaslyang has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dorian> ah no there we go, it just took ... ten goddamn minutes to start running
waheedi has joined #ruby
_whitelogger has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imode has quit [Ping timeout: 260 seconds]
Garb0 has quit [Quit: I'm out.]
kent\n has quit [Quit: POWER DOWN]
AndreYuhai has joined #ruby
<yxhuvud> if it takes that long it probably changed too much. Add some version restraints and it should be faster and not as bad result
<dorian> add some versoin restraints to what
tau has quit [Ping timeout: 246 seconds]
memcorrupt has quit [Ping timeout: 246 seconds]
schne1der has joined #ruby
vondruch has joined #ruby
memcorrupt has joined #ruby
memcorrupt has quit [Changing host]
memcorrupt has joined #ruby
BitMac has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
BitMac has joined #ruby
memcorrupt has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
memcorrupt has joined #ruby
memcorrupt has quit [Changing host]
memcorrupt has joined #ruby
bambanx has joined #ruby
bambanx has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
troulouliou_dev has joined #ruby
reffle has joined #ruby
roadie has quit [Ping timeout: 272 seconds]
duderonomy has quit [Ping timeout: 264 seconds]
SanguineAnomaly is now known as AnomalyXII
memcorrupt has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby
<yxhuvud> gems. Usually to the ones that misbehave the worst. For example, I've seen limiting rspec to a *least* version of 3.0 speed up multiple instances of broken bundler resolutions.
ellcs1 has joined #ruby
sagax has joined #ruby
roadie has joined #ruby
Nerium has joined #ruby
rhe has quit [Ping timeout: 272 seconds]
memcorrupt has joined #ruby
memcorrupt has joined #ruby
rhe has joined #ruby
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
reffle has quit [Quit: This computer has gone to sleep]
reffle has joined #ruby
evert has quit [Quit: ZNC - https://znc.in]
roadie has quit [Ping timeout: 260 seconds]
evert has joined #ruby
oddp has joined #ruby
jetchisel has quit [Ping timeout: 264 seconds]
reffle has quit [Quit: This computer has gone to sleep]
jetchisel has joined #ruby
reffle has joined #ruby
<sarna> are dependencies that are needed for tests runtime dependencies or development dependencies?
roadie has joined #ruby
<jhass> I'd argue dev dependencies
<sarna> yeah I thought the same. thanks
ellcs1 has quit [Ping timeout: 244 seconds]
cassolas has quit [Ping timeout: 265 seconds]
<sarna> I'm using the dotenv gem, it tells me I should load it "as early as possible in your application bootstrap process" - when would that be? right after `module Foo` in my Foo gem?
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
troulouliou_dev has quit [Quit: Leaving]
darkstardev13 has quit [Ping timeout: 265 seconds]
<jhass> is your gem intended to be used as a Ruby library by others? dotenv might not be a good solution then
<jhass> if it's a standalone app or CLI tool, it's as high as you can put it without breaking in whatever is the main entry point to it
<sarna> well, I want it to load in tests only, to be honest
<jhass> then your spec_helper/test_helper
<jhass> though maybe you can even just do ENV[] = assignments in there instead of using the gem
<sarna> eh, it's still nil..
<sarna> okay let me maybe explain what I'm struggling with, I think I'm trying to solve it wrong
darkstardev13 has joined #ruby
<sarna> I'm still writing a client for that API that only allows basic auth. for running I'll ask the user for credentials, but for testing I wanted to use VCR
ellcs1 has joined #ruby
<sarna> and for the first try I wanted to read the credentials from a .env file
<sarna> then I'd delete the file :v
<jhass> huh
alfiemax has quit [Remote host closed the connection]
<sarna> but maybe.. could I ask once when testing and then use whatever VCR pulled in? I'd only ask once for each new test
<jhass> why not ask the user to set the environment variables then?
<memcorrupt> hello, what files should I add to spec.files list?
<jhass> .env/dotenv makes sense if you need the values to be present all the timme
snosk8r has joined #ruby
<sarna> there's stuff like .env.development.local, I thought it would be useful for stuff like this
<memcorrupt> and may I add docs/* and README files to spec.files?
<jhass> memcorrupt: anything that's necessary to use your gem (should end up in the .gem package). So for the standard setup everyting in lib/, a lot of people like to add test/ / spec/ as well
<jhass> you may add anything you want :)
<jhass> readme certainly makes sense for nice docs
<jhass> it literally just defines what ends up in the .gem package
BitMac has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<jhass> sarna: if you ask me, even just running gets would be legit for this usecase :D
<jhass> but ymmv of course
<sarna> jhass: I'm running gets when I have a user! but I don't want to input the password each time I run tests :/
darkstardev13 has quit [Ping timeout: 240 seconds]
<jhass> it would only be when you record the cassettes, no?
<jhass> I mean it ought to be possible to setup VCR to match the right ones regardless of the Authorization header
<sarna> how would I find out if I have a casette already or not?
darkstardev13 has joined #ruby
<sarna> I mean, I'd like to only run `gets` when I have some cassettes that need recording
<sarna> if I have everything ready, don't ask for anything
rapha has left #ruby ["WeeChat 2.3"]
snosk8r has quit [Ping timeout: 240 seconds]
<memcorrupt> jhass: ah, okay, thanks
<sarna> jhass: that looks good! thank you so much :)
<memcorrupt> also I see a many gems require pry as a development requirement... but... why?
<memcorrupt> I mean isn't pry just a REPL?
<jhass> it's also a good debugger :)
<jhass> You can launch it at an point with binding.pry
<jhass> installing pry-byebug gives stepping through code
<jhass> installing pry-stack_explorer gives up/down stack frame navigation
<memcorrupt> oh... so it's sort of a gdb for ruby...
<jhass> yeah
TCZ has joined #ruby
memcorrupt has quit [Ping timeout: 260 seconds]
memcorrupt has joined #ruby
memcorrupt has joined #ruby
roadie has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
phaul has quit [Ping timeout: 256 seconds]
rubydoc has quit [Ping timeout: 256 seconds]
memcorrupt has quit [Quit: leaving]
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
rubydoc has joined #ruby
cassolas has joined #ruby
roadie has joined #ruby
rubydoc has quit [Ping timeout: 256 seconds]
cassolas has quit [Ping timeout: 256 seconds]
Nerium has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rubydoc has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
<AndreYuhai> When you update a DB record by just changing its variable's value then calling save does not handle updated_at column automatically but when using update method does. https://dpaste.org/1q4y
<AndreYuhai> Ignore the first link: https://dpaste.org/e1e6#L
<jhass> AndreYuhai: how can that be if all update does is assigning the attributes and calls save? https://github.com/rails/rails/blob/fbe2433be6e052a1acac63c7faf287c52ed3c5ba/activerecord/lib/active_record/persistence.rb#L616
rapha has joined #ruby
<rapha> hi
<AndreYuhai> jhass, That's right. Then I might be doing something wrong. Let me check my code and post a new dpaste.
<rapha> why is a @var defined on the class itself not accessible to initialize()?
<havenwood> AndreYuhai: After line 10, note: f.has_changes_to_save? #=> true
<havenwood> AndreYuhai: f.save
<AndreYuhai> yes, that's right. I guess I got confused when I was checking whether it was updating or not. Now it's fine. Gotta take a break. :D
<havenwood> rapha: Because it's defined on the class itself and not on the instance of the class.
<havenwood> rapha: Use a constant.
<havenwood> rapha: VAR =
alexherbo2 has joined #ruby
alexherbo2 has quit [Client Quit]
alexherbo2 has joined #ruby
<havenwood> rapha: You can still get at the instance variable from the instance of the class, but it's nicer to just use a constant.
<havenwood> rapha: While anything in Ruby can have an instance variable, it's often a strange solution when used on things other than instances of classes.
cassolas has joined #ruby
<leftylink> aw man
<leftylink> if I were feeling cranky and adversarial I would have said "the question is nonsensical. it is accessible", and demonstrate its accessibility - however, I don't have enough information about intent to determine whether such an approach would have been helpful
<havenwood> leftylink: agreed it's accessible ;)
<leftylink> when should I tell the querent about such an approach
<leftylink> well, I suppose I would have to have had more info about the intent
<havenwood> i think it's fine to play with knives
<havenwood> but this was begging for a fork
<leftylink> it might also help if I know the history of the querent and therefore have a guess as to what they can handle
<leftylink> but I do not remember at this moment...
<rapha> havenwood: okay, that's working better now
<leftylink> or what they might be intending
<leftylink> when you have so many people in this channel they just all sort of blend together you know
<havenwood> leftylink: I recognize people by their name highlight color. It works great until two people have the same color. ¯\_(ツ)_/¯
<havenwood> I suppose I should reset it occasionally to keep myself on my toes.
<havenwood> leftylink: You are bright yellow and rapha is violet.
<havenwood> :P
<havenwood> leftylink: The eternal question of whether to answer what is actually asked or your best guess at what's meant.
<havenwood> Maybe both is always best if there's time and energy.
<havenwood> Always nice to see it can be done and how.
cassolas has quit [Ping timeout: 240 seconds]
Nerium has joined #ruby
<leftylink> when they invent a way to read minds over the internet then it will be possible to give the most appropriate answer
<leftylink> but then I suppose if that ever happens I will have other things to worry about
<havenwood> i can only read minds by fax
reffle has quit [Quit: This computer has gone to sleep]
Nerium has quit [Client Quit]
<rapha> oh
<rapha> we're talking about nick colors now? :)
<havenwood> rapha: bikeshedding :P
<rapha> oh! a new English word for me?
<rapha> "The term was coined as a metaphor to illuminate Parkinson’s Law of Triviality. Parkinson observed that a committee whose job is to approve plans for a nuclear power plant may spend the majority of its time on relatively unimportant but easy-to-grasp issues, such as what materials to use for the staff bikeshed, while neglecting the design of the power plant itself, which is far more important but also far
<rapha> more difficult to criticize constructively. It was popularized in the Berkeley Software Distribution community by Poul-Henning Kamp[1] and has spread from there to the software industry at large." Interesting.
Technodrome has joined #ruby
cassolas has joined #ruby
drincruz has joined #ruby
<rapha> different thing, anyone ever use Elastic or Solr and figure out a way to use it without first getting a degree in CS? do people dockerize it and pretend it's a blackbox?
<rapha> [use in Ruby, i should have added]
<rapha> or else, is there any fulltext search that works, is lean and simple, and keeps away from anything javablahblahcoffee with a 10 mile radius?
<rapha> (discovered Hyper Estraier last week but still haven't managed to get it working ... seems a little deserted and not maintained anymore, unfortunately)
<havenwood> rapha: PostgreSQL trigrams are convenient, assuming you're using Postgres.
<rapha> not much so far, but always liked it
<rapha> my haystack are plain text files though, havenwood
<havenwood> rapha: what format?
<rapha> .txt, .xml, .html
<rapha> oh wait
<rapha> .json and .yaml, too
<rapha> and .md
<rapha> hmm naw, the .md are not important for this
<rapha> haystack is*
Nerium has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
burningserenity has joined #ruby
Nerium has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guardianx has joined #ruby
Nerium has joined #ruby
Nerium has quit [Client Quit]
cassolas has quit [Ping timeout: 260 seconds]
burningserenity has quit [Remote host closed the connection]
drincruz has joined #ruby
TCZ has quit [Quit: Leaving]
cassolas has joined #ruby
burningserenity has joined #ruby
bmurt has joined #ruby
isxek has joined #ruby
TCZ has joined #ruby
chalkmonster has joined #ruby
leitz has joined #ruby
<rapha> havenwood: have i inadvertently asked for the holy grail and you've wandered off to Hatay to seek it out? :)
dionysus69 has joined #ruby
<adam12> rapha: sqlite3 supports full text search as an extension. Maybe that would work for you.
plutes has quit [Ping timeout: 272 seconds]
<sarna> heck, I have a really weird problem with faraday and VCR..
<sarna> when I add basic_auth to the connection, it all works fine
<sarna> but when I add it to the request (in before_http_request in VCR) it gives me "unauthorized"..
<sarna> the authorization tokens are exactly the same, the requests look the same as well - what am I missing?
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12> sarna: Is this when recording the cassette or are you trying to replay an existing cassette?
TCZ has quit [Quit: Leaving]
<sarna> adam12: it's when trying to record one
TCZ has joined #ruby
<sarna> I don't know what's going on..
TCZ has quit [Client Quit]
Technodrome has joined #ruby
<sarna> I compared the tokens - they're *exactly* the same
<adam12> sarna: You're probably not missing anything. Sounds like a bug. I'd try using a different adapter (maybe just net/http directly) and see if it still happens. If it does, then it's likely in VCR and you could dig into it a bit more.
<sarna> adam12: frick. they have a nice logo, I thought that would protect me from bugs!
<sarna> I'll try a different adapter, thanks
coniptor has quit [Ping timeout: 260 seconds]
<rapha> adam12: i've played with that and found it to be really nice. perhaps that might be an idea for a commandline tool à la `search -rg '*.txt' 'mary had a lamb' foobar/`: slurp all the files into an impromptu sqlite database in /tmp, run the search, delete the database again.
Emmanuel_Chanel has quit [Quit: Leaving]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
<adam12> sarna: LOL. I'm not 100% sure there _is_ a bug, but we're basically talking about 3+ projects working together smoothly, which sometimes isn't the case for some fringe areas
<adam12> sarna: Any specific reason you're using before_http_request here?
<adam12> rapha: Don't forget sqlite supports in-memory databases too.
<rapha> oh, right!
<sarna> adam12: the site only allows for basic auth, and I don't want the user for credentials when not necessary
<sarna> want to ask*
cassolas has quit [Ping timeout: 256 seconds]
lucasb has joined #ruby
Flyingdog has quit [Ping timeout: 256 seconds]
D9 has joined #ruby
coniptor has joined #ruby
TCZ has joined #ruby
Emmanuel_Chanel has joined #ruby
burningserenity has quit [Remote host closed the connection]
sarna has quit [Quit: Connection closed]
burningserenity has joined #ruby
cassolas has joined #ruby
alfiemax has quit [Remote host closed the connection]
D9 has quit [Read error: Connection reset by peer]
MadLamb has joined #ruby
D9 has joined #ruby
ChmEarl has joined #ruby
cassolas has quit [Ping timeout: 264 seconds]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
reffle has joined #ruby
waheedi has quit [Quit: waheedi]
ellcs1 has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
alexherbo24 has joined #ruby
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo24 is now known as alexherbo2
Garb0 has joined #ruby
Garb0 has quit [Max SendQ exceeded]
Garb0 has joined #ruby
roadie has quit [Ping timeout: 272 seconds]
justache has quit [Quit: The Lounge - https://thelounge.chat]
emers2n has joined #ruby
justache has joined #ruby
ttoocs has quit [Ping timeout: 246 seconds]
SuperLag has quit [Ping timeout: 256 seconds]
chalkmonster has quit [Quit: WeeChat 2.8]
SuperLag has joined #ruby
burningserenity has quit [Ping timeout: 244 seconds]
imode has joined #ruby
burningserenity has joined #ruby
burningserenity has quit [Quit: Leaving.]
burningserenity has joined #ruby
fercell has quit [Quit: WeeChat 2.8]
cassolas has joined #ruby
alfiemax has joined #ruby
nicholaslyang has joined #ruby
burningserenity has quit [Ping timeout: 260 seconds]
cassolas has quit [Ping timeout: 260 seconds]
Eiam has joined #ruby
nicholaslyang has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
burningserenity has joined #ruby
nicholaslyang has joined #ruby
roadie has joined #ruby
tau has joined #ruby
tau has quit [Changing host]
tau has joined #ruby
ellcs1 has joined #ruby
BitMac has joined #ruby
roadie has quit [Ping timeout: 272 seconds]
roadie has joined #ruby
dfucci has quit [Read error: Connection reset by peer]
dfucci has joined #ruby
TCZ has quit [Quit: Leaving]
jesfre has joined #ruby
jesfre3 has joined #ruby
jesfre3 has quit [Remote host closed the connection]
waheedi has joined #ruby
davispuh has joined #ruby
D9 has quit [Ping timeout: 260 seconds]
r29v has joined #ruby
howdoi has joined #ruby
D9 has joined #ruby
doomlist3 has joined #ruby
<doomlist3> in what way is ruby like lisp
plutes has joined #ruby
guardianx has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
<jhass> mh, everything is an expression?
* jhass doesn't know lisp
roadie has quit [Ping timeout: 260 seconds]
emers2n has quit [Remote host closed the connection]
fercell has joined #ruby
<havenwood> doomlist3: homoiconicity
<havenwood> It's very interesting that Matz has signaled a change of heart towards macros.
<havenwood> Ruby 4 timeframe, maybe?
drahosj has joined #ruby
doomlist3 has quit [Ping timeout: 246 seconds]
nicholaslyang has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitz has quit [Quit: Leaving]
pwl has joined #ruby
<oddp> Macros are coming? What's next? Types? Might as well join up with the crystal peeps at that point. ;)
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
roadie has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 260 seconds]
<adam12> havenwood: What's ETA for Ruby4? :P
<havenwood> oddp: Yeah, type signatures will come even sooner. :P
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> adam12: 20 uhh, hem.
nicholaslyang has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicholaslyang has quit [Client Quit]
burningserenity has quit [Remote host closed the connection]
rippa has joined #ruby
burningserenity has joined #ruby
drahosj has quit [Read error: Connection reset by peer]
<adam12> havenwood: ;)
<oddp> What, types are being considered? Hell, with a solid concurrency story on the way, are we going to witness the ruby-crystal merge of 2022 which culminates in the glorious alexandrite programming language?
chalkmonster has joined #ruby
burningserenity has quit [Ping timeout: 260 seconds]
roadie has quit [Ping timeout: 272 seconds]
BitMac has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
burningserenity has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
Technodrome has joined #ruby
roadie has joined #ruby
TomyWork has joined #ruby
mydog2 has quit [Ping timeout: 264 seconds]
BitMac has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jesfre has quit [Ping timeout: 240 seconds]
nicholaslyang has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
nicholaslyang has quit [Client Quit]
burningserenity has quit [Ping timeout: 260 seconds]
burningserenity has joined #ruby
<rapha> wth is "iconicity"?
<rapha> fwiw i would welcome python-style (i.e., optional) types in ruby. sooner rather than later if you ask me.
<jhass> rapha: https://sorbet.org/
lightstalker has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
waheedi has quit [Quit: waheedi]
isxek has quit [Quit: Leaving]
waheedi has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
nicholaslyang has joined #ruby
nicholaslyang has quit [Client Quit]
tau has quit [Remote host closed the connection]
burningserenity has quit [Remote host closed the connection]
darkstardev13 has quit [Remote host closed the connection]
darkstardev13 has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.8]
jenrzzz has joined #ruby
al2o3-cr has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
roadie has quit [Ping timeout: 246 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
fercell has quit [Quit: WeeChat 2.8]
fercell has joined #ruby
nicholaslyang has joined #ruby
nicholaslyang has quit [Client Quit]
Kilo`byte has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Kilo`byte has joined #ruby
lazarus1 has joined #ruby
TCZ has joined #ruby
roadie has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<rapha> oh cool
* rapha tries it
troulouliou_dev has joined #ruby
<sagax> hi all!
<sagax> how to force reinstall all global gems with `gem`?
<sagax> gem and ruby installed with `rvm`
<adam12> sagax: gem pristine --all
<sagax> if this command has failed? what i can do?
<adam12> sagax: Depends on the failure I guess. Are you experiencing a specific failure?
<sagax> hm, i can show stdout
<havenwood> sagax: Share the error?
<sagax> one moment, i do it
schne1der has quit [Ping timeout: 256 seconds]
pen has joined #ruby
gix has joined #ruby
<adam12> sagax: Are you using system ruby there?
<sagax> rvm
<adam12> That Ruyb path looks weird for rvm.
TomyWork has quit [Remote host closed the connection]
<havenwood> sagax: What is?: rvm current
<adam12> I haven't used rvm in a decade tho.
<havenwood> sagax: I agree with adam12 that this is system Ruby gems.
<leftylink> so I wonder, what happens when following the remediation step suggested by that message?
<sagax> ruby-2.5.1
<sagax> whereis rvm >> rvm: /home/sagax_nb/.rvm/bin/rvm
<havenwood> sagax: command -v ruby
<havenwood> sagax: command -v gem
<havenwood> sagax: What are those ^?
NightMonkey has quit [Ping timeout: 260 seconds]
<havenwood> current directory: /home/sagax_nb/.rvm/gems/ruby-2.5.1/gems/byebug-10.0.2/ext/byebug
<havenwood> /usr/bin/ruby.ruby2.6 -I /usr/lib/ruby/2.6.0 -r ./siteconf20200622-9477-1hq5jws.rb extconf.rb
<sagax> command -v gem >> gem
<sagax> command -v ruby >> /home/sagax_nb/.rvm/rubies/ruby-2.5.1/bin/ruby
<adam12> Looks like `gem` is using system gem.
<havenwood> sagax: which -a gem
<havenwood> sagax: Is RVM in front of your PATH?
<havenwood> sagax: printenv PATH
<sagax> yes
nicholaslyang has joined #ruby
<sagax> fron
<sagax> t
<havenwood> sagax: rvm repair all
nicholaslyang has quit [Client Quit]
<sagax> ok, thanks, will try
NightMonkey has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
<sagax> !!!
<sagax> all done
<sagax> thanks!
r29v has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
roadie has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
Technodrome has joined #ruby
ur5us has joined #ruby
davispuh has quit [Ping timeout: 240 seconds]
kristian_on_linu has joined #ruby
nicholaslyang has joined #ruby
nicholaslyang has quit [Client Quit]
waheedi has quit [Quit: waheedi]
roadie has joined #ruby
davispuh has joined #ruby
cd has quit [Quit: cd]
fowl has joined #ruby
waheedi has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nicholaslyang has joined #ruby
nicholaslyang has quit [Client Quit]
roadie has quit [Ping timeout: 260 seconds]
ellcs1 has quit [Ping timeout: 260 seconds]
BitMac has quit [Quit: Textual IRC Client: www.textualapp.com]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
tau has joined #ruby
tau has quit [Changing host]
tau has joined #ruby
mydog2 has joined #ruby
nicholaslyang has joined #ruby
nicholaslyang has quit [Client Quit]
_aeris_ has quit [Remote host closed the connection]
roadie has joined #ruby
_aeris_ has joined #ruby
waheedi has quit [Quit: waheedi]
roadie has quit [Ping timeout: 272 seconds]
thegeekinside has joined #ruby
fowl has quit []
jetchisel has joined #ruby
nicholaslyang has joined #ruby
nicholaslyang has quit [Client Quit]
howdoi has quit [Quit: Connection closed for inactivity]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
roadie has joined #ruby
justache has quit [Quit: The Lounge - https://thelounge.chat]
wymillerlinux has joined #ruby
roadie has quit [Ping timeout: 246 seconds]
TCZ has quit [Quit: Leaving]
nicholaslyang has joined #ruby
nicholaslyang has quit [Client Quit]
thegeekinside has quit [Quit: Leaving]
troulouliou_dev has quit [Quit: Leaving]
howdoi has joined #ruby
reffle has quit [Quit: This computer has gone to sleep]
plutes has quit [Ping timeout: 272 seconds]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
stryek has quit [Quit: Connection closed for inactivity]
justache has joined #ruby
pwl has quit [Ping timeout: 240 seconds]
quazimodo has quit [Ping timeout: 240 seconds]
pen has quit []
nicholaslyang has joined #ruby
nicholaslyang has quit [Client Quit]
TCZ has joined #ruby
plutes has joined #ruby
impermanence has quit [Quit: Connection closed]
kristian_on_linu has quit [Remote host closed the connection]
chalkmonster has quit [Ping timeout: 265 seconds]
chalkmonster has joined #ruby
<Vashy> Hi all, idk if this is a rails specific question but I'm having trouble installing rspec onto a rails project. After including `rspec-rails` in my Gemfile + bundle install, when I run a test with `bundle exec rspec <file>` it gives me an error on the `require 'rspec'` line: cannot load such file -- rspec
<Vashy> rbenv tells me I have two versions of ruby installed (2.5.1 and 2.5.7)
<apotheon> I really need to get back into Rails a bit more to remind myself how this stuff works so I can help people with such questions.
<apotheon> I've been away for a bit.
<Vashy> also I forgot to mention that I ran the installer `rails generate rspec:install` successfully
<Vashy> I'm not entirely sure it's a rails issue; I have a feeling it's because I have multiple ruby versions installed
<Vashy> Hm, I don't think that's right either. Looks like `rbenv which rspec` points to the Ruby project version (2.5.1) gem