havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.0, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Al2O3 has quit [Quit: I'm quitting, thanks for all the sharks.]
oxfuxxx has joined #ruby
ouestbillie is now known as desproges
desproges has quit [Quit: leaving]
ouestbillie has joined #ruby
<LACampbe1> is rubocop just a style thing, or does it actually point out potential problems?
nakilon has quit [Remote host closed the connection]
perrierjouet has quit [Quit: WeeChat 3.4]
perrierjouet has joined #ruby
<havenwood> LACampbe1: both
<LACampbe1> ah, like eslint. god I find the default settings tiresome, but some things are useful.
<LACampbe1> a lot of "don't use the letter 'v' in a constant during a full moon" but a handful of useful things that prevent errors
gproto23 has quit [Ping timeout: 240 seconds]
victori has joined #ruby
Rounin has quit [Ping timeout: 240 seconds]
oxfuxxx has quit [Ping timeout: 240 seconds]
nakilon has joined #ruby
ox1eef has quit [Quit: Leaving]
ox1eef has joined #ruby
ox1eef has quit [Changing host]
ox1eef has joined #ruby
ox1eef has quit [Client Quit]
ox1eef has joined #ruby
fredlinhares has joined #ruby
fef has joined #ruby
bluedust has joined #ruby
fredlinhares has quit [Read error: Connection reset by peer]
fredlinhares has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
fredlinhares has quit [Quit: WeeChat 3.4]
KramerC has left #ruby [#ruby]
perrierjouet has quit [Quit: WeeChat 3.4]
perrierjouet has joined #ruby
perrierjouet has quit [Ping timeout: 256 seconds]
perrierjouet has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
weaksauce has joined #ruby
oxfuxxx has joined #ruby
oxfuxxx has quit [Client Quit]
perrierjouet has quit [Remote host closed the connection]
perrierjouet has joined #ruby
perrierjouet has quit [Ping timeout: 256 seconds]
easbarba has left #ruby [ERC (IRC client for Emacs 27.1)]
bluedust has joined #ruby
polishdub has joined #ruby
llua` is now known as llua
perrierjouet has joined #ruby
fef has quit [Ping timeout: 276 seconds]
polishdub has quit [Quit: leaving]
oxfuxxx has joined #ruby
reset has quit [Quit: reset]
emcb5 has joined #ruby
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 256 seconds]
bluedust_ has quit [Remote host closed the connection]
bluedust has joined #ruby
hanzo has quit [Quit: Connection closed for inactivity]
seabre has quit [Quit: ZNC 1.8.2 - https://znc.in]
teclator has joined #ruby
seabre has joined #ruby
bluedust has quit [Remote host closed the connection]
bluedust has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
bluedust has joined #ruby
bluedust has quit [Remote host closed the connection]
analogsalad has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
_ht has joined #ruby
fercell has joined #ruby
Rounin has joined #ruby
fef has joined #ruby
oxfuxxx has joined #ruby
szkl has joined #ruby
oxfuxxx has quit [Quit: Raccoon's not another IRC transgenre wannabe who can't fap at the dead american dream, fhackerz]
robotmay has quit [Quit: Be excellent to each other]
robotmay has joined #ruby
xyhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #ruby
robotmay has quit [Quit: Be excellent to each other]
robotmay has joined #ruby
fef has quit [Ping timeout: 276 seconds]
perrierjouet has quit [Remote host closed the connection]
___nick___ has joined #ruby
bluedust has joined #ruby
perrierjouet has joined #ruby
lim has joined #ruby
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
gproto23 has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
lim has quit [Remote host closed the connection]
lim has joined #ruby
lim has quit [Remote host closed the connection]
perrierjouet has quit [Quit: WeeChat 3.4]
shokohsc has quit [Quit: The Lounge - https://thelounge.chat]
lim has joined #ruby
lim has quit [Remote host closed the connection]
perrierjouet has joined #ruby
bluedust has joined #ruby
bluedust_ has quit [Ping timeout: 240 seconds]
sagax has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
eddof13 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leftylink> we got Hash#to_proc, wonder why Array#to_proc not added aswell? but it appears people ahve differing ideas about what it should do. my thought was that it should be like Hash#to_proc, but it seems others think it should be as if you did Hash#dig
<leftylink> so I guess these differing ideas might be why it hasn't been added. to avoid that confusion
<leftylink> pandabot: rb def (a=%i(a b c)).to_proc; ->i { self[i] } end; [0, 1, 2].map(&a)
<pandabot> [:a, :b, :c] - https://carc.in/#/r/cjns
<leftylink> that's what I had thought I'd want it to do
<leftylink> but instead, others think it should be Hash#dig, so instead the think it should be
<leftylink> pandabot: rb def (a=%i(a b)).to_proc; ->h { h.dig(*self) } end; [{a: {b: 1}}, {a: {b: 2}}].map(&a)
<pandabot> [1, 2] - https://carc.in/#/r/cjnt
<leftylink> I see, and yet others think it should invoke send
<leftylink> pandabot: rb def (a=[:+, '-x']).to_proc; ->x { x.send(*self) } end; %w(a b c).map(&a)
<pandabot> ["a-x", "b-x", "c-x"] - https://carc.in/#/r/cjnu
<leftylink> and still yet others think it should invoke reduce send
eddof13 has joined #ruby
samgranieri has joined #ruby
<leftylink> pandabot: rb def (a=[[:delete, ?-], :succ, :to_i, :digits, :reverse]).to_proc; ->x { reduce(x) { |a,f| a.send(*Arr
<pandabot> stderr: -e:3: syntax error, unexpected `end', expecting ')' - exit 1 - https://carc.in/#/r/cjo1
<leftylink> pandabot: rb def (a=[[:delete, ?-], :succ, :to_i, :digits, :reverse]).to_proc; ->x { reduce(x) { |a,f| a.send(*Array(f))}} end; %w(1-2-3 4-5-6 7-8-9).map(&a)
<pandabot> [[1, 2, 4], [4, 5, 7], [7, 9, 0]] - https://carc.in/#/r/cjo2
<leftylink> I see with so many people wanting different things, perhaps they thought it unwise to add Array#to_proc
<leftylink> whereas I guess with Hash#to_proc they thought it pretty unambiguous what you could want with it?
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
<Hess> would you care giving me pointers so I can understand this syntax you're using with `def`, leftylink? Thank you
hanzo has joined #ruby
bluedust has quit [Remote host closed the connection]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fef has joined #ruby
samgranieri has quit [Ping timeout: 256 seconds]
samgranieri has joined #ruby
eddof13 has joined #ruby
bluedust has joined #ruby
<havenwood> Hess: It's a very confusing way to write it, heh. Think of it like:
<havenwood> def a()= [[:delete, ?-], :succ, :to_i, :digits, :reverse]
<havenwood> def a.to_proc()= ->(x) { reduce(x) { _1.send(*Array(_2)) } }
<havenwood> %w[1-2-3 4-5-6 7-8-9].map(&a)
<havenwood> Oh, and the `?-` is just the String `"-"`.
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> So you could simplify that line to just: a = [[:delete, "-"], :succ, :to_i, :digits, reverse]
<havenwood> And the rest still works.
<havenwood> Though I'd use `:-` just to be consistent.
<havenwood> def a()= [[:delete, :-], :succ, :to_i, :digits, :reverse]
<havenwood> Or the shorthand: %i[delete -]
<leftylink> actually I regret writing it the way I did. it put the important parts (the two different arrays) at opposite ends of the message
<leftylink> pandabot: rb module AryToProc refine Array do def to_proc; ->x { reduce(x) { |acc, f| acc.send(*Array(f)) } } end end end; using AryToProc; %w(1-2-3 4-5-6 7-8-9).map(&[[:delete, ?-], :succ, :to_i, :digits, :reverse])
<pandabot> [[1, 2, 4], [4, 5, 7], [7, 9, 0]] - https://carc.in/#/r/cjog
<leftylink> had I written it suh, the two arrays are right next to each other
<leftylink> so I should have done it that way in the first place
<leftylink> I regret this error
shokohsc has joined #ruby
Starfoxxes has quit [Ping timeout: 240 seconds]
Starfoxxes has joined #ruby
<Hess> oh great, thank you so much havenwood!
emcb5 has quit [Remote host closed the connection]
emcb5 has joined #ruby
emcb5 has quit [Remote host closed the connection]
emcb5 has joined #ruby
emcb5 has quit [Read error: Connection reset by peer]
emcb5 has joined #ruby
emcb5 has quit [Read error: Connection reset by peer]
emcb5 has joined #ruby
emcb5 has quit [Read error: Connection reset by peer]
CrazyEddy has quit [Ping timeout: 268 seconds]
reset has joined #ruby
fef has quit [Quit: Leaving]
CrazyEddy has joined #ruby
samgranieri has quit [Ping timeout: 256 seconds]
samgranieri has joined #ruby
fef has joined #ruby
eddof13 has joined #ruby
weyhmueller has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
samgranieri has quit [Quit: samgranieri]
samgranieri has joined #ruby
eddof13 has joined #ruby
cahoots has quit [Ping timeout: 268 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
lim has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lim has quit [Remote host closed the connection]
Guest62_ has joined #ruby
Guest62_ has quit [Client Quit]
taupiqueur has joined #ruby
dangerousdave has joined #ruby
<dangerousdave> hey everyone!
<dangerousdave> this is where you have all been hiding
<dangerousdave> been hanging out in freenode for days wondering where everyone went
<adam12> dangerousdave: lol. we gone.
<adam12> dangerousdave: was there many people over there?
<dangerousdave> 1 or 2 lol
<dangerousdave> adam12 when did everyone move?
<adam12> dangerousdave: About the time that freenode imploded.
<adam12> So I think it's been 4 ~ 5 months.
lunarkitty has joined #ruby
<dangerousdave> wo, i'm behind the times
<adam12> bbiab
m_antis has quit [Read error: Connection reset by peer]
m_antis has joined #ruby
michigan has joined #ruby
cahoots has joined #ruby
michigan has quit []
crankharder has joined #ruby
<crankharder> how do I enable yjit for something like resque or unicorn? -- neither of which are normally launched with `ruby` ? in my case I launch them with `bundle exec`. is there an env variable that I can pass?
eddof13 has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
dangerousdave has quit [Client Quit]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has joined #ruby
dangerousdave has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
lim has joined #ruby
crankharder has quit [Quit: leaving]
taupiqueur has quit [Ping timeout: 240 seconds]
lim has quit [Ping timeout: 256 seconds]
eddof13 has joined #ruby
bluedust has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
analogsalad has quit [Quit: bye]
<Vaevictus> hmm... anyone in here ever write code related to ics files/web calendars?
dangerousdave has joined #ruby
fef has quit [Ping timeout: 276 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
_ht has quit [Remote host closed the connection]
goldfish has joined #ruby
___nick___ has quit [Ping timeout: 256 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
oxfuxxx has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
<havenwood> crankharder: ruby --yjit -S unicorn
goldfish has quit [Ping timeout: 256 seconds]
<havenwood> Reminds me about strange looks I got from eves droppers at a Mexican restaurant when I was saying I wanted to see how God handled me killing *all* the Unicorns and if it wasn't a graceful response to consider Blue Pill.
<havenwood> Almost makes me glad systemd won. ;P
<weaksauce> haha
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fredlinhares has joined #ruby
dangerousdave has joined #ruby
lim has joined #ruby
ouestbillie is now known as vanDamme
bobdobbs has joined #ruby
vanDamme is now known as ouestbillie
<bobdobbs> Hi all. I'm trying to install this library by following the instructions on the homepage of it's project: https://ttytoolkit.org/
<bobdobbs> The instructions say to install the gem and then do 'teletype new app'. But after installing it, 'teletype new app' return "command not found"
<bobdobbs> I'm using rbenv on ubuntu 20.04
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
<LACampbe1> bobdobbs: do the irb, ruby etc actually run the version of ruby you installed with rbenv?
<LACampbe1> I'm wondering if the paths are set up in bash_profile or whatever
<bobdobbs> I'm assuming I'm running the version that I've installed with rbenv, cos I've uninstalled the system version of ruby
<bobdobbs> LACampbe1: I'm using zsh. I don't know anything about which path variables are supposed to be set up, or how they are supposed to be set up for gems to work
dangerousdave has quit [Client Quit]
<LACampbe1> well I mean you've got this running every time you open a shell, right?
<LACampbe1> 61 file "public/style.css" => "style.css" do |t| │eval "$(rbenv init - bash)"
<LACampbe1> ... sorry bad copy paste from tmux... the far right bit :)
fredlinhares has quit [Ping timeout: 240 seconds]
<bobdobbs> oh damn. If I open a new shell, neither 'ruby' nor 'irb' are available anymore.
fredlinhares has joined #ruby
<bobdobbs> looks like I've just completely messed up my ruby environment
<LACampbe1> ah so that's the issue. that command needs to be run every time you open a new shell
<bobdobbs> which command?
<LACampbe1> eval "$(rbenv init - bash)"
<LACampbe1> or in your case... something with zsh
<LACampbe1> can't help you there sorry but maybe the rbenv README has some clues
<bobdobbs> ah, ok. I'll try and figure out and impliment the zsh equivalent
bobdobbs has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lim has quit [Remote host closed the connection]
goldfish has joined #ruby
eddof13 has quit [Quit: Textual IRC Client: www.textualapp.com]
eddof13 has joined #ruby
gproto23 has quit [Read error: Connection reset by peer]
gproto23 has joined #ruby
BSaboia has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
fredlinhares has quit [Quit: WeeChat 3.4]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
eddof13 has joined #ruby
samgranieri has quit [Ping timeout: 256 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
goldfish has quit [Ping timeout: 240 seconds]
eddof13 has joined #ruby
kaivai has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]