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
Oxfuxxx has quit [Quit: leaving]
Oxfuxxx has joined #ruby
rob has quit [Ping timeout: 248 seconds]
steinomead has quit [Quit: term]
ur5us has quit [Ping timeout: 250 seconds]
roadie has joined #ruby
jetchisel has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
brw has quit [Ping timeout: 250 seconds]
brw has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
swaggboi has quit [Ping timeout: 248 seconds]
neshpion has quit [Quit: neshpion]
roadie has joined #ruby
Oxfuxxx has quit [Ping timeout: 250 seconds]
Oxfuxxx has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
Dooky has joined #ruby
swaggboi has joined #ruby
Dooky has quit [Ping timeout: 252 seconds]
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
niv has quit [Ping timeout: 250 seconds]
niv has joined #ruby
niv has quit [Client Quit]
niv has joined #ruby
jpw has joined #ruby
jpw_ has joined #ruby
jpw has quit [Ping timeout: 250 seconds]
jpw has joined #ruby
Oxfuxxx has quit [Ping timeout: 240 seconds]
jpw_ has quit [Ping timeout: 248 seconds]
_ht has joined #ruby
swaggboi has quit [Ping timeout: 252 seconds]
swaggboi has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
Oxfuxxx has joined #ruby
_ht has quit [Remote host closed the connection]
brw has quit [Read error: Connection reset by peer]
brw has joined #ruby
jpw has quit [Remote host closed the connection]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
Oxfuxxx has quit [Quit: leaving]
Skyfire has quit [Ping timeout: 250 seconds]
Skyfire has joined #ruby
roadie has joined #ruby
kinduff has quit [Quit: The Lounge - https://thelounge.chat]
kinduff4 has joined #ruby
Rounin has joined #ruby
Oxfuxxx has joined #ruby
aighearach_ has quit [Ping timeout: 240 seconds]
aighearach has joined #ruby
ccooke_ is now known as ccooke
aighearach_ has joined #ruby
NightMonkey has quit [Ping timeout: 252 seconds]
kaivai has quit [Quit: ZNC - https://znc.in]
kaivai has joined #ruby
lessless has quit [Ping timeout: 252 seconds]
aighearach has quit [Ping timeout: 248 seconds]
NightMonkey has joined #ruby
lessless has joined #ruby
whysthatso has joined #ruby
<rapha> in nokogiri, when you have, say, `b=Nokogiri::XML::Builder.new;b.foobar{b.blah{b.lipsum{b.text 'Lorem ipsum'}}}` is there a way to instead say `blah_node=b.blah{...}` and then `puts blah_node.to_s` to get something like "<blah><lipsum>Lorem ipsum</lipsum></blah>"?
<rapha> (asking because, yes, Node#to_s exists, but alas, it's an empty string)
<rapha> ah, that's a NodeBuilder object, not a Node object.
gggp has joined #ruby
aighearach_ has quit [Remote host closed the connection]
aighearach_ has joined #ruby
ur5us has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
swaggboi has quit [Ping timeout: 252 seconds]
roadie has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
shokohsc has quit [Quit: The Lounge - https://thelounge.chat]
roadie has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 250 seconds]
roadie has joined #ruby
shokohsc has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
shokohsc has quit [Quit: The Lounge - https://thelounge.chat]
roadie has joined #ruby
shokohsc has joined #ruby
shokohsc has quit [Quit: The Lounge - https://thelounge.chat]
shokohsc has joined #ruby
georgemp has joined #ruby
noa has joined #ruby
<rapha> okay, figured it out. it's a little fucked up but it works.
<rapha> e.g. Nokogiri::Slop(b.to_xml).xpath('//foobar/blah').last.to_xml({encoding:'UTF-8'})
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
hololeap has joined #ruby
noa has quit [Quit: Konversation terminated!]
noa has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
swaggboi has joined #ruby
swaggboi has quit [Quit: C-x C-c]
bit4bit has joined #ruby
roadie has joined #ruby
swaggboi has joined #ruby
gggp has quit [Ping timeout: 252 seconds]
ule_ has quit [Changing host]
ule_ has joined #ruby
ule_ is now known as ule
roadie has quit [Ping timeout: 240 seconds]
dviola has quit [Ping timeout: 252 seconds]
rapha has left #ruby [WeeChat 2.3]
rapha has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
<rapha> "peter is a jolly fellow, and my, clarice and him sure are a fit so mellow".chars[12] ... and now let's get the word at that position plus the following one o_O
<adam12> ?
roadie has joined #ruby
<rapha> adam12: index 12 of that would be the first "o", so the output should be "jolly fellow"
<adam12> rapha: Oh I see.
<rapha> but my brain has just started smoking and there's a smell of burned wood, too. so i'll stop here and continue this tomorrow.
xall has joined #ruby
bit4bit has quit [Ping timeout: 240 seconds]
<adam12> >> "peter is a jolly fellow, and my, clarice and him sure are a fit so mellow".split(" ").each_cons(2).each_with_object(0) { |(one, two), pos| pos += one.length; break "#{one} #{two}" if (pos..(pos + two.length)).cover?(12) }
<ruby[bot]> adam12: # => (https://carc.in/#/r/btuw)
<adam12> wat
gggp has joined #ruby
glider_ is now known as glider
Skyfire has quit [Quit: WeeChat 3.2]
pgib has joined #ruby
_ht has joined #ruby
<nakilon> I would just use regex
xall has quit [Quit: Client closed]
noa has quit [Ping timeout: 250 seconds]
jpw has joined #ruby
steinomead has joined #ruby
elf_fortrez has joined #ruby
bit4bit has joined #ruby
fdan has joined #ruby
<fdan> i get this error https://pasteboard.co/KhR0ooL.png
<fdan> apologies if my question is silly, i am very new to ruby
<nakilon> it says you hav to install the bundler with a command "gem install bundler" wherever it is
<nakilon> this is to make the commands "bundle install" and "bundle exec ..." work
<fdan> nakilon can i put the instruction to install in the gem file?
<nakilon> it should be in some bash file
<nakilon> the Gemfile is what then being used by the bundler to install other gems
gggp has quit [Ping timeout: 250 seconds]
<fdan> how do i include that in the workflow of github?
Oxfuxxx has quit [Quit: leaving]
Oxfuxxx has joined #ruby
Skyfire has joined #ruby
<nakilon> read the docs about the Action you use in your project
Oxfuxxx has quit [Quit: leaving]
Oxfuxxx_ has joined #ruby
Rounin has quit [Read error: Connection reset by peer]
<fdan> any idea why it fails?
<fdan> i have used in workflow but still it fails
bit4bit has quit [Ping timeout: 252 seconds]
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
noa has joined #ruby
<fdan> could someone help me why this fails?
<adam12> fdan: Install bundler 1.17.3 first. Before `bundle install`, do `gem install bundler -v 1.17.3`
<fdan> ok sure, i have initiated the build
<fdan> the same error... adam12
bit4bit has joined #ruby
fdan has quit [Ping timeout: 246 seconds]
MalkbabY has joined #ruby
MalkbabY has quit [Remote host closed the connection]
bandithijo has joined #ruby
elf_fortrez has quit [Quit: Client closed]
jpw has quit [Remote host closed the connection]
_ht has quit [Remote host closed the connection]
lunarkitty has joined #ruby
roadie has joined #ruby
bandithijo has quit [Ping timeout: 240 seconds]
Furai has quit [Quit: WeeChat 3.2]
roadie has quit [Ping timeout: 250 seconds]
Furai has joined #ruby
dviola has joined #ruby
roadie has joined #ruby
elf_fortrez has joined #ruby
<rapha> adam12: i'm still picking that code of yours apart. #each_cons was cool, the the idea with using #each_with_object still has me buzzled and in combination with the rest it's more puzzle-worthy than any Valve game ever.
<rapha> er. okay. english borken. good night y'all!
roadie has quit [Ping timeout: 240 seconds]
kiki_lamb has quit [Quit: Lost terminal]
brw has quit [Remote host closed the connection]
benjaminoakes has joined #ruby
brw has joined #ruby
roadie has joined #ruby
fredlinhares has joined #ruby
fredlinhares has quit [Quit: WeeChat 2.8]
roadie has quit [Ping timeout: 240 seconds]
fredlinhares has joined #ruby
belak51 is now known as belak
benjaminoakes has quit [Quit: Client closed]
roadie has joined #ruby
fredlinhares has quit [Quit: WeeChat 2.8]
fredlinhares has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
bit4bit has quit [Quit: Leaving]
roadie has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
gggp has joined #ruby
gggp has quit [Remote host closed the connection]
bandithijo has joined #ruby
graywolf has joined #ruby