havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.1, 2.5.3, 2.4.5: 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!
spacesuitdiver has joined #ruby
DTZUZO has quit [Ping timeout: 272 seconds]
mat_bug has joined #ruby
mat_bug has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Ping timeout: 245 seconds]
alfiemax has joined #ruby
blackmesa1 has quit [Ping timeout: 252 seconds]
blackmesa1 has joined #ruby
AJA4350 has joined #ruby
Mia has joined #ruby
rkazak has joined #ruby
clemens3_ has quit [Ping timeout: 246 seconds]
clemens3 has joined #ruby
yokel has joined #ruby
Dreamer3 has joined #ruby
bruce_lee has quit [Remote host closed the connection]
mat_bug has joined #ruby
SanguineAnomaly has quit [Ping timeout: 272 seconds]
Azure has quit [Ping timeout: 240 seconds]
mat_bug has quit [Ping timeout: 252 seconds]
SanguineAnomaly has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
cthulchu_ has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 250 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
cagmz has quit [Quit: Page closed]
ellcs has quit [Ping timeout: 264 seconds]
\void has quit [Quit: So long, and thanks for all the fish.]
mat_bug has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Ping timeout: 250 seconds]
AJA4351 has joined #ruby
orbyt_ has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
mikecmpbll has quit [Quit: inabit. zz.]
Pistos has left #ruby ["WeeChat 2.0.1"]
cnsvc has quit [Ping timeout: 256 seconds]
AJA4350 has quit [Remote host closed the connection]
michael_mbp has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krawchyk has quit [Quit: krawchyk]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
rkazak has quit [Quit: Sleep.....ing....]
cnsvc has joined #ruby
stryek has quit [Quit: Connection closed for inactivity]
agent_white has quit [Quit: bbl]
mat_bug has joined #ruby
spacesuitdiver has quit [Quit: Textual IRC Client: www.textualapp.com]
mat_bug has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
tdy has joined #ruby
sauvin_ has joined #ruby
sauvin has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
millerti has quit [Read error: Connection reset by peer]
krawchyk has joined #ruby
alfiemax has quit [Ping timeout: 250 seconds]
alfiemax has joined #ruby
rkazak has joined #ruby
\void has joined #ruby
alfiemax has quit [Ping timeout: 245 seconds]
code_zombie has quit [Quit: Leaving]
esrse has joined #ruby
jesfre has joined #ruby
azizLIGHT has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
mat_bug has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 240 seconds]
\void has joined #ruby
jesfre has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
mat_bug has quit [Ping timeout: 252 seconds]
uplime- has joined #ruby
noobineer has joined #ruby
noobineer has quit [Remote host closed the connection]
renich_ has joined #ruby
uplime- is now known as uplime
renich has quit [Ping timeout: 240 seconds]
sauvin_ is now known as Sauvin
mat_bug has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
blackmesa1 has quit [Ping timeout: 252 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dinfuehr has joined #ruby
braincrash has quit [Quit: bye bye]
ams__ has joined #ruby
braincrash has joined #ruby
<Arahael> I'm attempting to use bundler, however I have a problem where `require 'xmlrpc/client'` causes a LoadError - cannot load such file, on windows. HOw can I resolve this?
<Arahael> (I'm testing using `bundler exec irb`)
arescorpio has joined #ruby
<Arahael> I'm confused because isn't this part of ruby?
DTZUZO has joined #ruby
<Arahael> D'oh. It's a gem.
alfiemax has joined #ruby
nchambers has quit [Remote host closed the connection]
renich_ has quit [Remote host closed the connection]
jesfre has joined #ruby
arescorpio has quit [Quit: Leaving.]
krawchyk has quit [Quit: krawchyk]
* Arahael steps on out.
alfiemax_ has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.3]
alfiemax has quit [Ping timeout: 244 seconds]
al2o3-cr has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
evdubs_ has joined #ruby
evdubs has quit [Ping timeout: 240 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
jesfre has quit [Remote host closed the connection]
jesfre has joined #ruby
jesfre has quit [Ping timeout: 244 seconds]
conta has joined #ruby
za1b1tsu has joined #ruby
jesfre has joined #ruby
mat_bug has joined #ruby
dellavg_ has joined #ruby
davidw has quit [Ping timeout: 250 seconds]
themsay has joined #ruby
jesfre has quit []
conta has quit [Quit: conta]
\void has quit [Quit: So long, and thanks for all the fish.]
<danst> how often do you use timeout in ruby
DTZUZO has quit [Ping timeout: 250 seconds]
Furai has quit [Quit: WeeChat 2.3]
Furai has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
themsay has quit [Ping timeout: 246 seconds]
themsay has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
dellavg_ has quit [Ping timeout: 240 seconds]
asphyxia has joined #ruby
mat_bug has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
dellavg_ has joined #ruby
marmotini_ has joined #ruby
houhoulis has quit [Remote host closed the connection]
r29v has quit [Quit: r29v]
alfiema__ has joined #ruby
Inline has quit [Quit: Leaving]
rkazak has joined #ruby
asphyxia has quit [Quit: Lost terminal]
alfiema__ has quit [Ping timeout: 244 seconds]
aufi has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
rkazak has quit [Quit: Sleep.....ing....]
clemens3 has quit [Ping timeout: 250 seconds]
conta has joined #ruby
alfiemax has joined #ruby
aupadhye has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
clemens3 has joined #ruby
tdy has joined #ruby
raulp has quit [Read error: Connection reset by peer]
raulp has joined #ruby
RiPuk has quit [Ping timeout: 245 seconds]
mat_bug has joined #ruby
bjpenn_ has joined #ruby
mat_bug has quit [Ping timeout: 240 seconds]
clemens3 has quit [Ping timeout: 246 seconds]
BH23 has joined #ruby
Leifr has joined #ruby
tpanarch1st has joined #ruby
ravenousmoose has joined #ruby
reber has joined #ruby
RiPuk has joined #ruby
kapil____ has joined #ruby
Jonathan2254 has joined #ruby
Jonathan2254 has left #ruby ["Leaving"]
cnsvc has quit [Ping timeout: 256 seconds]
jamied has joined #ruby
vonfry has joined #ruby
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
nowhereman has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
mat_bug has joined #ruby
ta_ has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
leni1 has joined #ruby
ravenous_ has joined #ruby
mikecmpbll has joined #ruby
vonfry has quit [Quit: WeeChat 2.3]
szulak_ has joined #ruby
szulak_ has quit [Client Quit]
szulak_ has joined #ruby
conta has quit [Quit: conta]
<leni1> Hi all. How do I modify my PATH settings so that `gem env home` gives me `/home/user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0` instead of `/home/user/gems`. This is what the settings look like now: https://dpaste.de/ANOv
ravenous_ has quit [Quit: Taking a quick nap...ZZzzz]
ravenousmoose has joined #ruby
szulak_ has quit [Client Quit]
szulak_ has joined #ruby
duderonomy has joined #ruby
reber has quit [Remote host closed the connection]
blackmesa1 has joined #ruby
<danst> leni1: i always used rvm but I bet you're trying to fix a project that already has passed setup?
<danst> also unable to open your url sorry
leni1 has quit [Ping timeout: 268 seconds]
ellcs has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RiPuk has quit [Quit: ZNC 1.7.2 - https://znc.in]
RiPuk has joined #ruby
reber has joined #ruby
reber has quit [Remote host closed the connection]
reber has joined #ruby
reber has quit [Remote host closed the connection]
SanguineAnomaly has quit [Ping timeout: 240 seconds]
SanguineAnomaly has joined #ruby
dhollin3 has joined #ruby
dhollinger has quit [Ping timeout: 250 seconds]
ngw has joined #ruby
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
Guest16678 has joined #ruby
blackmesa1 has quit [Ping timeout: 245 seconds]
za1b1tsu has quit [Ping timeout: 246 seconds]
jamied has quit [Quit: Textual IRC Client: www.textualapp.com]
bjpenn_ has quit [Ping timeout: 268 seconds]
roshanavand has joined #ruby
ldnunes has joined #ruby
<havenwood> danst: not often
tankf33der has left #ruby [#ruby]
matchaw has joined #ruby
szulak_ has quit [Read error: Connection reset by peer]
szulak_ has joined #ruby
za1b1tsu has joined #ruby
ravenousmoose has joined #ruby
roshanavand_ has joined #ruby
roshanavand has quit [Remote host closed the connection]
ravenous_ has joined #ruby
themsay has quit [Ping timeout: 245 seconds]
themsay has joined #ruby
bruce_lee has joined #ruby
govg has quit [Ping timeout: 240 seconds]
ravenousmoose has quit [Ping timeout: 250 seconds]
za1b1tsu has quit [Read error: Connection reset by peer]
roshanavand_ has quit [Remote host closed the connection]
roshanavand_ has joined #ruby
ravenousmoose has joined #ruby
ravenous_ has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
roshanavand_ has quit [Read error: Connection reset by peer]
ravenous_ has joined #ruby
ravenous_ has quit [Client Quit]
ravenousmoose has quit [Ping timeout: 252 seconds]
leni1 has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
<leni1> Hi guys. I installed the newest version of `bundler` using `gem install bundler` successfully. But it seems to have installed in my former GEM_PATH (/home/gems/gems) rather than in the gems directory in ~/.rbenv. Is there a way I can change this behaviour?
ravenousmoose has joined #ruby
za1b1tsu has joined #ruby
<kke> ["abc.def", "ghi.jkl"].map(&:split['.']) i wonder why this returns an enumerator? (i know it doesn't work, i just got curious if the proc[] thing could be used to pass an argument for symbol to proc)
<kke> (would be handy.)
kapil____ has quit [Quit: Connection closed for inactivity]
roshanavand has joined #ruby
za1b1tsu has quit [Read error: Connection reset by peer]
roshanavand has quit [Remote host closed the connection]
isxek has joined #ruby
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
ravenousmoose has joined #ruby
ravenousmoose is now known as ravenousmoose[aw
<kke> why does symbol even have []
ravenousmoose[aw has quit [Client Quit]
<tbuehlmann> iirc, it returns the symbol's characters as String#[] does
<kke> yeah it does, sym also has .downcase, .match and whatever
<kke> so i suppose &:split['.'] did some sort of &nil
esrse has quit [Ping timeout: 250 seconds]
<leni1> Iambchop: thank you.
Nicmavr has quit [Read error: Connection reset by peer]
dellavg_ has quit [Ping timeout: 244 seconds]
Nicmavr has joined #ruby
nowhereman has quit [Ping timeout: 244 seconds]
aupadhye has quit [Remote host closed the connection]
dellavg_ has joined #ruby
nowhereman has joined #ruby
aupadhye has joined #ruby
alfiemax has joined #ruby
<leni1> So I removed everything and re-installed rbenv afresh
<leni1> When I ran gem install bundler, it says it's successfully installed bundler-2.0.1
<leni1> But the version in rbenv is 1.17.2
<leni1> Running `~/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/exe/bundle -v ` gives me 1.17.2 even though it is clearly in the 2.0.1 folder
<leni1> Is there a compatibility issue between 2.0.1 and rbenv that I am unaware of?
<leni1> I've only managed to find this GitHub issue: https://github.com/bundler/bundler/issues/6930
Leifr has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
jcalla has joined #ruby
za1b1tsu has joined #ruby
AJA4350 has joined #ruby
kapil____ has joined #ruby
Xiti has quit [Quit: Xiti]
gnufied has joined #ruby
conta has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
alfiemax has quit [Remote host closed the connection]
clemens3 has joined #ruby
lukelukeluke has joined #ruby
blackmesa1 has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
Bish has joined #ruby
<Bish> yo rubyist
<Bish> sup
AJA4350 has quit [Remote host closed the connection]
AJA4350 has joined #ruby
<szulak_> Bish not much, studying Udemy course about Ruby
<Bish> szulak_: that's an okay choice, ruby is great!
lukelukeluke has quit [Ping timeout: 246 seconds]
<szulak_> Bish planning to switch from long time c++ dev into ruby in the nearest future
<szulak_> yeah, enjoying it so far :)
<Bish> ruby will fuck you over with 2-3 things
<szulak_> which ones?
<Bish> speed, threads mostly
<szulak_> so far had brain fuck with '&' (blocks vs procs)
<Bish> it sucks at those 2
<szulak_> oh
<Bish> there will be people telling you otherwise, but that's straight up a lie!
<szulak_> this's not a problem - I can always write C extenesion and load it to ruby to make a really cpu intensive things
<Bish> that is correct, but you will need to know about ruby internals then, quite well
<szulak_> I'll give myself few months still till I try any Ruby job
<szulak_> or well.. rails
<Bish> szulak_: don't do rails, rails also sucks ballz
<szulak_> I do have like 7 years of c and c++ experience (mainly embedded / automotive area)
<Bish> szulak_: when i started ruby.. i started using it for tooling.. and i thought it's fucking great(because it is)
<szulak_> but there are (I think) not many "pure Ruby" jobs"
<szulak_> yeah
<Bish> and everyone was doing rails.. and i could never get my head around it
<Bish> so i tried and tried, and still thought it sucks
<Bish> (still do)
<szulak_> :D
<Bish> when i noticed there is a small minority of people using ruby as a webserver without rails
<Bish> i recommend looking into roda(my favourite) / sinatra
<Bish> but as you can see i have a strong opinions
<szulak_> yeah, I did already simple sinatra app
<Bish> roda is sinatra on crack
<tbuehlmann> "rails also sucks ballz" is a pretty harsh statement, it works for quite some people and companies
<Bish> so does php
<szulak_> it's a personal opinion I guess
<Bish> szulak_: i would disagree, as i have tried real hard to do things with it..
<tbuehlmann> so does php, right. I also don't think php sucks ballz
<Bish> when i created my startup, i even started with php, because i didn't feel ready with ruby, that was until i noticed it's IMPOSSIBLE to write a good ORM with php
rippa has joined #ruby
<Bish> tbuehlmann: yeah well, maybe your requirements of what a language/toolkit should do a lower than mine..
<Bish> but as i remember your name i know what you're talking about, sure you can do great things with php
<Bish> but as i said.. i tried really hard to write a ORM that fits my needs, literally impossible
<Bish> if you don't want to rewrite some things in C, that is
<Bish> >> 1
<Bish> &> 1
<Bish> :(
<phaul> &>>
<rubydoc> # => nil (https://carc.in/#/r/6540)
<Bish> &>> [1,2,3].map { |x| x.succ }
<rubydoc> # => [2, 3, 4] (https://carc.in/#/r/6541)
<Bish> &>> [1,2,3].map(&Proc.new { |x| x.succ })
<rubydoc> # => [2, 3, 4] (https://carc.in/#/r/6542)
<Bish> &>> [1,2,3].map(&:succ)
<rubydoc> # => [2, 3, 4] (https://carc.in/#/r/6543)
<Bish> szulak_: does this help, these 3 things being the same thing ?
<szulak_> yeah, I undrestood it later
<szulak_> but it was confusing on the beginning
<Bish> it's a thing of beauty that &:symbol(in parameterlist) is the same thing as :symbol.to_proc which is Proc.new { |x| x.symbol }
<Bish> Proc.new is going to be deprecated, btw in 2.6 if i remember correctly
<szulak_> oO
<szulak_> in favor of?
<Bish> it will be replaced by the stabby operator, which looks burrowed from the js people
<Bish> &>> (*1..3).map(&->(x){x.succ})
<rubydoc> # => (https://carc.in/#/r/6548)
<TheBrayn> 2.6 is already out
<Bish> uhm, where do i use the splat operator wrong there?
<Bish> ah, can only use it inside a parameter list, forgot about that one
<Bish> &>> [*1..3].map(&->(x){x.succ})
<rubydoc> # => [2, 3, 4] (https://carc.in/#/r/654a)
szulak__ has joined #ruby
<szulak__> Bish sorry, had to restart my router to open port for running sinatra app
<Bish> szulak__: all cool
<Bish> &>> [*1..3].map(&->(x){x.succ})
<rubydoc> # => [2, 3, 4] (https://carc.in/#/r/654b)
<Bish> that will be it's replacement and "lambda" i guess
<TheBrayn> where can I find the documentation for that?
<al2o3-cr> no need to splat a simple (1..3).map would do ;)
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
cd has quit [Ping timeout: 256 seconds]
<szulak__> Bish http://194.42.111.38:8080 - my first sinatra app (it's a simple store for online game characters)
<szulak__> didn't finish it tho
<szulak__> (my first sinatra app ever)
szulak_ has quit [Ping timeout: 272 seconds]
<Bish> there he goes
<szulak__> it was such a pleasure to writing this
<Bish> szulak__: do me a favor and do it in roda :>
<Bish> and tell me if i am just heavily opionated
<Bish> that guy is the shit
<szulak__> bookmarked, thanks
<Bish> he also maintains the best ORM on the planet
<szulak__> which is.. ?
<Bish> SEQUEL
<Bish> try it, you won't regret
<szulak__> so far used datamapper only
<szulak__> but it was really simple "Crud" app
<Bish> have a look at sequel and ROM in any case.. whatever you use as webserver
<szulak__> did you use datamapper? it looks very similiar
<szulak__> I mean, sequel and dm
<Bish> im sure i did, since i searched a long time until i found sequel, but im looking into it why i thought it's bad
DTZUZO has joined #ruby
<Bish> well it looks very similiar, yes, true
<Bish> a little less ruby idiomatic code with those "include" statements, but other than that *shrug*
<Bish> things might have changed the last 4 years tho
AJA4350 has quit [Ping timeout: 246 seconds]
<szulak__> yeah.. but it's a long way still.... https://i.imgur.com/Roo1sUB.png
<szulak__> I've to complete these courses firstly
<szulak__> (without PS, this one is my wifey)
DTZUZO has quit [Ping timeout: 240 seconds]
<phaul> does yri (yard ri) work for you ppl for local gems? I spend a lot of time looking at Generating yri index stuff on gem install but never sucessfully find anyting with it
<phaul> gem install rails && yri form_for -> No documentation for 'form_for'
<phaul> is it supposed to work, and if so what do I check?
cubillosxy_py has joined #ruby
GinoMan2440 has joined #ruby
marmotini_ has quit [Ping timeout: 240 seconds]
Inline has joined #ruby
GinoMan has quit [Ping timeout: 272 seconds]
cd has joined #ruby
rkazak has joined #ruby
roshanavand_ has joined #ruby
conta has quit [Ping timeout: 250 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
dellavg__ has joined #ruby
dellavg_ has quit [Ping timeout: 250 seconds]
spiette has quit [Quit: ZNC 1.7.1 - https://znc.in]
<phaul> or changing the question. what's the best way to get documentation for form_for after rails is installed whithout knowing more than the method name? can pry for instance do that?
beefjoe has joined #ruby
spiette has joined #ruby
gnufied has quit [Ping timeout: 268 seconds]
leni1 has quit [Quit: Konversation terminated!]
roshanavand_ has quit [Remote host closed the connection]
beefjoe has quit [Quit: <3]
roshanavand_ has joined #ruby
<phaul> ok. pry sort of does it. find-method with a combination of show-doc
marmotini_ has joined #ruby
Biganon has joined #ruby
<Biganon> Hi ; I'm trying to run 'gem install asciidoctor-pdf --pre', but the command hangs and produces absolutely no output, even with the -V flag
<Biganon> I can access the internet normally, otherwise
<Biganon> I'm using https://rubygems.org/ as a source
AJA4350 has joined #ruby
* Bish can't believe still nobody wrote a good http/2 serer for ruby
<Bish> i mean, okay, it's not rack compliant, but who cares
<Bish> freakin rails people
<Bish> doesn't have rails ⇒ we don't do it
roshanavand_ has quit [Ping timeout: 240 seconds]
za1b1tsu has quit [Read error: Connection reset by peer]
matchaw_ has joined #ruby
polishdub has joined #ruby
matchaw has quit [Ping timeout: 252 seconds]
roshanavand_ has joined #ruby
Rapture has joined #ruby
tpanarch1st has quit [Ping timeout: 240 seconds]
marmotini_ has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 240 seconds]
ellcs has quit [Ping timeout: 264 seconds]
kiero has joined #ruby
gnufied has joined #ruby
aupadhye has quit [Quit: Leaving]
BH23 has quit [Remote host closed the connection]
renich has joined #ruby
AJA4350 has joined #ruby
roshanavand_ has quit [Ping timeout: 268 seconds]
dhollin3 is now known as dhollinger
Dreamer3 has quit [Quit: Computer has gone to sleep.]
davidw has joined #ruby
GinoMan has joined #ruby
szulak__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GinoMan2440 has quit [Ping timeout: 245 seconds]
lukelukeluke has joined #ruby
lukelukeluke has quit [Remote host closed the connection]
renich_ has joined #ruby
renich has quit [Ping timeout: 268 seconds]
ravenousmoose[aw has joined #ruby
ravenousmoose[aw has quit [Client Quit]
mikecmpb_ has joined #ruby
ngw has quit [Quit: WeeChat 2.3]
lfish has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
conta has joined #ruby
conta has quit [Ping timeout: 268 seconds]
<darix> havenwood: how does it compare to puma?
renich has joined #ruby
renich_ has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
mikecmpb_ has quit [Ping timeout: 240 seconds]
sticaz has joined #ruby
mniip has quit [Ping timeout: 604 seconds]
lukelukeluke has joined #ruby
blackmesa1 has quit [Ping timeout: 246 seconds]
dellavg__ has quit [Ping timeout: 268 seconds]
nowhereman has quit [Ping timeout: 250 seconds]
CrazyEddy has quit [Remote host closed the connection]
mat_bug has quit []
aufi has quit [Remote host closed the connection]
<havenwood> darix: It has some really impressive work with Fibers, including work merging Fiber performance commits to Ruby itself.
<havenwood> darix: And the HTTP/2 support is great to see.
<darix> havenwood: but yeah without fibers not much gain or?
<havenwood> darix: The benchmarks for number of connections, etc. look really impressive.
alfiemax has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
cthulchu_ has joined #ruby
ryovaa has quit [Quit: óòêè]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
SeepingN has joined #ruby
nowhereman has joined #ruby
\void has joined #ruby
tdy has joined #ruby
mikecmpbll has quit [Ping timeout: 244 seconds]
alfiemax has quit [Remote host closed the connection]
ua has quit [Ping timeout: 250 seconds]
ravenousmoose has joined #ruby
ua has joined #ruby
<uplime> I have an array of hashes, and I'd like to test if any of the members of the array have a specific key/value pair, and if they do, return true (this is a condition for a select block on a different array). Is there an easy way to do this?
<phaul> &>> [{a: 1}, {b: 2}].any? { |h| h[:a] == 1 }
<rubydoc> # => true (https://carc.in/#/r/656s)
<uplime> oh perfect, thanks
isxek has quit [Remote host closed the connection]
<phaul> yw
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> uplime: or: [{a: 1}, {b: 2}].any?({a: 1})
lxsameer has joined #ruby
<havenwood> (on a recent Ruby)
<havenwood> &>> [{a: 1}, {b: 2}].any?({a: 1})
<rubydoc> # => true (https://carc.in/#/r/656t)
<uplime> how recent?
<phaul> &>> {a: 1, b: 2, c: 3} === {a: 1}
<rubydoc> # => false (https://carc.in/#/r/656u)
<uplime> I'm on 2.3
<phaul> havenwood: what does that use ? match? or === ?
<phaul> &>> [{a: 1, b: 2}].any?({a: 1})
<rubydoc> # => false (https://carc.in/#/r/656v)
<phaul> oh, it doesn't work
Guest16678 has quit [Ping timeout: 250 seconds]
roshanavand_ has joined #ruby
<phaul> &>> {a: 1} === {a: 1, b: 2, c: 3}
<rubydoc> # => false (https://carc.in/#/r/6570)
<havenwood> phaul: It iterates for match, afaik.
<havenwood> Not against the whole collection, one item at a time.
davidw has quit [Read error: Connection reset by peer]
<phaul> yes but in your case you would only match if the array contains single key value pair hashes, as === on hashes doesn't seem to match unless equal
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
<phaul> this would work:
<phaul> &>> [{a:1, b: 2}].any? { |h| h.any?({a: 1})}
<rubydoc> # => false (https://carc.in/#/r/6571)
<phaul> or not
<phaul> :)
davidw has joined #ruby
alfiemax has joined #ruby
alfiemax_ has joined #ruby
tdy1 has joined #ruby
Dbugger has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
tdy has quit [Ping timeout: 272 seconds]
alfiemax has quit [Ping timeout: 245 seconds]
roshanavand_ has quit [Ping timeout: 268 seconds]
ellcs has joined #ruby
ravenousmoose has joined #ruby
tdy1 has quit [Ping timeout: 240 seconds]
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
lucasb has joined #ruby
cthu| has joined #ruby
houhoulis has joined #ruby
loincloth has joined #ruby
cthulchu_ has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
blackmesa1 has joined #ruby
mikecmpbll has joined #ruby
loincloth has quit []
blackmesa1 has quit [Ping timeout: 252 seconds]
blackmesa1 has joined #ruby
lukelukeluke has quit [Ping timeout: 272 seconds]
cthulchu_ has joined #ruby
cthu| has quit [Ping timeout: 240 seconds]
ravenousmoose[aw has joined #ruby
ravenousmoose[aw has quit [Client Quit]
Flonk has quit [Quit: ZNC - http://znc.in]
robscomputer has joined #ruby
gix has joined #ruby
Flonk has joined #ruby
lfish has quit [Ping timeout: 256 seconds]
dan64 has joined #ruby
<mozzarella> how do I unfreeze a frozen array?
<havenwood> mozzarella: clone it
<havenwood> or use Fiddle :P
<mozzarella> uh?
Flonk has quit [Quit: ZNC - http://znc.in]
Flonk has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
clemens3 has quit [Ping timeout: 245 seconds]
ravenousmoose has joined #ruby
ravenousmoose is now known as ravenousmoose[aw
ravenousmoose[aw has quit [Client Quit]
mniip has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
braincrash has joined #ruby
bruce_lee has quit [Ping timeout: 240 seconds]
LearnRuby has joined #ruby
<LearnRuby> Hi everyone
Sauvin has quit [Read error: Connection reset by peer]
<LearnRuby> I'm trying to write a library to administrate an OpenBSD Box easily avoiding any shell scripting ..
<LearnRuby> if you have time to review the code, bring me some advices, i will be very glad.
<LearnRuby> Thank you very much for your feedback.
phaul has quit [Read error: Connection reset by peer]
<up|ime> LearnRuby: L25 has two spaces between 'unless' and 'openbsd?'
<up|ime> your tests seem weird
<up|ime> other than that, i'm not really sue why any of those things need a helper
<up|ime> i'm a bit scared of create_dir running mkdir_p undocumented
<LearnRuby> i don't know how to write tests for filesystem usage (touch, mkdir...)
<up|ime> and I really don't like how you raise the default exception either
<up|ime> i would create a specific exception so you don't end up try-catching all exceptions
<up|ime> LearnRuby: i would not put them in the same file
<LearnRuby> you mean using rescue instead of raise ?
<up|ime> no, i mean raise a specific erorr
<up|ime> OpenBsdHelperException or something
<up|ime> and your test is closer to an integration test, but the first thing your test is that you need root
<up|ime> nobody is going to run a testsuite using root
<up|ime> especially if your "delete_dir" fails the test your entire fs might well be gone
<up|ime> beyond that, your tests dont really assert anything is happening either
<LearnRuby> oh, you re right about the root usage testing.
<up|ime> path_exists? is also just an extension to file.exists but instead of returning a boolean you throw if false
<LearnRuby> in fact i'm testing all the methods (as examples)
<up|ime> it may be harsh, but I don't think your helper is helping anyone in its current state
<up|ime> they just invent a new "stdlib" for ruby
<LearnRuby> it is not yet finished, i need now to code the rcctl command line
<LearnRuby> without changing the /etc
<up|ime> well my point is more that for instance def need_root raise('need root privileges') unless Process.uid.zero? end is very basic programming
<up|ime> it'd be more work to read your documentation, instantiate the class, and then run the method
<up|ime> if your goal is to help yourself: great, but consider that if a stranger looks at it they will wonder why you are reinventing the wheel
<up|ime> I would write a OpenBsdHelper to get around quirks of openbsd, rather than to alias "file.create" to "OpenBsdHelper.create_file"
<LearnRuby> i understand your point of view
<up|ime> if this is a learning excerise: Fantastic, but I question its use in the real world
<LearnRuby> you re right, i need more to focus on the OpenBSD system instead of FileSystem
<LearnRuby> thank you so much!
d10n-work has joined #ruby
LearnRuby has quit [Ping timeout: 256 seconds]
code_zombie has joined #ruby
ravenousmoose has joined #ruby
ravenousmoose is now known as ravenousmoose[aw
renich has quit [Quit: renich]
ravenousmoose[aw has quit [Client Quit]
renich has joined #ruby
blackmesa1 has quit [Ping timeout: 240 seconds]
connermcd has joined #ruby
ldnunes has joined #ruby
houhoulis has quit [Remote host closed the connection]
cnsvc has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
AJA4350 has quit [Remote host closed the connection]
AJA4350 has joined #ruby
ldnunes has quit [Quit: Leaving]
davidw has left #ruby ["Leaving"]
AJA4350 has quit [Ping timeout: 246 seconds]
rkazak has quit [Ping timeout: 246 seconds]
ravenousmoose[aw has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
ravenousmoose[aw has quit [Client Quit]
lucasb has quit [Quit: Connection closed for inactivity]
tdy1 has joined #ruby
Rapture has joined #ruby
phaul has joined #ruby
AJA4350 has joined #ruby
ivanskie has joined #ruby
azizLIGHT has quit [Ping timeout: 240 seconds]
fmccann has quit [Quit: ZNC 1.7.1 - https://znc.in]
fmccann has joined #ruby
Zarthus has joined #ruby
cubillosxy_py has quit [Ping timeout: 250 seconds]
tdy1 is now known as tdy
blunckr has joined #ruby
blunckr has left #ruby [#ruby]
blunckr has joined #ruby
blunckr has left #ruby [#ruby]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
Fernando-Basso has joined #ruby
fmccann has quit [Quit: ZNC 1.7.1 - https://znc.in]
fmccann has joined #ruby
connermcd has quit [Quit: WeeChat 2.3]
alfiemax has joined #ruby
rkazak has joined #ruby
alfiemax has quit [Remote host closed the connection]
rkazak has quit [Ping timeout: 246 seconds]
Dbugger has quit [Ping timeout: 264 seconds]
<baweaver> Qo
<baweaver> hashes.select(&Qo[a: 1..10])
<baweaver> Though only on Symbol keys
orbyt_ has joined #ruby
ravenousmoose[aw has joined #ruby
ravenousmoose[aw has quit [Client Quit]
<baweaver> havenwood: Wait, since when does it do that?
<baweaver> Wait wait wait
<baweaver> When and where?
* baweaver needs to write up on this
<baweaver> &>> {a: 1} === {a:1, b: 2, c:3}
<rubydoc> # => false (https://carc.in/#/r/658x)
<baweaver> Because I remember Matz rejected Hash#=== and Array#=== earlier
<phaul> but it's not doing anything special just ==
<phaul> havenwood's example didn't work. it was probably a misunderstanding on his part of what we were doing
<baweaver> ok, so it's a literal
<baweaver> That makes more sense
<baweaver> If they introduced intersection matching and I managed to miss that XD
cubillosxy_py has joined #ruby
<phaul> yeah, I thought the same.. :)
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
JanMrlth has quit [Remote host closed the connection]
alfiemax has joined #ruby
blackmesa1 has joined #ruby
alfiemax has quit [Ping timeout: 246 seconds]
cubillosxy_py has quit [Quit: Lost terminal]
gregf_ has quit [Ping timeout: 256 seconds]
blackmesa1 has quit [Read error: Connection reset by peer]
blackmesa1 has joined #ruby
polishdub has quit [Remote host closed the connection]
ivanskie has joined #ruby
Mia has quit [Ping timeout: 272 seconds]
ellcs has quit [Ping timeout: 240 seconds]
shenghi has quit [Ping timeout: 250 seconds]
paraxial has quit [Quit: The Lounge - https://thelounge.chat]
jcarl43 has joined #ruby
paraxial has joined #ruby
uplime is now known as cloudlime
crankharder has joined #ruby
Inline has quit [Ping timeout: 264 seconds]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
Inline has joined #ruby
blackmesa1 has quit [Ping timeout: 240 seconds]
shenghi has joined #ruby
ravenousmoose[aw has joined #ruby
ravenousmoose[aw has quit [Client Quit]
cloudlime is now known as Sherlime
alfiemax has joined #ruby
MuffinPimp has quit [Quit: Goodbye.]
Fernando-Basso has quit [Remote host closed the connection]
MuffinPimp has joined #ruby