adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
orbyt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duds- has joined #ruby
gr33n7007h has joined #ruby
duds- has quit [Remote host closed the connection]
duds- has joined #ruby
ur5us has joined #ruby
duds- has quit [Ping timeout: 276 seconds]
duds- has joined #ruby
goldfish has quit [Ping timeout: 260 seconds]
ua_ has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
Rounin has quit [Ping timeout: 258 seconds]
crankharder has quit [Ping timeout: 260 seconds]
CrazyEddy has quit [Ping timeout: 245 seconds]
CrazyEddy has joined #ruby
kaleido has quit [Quit: peas]
kaleido has joined #ruby
tv- has quit [Quit: WeeChat 3.0.1]
tv- has joined #ruby
tv- has quit [Client Quit]
tv- has joined #ruby
dviola has joined #ruby
gr33n7007h has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
duds- has quit [Ping timeout: 276 seconds]
crankharder has joined #ruby
duds- has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
ua_ has joined #ruby
kaleido has quit [Changing host]
kaleido has joined #ruby
<mrus> hey there.. trying to do a bundle install in a newly created rails project, unfortunately it fails when "Installing racc 1.6.0 with native extensions" with an error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
<mrus> I've tried removing build.racc from bundle config but it still won't do the trick
<mrus> It also says: /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- did_you_mean (LoadError)
<mrus> however, when I run `gem install racc -v '1.6.0'` the process completes...
<mrus> my bundle path is configured to 'vendor/bundle'
howdoi has quit [Quit: Connection closed for inactivity]
_ht has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
_ht has quit [Remote host closed the connection]
reset has joined #ruby
<dviola> adam12: any chance you're familiar with jeremyevans's rack-unreloader?
teclator has joined #ruby
<dviola> oh nvm
<dviola> I forgot to use :subclasses
<dviola> e.g.: Rack::Unreloader.new(:subclasses=>%w'Roda'){App}
Brian-W-Gray has joined #ruby
BrianWGray has quit [Ping timeout: 258 seconds]
jpw has quit [Remote host closed the connection]
AEtherC0r3 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
AEtherC0r3 has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Skyfire has quit [Quit: brb]
Skyfire has joined #ruby
crankharder has joined #ruby
teclator has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
duds- has quit [Ping timeout: 276 seconds]
duds- has joined #ruby
hansolo has quit [Ping timeout: 245 seconds]
seabre has quit [Quit: ZNC 1.8.2 - https://znc.in]
seabre has joined #ruby
Skyfire has quit [Quit: brb ffs, frickin configuration]
Skyfire has joined #ruby
hansolo has joined #ruby
Rounin has joined #ruby
Skyfire has quit [Quit: brb ffs frickin configuration]
Skyfire has joined #ruby
fercell has joined #ruby
steerpike has joined #ruby
<steerpike> hi
<steerpike> how do i reference a hash value by using a variable as the key name?
<steerpike> ie
<steerpike> id = some_value;
<steerpike> puts data['users'][id]['name']
<steerpike> i keep getting undefined method `[]' for nil:NilClass
<steerpike> oh man
<steerpike> it needed to be a string
<steerpike> man, that's annoying
<steerpike> basically had to do.. puts data['users'][id.to_s]['name']
<sam113101> well, you can have Integers as hash keys, too
<Rounin> Does it have to be a string, though? Just going from intuition, one could guess that data['users'][id] didn't return anything, because id and the original key were only string-equal, not actually identical
<Rounin> In Java, one would override .hashCode() and .equals() to solve that... I don't remember what the Ruby equivalent is, but there's probably something
<Rounin> Perhaps one can override .eq?
ur5us has joined #ruby
<Rounin> irb(main):001:0> key = {"some"=>"stuff"}
<Rounin> irb(main):003:0> otherstuff = {key=>"otherstuff"}
<Rounin> irb(main):005:0> otherstuff[key]
<Rounin> => "otherstuff"
<Rounin> The exactly identical object works as a key just fine
markong has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
<adam12> dviola: I just use rerun. I used rack-unreloader for a while but could never get it to work 100%.
taupiqueur has joined #ruby
RougeR has quit [Quit: Leaving]
darkxploit has joined #ruby
taupiqueur_ has joined #ruby
taupiqueur has quit [Read error: Connection reset by peer]
Guest5 has joined #ruby
Guest5 has quit [Client Quit]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
darkxploit has quit [Quit: darkxploit]
adam12 has quit [Quit: The Lounge - https://thelounge.chat]
adam12 has joined #ruby
vit has joined #ruby
pull has joined #ruby
taupiqueur_ has quit [Quit: taupiqueur_]
pull has quit [Quit: Czesc]
<dviola> adam12: oh ok
crankharder has joined #ruby
CrazyEddy has quit [Ping timeout: 264 seconds]
Inline has joined #ruby
Inline has quit [Remote host closed the connection]
<ccooke> duds-: " foo".lstrip => "foo"
<ccooke> Oh, drat, scrollback :-(
crankharder has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
mantis has joined #ruby
mantis has quit []
Skyfire has quit [Quit: brb]
_ht has joined #ruby
howdoi has joined #ruby
RougeR has joined #ruby
Inline has joined #ruby
Inline has quit [Quit: Leaving]
Skyfire has joined #ruby
Inline has joined #ruby
Inline has quit [Remote host closed the connection]
Inline has joined #ruby
<dviola> man, hash_routes in roda blew me away, wow
<adam12> dviola: I still don't use it .. :) but I have long term apps and I think it would be hard to add in.
<dviola> adam12: I see
jpw has joined #ruby
shuvarek has quit [Ping timeout: 260 seconds]
CrazyEddy has joined #ruby
TomyLobo has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
shuvarek has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
markong has quit [Ping timeout: 264 seconds]
crankharder has joined #ruby
Inline has quit [Ping timeout: 260 seconds]
Inline has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
pandabot has joined #ruby
roadie has joined #ruby
fercell has quit [Ping timeout: 258 seconds]
slightlypandaish has joined #ruby
dnormandin has joined #ruby
dnormandin has left #ruby [#ruby]
Inline_ has joined #ruby
Inline has quit [Ping timeout: 260 seconds]
sagax has quit [Remote host closed the connection]
dukester has joined #ruby
slightlypandaish has quit [Quit: Client closed]
slightlypandaish has joined #ruby
dukester has left #ruby [#ruby]
<TomyLobo> has anyone ever used the selenium-webdriver gem? is it supposed to run the chromedriver for you or are you supposed to run that yourself?
<weaksauce> you need to set it up
<TomyLobo> I'm running this headless, there is no thing i can click in to set things up
<weaksauce> you have to download it per step two in that link
<weaksauce> and set it up correctly
<TomyLobo> I have installed the "chromium-chromedriver" ubuntu package. i guess that's that step
<TomyLobo> oh, I know why it's not working. that package uses a snap package. snap, by default, does not work with home directories outside /home
<TomyLobo> a fact that is very annoying and already cost me some hours at work once
<TomyLobo> isn't it great, that ubuntu is replacing everything by snaps?
<adam12> TomyLobo: If you're not in love with selenium, I found cuprite much simpler. It drives chrome directly.
<adam12> (as an aside, it doesnt' appear related to your immediate issue)
<TomyLobo> yeah i need to figure out this snap issue
<adam12> I'm not sure how much time I've lost in getting headless testing to work (along with database transactions and a million other things it affects). Probably a few days at least.
<TomyLobo> yeah, those who do not learn their database transactions are doomed to repeat their mistakes over and over again
<TomyLobo> basically if you first do a read-only lock and then later upgrade to a write lock on the same row, you'll get deadlocks
<TomyLobo> especially great if you have a big legacy project and you have no idea which parts did and did not obey this principle
<TomyLobo> actually i just remembered out that the snap issue I thought I remembered solving, was instead an issue with a chroot jail bootstrapping and management tool called schroot, which has similar issues with non-/home homes.
<TomyLobo> https://snapcraft.io/docs/home-outside-home this is snap's solution. basically mess with the user's home directory. not great.
<TomyLobo> https://superuser.com/a/845471 schroot lets you just bind-mount stuff in a config file, i wish snap had that too
<TomyLobo> anyway, probably off-topic :)
fercell has joined #ruby
ur5us has joined #ruby
roadie has quit [Ping timeout: 268 seconds]
slightlypandaish has quit [Quit: Client closed]
CrazyEddy has quit [Ping timeout: 264 seconds]
roadie has joined #ruby
_ht has quit [Remote host closed the connection]
jpw has quit [Remote host closed the connection]
roadie has quit [Read error: Connection reset by peer]
pwnd_sfw has quit [Quit: Ping timeout (120 seconds)]
pwnd_sfw has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 245 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
dukester has joined #ruby
dukester has left #ruby [#ruby]
Skyfire has quit [Quit: WeeChat 3.3]
Skyfire has joined #ruby
vit has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 260 seconds]
dostoyevsky2 has quit [Ping timeout: 244 seconds]
dostoyevsky2 has joined #ruby