havenwood changed the topic of #ruby to: Ruby 3.4.2, 3.3.7 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
Inline_ has joined #ruby
Inline has quit [Killed (iridium.libera.chat (Nickname regained by services))]
Inline_ is now known as Inline
testone is now known as testone_web
testone has joined #ruby
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
cappy has quit [Quit: Leaving]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
fercell has quit [Quit: ZNC - https://znc.in]
fercell has joined #ruby
Inline has quit [Ping timeout: 244 seconds]
jmcantrell has quit [Quit: WeeChat 4.5.2]
gemmaro has quit [Ping timeout: 260 seconds]
gemmaro has joined #ruby
brokkoli_origin has quit [Ping timeout: 252 seconds]
brokkoli_origin has joined #ruby
msv has quit [Ping timeout: 272 seconds]
msv has joined #ruby
grenierm has joined #ruby
johnjaye has quit [Ping timeout: 252 seconds]
johnjaye has joined #ruby
johnjaye has quit [Ping timeout: 252 seconds]
johnjaye has joined #ruby
rvalue has quit [Ping timeout: 252 seconds]
rvalue has joined #ruby
svm has joined #ruby
msv has quit [Ping timeout: 245 seconds]
mange has quit [Quit: Zzz...]
whiteman809 has quit [Remote host closed the connection]
johnjaye has quit [Ping timeout: 252 seconds]
johnjaye has joined #ruby
whiteman809 has joined #ruby
Inline has joined #ruby
Inline has quit [Ping timeout: 248 seconds]
weaksauce has quit [Read error: Connection reset by peer]
weaksauce_ has joined #ruby
vnpower_ has quit [Remote host closed the connection]
vnpower_ has joined #ruby
grenierm has quit [Ping timeout: 240 seconds]
Inline has joined #ruby
hwpplayer1 has joined #ruby
user71 has joined #ruby
carlomonte has joined #ruby
hwpplayer1 has quit [Remote host closed the connection]
Inline_ has joined #ruby
Inline is now known as Guest8877
Guest8877 has quit [Killed (mercury.libera.chat (Nickname regained by services))]
Inline_ is now known as Inline
Inline has quit [Quit: Leaving]
<nakilon> while I successfully relied on @@instance_created maybe `Capybara.page.current_url != ''` is how others do: https://github.com/mattheworiordan/capybara-screenshot/blob/6b80ac24fafa1e92052168807cc1dff2fa471af6/lib/capybara-screenshot/rspec.rb#L56
factor has quit [Quit: The Lounge - https://thelounge.chat]
eddof13 has joined #ruby
factor has joined #ruby
factor has quit [Read error: Connection reset by peer]
carlomonte has quit [Quit: carlomonte]
factor has joined #ruby
cappy has joined #ruby
hwpplayer1 has joined #ruby
factor has quit [Remote host closed the connection]
user71 has quit [Quit: Leaving]
hwpplayer1 has quit [Read error: Connection reset by peer]
<nakilon> where is this convention defined at all? that something (and when exactly?) should be a "feature"?
testone_web has quit [Remote host closed the connection]
<nakilon> i.e. why does not the thing automatically detect if it has a javascript renderer so I won't need to add this metadata now into all my test files?
<nakilon> ok capybara docs say: "If you are not using Rails, tag all the example groups in which you want to use Capybara with type: :feature." -- but why...
<nakilon> nvm
factor has joined #ruby
factor has quit [Remote host closed the connection]
factor has joined #ruby
<havenwood> nakilon: An aside, but @@class_instance_variables are soft deprecated for being an antipattern and their use is discouraged.
<havenwood> They have surprising behavior but Matz preferred to recommend not using them rather than make a breaking change by removing them in Ruby 3.
<havenwood> You can pretty much always just use a regular @instance_variable in the eigenclass instead, so you won't really miss them. It's not hard to just avoid them entirely. Most codebases do.
factor has quit [Remote host closed the connection]
factor has joined #ruby
factor has quit [Remote host closed the connection]
<nakilon> you probably mean they should make a read_accessor for it
factor has joined #ruby
<nakilon> I don't understand why I do require "capybara/dsl"; feature "" do ... and it says undefined method `feature' for main:Object
Common-Lisp has joined #ruby
<Common-Lisp> anything in particular necessary to require a gem after installing it?
<Common-Lisp> seems like `Gem.install("foo");require 'foo'` fails on the require
<testone> read the output
<testone> paste the output in some nopaste site and write here the URL
brokkoli_origin has quit [Ping timeout: 252 seconds]
user71 has joined #ruby
o0ox1eef has quit [Ping timeout: 252 seconds]
<nakilon> looks like the correct require is "capybara/rspec/features" and these docs are misleading https://github.com/teamcapybara/capybara/commit/635671904345299bf6e351cc3e71c3fdfc836518
o0x1eef has joined #ruby
<Common-Lisp> testone: I just get the same output as trying to require a gem that isn't installed
<Common-Lisp> even though the Gem.install definitely succeeds, like if I re-run the script it works the second time
brokkoli_origin has joined #ruby
<Common-Lisp> Ok looks like the answer was to call `Gem.refresh` between the install and reuire
eddof13 has quit [Quit: eddof13]
eddof13 has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
<nakilon> ruby will always be an amazing language that when you face the issues and no one comes, you figure out the solution yourself within an hour
<nakilon> ... in average
jmcantrell has joined #ruby
cappy has quit [Quit: Leaving]
<Common-Lisp> yeah luckily rubygems's source code is fairly easy to read through
<Common-Lisp> I do wish they had better hosted docs but oh well lol
<adam12> Common-Lisp: What would you like to see improved in the hosted docs?
hwpplayer1 has joined #ruby
eddof13 has quit [Quit: eddof13]
rvalue has quit [Ping timeout: 245 seconds]
rvalue- has joined #ruby
hightower3 has quit [Remote host closed the connection]
rvalue- is now known as rvalue
o0x1eef has quit [Ping timeout: 252 seconds]
Common-Lisp has quit [Ping timeout: 252 seconds]
o0x1eef has joined #ruby
eddof13 has joined #ruby
carlomonte has joined #ruby
o0x1eef has quit [Quit: Quit]
testone has quit [Quit: [TLS] Client upgrade]
testone has joined #ruby
user71 has quit [Quit: Leaving]
Sampersand has joined #ruby
eddof13 has quit [Quit: eddof13]
eddof13 has joined #ruby
eddof13 has quit [Quit: eddof13]
Sampersand has quit [Quit: Client closed]
o0x1eef has joined #ruby
carlomonte has quit [Quit: carlomonte]
cappy has joined #ruby
eddof13 has joined #ruby
guest96 has joined #ruby
guest96 has quit [Client Quit]
swee has quit [Quit: Swee the gentlegoob will be back soon (updates probably)]
eddof13 has quit [Quit: eddof13]
swee has joined #ruby
brokkoli_origin has quit [Ping timeout: 260 seconds]
brokkoli_origin has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]
eddof13 has joined #ruby
brokkoli_origin has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
eddof13 has quit [Quit: eddof13]
wbooze has joined #ruby
hwpplayer1 has quit [Remote host closed the connection]
cappy has quit [Quit: Leaving]