havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: 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!
Helenah has joined #ruby
jenrzzz has joined #ruby
<uplime> nevermind, i'm an idiot - the code I'm studying for this defines it. i totally missed that
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 260 seconds]
<xco> anyone knows how i can generate countries with Faker?
DaRock has joined #ruby
fig-le-deunch has joined #ruby
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
Nilium has joined #ruby
fig-le-deunch has quit [Quit: Konversation terminated!]
fig-le-deunch has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 265 seconds]
tsujp has quit [Quit: Textual IRC Client: www.textualapp.com]
<adam12> xco: Faker::Address.country ?
<xco> _ikke_
<xco> adam12 thanks :)
skryking has quit [Ping timeout: 240 seconds]
skryking has joined #ruby
wallace_mu has joined #ruby
<JamesB192> jhass: al2o3-cr: Thank you for the help earlier.
hays has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
ur5us has joined #ruby
racketerer has joined #ruby
<racketerer> hi. If i have a module that contains a class (wich contains a Constant), how do i bet overwrite the constant with a custom value without making a mess. (assuming i dont want to alter the file containing the module code)
hays has joined #ruby
_whitelogger has joined #ruby
Helenah has quit [Read error: Connection reset by peer]
Helenah has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
dviola has quit [Quit: WeeChat 2.7]
mossplix has joined #ruby
noodle has quit [Ping timeout: 265 seconds]
mossplix has quit [Ping timeout: 265 seconds]
zlogan has quit [Remote host closed the connection]
zlogan has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
dasher00 has quit [Ping timeout: 265 seconds]
gix- has quit [Ping timeout: 265 seconds]
cthu| has joined #ruby
<fig-le-deunch> racketerer: https://dpaste.org/UnMk
alfiemax has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dreamer3 has quit [Quit: Leaving...]
Dreamer3 has joined #ruby
snuz has quit [Read error: Connection reset by peer]
alex`` has quit [Quit: WeeChat 2.7]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
alex` has joined #ruby
alex` is now known as Guest33331
alexherbo2 has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
Guest33331 has quit [Ping timeout: 268 seconds]
alexherbo2 has quit [Ping timeout: 268 seconds]
zdm has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
robscomputer has joined #ruby
braincrash has joined #ruby
alfiemax has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
zdm has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
brool has joined #ruby
wallace_mu has quit [Ping timeout: 268 seconds]
akemhp has quit [Remote host closed the connection]
akemhp has joined #ruby
akemhp has quit [Remote host closed the connection]
SeepingN has joined #ruby
chalkmonster has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
alfiemax has joined #ruby
akemhp has joined #ruby
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robscomputer has joined #ruby
zdm has quit [Remote host closed the connection]
donofrio has quit [Remote host closed the connection]
cnsvc has quit [Ping timeout: 240 seconds]
cnsvc has joined #ruby
nixy37 has quit [Quit: The Lounge - https://thelounge.chat]
nixy37 has joined #ruby
noodle has joined #ruby
sarink has joined #ruby
sarink has quit [Ping timeout: 265 seconds]
fig-le-deunch has quit [Quit: Konversation terminated!]
chalkmonster has quit [Quit: WeeChat 2.7]
cthu| has quit [Ping timeout: 268 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldepandis has joined #ruby
schne1der has joined #ruby
imadper has quit [Read error: Connection reset by peer]
robscomputer has joined #ruby
sdu has quit [Remote host closed the connection]
noodle has quit [Ping timeout: 268 seconds]
alfiemax has quit [Remote host closed the connection]
noodle has joined #ruby
schne1der has quit [Ping timeout: 260 seconds]
sarink has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink_ has joined #ruby
Helenah has quit [Ping timeout: 265 seconds]
sarink has quit [Read error: Connection reset by peer]
cnsvc has quit [Remote host closed the connection]
cnsvc has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mossplix has joined #ruby
Ai9zO5AP_ has quit [Quit: WeeChat 2.5]
sevvie has quit [Remote host closed the connection]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MrCrackPot has joined #ruby
alfiemax has joined #ruby
brool has quit [Ping timeout: 272 seconds]
xco has joined #ruby
xco has quit [Client Quit]
alfiemax has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
infinityfye has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
Guest33331 has joined #ruby
schne1der has joined #ruby
Helenah has joined #ruby
clemens3 has quit [Quit: WeeChat 2.1]
lunarkitty has quit [Ping timeout: 245 seconds]
lunarkitty has joined #ruby
sarink_ has quit [Remote host closed the connection]
pandakekok9 has joined #ruby
conta has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
sdu has joined #ruby
Guest33331 is now known as alex``
TzilTzal has joined #ruby
<TzilTzal> Hi
<TzilTzal> Is there a way to test rail apps without an actual database? how are unit tests written usually in this case?
ur5us has joined #ruby
pandakekok9 has quit [Ping timeout: 240 seconds]
sarink has joined #ruby
lineus has quit [Remote host closed the connection]
lineus has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
pandakekok9 has joined #ruby
vondruch has joined #ruby
loveablelobster has joined #ruby
loveablelobster has left #ruby [#ruby]
ldepandis has joined #ruby
conta has quit [Quit: conta]
mikecmpbll has joined #ruby
ellcs has joined #ruby
dionysus69 has joined #ruby
sarink has quit [Remote host closed the connection]
racketerer has quit [Remote host closed the connection]
racketerer has joined #ruby
mossplix has quit [Remote host closed the connection]
chalkmonster has joined #ruby
conta has joined #ruby
conta has quit [Client Quit]
fercell has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
pandakekok9 has quit [Ping timeout: 240 seconds]
pandakekok9 has joined #ruby
<racketerer> @fig-le-deunch is there a way to do that without to warnings?
<racketerer> (and thank you for the suggestion btw?)
infinityfye_ has joined #ruby
phaul_ has joined #ruby
mossplix has joined #ruby
chalkmonster has joined #ruby
infinityfye has quit [Ping timeout: 265 seconds]
mossplix has quit [Ping timeout: 265 seconds]
zlogan has quit [Ping timeout: 272 seconds]
lxsameer has joined #ruby
zlogan has joined #ruby
clemens3 has joined #ruby
infinityfye_ has quit [Quit: Leaving]
infinityfye has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
ur5us has quit [Ping timeout: 260 seconds]
turbo_choo has quit [Ping timeout: 260 seconds]
m_antis[away] has joined #ruby
schne1der has joined #ruby
<ljarvis> TzilTzal: unit tests shouldn't hit the database (imo), but it's not easy to separate these into tests that don't require a database connection unfortunately
<ljarvis> racketerer: constants are named as such for a reason ;)
m_antis[away] has quit [Quit: m_antis[away]]
<ljarvis> &>> class Foo; BAR = "bar"; end; Foo.send(:remove_const, :BAR); Foo.const_set(:BAR, "baz"); Foo::BAR
<rubydoc> # => "baz" (https://carc.in/#/r/8i3z)
<ljarvis> you shouldn't do that, but that's how you do it without warnings
infinityfye_ has joined #ruby
infinityfye has quit [Ping timeout: 265 seconds]
ellcs1 has joined #ruby
<racketerer> well, the problem is i didnt create the the module. but i dont want to touch it, in case the code changes in a future update so that stuff doesnt break. hence the "workaround"
<racketerer> will give this a shot in a bit, thank you
turbo_choo has joined #ruby
racketerer has quit [Ping timeout: 260 seconds]
mossplix has joined #ruby
jenrzzz has joined #ruby
sarink has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
sarink has quit [Ping timeout: 240 seconds]
xco has joined #ruby
schne1der has quit [Quit: schne1der]
schne1der has joined #ruby
mossplix has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Ping timeout: 268 seconds]
mossplix has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
markopasha has joined #ruby
akemhp_ has joined #ruby
akemhp has quit [Ping timeout: 260 seconds]
DaniG2k has joined #ruby
acsims has joined #ruby
rapha has joined #ruby
<rapha> hi all
Emmanuel_Chanel has joined #ruby
ellcs1 has quit [Ping timeout: 265 seconds]
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 248 seconds]
vondruch_ is now known as vondruch
jenrzzz has joined #ruby
acsims has quit [Quit: leaving]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
schne1der has quit [Ping timeout: 268 seconds]
DaniG2k has quit [Ping timeout: 240 seconds]
cnsvc_ has joined #ruby
cnsvc has quit [Remote host closed the connection]
ellcs1 has joined #ruby
BH23 has joined #ruby
chalkmonster has joined #ruby
BH23 has quit [Client Quit]
pandakekok9 has quit [Quit: leaving]
BH23 has joined #ruby
Helenah has quit [Read error: Connection reset by peer]
Jonopoly has joined #ruby
_Joes_ has joined #ruby
Helenah has joined #ruby
BH23 has left #ruby [#ruby]
markopasha has quit [Ping timeout: 265 seconds]
infinityfye_ has quit [Quit: Leaving]
ellcs1 has quit [Ping timeout: 265 seconds]
namelessjack has joined #ruby
namelessjack has left #ruby [#ruby]
sergioro has quit [Quit: leaving]
markopasha has joined #ruby
lucasb has joined #ruby
schne1der has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul_ has quit [Ping timeout: 265 seconds]
phaul_ has joined #ruby
Fernando-Basso has joined #ruby
phaul_ has quit [Ping timeout: 265 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
fphilipe_ has joined #ruby
fphilipe has quit [Ping timeout: 272 seconds]
racketerer has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ljarvis> &>> RUBY_VERSION
<rubydoc> stderr: playpen: timeout triggered! (https://carc.in/#/r/8i5v)
<ljarvis> &>> RUBY_VERSION
<rubydoc> # => "2.7.0" (https://carc.in/#/r/8i5w)
DaniG2k has joined #ruby
DaniG2k has quit [Client Quit]
conta1 has joined #ruby
xco has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shah^ has joined #ruby
jcalla has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Ping timeout: 260 seconds]
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
<lmat> adam12: I have a small development on the intractible problem :-)
chalkmonster has quit [Quit: WeeChat 2.7]
<lmat> rm -r tmp/cache/assets/sprockets/v3.0; then run the tests and keep an eye on that cache, the cache populates quickly at first, then slower and slower. I'm eager to see if it will finish.
conta1 has quit [Ping timeout: 265 seconds]
<lmat> adam12: I thought we were looking at an infinite loop, but now I'm starting to think it's maybe a really bad performance problem?
mossplix has quit [Ping timeout: 265 seconds]
phaul_ has joined #ruby
antizeus has joined #ruby
bsdbandit-01 has joined #ruby
chalkmonster has joined #ruby
duderonomy has joined #ruby
snuz has joined #ruby
drincruz has joined #ruby
<lmat> Apparently performance problems in the asset pipeline are par for the course? "The process is inherently slow. For example, compiling Sass file to CSS requires reading the file in, which involves expensive hard disk reads." Aww, you have to read from disk? That's so sad.
Helenah has quit [Read error: Connection reset by peer]
<adam12> lmat: Sometimes. The Ruby version of Sass was slow. Sprockets was not super slow but it wasn't that fast either.
ldepandis has joined #ruby
<adam12> lmat: I'd still be shocked if that was your problem tho, tbh.
Helenah has joined #ruby
wallace_mu has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lmat> hm, okay
brool has joined #ruby
<lmat> adam12: the test finished
chalkmonster has quit [Quit: WeeChat 2.7]
TzilTzal has quit [Quit: Leaving.]
<adam12> lmat: So no infinite loop? Weird.
Fernando-Basso has quit [Quit: Leaving]
<lmat> adam12: Yup, not quite infinite ^_^
<lmat> Having a populated cache doesn't help.
<lmat> adam12: What do you think could slow down asset_path?
<adam12> lmat: Is this on Docker?
<lmat> adam12: yes.
<adam12> lmat: Docker
<adam12> lmat: ;)
<lmat> adam12: I've never noticed docker going noticeably slower than the host system...
<adam12> lmat: What host OS?
<lmat> adam12: find app/assets | wc -l; shows 576.
<lmat> adam12: GNU/Linux.
<adam12> lmat: I'm not a big Docker user.
<adam12> lmat: Ah. So Linux + Docker?
<lmat> adam12: yes.
<lmat> adam12: Host is arch linux, guest is ubuntu I think (the default ruby image).
<adam12> lmat: Shouldnt' be the issue then, because Linux supports bind mounts so there's no CIFS/NFS in between.
<lmat> adam12: Exactly. Shared kernel and everything.
<adam12> lmat: I'm not sure tbh. I've never seen asset_path slow enough to care about. Sprockets/Sass-ruby can be slow, but I've only noticed it on 10,000 lines of CSS.
<lmat> du app/assets -sh; says 19M...
<adam12> lmat: My usual suspects are anything inside the Gemfile. Anything that might adjust asset pipeline somehow.
<lmat> adam12: Are the versions there reasonable?
<adam12> lmat: I don't follow them close enough to know.
<adam12> lmat: Inside the container, do you have the node binary? `which node`
ellcs1 has joined #ruby
<lmat> yes.
duderonomy has joined #ruby
mossplix has joined #ruby
<lmat> which node npm; returns reasonable result.
<lmat> node is at v10.18.1
markopasha has quit [Read error: Connection reset by peer]
vondruch_ has joined #ruby
<lmat> adam12: I'm not sure that I *don't* have 10,000 lines of CSS to process...
<adam12> lmat: Well you have bootstrap / et all
<adam12> lmat: Shot in the dark, but maybe try swapping sass-rails in your gemfile for sassc-rails
<lmat> Does it compile all .css, or only .sass or so?
<lmat> sure!
<adam12> lmat: Version might change so leave it off.
<adam12> lmat: It will take .css files and concat them if there's a Sass directive to include.
<lmat> okay.
troulouliou_div2 has joined #ruby
<lmat> sassc 2.2.1 is what it's chosen I think.
vondruch has quit [Ping timeout: 268 seconds]
vondruch_ is now known as vondruch
akemhp_ is now known as akem
<lmat> adam12: That fixed it.
* lmat breaks down crying
<lmat> Finished in 8 seconds.
<adam12> Trippy.
<lmat> in sassc, "c" means "compiled"? or "C" the language?
<adam12> lmat: Yeah. It's bindings against libsass
<lmat> sass-rails is in ruby, sassc-rails is in C?
<adam12> lmat: The original Sass was written in Ruby. It was known for performance problems at a certain stage (ala 10,000 lines of CSS)
* lmat cries more uglier
<adam12> lmat: They rewrote it in C and called it libsass. Then sassc-rails are just bindings over it.
<lmat> Regarding "The process is inherently slow. For example, compiling Sass file to CSS requires reading the file in, which involves expensive hard disk reads."
<lmat> I was instantly thinking of some C++ I've written. I've never had performance problems there :-) I haven't written terribly intensive programs, but I do have an application that reads the entire hebrew bible (in XML), gathers statistics like word count, etc. Nothing I did ever took more than... hundredth of a second?
<adam12> It sounds like boilerplate SO answer prelude.
<lmat> adam12: ^_^
<lmat> Oh yeah, I wrote a generals bot... http://generals.io that sometimes took up to a tenth of a millisecond to perform a bunch of A* searches and AI simulations and such ^_^
<lmat> I mean a tenth of a second.
<lmat> adam12: I'm very hopeful that sassc will be my silver bullet. I'll continue working on that today.
<adam12> lmat: Good luck!
<lmat> adam12: Where do I send the cheque? ^_^
<adam12> lmat: O_O
ttoocs has quit [Ping timeout: 265 seconds]
wallace_mu has quit []
antizeus has quit [Ping timeout: 268 seconds]
Helenah has quit [Ping timeout: 265 seconds]
rippa has joined #ruby
vondruch has quit [Quit: vondruch]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
mossplix has quit [Remote host closed the connection]
Jonopoly has quit [Quit: WeeChat 2.5]
sarink has joined #ruby
mossplix has joined #ruby
DaRock has quit [Ping timeout: 272 seconds]
Fernando-Basso has joined #ruby
sdu has quit [Remote host closed the connection]
Fernando-Basso has quit [Excess Flood]
Fernando-Basso has joined #ruby
wallace_mu has joined #ruby
fercell has quit [Quit: WeeChat 2.7]
Fernando-Basso has quit [Read error: Connection reset by peer]
chalkmonster has joined #ruby
cisco has joined #ruby
alfiemax has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
ellcs1 has quit [Ping timeout: 265 seconds]
ellcs1 has joined #ruby
phaul_ has quit [Ping timeout: 265 seconds]
cthu| has joined #ruby
phaul_ has joined #ruby
SeepingN has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
royal_screwup21 has joined #ruby
ldepandis has joined #ruby
<brool> to me
drincruz has quit [Quit: WeeChat 2.6]
royal_screwup21 has quit [Remote host closed the connection]
<al2o3-cr> to you
tdy has joined #ruby
<phaul_> hi, anybody has the link to the obfuscated contest codes? The one that has the spiral quine?
fishOutOfWater has joined #ruby
fishOutOfWater has quit [Remote host closed the connection]
howdoi has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leftylink> probably looking for TRICK will get it
x0n has quit [Ping timeout: 265 seconds]
<lucasb> you can see it in action here: https://youtu.be/TB-nmGG6uu0?t=2702
<phaul_> ty
<al2o3-cr> that guy is very clever.
<al2o3-cr> phaul_: you planning on making a quine of your own?
alfiemax_ has joined #ruby
<phaul_> no, I just wanted to make my college amazed. He was ;)
<phaul_> I mean colleague
alfiemax has quit [Ping timeout: 272 seconds]
<al2o3-cr> ah, yeah, i don't think mame is human tbh ;P
<phaul_> highly unlikely :)
<al2o3-cr> phaul_: i wouldn't be so sure ;)
bok has joined #ruby
<al2o3-cr> it's great to see this again ;)
mikecmpbll has quit [Quit: inabit. zz.]
davispuh has joined #ruby
AndyAndyBoBandy has joined #ruby
voker57 has quit [Remote host closed the connection]
racketerer has quit [Ping timeout: 260 seconds]
<AndyAndyBoBandy> Hello! I'm not a ruby dev, but use some ruby cli tools, and am wondering if there's a gem management tool for 'apps' (things you want to run, rather than import) that puts each one with its gem dependencies in an isolated gem-house. And for bonus points symlinks to ~/.local/bin or similar. Like the tool for python 'pipx' -- thanks for any help!
voker57 has joined #ruby
<havenwood> AndyAndyBoBandy: Folk often build gems locally. You can install into "gemsets" or that sort of thing but RubyGems supports just installing them alongside your regular gems and it *just work*.
<AndyAndyBoBandy> havenwood: thanks. gemsets is an RVM-specific thing?
<havenwood> AndyAndyBoBandy: It is, but it's really unnecessary these days. There are alternative tools like gem_home, but I find no need for them: https://github.com/postmodern/gem_home#readme
alfiemax has joined #ruby
<AndyAndyBoBandy> I don't have any "regular gems" I just like the organization of each installed ruby app isolated, since there's no guarantee different gems won't have conflicting requirements
<havenwood> AndyAndyBoBandy: You can just install your custom gems, either locally or run your own gem server, and they won't conflict. Ruby's dependency resolving works well and many versions of the same gem can be installed side by side without conflict.
clemens3 has quit [Quit: WeeChat 2.1]
<havenwood> AndyAndyBoBandy: For example, at work we have a gem server so you can install our custom gems or ones from RubyGems transparently without caring.
<havenwood> AndyAndyBoBandy: RubyGems has the capability built in and it works well.
ellcs1 has quit [Quit: Leaving.]
ellcs1 has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
<havenwood> AndyAndyBoBandy: I'd recommend trying just installing your gems without any special setup and not worrying about it further.
<AndyAndyBoBandy> Thank you, ok
<havenwood> AndyAndyBoBandy: If you want to install them somewhere distinct, you certainly can.
ellcs1 has quit [Client Quit]
<havenwood> But I don't bother
ellcs1 has joined #ruby
<ellcs1> as
<havenwood> No prob, any time
ellcs1 has quit [Client Quit]
alfiemax_ has quit [Ping timeout: 268 seconds]
cisco has quit [Ping timeout: 265 seconds]
<al2o3-cr> havenwood: is pry being maintained anymore?
<havenwood> al2o3-cr: kyrylo maintains it these days.
<havenwood> al2o3-cr: i did a PR for 2.7 to ruby-doc, and kyrylo merged it
ellcs1 has joined #ruby
<havenwood> al2o3-cr: he's not moving super fast but did merge stuff for 2.7. I think he needs to cut a release.
<al2o3-cr> yeah, i seen that. probably busy then
kinell has joined #ruby
<al2o3-cr> havenwood: me too
<havenwood> al2o3-cr: gem install specific_install && gem specific_install https://github.com/pry/pry.git
JamesB192 has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
<havenwood> (it works on trunk last i tried)
sarink has quit [Remote host closed the connection]
<kinell> my oh my what have we here? fresh cunt for MISTER björn kinell
<al2o3-cr> will trye now
<al2o3-cr> thanks havenwood
gix has joined #ruby
<kinell> LOOK AT ME, i enjoy being watched
<kinell> visit me at tibastvägen 4 örebro
<havenwood> !troll kinell
kinell was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
<al2o3-cr> havenwood: ah, perfect, thanks pal
<havenwood> al2o3-cr: for pry-doc: gem specific_install https://github.com/pry/pry-doc.git
<havenwood> al2o3-cr: yw!
<al2o3-cr> havenwood: brilliant, thanks again
<al2o3-cr> havenwood: magic! ;P
pothibo has joined #ruby
mossplix has quit [Remote host closed the connection]
<al2o3-cr> why have i never knew about 'specific_install'
* al2o3-cr hangs head in shame
<pothibo> Hello :) We're having a memory issue in one of our code path, and I'm trying to locate it. I did a ObjectSpace.dump_all() call and I'm currently trying to load, in the same instance, the object at one of the address using Object._id2ref() but for some reason all the address I'm using are out of range. Is there soemthing I need to do to those
<pothibo> address to make them work with id2ref?
ewanchic has joined #ruby
MrCrackPot has quit [Quit: Leaving]
sarink has joined #ruby
alfiemax has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
phaul_ has quit [Ping timeout: 265 seconds]
<al2o3-cr> pothibo: i wouldn't rely on ObjectSpace#dump_all
wildtrees has joined #ruby
MrCrackPot has joined #ruby
<al2o3-cr> but anyway, passing memory reported by ObjectSpace#dump_all to Object._id2ref requies bit shifting right by 1
MrCrackPot has quit [Remote host closed the connection]
<al2o3-cr> *ObjectSpace._id2ref
alfiemax has joined #ruby
xco has joined #ruby
<al2o3-cr> uh, something must of changed
Ai9zO5AP has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
mossplix has joined #ruby
sarink has quit [Ping timeout: 240 seconds]
AndyAndyBoBandy has quit [Quit: HUMAN DESTROYED]
robscomputer has joined #ruby
mikecmpbll has joined #ruby
<pothibo> al2o3-cr: I did try that and it didn't work :( I guess this is an arcane part of the code that isn't really used by ruby dev
<hramrach> hello
<hramrach> how do you debug #9 test_autoload.rb:54:in `<top (required)>': wrong argument type Class (expected Array) [ruby-core:21696]
<al2o3-cr> pothibo: use fiddle
<al2o3-cr> &>> require 'fiddle'; require 'objspace'; a = [1,2,3]; ObjectSpace._id2ref(a.object_id << 1)
<rubydoc> stderr: -e:4:in `_id2ref': "120" is not id value (RangeError)... check link for more (https://carc.in/#/r/8i98)
<al2o3-cr> require 'fiddle'; require 'objspace'; a = [1,2,3]; Fiddle::Pointer[Fiddle.dlwrap(a)].to_value
<al2o3-cr> &>> require 'fiddle'; require 'objspace'; a = [1,2,3]; Fiddle::Pointer[Fiddle.dlwrap(a)].to_value
<rubydoc> # => [1, 2, 3] (https://carc.in/#/r/8i99)
<al2o3-cr> &>> ['', [], {} Object.new].map &:__id__
<rubydoc> stderr: -e:4: syntax error, unexpected constant, expecting ']'... check link for more (https://carc.in/#/r/8i9d)
<al2o3-cr> &>> ['', [], {}, Object.new].map &:__id__
<rubydoc> # => [60, 80, 100, 120] (https://carc.in/#/r/8i9e)
mossplix has quit [Remote host closed the connection]
<al2o3-cr> looks like they're immediate objects now huh
ldepandis has joined #ruby
<al2o3-cr> i don't keep up with ruby as much as i should do :(
<pothibo> object_id is a direct map. I believe
<pothibo> &>> require 'fiddle'; require 'objspace'; a = [1,2,3]; ObjectSpace._id2ref(a.object_id)
<rubydoc> # => [1, 2, 3] (https://carc.in/#/r/8i9g)
<ewanchic> Hey, good day! So, I've got some general questions. 1st, I'm wondering if I should use github for my sourcecode, gitlab, or something else completely. Since MS purchased github, I see there is a small movement to migrate to gitlab. What do you all believe?
<al2o3-cr> &>> require 'json'; require 'fiddle'; require 'objspace'; Fiddle::Pointer[JSON.parse(ObjectSpace.dump([1,2,3]))['address'].hex].to_value
<rubydoc> # => [1, 2, 3] (https://carc.in/#/r/8i9h)
<pothibo> al2o3-cr oh wow that's cool! thanks
dionysus69 has joined #ruby
<al2o3-cr> &26>> [].object_id
<rubydoc> # => 47010402435080 (https://carc.in/#/r/8i9i)
<al2o3-cr> &>> [].object_id
<rubydoc> # => 60 (https://carc.in/#/r/8i9j)
<al2o3-cr> hmm...
<havenwood> al2o3-cr: That surprised the heck out of me when I first checked object IDs in 2.7.
<havenwood> &>> Object.new.object_id
<rubydoc> # => 60 (https://carc.in/#/r/8i9k)
<havenwood> al2o3-cr: no more `object_id << 1`
<al2o3-cr> havenwood: seems so :(
<havenwood> al2o3-cr: I have no clue as to the why.
mikecmpbll has quit [Quit: inabit. zz.]
<havenwood> ewanchic: I'm so accustomed to GitHub, I find anything else frustrating. >.> A few beta features are really improving browsing code.
<al2o3-cr> havenwood: i've got an inkling
sarink has joined #ruby
bok has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cvz has joined #ruby
xco has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
conta1 has joined #ruby
lxsameer has quit [Ping timeout: 265 seconds]
<SegFaultAX> TIL about the proposed deprecation of object_id
<adam12> havenwood: With Github Actions supporting self-hosted runners I might actually switch back from GH.
<adam12> havenwood: s/GH/GL/
<cvz> So I have a hash looking like {:name => "testname", :value => "testval"} and when I print it it looks like this. However when I pass it to another function and print it th ere, it looks like this {"name" => "testname", "value" => "testval"} what makes that happen?
<adam12> cvz: Possibly a few different things. First off, you're 100% sure it's a Hash and not something from ActiveSupport?
<SegFaultAX> Something calling #stringify_keys (or similar) on your hash, perhaps.
heth has quit [Read error: Connection reset by peer]
<SegFaultAX> Yea or a HashWithIndifferentAccess or whatever it's called.
<cvz> adam12: I am generating it myself in a unit test. test_val = {:name => "testname", :value => "testval"}
<adam12> cvz: And the method you're calling, you're looking at the object immediately inside it?
pothibo has quit [Remote host closed the connection]
<cvz> Its possible that I am not. It is a Sidekiq thing, after declaring it I run "worker.perform_async test_val"
spacesuitdiver has joined #ruby
<adam12> cvz: Ah. Sidekiq marshalls to JSON I believe when going from app -> worker
<cvz> and I output the variable directly at the top of the perform action, but I guess its possible its been somewhere else before it gets there
<SegFaultAX> Oh. Then it's probably the round trip across serialization
<adam12> cvz: When marshalled back, symbols come back as strings.
<cvz> ah I see. Okay so I have to come up with some other way to test this then
<adam12> cvz: Just create test_val with string keys.
<cvz> In the function I am testing, it gets symbols from the live system
<adam12> cvz: The sidekiq job gets symbols?
lxsameer has joined #ruby
conta1 has quit [Quit: conta1]
mossplix has joined #ruby
<cvz> I am getting a list of Workers from Sidekiq::Statistic, and the output looks like this
<ruby[bot]> cvz: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<cvz> So the function parses that output and gets some of the values, so in my test, since I have no workers, I figured I could supply a dummy output for it to parse
<adam12> cvz: I see. I'd always just convert the keys to symbols before working with them, if that's the case.
<adam12> cvz: use transform_keys for non-Rails or symbolize_keys! if you're on Rails.
<SegFaultAX> You're coupling yourself to the statistics API of sidekiq?
ellcs1 has quit [Ping timeout: 265 seconds]
<cvz> symbolize_keys! seems to work, thanks!
heth has joined #ruby
vcavallo_ has quit [Quit: ZNC - https://znc.in]
<ewanchic> Does anyone use RSS anymore? Is it still useful for Ruby gems? is so, what would I use it for?
<ewanchic> oh..I guess I'm seeing that Rubygems.org autogenerated the atom for me. I feel foolish. I guess I don't need to worry about this then.
<al2o3-cr> ewanchic: don't feel foolish, it's a valid question. :)
<al2o3-cr> SegFaultAX: good bags.
<al2o3-cr> why is this not evaluatin in pry: %w(a b c) * ?,
<al2o3-cr> *evaluating
<leftylink> weird.
ellcs1 has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
mossplix has quit [Remote host closed the connection]
<adam12> ewanchic: RSS for blog? If it's Ruby related it's probably easier to get on one of the planet sites like rubyland.news.
<adam12> ewanchic: (with RSS support vs not having it)
<adam12> evdubs: For me, RSS kinda died with Google Reader but I still use RSS a lot with IFTTT
<adam12> err, ^ ewanchic
<al2o3-cr> &>> require 'json'; require 'objspace'; JSON.parse(ObjectSpace.dump(self), symbolize_names: 0).then { |h| case h; in address:; address.hex end }
<rubydoc> # => 94361142467960 stderr: -e:4: warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby! (https://carc.in/#/r/8i9v)
fphilipe has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mossplix has joined #ruby
<ewanchic> adam12: I'm trying to start off on a good foot with a new Gem I've been developing; to make it public. Under the 'Links' section for the gem (Rubygems.org) there is a link for RSS. Just wondering if I needed to keep up on this or not. But, it appears when I push a gem up, the .atom file is autogenerated for me. So maybe I don't need to worry about this at all. However, I did not know anything about rubyland.news. Thank you!
fphilipe_ has quit [Ping timeout: 265 seconds]
<adam12> ewanchic: Ah nope. That's handled by Rubygems. You can add more Links through Gem metadata if you want, but Rubygems handles some for you.
<adam12> ewanchic: I like Rubyflow too, if you're looking for news sites.
<ewanchic> adam12: Really? I didn't know I could add more links. That's cool. I will definitely look into that.
timmow_ has joined #ruby
<hramrach> nevermind, I did not initialize a variable so it was NULL instead of Qnil
<hramrach> and I did get nice segfault when running outside of the ruby testsuite
<ewanchic> adam12: I'm debating on whether to use gitlab/github. Maybe I should use both (maybe thats overkill). My mind was a bit swiss-cheesed last night. It's getting better, but I just need to start and do a little everyday.
dan64- has quit [Quit: ZNC - http://znc.in]
<ewanchic> adam12: so the custom links would help with that.
dan64 has joined #ruby
cisco has joined #ruby
<adam12> ewanchic: Github is king of OSS right now (good or bad). I hardly ever look at OSS on Gitlab outside of a few niche pieces. I don't find Gitlab spent too much time on discoverability.
cisco is now known as Guest96095
<adam12> ewanchic: I use Gitlab for personal projects because I could bring my own CI runners.
<hramrach> also if either provides git mirroring you can get a backup for free
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
<adam12> Gitlab supports easy Github mirroring. It will also interact with the Github API for CI results if you're using Gitlab's CI.
timmow has quit [*.net *.split]
alexherbo28 has joined #ruby
<hramrach> repo.or.cz provides generic git mirroring
<ewanchic> Mirroring is another cool thing I didn't know they had. This would be for public use, both ways. I have my own personal server that I run a copy of gitlab from, so I'm covered for the personal stuff.
shah^ has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 265 seconds]
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo28 is now known as alexherbo2
shah^ has joined #ruby
alex`` has joined #ruby
Guest96095 has quit [Ping timeout: 240 seconds]
cisco has joined #ruby
cisco is now known as Guest32082
s3nd1v0g1us has joined #ruby
ur5us has joined #ruby
brool has quit [Quit: WeeChat 2.7]
mossplix has quit [Remote host closed the connection]
Guest32082 has quit [Ping timeout: 265 seconds]
rat_melter has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
rat_melter has left #ruby ["WeeChat 2.7"]
markopasha has joined #ruby
e21 has joined #ruby
falconfox has joined #ruby
wald0 has joined #ruby
cisco_ has joined #ruby
wald0 has quit [Read error: Connection reset by peer]
im0nde has joined #ruby
wald0 has joined #ruby
im0nde_ has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
sarink has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 268 seconds]
markopasha has quit [Read error: Connection reset by peer]
mossplix has joined #ruby
cd has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
cisco_ has quit [Ping timeout: 265 seconds]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
wald0 has quit [Read error: Connection reset by peer]
cisco_ has joined #ruby
wald0 has joined #ruby
e21 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wald0 has quit [Read error: Connection reset by peer]
cisco_ has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
wald0 has quit [Client Quit]
e21 has joined #ruby
greengriminal has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
ratah has quit []
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
r3m has quit [Quit: WeeChat 2.8-dev]
stooj has quit [Quit: ZNC 1.7.5 - https://znc.in]
stooj has joined #ruby
mossplix has quit [Remote host closed the connection]
r3m has joined #ruby
wildtrees has quit [Remote host closed the connection]
s3nd1v0g1us has quit [Ping timeout: 268 seconds]
wildtrees has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has joined #ruby
e21 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gray_-_wolf has joined #ruby
Helenah has joined #ruby
mossplix has joined #ruby
e21 has joined #ruby
cisco has joined #ruby
cisco is now known as Guest13850
fig-le-deunch has joined #ruby
ctOS has quit [Quit: Connection closed for inactivity]
mossplix has quit [Remote host closed the connection]
gray_-_wolf has quit [Quit: WeeChat 2.7]
mossplix has joined #ruby
markopasha has joined #ruby
GodFather has joined #ruby
royal_screwup21 has joined #ruby
cliluw has joined #ruby
xco has joined #ruby
markopasha has quit [Read error: Connection reset by peer]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
markopasha has joined #ruby
galaxie has quit [Remote host closed the connection]
wildtrees has quit [Remote host closed the connection]
galaxie has joined #ruby
wildtrees has joined #ruby
Helenah has quit [Ping timeout: 268 seconds]
Inoperable has quit [Quit: All your buffer are belong to us!]
hiroaki has quit [Ping timeout: 265 seconds]
falconfox has quit [Ping timeout: 240 seconds]
e21 has quit [Quit: Textual IRC Client: www.textualapp.com]
fig-le-deunch has quit [Quit: Konversation terminated!]
Helenah has joined #ruby
fig-le-deunch has joined #ruby
Guest13850 has quit [Ping timeout: 265 seconds]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
spacesuitdiver has joined #ruby
wallace_mu has quit [Ping timeout: 265 seconds]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
<howdoi> where in production did you last use `<=>` ?
gnufr33d0m has joined #ruby
<leftylink> I see that the responses from "2020-01-14 19:43:33 < howdoi> when was the last time you used the space ship operator in production code?" were not good enough... I will see if I can contribute a response as well and if it can be helpful
<howdoi> leftylink: wow! ok, so I had asked it here, I was wondering were it was, do you have logs handy? [I recall few folks has suggested about Date/Time related use cases]
<leftylink> the /topic has logs handy.
<havenwood> howdoi: You define it in your own class when you include Comparable.
tryhard211 has joined #ruby
mossplix_ has joined #ruby
<havenwood> howdoi: I use it whenever a custom class can be compared via >, >=, <, <=, ==, !=, and friends.
<howdoi> havenwood: but very less of occurrences in production code, right?
<adam12> tbf, I don't think I saw the first time it was asked.
<havenwood> howdoi: I use it in production code.
<adam12> howdoi: It's implemented in a lot of places you're using it and not aware of it.
<havenwood> howdoi: It doesn't come up often if you're not writing your own classes.
<leftylink> as for where I last used it, I had a Struct (let's pretend I called it Widget), I needed an array of Widgets sorted
<howdoi> adam12: curious to collect few of them or to derive a pattern
tryhard21 has quit [Ping timeout: 260 seconds]
<adam12> howdoi: But unless you're going out of your way to sort/collect specific classes of your own creation, you likely wouldn't see it.
<havenwood> howdoi: You don't use it directly, but you define it fairly often.
nowhere_man has joined #ruby
<havenwood> (If you make your own classes and instances are comparable.)
spacesuitdiver has quit [Quit: Textual IRC Client: www.textualapp.com]
mossplix has quit [Ping timeout: 265 seconds]
<howdoi> nods, if we were to categorize a set of problems where this is applicable, we can say it for ________
<havenwood> howdoi: making your own class where instances of that class are compared.
<havenwood> is this homework?
<phaul> as a non production case, that's merely a code foo, I would like to point out the rather cryptic a = 1; b = 2; [:equal, :greater, :less][a <=> b] trick
<howdoi> generic monads?
<adam12> howdoi: Only once that I'm aware of in the last few years. And I used it directly (not implemented).
<howdoi> havenwood: no part of research for a language spec
<howdoi> phaul: most of the test cases have them
shah^ has quit [Ping timeout: 268 seconds]
<havenwood> howdoi: Here's an example (apparently for leftylink?): https://gist.github.com/havenwood/ae64b281cb05d4aa15799e5c354252d8
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
shah^ has joined #ruby
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
shah^ has joined #ruby
<howdoi> havenwood: super cool
shah^ has quit [Max SendQ exceeded]
<leftylink> ah yes. apparently it was because I lamented that someone might write an obvious bug
<leftylink> &>> ("14:00".."23:00").cover?("1:33")
<rubydoc> # => true (https://carc.in/#/r/8ic4)
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
<leftylink> and then there would be "a gnashing of teeth and a wailing of agony"
<leftylink> as they had done it wrong
<havenwood> ah, I'm a sucker for gnashing of teeth bugs
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
<leftylink> (if only they remembered to put the leading zero)
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
<howdoi> Semver versions is a good use case?
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
<howdoi> how does ruby compare gem versions?
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
<havenwood> howdoi: Yup, Ruby uses <=> for that too.
lxsameer has quit [Ping timeout: 260 seconds]
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
<howdoi> So, version, date, time compression
<havenwood> &>> Gem::Version.new('3.1') > Gem::Version.new('3.10')
<rubydoc> # => false (https://carc.in/#/r/8ic5)
<leftylink> is it relevant to mention the analogous concept in other languages, or must this only be restricted to Ruby... if other languages are also relevant to the discussion, the analogous for a different language is https://doc.rust-lang.org/std/cmp/trait.Ord.html
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
twobitsprite has joined #ruby
<howdoi> leftylink: cool, C# has something similar too
wildtrees has quit [Ping timeout: 265 seconds]
<havenwood> howdoi: That's ^ where RubyGems defined #<=> for Gem versions.
<howdoi> phaul: cool!
<howdoi> havenwood: thanks!
<howdoi> :-)
<howdoi> looks, like many langs have it, but there is no particular name or a solid name for this pattern
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
shah^ has joined #ruby
wildtrees has joined #ruby
<phaul> pattern in many OO languages are undesrstood as mixin. You define one method and the mixin included defines a bunch of convinience methods for you
<phaul> hence the name mixin, as you mix it into to the including class
wildtrees has quit [Max SendQ exceeded]
<havenwood> The three-way comparison operator is in a fair number of langs as a spaceship.
<havenwood> "Perl, Ruby, Apache Groovy, PHP, Eclipse Ceylon, and C++" probably isn't comprehensive either.
markopasha has quit [Quit: Leaving]
<uplime> what is wikiwand? jsut an alternative reader for wikipedia?
<havenwood> uplime: Apparently full of adverts :(
<uplime> oh :(
<twobitsprite> does ruby have implied variables like perl? I.e, can you just do "s/regex/replace/" with an implied $_ ?
turbo_choo has quit [Remote host closed the connection]
<phaul> module Comparable; %i[< > <= >= == !=].each { |name| define_method(name) { |other| (self <=> other).send(name, 0) } }; end
<havenwood> twobitsprite: $_ is "The last input line of string by gets or readline. Thread and scope local."
Exuma has joined #ruby
<havenwood> twobitsprite: Ruby adopted a lot of Perlisms.
<Eiam> x = _ is one of my most used things in pry lol
turbo_choo has joined #ruby
<havenwood> phaul: #!> stack level too deep (SystemStackError)
<Eiam> "yeah, whatever that was, hold onto it please!"
<phaul> oh. then I messed it up. something along those lines :)
<twobitsprite> havenwood: right, which is why I'm wonding how much they're like perlisms... i.e, can I do something like: while gets; s/foo/bar/; puts; end ?
<howdoi> havenwood: ah ha
<twobitsprite> or do I have to explicitly do $_.gsub(...)?
VlanX has joined #ruby
Helenah has quit [Read error: Connection reset by peer]
<VlanX> Hello guys. I have this error after performing a bundle update: https://hastebin.com/oliliqagod.sql
<VlanX> I have not much luck searching on google
Helenah has joined #ruby
<havenwood> twobitsprite: no s/// syntax but the -n and -p flags shortenn things.
<havenwood> twobitsprite: -n. assume 'while gets(); ... end' loop around your script
<havenwood> twobitsprite: -p. assume loop like -n but print line also like sed
twobitsprite has quit [Ping timeout: 265 seconds]
ellcs1 has quit [Quit: Leaving.]
mossplix_ has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 265 seconds]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> ruby -p -e "gsub /[aeiou]/i, 'x'"
<havenwood> twob, ah, they left. But that ^ works.
dionysus69 has quit [Ping timeout: 265 seconds]
mossplix has joined #ruby
phaul has joined #ruby
mossplix has quit [Ping timeout: 268 seconds]