havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.0, 2.7.2, 2.6.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
Liothen has quit [Read error: Connection reset by peer]
Liothen has joined #ruby
jonhg has joined #ruby
TCZ has joined #ruby
Azure|dc has quit [Ping timeout: 260 seconds]
<adam12> drozdziak1: If you’ve ran `bundle binstubs` before, I believe it writes a value to .bundle/config.
<adam12> drozdziak1: Best practice is to generate only the binstubs you need tho, and commit them to SCM.
jonhg has quit [Ping timeout: 245 seconds]
<adam12> AndreYuhai: Is it HTML? Try setting ff=html first. Eruby can be anything; not just HTML, so the indentation helper can be confused.
<adam12> AndreYuhai: If this is a Rails project, tpope’s vim-rails plugin might help forcing the format.
<AndreYuhai> adam12, I actually have that plugin. File type is recognized as eruby.
<AndreYuhai> But I can't really re-indent unless I set the file type as html as you said.
<adam12> AndreYuhai: .html.erb or just .erb?
<AndreYuhai> extension is html.erb
<adam12> I’m not sure I was able to ever get it work correctly, and I used Vim for decades.
<adam12> (I use VSCode+Vim extension now)
Swyper has quit [Remote host closed the connection]
<AndreYuhai> Yes, I've heard about that as well but never used code. :D I will probably switch file type to html
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
hiroaki__ has quit [Ping timeout: 272 seconds]
alexherbo2 has quit [Ping timeout: 260 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
Technodrome has joined #ruby
moldorcoder7 has quit [Ping timeout: 264 seconds]
moldorcoder7 has joined #ruby
lbwski has joined #ruby
lbwski has quit [Ping timeout: 260 seconds]
lbwski has joined #ruby
lbwski has quit [Ping timeout: 264 seconds]
ur5us_ has joined #ruby
Swyper has joined #ruby
Azure has joined #ruby
Swyper has quit [Remote host closed the connection]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bamdad has quit [Remote host closed the connection]
bamdad has joined #ruby
Swyper has joined #ruby
jonhg has joined #ruby
Rudd0 has quit [Ping timeout: 246 seconds]
Swyper has quit [Remote host closed the connection]
jonhg has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
akem has quit [Ping timeout: 260 seconds]
ur5us_ has quit [Ping timeout: 264 seconds]
akem has joined #ruby
Technodrome has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
s3nd1v0g1us has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
TCZ has quit [Quit: Apophis sie oddala]
jla has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
lbwski has joined #ruby
jonhg has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
lbwski has quit [Ping timeout: 276 seconds]
jonhg has quit [Ping timeout: 245 seconds]
s3nd1v0g1us has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
Rudd0 has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
ChmEarl has quit [Quit: Leaving]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
gix has joined #ruby
gix- has quit [Ping timeout: 276 seconds]
nofxx_ has joined #ruby
m27frogy has quit [Ping timeout: 265 seconds]
nofxx__ has quit [Ping timeout: 265 seconds]
_whitelogger has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lbwski has joined #ruby
jonhg has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
envex has joined #ruby
drnerdius has joined #ruby
lbwski has quit [Ping timeout: 245 seconds]
Technodrome has joined #ruby
romanlevin333236 has quit [Read error: Connection reset by peer]
romanlevin333236 has joined #ruby
naftilos76 has joined #ruby
<drnerdius> Hi, all. What's the equivalent of Array.delete_at(index) that returns the new array rather than deleted value?
jla has left #ruby [#ruby]
<leftylink> if there is no such thing, perhaps Object#tap would be able to be of assistance in this matter
meimeix has joined #ruby
DaRock has joined #ruby
mostlybadfly has joined #ruby
howdoi has joined #ruby
<drnerdius> leftylink: that would also work, thanks
drnerdius has quit [Quit: Konversation terminated!]
jonhg has joined #ruby
Frogging101 has quit [Quit: Close the World, Open the nExt]
Frogging101 has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
beanie__ has joined #ruby
tpanarch1st has joined #ruby
DaRock has quit [Remote host closed the connection]
DaRock has joined #ruby
elcuervo has joined #ruby
cuerbot has quit [Ping timeout: 260 seconds]
s3nd1v0g1us has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
siery has joined #ruby
shtirlic has quit [Quit: leaving]
s3nd1v0g1us has joined #ruby
lbwski has joined #ruby
ur5us_ has joined #ruby
ua_ has quit [Ping timeout: 276 seconds]
ua_ has joined #ruby
lbwski has quit [Ping timeout: 256 seconds]
_whitelogger has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
alexherbo2 has joined #ruby
s3nd1v0g1us has quit [Quit: Textual IRC Client: www.textualapp.com]
Xiti has quit [Quit: Leaving]
ur5us_ has quit [Ping timeout: 240 seconds]
jonhg has joined #ruby
jonhg has quit [Ping timeout: 276 seconds]
roadie has joined #ruby
shtirlic has joined #ruby
tpanarch1st has quit [Quit: Thanks for your help, nice to see you, take care.]
beanie__ has quit [Quit: Thanks for your help, nice to see you, take care.]
Swyper has joined #ruby
ur5us_ has joined #ruby
jonhg has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
tpanarch1st has joined #ruby
englosh has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
englosh has quit [Quit: Connection closed]
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
lbwski has joined #ruby
bamdad has quit [Remote host closed the connection]
ur5us_ has quit [Ping timeout: 240 seconds]
bamdad_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
gearnode has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
jenrzzz has quit [Ping timeout: 260 seconds]
shtirlic has quit [Quit: leaving]
lbwski has quit [Ping timeout: 256 seconds]
shtirlic has joined #ruby
alexherbo2 has quit [Ping timeout: 245 seconds]
alexherbo2 has joined #ruby
jenrzzz has joined #ruby
Emmanuel_Chanel has joined #ruby
alexherbo28 has joined #ruby
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo28 is now known as alexherbo2
gearnode has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
TCZ has joined #ruby
shtirlic has quit [Remote host closed the connection]
lbwski has joined #ruby
lbwski has quit [Ping timeout: 264 seconds]
roadt__ has joined #ruby
roadt_ has quit [Ping timeout: 245 seconds]
greengriminal has joined #ruby
gearnode has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
shtirlic has joined #ruby
TCZ has quit [Quit: Apophis sie oddala]
jonhg has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
m27frogy has joined #ruby
Rounin has joined #ruby
fercell has joined #ruby
alexherbo24 has joined #ruby
alexherbo2 has quit [Read error: Connection reset by peer]
alexherbo24 is now known as alexherbo2
jenrzzz has quit [Ping timeout: 245 seconds]
gearnode has quit [Ping timeout: 272 seconds]
<xpitr> hmh i am going crazy, why is this changing a? a = "foo"; b = a; b.gsub!(/foo/, "bar"); # now a == "bar"
alexherbo28 has joined #ruby
alexherbo2 has quit [Ping timeout: 246 seconds]
<xpitr> if i do: b = a + "" ; then it won't be changing a
alexherbo28 is now known as alexherbo2
jenrzzz has joined #ruby
alexherbo2 has quit [Read error: Connection reset by peer]
alexherbo2 has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
TCZ has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
<adam12> xpitr: b is a reference to a. They’re the same object.
<adam12> xpitr: b = a.dup
<nakilon> typical problem of people who start coding with wrong languages
<xpitr> ah i see. its confusing because eg. b += "123" won't change a while gsub! will
<nakilon> no understanding on data handling, the term of "passing by value" and "passing by reference"
<adam12> xpitr: Right. Technically, b += “123” is b = b + “123”, which is a new String object. So you’re assigning a new object to the variable b.
<nakilon> that's because += is a kind of assigment, and assigments are always creating new stuff
<nakilon> you might want to use the String#concat method
jenrzzz has joined #ruby
<xpitr> normally i always expected b = a to assign value and not reference
<xpitr> so when i was later modifying b i was so confused lol
hiroaki__ has joined #ruby
<adam12> xpitr: You’ll find lots of “pass by reference” in Ruby (tho some will dispute the terminology probably).
<xpitr> i mean i understood that gsub! will change the b, and so do many other methods
<adam12> xpitr: Numerics and a few others are probably the exception.
<xpitr> only that b wasn't a new value surprised me
akem is now known as ChewbakaJones
yann-kaelig has joined #ruby
lbwski has joined #ruby
Technodrome has joined #ruby
lbwski has quit [Ping timeout: 245 seconds]
Swyper has quit [Remote host closed the connection]
lbwski has joined #ruby
lbwski has quit [Ping timeout: 276 seconds]
englosh has joined #ruby
englosh has quit [Client Quit]
supercoven has joined #ruby
lbwski has joined #ruby
alexherbo2 has quit [Ping timeout: 246 seconds]
lbwski has quit [Ping timeout: 265 seconds]
gearnode has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyberarm has joined #ruby
ChmEarl has joined #ruby
postmodern has quit [Quit: Leaving]
lbwski has joined #ruby
rwb has quit [Quit: rwb]
TCZ has quit [Quit: Apophis sie przemieszcza]
ruurd has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
lbwski has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
DaRock has quit [Ping timeout: 260 seconds]
moldorcoder7 has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
ruurd has quit [Ping timeout: 240 seconds]
jonhg has joined #ruby
jenrzzz has joined #ruby
Azure has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 260 seconds]
moldorcoder7 has joined #ruby
lbwski has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
jonhg has joined #ruby
jonhg has quit [Ping timeout: 276 seconds]
lbwski has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
bhaak has quit [Ping timeout: 256 seconds]
jonhg has joined #ruby
Technodrome has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
jonhg has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
lbwski has joined #ruby
lbwski has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
bhaak has joined #ruby
sombra has joined #ruby
Azure has joined #ruby
sombra is now known as Guest46119
ChmEarl has quit [Quit: Leaving]
Swyper has joined #ruby
aloy has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
Swyper has quit [*.net *.split]
jerme_ has quit [*.net *.split]
ReinH__ has quit [*.net *.split]
nickb has quit [*.net *.split]
vqrs_ has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
Fusl has quit [*.net *.split]
summerisle has quit [*.net *.split]
tvl has quit [*.net *.split]
s_ has quit [*.net *.split]
ZeiP_ has quit [*.net *.split]
CustosLimen has quit [*.net *.split]
noodle has quit [*.net *.split]
crawler_ has quit [*.net *.split]
kwilczynski has quit [*.net *.split]
dumptruckman has quit [*.net *.split]
dputtick has quit [*.net *.split]
clinth has quit [*.net *.split]
d0liver has quit [*.net *.split]
gmcintire has quit [*.net *.split]
scriptonaut has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
NL3limin4t0r_afk has quit [*.net *.split]
siasmj has quit [*.net *.split]
MentalPower has quit [*.net *.split]
Nightmare has quit [*.net *.split]
banisterfiend has quit [*.net *.split]
legit has quit [*.net *.split]
spk has quit [*.net *.split]
ikke has quit [*.net *.split]
G has quit [*.net *.split]
banisterfiend_ has joined #ruby
crawler has joined #ruby
spk has joined #ruby
ZeiP has joined #ruby
legit has joined #ruby
Fusl has joined #ruby
siasmj has joined #ruby
dputtick has joined #ruby
gmcintire has joined #ruby
clinth has joined #ruby
kwilczynski has joined #ruby
d0liver has joined #ruby
nickb has joined #ruby
CustosLimen has joined #ruby
SegFaultAX has joined #ruby
jerme_ has joined #ruby
ReinH__ has joined #ruby
Swyper has joined #ruby
MentalPower has joined #ruby
dumptruckman has joined #ruby
tobiasvl has joined #ruby
JoL1hAHN has joined #ruby
scriptonaut has joined #ruby
G has joined #ruby
NL3limin4t0r_afk has joined #ruby
vqrs has joined #ruby
Nightmare has joined #ruby
ikke has joined #ruby
SegFaultAX has quit [Max SendQ exceeded]
SegFaultAX has joined #ruby
Technodrome has quit [Ping timeout: 246 seconds]
ikke is now known as Guest14620
kktt0071 has quit [Ping timeout: 240 seconds]
watzon has quit [Ping timeout: 265 seconds]
Cubixusin[m] has quit [Ping timeout: 265 seconds]
hsiktas[m] has quit [Ping timeout: 265 seconds]
PaulB[m] has quit [Ping timeout: 246 seconds]
lazypwny[m] has quit [Ping timeout: 240 seconds]
summerisle has joined #ruby
s_ has joined #ruby
jordanh has quit [Ping timeout: 265 seconds]
lbwski has joined #ruby
noodle has joined #ruby
jenrzzz has joined #ruby
hkoot_hoot[m] has quit [Ping timeout: 240 seconds]
daillusionist has quit [Ping timeout: 246 seconds]
cyberarm has quit [Ping timeout: 265 seconds]
turt2live has quit [Ping timeout: 265 seconds]
themsay[m] has quit [Ping timeout: 244 seconds]
JanHebler[m] has quit [Ping timeout: 268 seconds]
ChmEarl has joined #ruby
alexherbo2 has joined #ruby
DanielCarlsson[m has quit [Ping timeout: 268 seconds]
linuus[m] has quit [Ping timeout: 268 seconds]
Hanma[m] has quit [Ping timeout: 268 seconds]
swann11[m] has quit [Ping timeout: 260 seconds]
matthewd has quit [Ping timeout: 240 seconds]
jhass has quit [Ping timeout: 240 seconds]
Guest14620 has quit [Quit: WeeChat 2.8]
matthewd has joined #ruby
_ikke_ has joined #ruby
_ikke_ is now known as ikke
jo-so has quit [Ping timeout: 268 seconds]
jhass has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
lbwski has quit [Ping timeout: 260 seconds]
jonhg has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jonhg has joined #ruby
kktt0071 has joined #ruby
PaulB[m] has joined #ruby
jordanh has joined #ruby
Cubixusin[m] has joined #ruby
watzon has joined #ruby
hsiktas[m] has joined #ruby
lazypwny[m] has joined #ruby
jonhg has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
hkoot_hoot[m] has joined #ruby
lbwski has joined #ruby
daillusionist has joined #ruby
AndreYuhai has quit [Remote host closed the connection]
lbwski has quit [Ping timeout: 265 seconds]
cyberarm has joined #ruby
turt2live has joined #ruby
themsay[m] has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
lbwski has joined #ruby
jetchisel has joined #ruby
ritsch_master has joined #ruby
jetchisel has quit [Client Quit]
lbwski has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper_ has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
Rudd0 has quit [Ping timeout: 260 seconds]
TCZ has joined #ruby
jenrzzz has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
Swyper_ has quit [Ping timeout: 264 seconds]
f3rno has joined #ruby
lbwski has joined #ruby
swann11[m] has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
JanHebler[m] has joined #ruby
Rudd0 has joined #ruby
GodFather has joined #ruby
lbwski has quit [Ping timeout: 265 seconds]
Tempesta has quit [Quit: AdiIRC is updating to v4.0 Beta Build (2021/03/06 UTC) 64 Bit]
Tempesta has joined #ruby
DanielCarlsson[m has joined #ruby
linuus[m] has joined #ruby
supercoven_ has joined #ruby
Hanma[m] has joined #ruby
supercoven has quit [Ping timeout: 245 seconds]
jo-so has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
TCZ has quit [Quit: Apophis sie przemieszcza]
jenrzzz has joined #ruby
Rudd0 has quit [Ping timeout: 264 seconds]
lbwski has joined #ruby
Swyper has joined #ruby
lbwski has quit [Ping timeout: 264 seconds]
Swyper has quit [Ping timeout: 246 seconds]
s3nd1v0g1us has joined #ruby
rwb has joined #ruby
naftilos76 has quit [Quit: Leaving]
oneeggeach has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
naftilos76 has joined #ruby
daillusionist has left #ruby ["User left"]
lbwski has joined #ruby
oneeggea_ has joined #ruby
oneeggea_ is now known as oneeggeach_
oneeggeach has quit [Ping timeout: 264 seconds]
yann-kaelig has quit []
elcuervo has quit [Read error: Connection reset by peer]
lbwski has quit [Ping timeout: 260 seconds]
s3nd1v0g1us has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elcuervo has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
alexherbo2 has joined #ruby
jenrzzz has joined #ruby
s3nd1v0g1us has joined #ruby
alexherbo2 has quit [Ping timeout: 260 seconds]
ur5us_ has joined #ruby
naftilos76 has quit [Ping timeout: 264 seconds]
jonhg has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
greengriminal has quit [Quit: Leaving]
vondruch has quit [Read error: Connection reset by peer]
AndreYuhai has joined #ruby
oneeggeach has joined #ruby
<AndreYuhai> How can I add a 'Connection: close' header to mechanize with pre_connection_hooks?
<AndreYuhai> I can add a hook but don't know how to change the header inside lambda function
<AndreYuhai> I tried agent.request_headers['Connection'] = 'close' but doesn't seem to work
oneeggeach_ has quit [Ping timeout: 264 seconds]
Xiti has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
<AndreYuhai> Oh what I did actually works.
<AndreYuhai> The weird thing is after I added the hook. The first request had the header Connection: keep-alive header again so that got me confused
<AndreYuhai> I've tried it a few times again. The first request after the hook is added doesn't have the changes in the header.
<AndreYuhai> Not sure why
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
Chewbaka1ones has joined #ruby
tpanarch1st_ has joined #ruby
ChewbakaJones has quit [Ping timeout: 245 seconds]
tpanarch1st has quit [Ping timeout: 260 seconds]
lbwski has joined #ruby
Vingador has joined #ruby
lbwski has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
ritsch_master has quit [Ping timeout: 258 seconds]
Vingador_ has joined #ruby
bucareli has joined #ruby
Rudd0 has joined #ruby
Vingador has quit [Ping timeout: 256 seconds]
tpanarch1st_ has quit [Ping timeout: 264 seconds]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
weaksauce has joined #ruby
s3nd1v0g1us has quit [Quit: Textual IRC Client: www.textualapp.com]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
Swyper has joined #ruby
teardown has quit [Ping timeout: 268 seconds]
Swyper has quit [Ping timeout: 264 seconds]
jonhg has joined #ruby
jonhg has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
_dg1727 has quit [Ping timeout: 268 seconds]
_dg1727 has joined #ruby
Rounin has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
s3nd1v0g1us has joined #ruby
_dg1727 is now known as dg1727
duderonomy has joined #ruby
s3nd1v0g1us has quit [Remote host closed the connection]
s3nd1v0g1us has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Vingador_ has quit [Ping timeout: 245 seconds]
<AndreYuhai> After I save the html file with Mechanize the returned object from get request is a Mechanize::FileSaver on which I can not invoke xpath
<AndreYuhai> How do I get the actual html when I use pluggable_parser.html= ?
deviantfero has joined #ruby
teardown has joined #ruby
<adam12> AndreYuhai: agent.current_page.body ? Going by https://rubydoc.info/gems/mechanize/Mechanize/FileSaver
<AndreYuhai> adam12, body returns empty string
deviantfero has quit [Quit: WeeChat 3.0.1]
<AndreYuhai> adam12, There's also body_io which returns StringIO but couldn't figure out get the body from that
<AndreYuhai> probably it's in that body_io
<AndreYuhai> Oh
<AndreYuhai> Simple... .read() ...
<AndreYuhai> Sorry it's quite late here, hence dumb questions D:
bucareli has quit [Ping timeout: 264 seconds]
tpanarch1st_ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
lbwski has joined #ruby
jenrzzz has joined #ruby
lbwski has quit [Ping timeout: 256 seconds]
bucareli has joined #ruby