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!
DTZUZU has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
brool has quit [Ping timeout: 258 seconds]
lxsameer has quit [Ping timeout: 258 seconds]
ensyde has joined #ruby
bvdw has quit [Remote host closed the connection]
bvdw has joined #ruby
DaRock has joined #ruby
Swyper has quit [Remote host closed the connection]
bvdw has quit [Remote host closed the connection]
Swyper has joined #ruby
dionysus69 has quit [Quit: dionysus69]
bvdw has joined #ruby
Swyper has quit [Remote host closed the connection]
brool has joined #ruby
Technodrome has joined #ruby
Arahael has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
turbo_choo has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
Swyper has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 248 seconds]
ellcs has joined #ruby
ensyde has quit [Ping timeout: 258 seconds]
bvdw has quit [Ping timeout: 268 seconds]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
subetei has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
itarato_ has quit [Quit: Konversation terminated!]
itarato_ has joined #ruby
DaRock has quit [Remote host closed the connection]
DaRock has joined #ruby
skyikot has joined #ruby
Cra2yZer0 has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
Cra2yZer0 has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
itarato_ has quit [Ping timeout: 268 seconds]
Swyper has quit [Remote host closed the connection]
cd has quit [Quit: cd]
itarato_ has joined #ruby
xall has joined #ruby
xall has quit [Client Quit]
Swyper has joined #ruby
crella133 has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
Swyper has quit [Remote host closed the connection]
crella133 has quit [Remote host closed the connection]
Swyper has joined #ruby
AJA4350 has quit [Quit: AJA4350]
Swyper has quit [Remote host closed the connection]
ciro has joined #ruby
<ciro> does anyone can tell me how .to_enum works when a block is given?
<ciro> (*can anyone)
Swyper has joined #ruby
Cra2yZer0 has quit [Ping timeout: 258 seconds]
Swyper has quit [Remote host closed the connection]
Cra2yZer0 has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
ciro has quit [Quit: WeeChat 2.6]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
itarato_ has quit [Ping timeout: 260 seconds]
<guzzlefry> Does Ruby have a way to set per-project dependencies?
gix has quit [Ping timeout: 265 seconds]
Cra2yZer0 has quit [Ping timeout: 258 seconds]
Cra2yZer0 has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
itarato_ has joined #ruby
vrih_ has joined #ruby
vrih has quit [Quit: ZNC 1.7.5 - https://znc.in]
kent\n has quit [Remote host closed the connection]
teclator has quit [Quit: No Ping reply in 180 seconds.]
kent\n has joined #ruby
teclator has joined #ruby
<mozzarella> guzzlefry: yes
baxterpowers has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
<baxterpowers> any favorite parts of the new 2.7.0 release? btw merry xmas everyone :)
<baweaver> pattern matching mostly
<baxterpowers> syntax could be a little terser for pattern matching IMO
<baweaver> how so?
<uplime> does the pattern matching do everything qo does?
<baxterpowers> little bit more like elixir's pattern matching
<baweaver> Most of it and a few more things
<baweaver> I've actually been working with them on the documentation for it among other things
<baweaver> They do have one-liner pattern matching as well
<uplime> nice
jenrzzz has joined #ruby
baxterpowers has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
itarato_ has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ruby
brool has quit [Ping timeout: 240 seconds]
itarato_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pixi_ has quit [Quit: Pixi_]
_whitelogger has joined #ruby
Xiti has joined #ruby
Xiti has joined #ruby
Xiti has quit [Changing host]
sphex has quit [Ping timeout: 240 seconds]
sphex has joined #ruby
s2013 has joined #ruby
DaRock has quit [Quit: No Ping reply in 180 seconds.]
DaRock has joined #ruby
baxterpowers has joined #ruby
phaul has joined #ruby
<baxterpowers> have an example of the one-liner pattern matching?
<baxterpowers> I mostly like to use pattern matching as a replacement for super long conditional logic
<baxterpowers> makes it very clean
chalkmonster has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
_whitelogger has joined #ruby
davispuh has joined #ruby
itarato_ has quit [Ping timeout: 268 seconds]
davispuh has quit [Ping timeout: 265 seconds]
chalkmonster has quit [Quit: WeeChat 2.7]
baxterpowers has quit []
_whitelogger has joined #ruby
chalkmonster has joined #ruby
_whitelogger has joined #ruby
chalkmonster has quit [Ping timeout: 258 seconds]
chalkmonster has joined #ruby
sergioro has quit [Quit: leaving]
_whitelogger has joined #ruby
akemhp has quit [Remote host closed the connection]
akemhp has joined #ruby
chalkmon1 has joined #ruby
chalkmonster has quit [Ping timeout: 240 seconds]
evdubs_ is now known as evdubs
i9zO5AP has joined #ruby
Ai9zO5AP has quit [Ping timeout: 268 seconds]
Technodrome has joined #ruby
skyikot has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
schne1der has joined #ruby
_whitelogger has joined #ruby
chalkmonster has joined #ruby
chalkmon1 has quit [Ping timeout: 265 seconds]
_whitelogger has joined #ruby
ajsharma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DTZUZO has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
chalkmon1 has joined #ruby
chalkmonster has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
TCZ has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
teej has quit [Quit: Connection closed for inactivity]
TCZ has quit [Quit: Bye Bye]
TCZ has joined #ruby
dionysus69 has joined #ruby
daster has joined #ruby
daster has quit [Client Quit]
Axy has quit [Read error: Connection reset by peer]
im0nde has quit [Ping timeout: 252 seconds]
im0nde has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
lxsameer has joined #ruby
rippa has joined #ruby
noodle has joined #ruby
_whitelogger has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
kloeri has quit [Quit: brb]
kloeri has joined #ruby
impermanence has quit [Remote host closed the connection]
william1 has joined #ruby
cd has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
ellcs has joined #ruby
<TCZ> can i publish on steam game made in ruby2d
gix has joined #ruby
ellcs has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
jerry_jerry has joined #ruby
akemhp has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
TCZ has quit [Quit: Bye Bye]
william1 has quit [Ping timeout: 268 seconds]
yann-kaelig has joined #ruby
markopasha has quit [Remote host closed the connection]
akemhp has joined #ruby
mn3m has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
Cra2yZer0 has quit [Ping timeout: 258 seconds]
Cra2yZer0 has joined #ruby
TCZ has joined #ruby
mn3m has joined #ruby
_whitelogger has joined #ruby
AJA4350 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
ellcs has joined #ruby
ellcs has quit [Ping timeout: 248 seconds]
Cra2yZer0 has quit [Ping timeout: 258 seconds]
Cra2yZer0 has joined #ruby
danguita has joined #ruby
danguita has quit [Client Quit]
alex998877 has joined #ruby
alex998877 has quit [Remote host closed the connection]
alex998877 has joined #ruby
<alex998877> Hey, anyone here know commonmarker?
<alex998877> https://dpaste.org/VaHz commonmarker/lib/commonmarker.rb has a Node.parse_document, but I can't grep where it's defined, help :(
bsdbandit-01 has quit [Ping timeout: 260 seconds]
<alex998877> Nvm it uses the shared library commonmarker.so
FrankDW has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
itarato_ has joined #ruby
Technodrome has joined #ruby
DaRock has quit [Quit: No Ping reply in 180 seconds.]
DaRock has joined #ruby
itarato_ has quit [Ping timeout: 240 seconds]
skyikot has joined #ruby
Cra2yZer0 has quit [Ping timeout: 260 seconds]
Cra2yZer0 has joined #ruby
phaul has joined #ruby
wallace_mu has joined #ruby
fanta1 has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
davispuh has joined #ruby
lucasb has joined #ruby
itarato_ has joined #ruby
alex998877 has quit [Remote host closed the connection]
robotcars has left #ruby [#ruby]
DaRock has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
DaRock has joined #ruby
Esa_ has joined #ruby
itarato_ has quit [Ping timeout: 268 seconds]
bvdw has joined #ruby
skx86 has joined #ruby
sh7d has quit [Read error: Connection reset by peer]
sh7d has joined #ruby
fanta1 has quit [Quit: fanta1]
Cra2yZer0 has quit [Ping timeout: 258 seconds]
Cra2yZer0 has joined #ruby
Swyper has joined #ruby
itarato_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
DaRock has quit [Ping timeout: 240 seconds]
donofrio has joined #ruby
yann-kaelig has quit [Quit: yann-kaelig]
Swyper has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cra2yZer0 has quit [Ping timeout: 258 seconds]
Cra2yZer0 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
impermanence has joined #ruby
dionysus69 has joined #ruby
impermanence has quit [Remote host closed the connection]
chalkmon1 has quit [Quit: WeeChat 2.7]
impermanence has joined #ruby
Technodrome has joined #ruby
sh7d has quit [Read error: Connection reset by peer]
sh7d has joined #ruby
TCZ has quit [Quit: Bye Bye]
_whitelogger has joined #ruby
phaul has joined #ruby
ellcs has joined #ruby
ellcs has quit [Remote host closed the connection]
Swyper has joined #ruby
chalkmonster has joined #ruby
akemhp_ has joined #ruby
HighMemoryDaemon has joined #ruby
<HighMemoryDaemon> When not using sudo with the 'gem install', gems are installed locally in my home directory which is awesome. Is this a configuration done by Ubuntu or a new ruby/gem feature?
akemhp has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
brool has joined #ruby
akemhp_ has quit [Ping timeout: 268 seconds]
ajsharma has joined #ruby
wallace_mu has quit [Ping timeout: 265 seconds]
greenhat has joined #ruby
wallace_mu has joined #ruby
ajsharma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
djellemah has joined #ruby
djellemah has quit [Client Quit]
Cra2yZer0 has quit [Ping timeout: 265 seconds]
Cra2yZer0 has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
s2013 has joined #ruby
sh7d has quit [Read error: Connection reset by peer]
sh7d has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
skyikot has quit [Ping timeout: 240 seconds]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
TvL2386 has quit [Ping timeout: 258 seconds]
TvL2386 has joined #ruby
william1 has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
jerry_jerry has quit [Quit: Miranda NG! Smaller, Faster, Easier. https://miranda-ng.org/]
impermanence has quit [Remote host closed the connection]
william1 has quit [Ping timeout: 240 seconds]
akemhp has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
Swyper has quit [Remote host closed the connection]
william1 has joined #ruby
sergioro has joined #ruby
shokohsc has quit [Quit: The Lounge - https://thelounge.chat]
Cra2yZer0 has quit [Ping timeout: 258 seconds]
Cra2yZer0 has joined #ruby
HighMemoryDaemon has quit [Quit: Konversation terminated!]
cadeskywalker has quit [Ping timeout: 265 seconds]
_whitelogger has joined #ruby
griffindy has joined #ruby
wallace_mu has quit [Read error: Connection reset by peer]
cadeskywalker has joined #ruby
wallace_mu has joined #ruby
DTZUZO has joined #ruby
<erikh> that's standard gem behavior
sauvin has quit [Read error: Connection reset by peer]
FastJack has quit [Ping timeout: 264 seconds]
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
FastJack has joined #ruby
erikh_ has joined #ruby
erikh has quit [Ping timeout: 268 seconds]
BTRE has quit [Remote host closed the connection]
erikh_ has left #ruby [#ruby]
erikh has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
kosh has joined #ruby
kosh has left #ruby [#ruby]
Nicmavr has joined #ruby
skx86 has joined #ruby
BTRE has joined #ruby
subfj has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
GodFather has joined #ruby
nfsnobody has quit [Ping timeout: 245 seconds]
Technodrome has joined #ruby
nfsnobody has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
erikh has quit [Ping timeout: 240 seconds]
houhoulis has joined #ruby
leitz has joined #ruby
Fernando-Basso has joined #ruby
jerry_jerry has joined #ruby
<jerry_jerry> what does pattern matching do?
<sh7d> matching patterns
<jerry_jerry> great, ... is this pulp fiction?
<uplime> jerry_jerry: it comes in a variety of forms, and i haven't looked at the 2.7 implementation yet, but pattern matching could look something like: x, 4 = [3, 4]
<jerry_jerry> so the x becomes either 3 or 4?
<jerry_jerry> or just 3
<uplime> 3
<uplime> then in: x, 4 = some_arr # its only successful if some_arr[1] is 4
Nahra has joined #ruby
<jerry_jerry> so x, 4 = [3, 6] #=> false?
<uplime> it depends on the language. it might evaluate to false, or it could throw an error
<jerry_jerry> so just that I understand the concept: this wouldn't work ? [1, 2, x, 3, 4] = [2, 3, 4, 5, 6]
<uplime> right
<uplime> ruby's impl might be used differently, but thats the basic idea behind it
<jerry_jerry> okay, and forgive: why do I need that?
<uplime> just another way to do a thing
<uplime> it can be more convenient in some cases
<uplime> continuing with my pseudo pattern matching, you'd have to do: x = if arr.second == 4 then arr.first end
<uplime> as an equivalent
<jerry_jerry> I see
<jerry_jerry> still ... wondering about a real world example
wildtrees has joined #ruby
<jerry_jerry> been doing the Numo::NArray examples and the hard part was finding real-world cases that match the functions
<uplime> google elixir pattern matching, im sure that will come up with a lot of good (perhaps real-world) examples
<jerry_jerry> elixir
<jerry_jerry> aha
wildtrees has quit [Max SendQ exceeded]
<uplime> elixir isn't ruby, but some people in here really like it, so i wouldn't be suprised if ruby's borrowed from that
<uplime> and it uses pattern matching quite often anyways
wildtrees has joined #ruby
<jerry_jerry> yeah, I heard a podcast with JEG and he said, wow it's like Ruby first, and after a while "wow, it's not anything like Ruby at all"
<uplime> haha, sounds about right
<uplime> looking at https://www.toptal.com/ruby/ruby-pattern-matching-tutorial it does seem to model after elixirs (whether intentionally or unintentiionally)
wildtrees has quit [Max SendQ exceeded]
wildtrees has joined #ruby
<jerry_jerry> okay, wait can you do this in Elixir out of the box: [ 1, 2, 3, 4] * [[1], [2], [3], [4]] #=> 30
impermanence has joined #ruby
greenhat has quit [Ping timeout: 265 seconds]
<uplime> I don't recall. i haven't written elixir in a while
<jerry_jerry> the above in Ruby goes like this: Numo::DFloat[1,2,3,4].dot(Numo::DFloat[[1],[2],[3],[4]]) #=> 30
<jerry_jerry> apparently, it's ugly
<jerry_jerry> they should have called it assignment by pattern, not pattern matching
<uplime> it goes beyond assignments. assignments are just one use case
<jerry_jerry> I wonder how the matching works, because we have in mathematics a calculation for [1, 2, 3, 4] – [ 1, 2, 3, 4] where 1–1, 2–2, 3–3, and 4–4 is the distance
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
r3m has quit [Quit: WeeChat 2.8-dev]
<jerry_jerry> that distance is the basis for comparing a spam mail with a spam pattern
r3m has joined #ruby
greenhat has joined #ruby
<jerry_jerry> that's a video
<leftylink> is it... I'm not sure it's working for me so maybe that explains why
<leftylink> ok well. if it's a video I can't see the video and can only see the slides
<leftylink> which is probably better for me anyway, I don't want to watch a video just to learn about this thing
<jerry_jerry> if feel pattern matching is somehow like lego bricks where you fill in gaps
<jerry_jerry> the use case here is tentative https://www.toptal.com/ruby/ruby-pattern-matching-tutorial
<jerry_jerry> see section: Use Cases for Pattern Matching in Ruby
markopasha has joined #ruby
markopasha has quit [Max SendQ exceeded]
markopasha has joined #ruby
ensyde has joined #ruby
kiwi_81 has joined #ruby
Esa_ has quit []
dionysus70 has joined #ruby
TCZ has joined #ruby
<jerry_jerry> Is somebody familiar with hash functions (SHA256) etc?
dionysus69 has quit [Ping timeout: 265 seconds]
dionysus70 is now known as dionysus69
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
<jerry_jerry> if I do a nested list where the key is a SHA256 of the inner part, is that a blockchain?
schne1der has quit [Ping timeout: 260 seconds]
kiwi_81 has quit [Ping timeout: 265 seconds]
cc_ has joined #ruby
bvdw has quit [Quit: bvdw]
markopasha has quit [Read error: Connection reset by peer]
cc__ has joined #ruby
cc_ has quit [Ping timeout: 260 seconds]
<MentalPower> no
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
DaRock has joined #ruby
jerry_jerry has quit [Read error: Connection reset by peer]
Nahra has quit [Ping timeout: 258 seconds]
bvdw has joined #ruby
Nahra has joined #ruby
cc_ has joined #ruby
cc__ has quit [Ping timeout: 240 seconds]
mokha has quit [Quit: .]
mokha has joined #ruby
cc__ has joined #ruby
cc_ has quit [Ping timeout: 260 seconds]
Fernando-Basso has quit [Quit: Leaving]
subfj has quit [Quit: Textual IRC Client: www.textualapp.com]
Swyper has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
Swyper has quit [Remote host closed the connection]
wallace_mu has quit [Ping timeout: 260 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
bvdw has quit [Quit: bvdw]
Cra2yZer0 has quit [Ping timeout: 258 seconds]
Swyper has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 268 seconds]
Cra2yZer0 has joined #ruby
Swyper has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Cra2yZer0 has quit [Ping timeout: 260 seconds]
Swyper has quit [Remote host closed the connection]
leitz has quit [Quit: Leaving]
bvdw has joined #ruby