baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.4.6: 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!
kyrylo has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
kyrylo_ has quit [Ping timeout: 240 seconds]
none_ has quit [Ping timeout: 252 seconds]
orbyt_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
_delimited_ has quit [Ping timeout: 276 seconds]
tdy has joined #ruby
fphilipe_ has joined #ruby
jottr has joined #ruby
al2o3-cr has quit [Ping timeout: 246 seconds]
darris has quit [Ping timeout: 246 seconds]
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has quit [Ping timeout: 246 seconds]
<adam12> havenwood: Yess!!
<adam12> Tho I've noticed they're reasonably accepting to PRs through Github.
darris has joined #ruby
agent_white has joined #ruby
al2o3-cr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 255 seconds]
AJA4351 is now known as AJA4350
Swyper_ has joined #ruby
Swyper_ has quit [Ping timeout: 255 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
orbyt_ has joined #ruby
Swyper has joined #ruby
Swyper has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 246 seconds]
Swyper has joined #ruby
Swyper_ has joined #ruby
Swyper has quit [Read error: Connection reset by peer]
weteamsteve1 has joined #ruby
AJA4351 has joined #ruby
NightMonkey has quit [Quit: ZNC - http://znc.in]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
AJA4350 has quit [Remote host closed the connection]
weteamsteve has quit [Ping timeout: 268 seconds]
Swyper_ has quit [Ping timeout: 250 seconds]
fphilipe_ has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
bambanx has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mangold has joined #ruby
fphilipe_ has quit [Ping timeout: 250 seconds]
weteamsteve2 has joined #ruby
agent_white has quit [Quit: brb]
weteamsteve1 has quit [Ping timeout: 250 seconds]
Xeago has quit [Ping timeout: 246 seconds]
weteamsteve1 has joined #ruby
weteamsteve2 has quit [Ping timeout: 268 seconds]
dsmythe has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
dsmythe has joined #ruby
doodlebug has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
jottr has joined #ruby
fphilipe_ has joined #ruby
Xeago has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
doodlebug has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
fredolinhares has quit [Quit: WeeChat 1.9.1]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
duderonomy has joined #ruby
_whitelogger has joined #ruby
tdy has quit [Quit: WeeChat 1.9.1]
rf` has quit []
envex has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
Eiam has quit [Read error: Connection reset by peer]
uranoss has quit [Quit: Connection closed for inactivity]
fphilipe_ has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
yield has joined #ruby
rafadc has quit [Ping timeout: 246 seconds]
buckworst has joined #ruby
mangold has joined #ruby
mangold has quit [Client Quit]
jottr has quit [Ping timeout: 246 seconds]
planigan has quit [Quit: leaving]
planigan has joined #ruby
yield is now known as yield__
yield__ is now known as yield
yield is now known as yield__
fphilipe_ has joined #ruby
Inline has quit [Quit: Leaving]
weteamsteve1 has quit [Read error: Connection reset by peer]
doodlebug has quit [Remote host closed the connection]
sauvin has joined #ruby
houhoulis has quit [Remote host closed the connection]
mangold has joined #ruby
Swyper has joined #ruby
mangold has quit [Client Quit]
cloaked1 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
bambanx has quit [Quit: Leaving]
kapil____ has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
crankhar1er has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
tdy1 has joined #ruby
conta has joined #ruby
vondruch has joined #ruby
spacesuitdiver has joined #ruby
conta1 has joined #ruby
conta has quit [Ping timeout: 245 seconds]
conta1 is now known as conta
terabytes has quit [Quit: Connection closed for inactivity]
crankharder has joined #ruby
conta has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
conta has joined #ruby
xlued has quit [Quit: The Lounge - https://thelounge.github.io]
xlued has joined #ruby
conta has quit [Read error: Connection reset by peer]
pookie has quit [Quit: All for nothing]
rafadc has joined #ruby
olspookishmagus has joined #ruby
fphilipe_ has quit [Ping timeout: 240 seconds]
schleppel has joined #ruby
DTZUZO has joined #ruby
aupadhye has joined #ruby
aupadhye has quit [Client Quit]
aupadhye has joined #ruby
fphilipe_ has joined #ruby
clemens3_ has quit [Ping timeout: 276 seconds]
nowhere_man has quit [Ping timeout: 258 seconds]
wildermind has joined #ruby
ramfjord has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
none_ has joined #ruby
laaron has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 255 seconds]
clemens3_ has joined #ruby
jefffrails35 has joined #ruby
<dionysus69> adam12: I will post a snippet one sec
<dionysus69> line 60, json['params'], = *args so I assume this works like the following: we are dealing with mass assignment but only with one variable, first element of the array args gets assigned to json["params"], I just dont get why I cant just assign splatted array to the params as hash
<dionysus69> I also have one more question to everyone about monkey patching. So I am monkey patching a gem which pretty much has a single file and I am just changing this line 60, so I am basically only monkey patching method_missing method on line 37 in the link I posted. but when I insert this code RPC > JSON > Client > def method_missing other methods do not get inherited from the gem, so I am forced to copy all methods
<dionysus69> in the file just to monkey patch single method
<dionysus69> AFAIK, it is supposed to inherit everything else from the gem, and just shadow/override the monkey patched method
crankharder has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
jottr has joined #ruby
conta has joined #ruby
jenrzzz has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
conta has quit [Read error: Connection reset by peer]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 250 seconds]
conta has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
conta has quit [Ping timeout: 244 seconds]
Swyper has quit [Ping timeout: 244 seconds]
gregf_ has joined #ruby
alem0lars has joined #ruby
reber has joined #ruby
<ryouba> good mornign!
kyrylo has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
<ryouba> when using something like regosaurs=[/(?<blah>\d+)/, /(?<boobledeedoop>[[:punct:]]/]; regosaurs.all? {|r| r.match? "99 bottles of beer."} ... is there any way i can access the matching groups' contents (blah: 99, boobledeedoop: '.') later?
jottr has joined #ruby
<ryouba> hmm, foo=[];regosaurs=[/(?<blah>\d+)/, /(?<boobledeedoop>[[:punct:]])/]; regosaurs.all? {|r| foo << "99 bottles of beer.".match(r); foo.any?} works. not much elegant though.
dsmythe has quit [Ping timeout: 276 seconds]
ellcs has joined #ruby
za1b1tsu has joined #ruby
buckworst has quit [Quit: Connection closed for inactivity]
GodFather has quit [Ping timeout: 246 seconds]
dsmythe has joined #ruby
gregf_ has quit [Ping timeout: 256 seconds]
<ryouba> hah! got it! regosaurs=[/(?<blah>\d+)/, /(?<boobledeedoop>[[:punct:]])/]; regosaurs.map {|r| "99 bottles of beer.".match(r).named_captures}.inject :merge
queip has quit [Ping timeout: 246 seconds]
ujjain- has quit [Changing host]
ujjain- has joined #ruby
DTZUZO has quit [Ping timeout: 252 seconds]
<ryouba> unfortunately doesn't work when some are nil :-(
gregf_ has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
ujjain- is now known as ujjain
none_ has quit [Quit: Leaving]
prestorium has joined #ruby
<ryouba> YAY!!! regosaurs=[/(?<blah>\d+)/, /(?<boobledeedoop>[[:punct:]])/]; matches=regosaurs.map {|r| "99 bottles of beer.".match(r)&.named_captures}.compact.inject :merge
jenrzzz has joined #ruby
queip has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
crankharder has joined #ruby
phaul has joined #ruby
<ryouba> hi phaul :)
<phaul> hi ryouba :)
<phaul> how's it going?
jottr has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
<ryouba> phaul: quite well, i just figured out "regosaurs=[/(?<blah>\d+)/, /(?<boobledeedoop>[[:punct:]])/]; matches=regosaurs.map {|r| "99 bottles of beer.".match(r)&.named_captures}.compact.inject :merge" before you came, which makes me happy :)
<ryouba> how are you?
<phaul> that's cool, not too bad myself, thank you.
agent_white has quit [Quit: bbl]
daniel__ has quit [Remote host closed the connection]
ralt has joined #ruby
<ralt> hi
postmodern has quit [Quit: Leaving]
<ralt> is it normal that the git tags on the upstream git repository have disappeared?
<ryouba> phaul: what time zone are you in btw?
<phaul> ryouba: CET
<ryouba> oh, just a little bit west of me then :)
prestorium has quit [Quit: prestorium]
<ralt> we were using the git tags to build a custom version of upstream versions but no longer can. I assume it's related to the change from svn to git, but it feels weird, and not necessarily on purpose, to delete the tags. How do you know which commit to build your release tarballs on?
daniel____ has joined #ruby
daniel__ has joined #ruby
daniel____ has quit [Remote host closed the connection]
daniel__ has quit [Client Quit]
daniel____ has joined #ruby
reber has quit [Remote host closed the connection]
olblak has joined #ruby
mangold has joined #ruby
ferr has joined #ruby
maleghast has joined #ruby
maleghast has quit [Client Quit]
conta has joined #ruby
maleghast has joined #ruby
dsmythe has quit [Read error: Connection reset by peer]
za1b1tsu has quit [Remote host closed the connection]
dsmythe has joined #ruby
conta has quit [Ping timeout: 250 seconds]
crankharder has quit [Ping timeout: 250 seconds]
AJA4350 has joined #ruby
tdy1 has quit [Ping timeout: 255 seconds]
conta has joined #ruby
ralt has quit [Ping timeout: 258 seconds]
Swyper has joined #ruby
wald0 has joined #ruby
_joes_ has joined #ruby
Swyper has quit [Remote host closed the connection]
maleghast has quit [Ping timeout: 250 seconds]
tdy1 has joined #ruby
AJA4351 has joined #ruby
dostoyevsky has quit [Ping timeout: 268 seconds]
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
dostoyevsky has joined #ruby
dostoyevsky has quit [Client Quit]
dostoyevsky has joined #ruby
Swyper has joined #ruby
dostoyevsky has quit [Ping timeout: 258 seconds]
conta has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
Swyper has quit [Ping timeout: 258 seconds]
conta has joined #ruby
Swyper has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
dostoyevsky has joined #ruby
Swyper has quit [Remote host closed the connection]
ramfjord has joined #ruby
jenrzzz has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
Swyper has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
Swyper has quit [Remote host closed the connection]
conta has quit [Remote host closed the connection]
conta has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
old_relik has joined #ruby
mikeiniowa has quit [Remote host closed the connection]
ldnunes has joined #ruby
mikeiniowa has joined #ruby
<old_relik> is there a better way of writing this fn https://dpaste.de/iref
AJA4350 has joined #ruby
<havenwood> old_relik: Rails?
old_relik_ has joined #ruby
<canton7> old_relik, this is equivalent: https://dpaste.de/VZwO
<old_relik_> yeah
<old_relik_> hm
<old_relik_> didn't like that return at the end
<havenwood> old_relik: I'd suggest extracting `details` to a frozen constant.
<havenwood> old_relik_: Usually, DateTime.current is best in Rails (has TZ).
<old_relik_> that makes sense
<old_relik_> can't extract details
<old_relik_> it's populated via params
<old_relik_> oh, you mean an unpopulated constant
<havenwood> old_relik_: ah, didn't notice that
<havenwood> no, i'm just blind
<wildermind> Hi, I installed `rvm` and then typed `sudo rvm install puppet -v 3.8.7` and all went find but when I type `puppet --version` I get the following error: https://pastebin.ubuntu.com/p/jD76NFzjqk/
<old_relik_> right
<old_relik_> I mean, no
<wildermind> help? :) Im only using rvm to install puppter
<old_relik_> that's not what I meant
<wildermind> pupptet
<wildermind> puppet*
<dionysus69> what's the benefit of freezing? just for protection against accidental mutation?
old_relik has quit [Ping timeout: 256 seconds]
<havenwood> dionysus69: yup
<havenwood> wildermind: weird, seems like a Puppet error in monkey_patches.rb, line 178
<wildermind> havenwood: ok thanks, will try to install puppet without rvm lol, someone told me its the easiest
yokel has quit [Ping timeout: 245 seconds]
<havenwood> wildermind: doesn't look like an RVM problem
<wildermind> havenwood: you think its something with the package itself or my system
<wildermind> ?
<havenwood> wildermind: i'm curious what's on that line?
old_relik_ has quit [Quit: Page closed]
<wildermind> I'll look now, where are the global ruby gems installed?
<havenwood> wildermind: check: gem env gemdir
<havenwood> wildermind: usually you don't want to do a global install of RVM - just a local one suffices and is less likely to result in permission issues
<wildermind> havenwood: found it
<wildermind> `mode = Fcntl::O_CREAT | Fcntl::O_WRONLY | (offset.nil? ? Fcntl::O_TRUNC : 0)`
Swyper has joined #ruby
yokel has joined #ruby
conta has quit [Read error: Connection reset by peer]
<havenwood> old, oh, they left - was gunna suggest: https://gist.github.com/havenwood/4d5f13feb50b4f46880eeb8c7ea1509e
conta has joined #ruby
<havenwood> wildermind: and what is `offset` defined as?
yield__ has quit [Remote host closed the connection]
Swyper has quit [Ping timeout: 245 seconds]
<havenwood> wildermind: i don't see a `<<` on that line?
<havenwood> "undefined method `<<' for nil:NilClass"
yield_ has joined #ruby
yield_ has quit [Ping timeout: 250 seconds]
DTZUZO has joined #ruby
conta has quit [Read error: Connection reset by peer]
millerti has quit [Read error: Connection reset by peer]
AJA4350 has quit [Ping timeout: 244 seconds]
conta has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
<ryouba> Oh man
<ryouba> "<<" is one of the Ruby things I miss the most in Matlab.
AJA4350 has joined #ruby
nadir has joined #ruby
conta has quit [Quit: conta]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
asio has quit [Ping timeout: 252 seconds]
ldnunes has quit [Ping timeout: 245 seconds]
_joes_ has quit [Remote host closed the connection]
_joes_ has joined #ruby
_whitelogger has joined #ruby
ldnunes has joined #ruby
suukim has joined #ruby
yokel has quit [Ping timeout: 276 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
yield_ has joined #ruby
yokel has joined #ruby
<uplime> wouldn't it just be .append or += in most languages?
yield_ has quit [Ping timeout: 258 seconds]
dsmythe_ has joined #ruby
tdy1 has quit [Ping timeout: 276 seconds]
gb_away has quit [Ping timeout: 244 seconds]
dsmythe has quit [Ping timeout: 250 seconds]
gb_away has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 258 seconds]
AJA4351 is now known as AJA4350
cthulchu has joined #ruby
jenrzzz has joined #ruby
<adam12> dionysus69: Not sure if you're still working on this, but I took your gist and made a smaller gist with a few tests. I think I see the issue? but its too hard to really tell without seeing the method call invocation.
<adam12> dionysus69: What I think you're seeing is some_method(foo: true) is getting passed to method_missing as (args = [{foo: true}]), which you're then trying to splat.
<adam12> dionysus69: I added a keyword arg splat to method_missing and use a predicate to determine if we want to use args or kwargs. I'm sure there's a better way but I can't think of it right now. https://gist.github.com/adam12/a5fa8602357cd849ff39535bd137ee56
nicb has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
yield_ has joined #ruby
RedSnarf has joined #ruby
nicb has quit [Client Quit]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
cow[moo] has joined #ruby
<_ikke_> Why does rubocop warn for useless assignent in this code: Net::HTTP::Post.new(uri, initheader = {"Content-Type" => "application/json"})
<ytti> because initheader is not used
<havenwood> _ikke_: do you subsequently use initheader
<ytti> Content-Type: "application/json"
<ytti> i guess that's not valid sym
Swyper has quit [Remote host closed the connection]
<_ikke_> havenwood: no, initheader is a named argument in the initializer for Post
<ytti> no is not
<havenwood> _ikke_: it's not named though, it's positional
<ytti> it takes hash
<ytti> and the assingment returns said hash
<havenwood> _ikke_: Net::HTTP::Post.new(uri, {"Content-Type" => "application/json"})
hightower2 has joined #ruby
<_ikke_> Ah ok, I thought it was not the 2nd parameter
<_ikke_> Was confused by the signature of HTTPGenericRequest.new
<_ikke_> Thanks
<_ikke_> I find the documentation kind of confusing
shadeslayer has joined #ruby
<adam12> _ikke_: Sometimes people use the assignment like that to indicate it's intent (ie, if you wanted to call it `headers` to remember what it does).
AJA4351 has joined #ruby
<adam12> _ikke_: If you wanted to Rubocop from complaining, you could likely prefix the argument with an underscore. So _initheader = ...
<phaul> _ikke_: you should be looking at HTTPRequest not HTTPGenericRequest, as that's the direct parent
<phaul> and it's new signature is different
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
<phaul> &ri Net::HttpRequest.new
<rubydoc> Found no entry that matches class Net::HttpRequest class method new
<phaul> &ri Net::HTTPRequest.new
<_ikke_> phaul: thanks
<_ikke_> adam12: I don
<adam12> I wonder how long it will take before we see some RubyKaigi 2019 recordings on YT.
GodFather has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Remote host closed the connection]
Swyper has joined #ruby
AJA4350 has joined #ruby
Rapture has joined #ruby
GodFather has joined #ruby
Swyper has quit [Remote host closed the connection]
_joes_ has quit [Remote host closed the connection]
_joes_ has joined #ruby
asio has joined #ruby
Swyper has joined #ruby
Inline has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
AJA4351 is now known as AJA4350
spacesuitdiver has joined #ruby
aupadhye has quit [Remote host closed the connection]
<ryouba> uplime: not in Matlab.
_joes_ has quit [Ping timeout: 258 seconds]
<ryouba> say, what was that micro framework again that a number of people in here prefer over sinatra?
<ryouba> i don't mean Nancy, Cuba or Angelo
<havenwood> ryouba: Roda
<ryouba> yeees! jeremy evan's! thanks, havenwood
lxsameer has quit [Quit: out]
<adam12> Roda is awesome.
sameerynho has joined #ruby
<ryouba> colleague just started something new in Angelo ... wanted to ask if he had looked at Roda also. apparently his motivation were the builtin websockets and SSE support.
agent_white has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 has joined #ruby
<adam12> Roda has a message bus plugin. It works well for single-direction communication (so no websockets) and has (iirc) better browser support than SSE.
<adam12> I use Roda with websockets on one project, but in reality it's actually Iodine, since Roda just hands the socket back to Iodine.
<adam12> (which also works well, fyi)
AJA4351 is now known as AJA4350
<ryouba> hmmm
<adam12> ryouba: That might predate the message bus plugin.
<adam12> ryouba: An issue with the streaming plugin is some servers (ie. Iodine) will buffer the entire response.
<adam12> And then you have to ensure that nginx doesn't buffer _that_ response. It's buffers all the way down.
<ryouba> oic
<ryouba> told him; now he can make a more informed choice :P
FrankD has joined #ruby
yield_ has quit [Remote host closed the connection]
<adam12> Angelo looks interesting. By avoiding Rack, it's clearly made streaming a bit easier.
conta has joined #ruby
teclator has quit [Ping timeout: 244 seconds]
RedSnarf has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
englosh has joined #ruby
<englosh> So um what's with the JIT compiler? I don't really read anything about it anymore in the changelogs.
<havenwood> englosh: there are regular commits from k0kubun
<ryouba> adam12: unfortunately it's by far not as well-maintained as Roda
<englosh> ah ok so it's still developed
<englosh> because currently it doesn't appear really mature
<havenwood> englosh: also, see MIR: https://github.com/vnmakarov/mir
nadir has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
AJA4351 has joined #ruby
rippa has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
wildermind has quit [Quit: Connection closed for inactivity]
orbyt_ has joined #ruby
yield_ has joined #ruby
Xeago_ has joined #ruby
Swyper has quit [Remote host closed the connection]
yield_ has quit [Ping timeout: 250 seconds]
Xeago has quit [Ping timeout: 246 seconds]
Xeago_ is now known as Xeago
ellcs has quit [Ping timeout: 245 seconds]
tdy1 has joined #ruby
wildermind has joined #ruby
Swyper has joined #ruby
ricekrispie has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]
fphilipe_ has quit [Ping timeout: 255 seconds]
ricekrispie2 has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
kaleido has quit [Quit: out]
reber has joined #ruby
ralt has joined #ruby
ralt has quit [Client Quit]
kaleido has joined #ruby
hightower2 has quit [Ping timeout: 276 seconds]
AJA4350 has quit [Ping timeout: 258 seconds]
yield_ has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
yield_ has quit [Ping timeout: 245 seconds]
AJA4350 has joined #ruby
GodFather has quit [Ping timeout: 258 seconds]
gajus has joined #ruby
<gajus> Can anyone explain to me this code logic?
<gajus> Specifically, I am trying to understand how to retrieve comments for a specific article from dev.to API
<gajus> Reading this code, it would appear as if it should be https://dev.to/api/comments?a_id=101652
<gajus> but that gives 404
<adam12> gajus: My only guess is that it expects you to want JSON and you're not asking for JSON.
<gajus> Doubt it. Other endpoints just work, https://dev.to/api/articles
mikecmpbll has joined #ruby
Puffball has joined #ruby
ferr has quit [Quit: WeeChat 2.4]
brendan- has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
yield_ has joined #ruby
Puffball has quit [Quit: Puffball]
renich has joined #ruby
Swyper has quit [Remote host closed the connection]
jcarl43 has joined #ruby
yield_ has quit [Remote host closed the connection]
reber__ has joined #ruby
Eiam has joined #ruby
reber__ has quit [Remote host closed the connection]
reber has quit [Ping timeout: 255 seconds]
Puffball has joined #ruby
duderonomy has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
orbyt_ has joined #ruby
lucasb has joined #ruby
Swyper has joined #ruby
Puffball has quit [Quit: Puffball]
hiroaki has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ltem has joined #ruby
pupsikov has joined #ruby
jefffrails35 has joined #ruby
_joes_ has joined #ruby
nahra has joined #ruby
yield_ has joined #ruby
Swyper has quit [Remote host closed the connection]
houhoulis has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
tdy1 has quit [Ping timeout: 276 seconds]
conta has quit [Quit: conta]
Dbugger has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mitt3ns has joined #ruby
yield_ has quit [Ping timeout: 255 seconds]
agent_white has quit [Ping timeout: 258 seconds]
nowhere_man has joined #ruby
Dbugger has quit [Quit: Leaving]
alem0lars has quit [Ping timeout: 258 seconds]
AJA4350 has joined #ruby
extrowerk has joined #ruby
<extrowerk> Hi
<extrowerk> I'm with the HaikuPorts team here and currently working on updating our ruby port. Ist there a ruby-hacker channel, or sholud i dump my core here?
gix has joined #ruby
polishdub has joined #ruby
jenrzzz has joined #ruby
<depesz> i have plain hash. is there any special method to iterate over both keys and values? for now I'm doing: hash.each.to_a.flatten.each
jottr has quit [Ping timeout: 244 seconds]
<depesz> but perhaps there is some easier thing?
ellcs has joined #ruby
ellcs has quit [Max SendQ exceeded]
<balo> depesz: do you need a particular order? What's wrong with hash.each { |k,v| puts "#{k} => #{v}" }
<balo> ?
<depesz> balo: because i need to do the same thing with k and v
ellcs has joined #ruby
<depesz> and i'd prefer not to repeat the code, or have internal loop.
<depesz> it's sanity checking code for hash that will be used later on.
jenrzzz has quit [Ping timeout: 250 seconds]
ldnunes has quit [Ping timeout: 250 seconds]
<balo> so the block would be: check(k); check(v); ? does not seem too bad to me
<depesz> well, in my case the check is 2 lines only, so I don't put it in separate function.
<balo> it's on you. i'd put into a method and call it twice
<depesz> so for now it is "pretty long line 1" "pretty long line 2", and both of them repeat with the value, and not key.
<depesz> i'll go with hash.to_a.flatten. seems easier.
<balo> it's explicit and clear what is it doing. and method calling is cheaper than generating intermediate arrays i think
jenrzzz has joined #ruby
yield_ has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
cloaked1 has quit [Remote host closed the connection]
sauvin has quit [Read error: Connection reset by peer]
yield_ has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
ldnunes has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
clemens3_ has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
galaxie has quit [Remote host closed the connection]
galaxie has joined #ruby
<extrowerk> Question: On Haiku without any special configure switches rubygems.rb lands in the "/boot/system/lib/ruby/2.6.0/" folder, which then gets packaged and becomes read-only. Of course, gem doesn't like this as it tries to write it. It makes troubles (AFAIK) on differen platforms too. Is there any workaround for this?
ramfjord has joined #ruby
ldnunes has joined #ruby
duderonomy has joined #ruby
ldnunes has quit [Ping timeout: 258 seconds]
jottr has quit [Ping timeout: 255 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4351 has joined #ruby
[Butch] has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
nowhere_man has quit [Ping timeout: 245 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yield_ has joined #ruby
orbyt_ has joined #ruby
ldnunes has joined #ruby
kyrylo has joined #ruby
yield_ has quit [Ping timeout: 258 seconds]
duderonomy has joined #ruby
jottr has joined #ruby
kyrylo has quit [Ping timeout: 258 seconds]
duderonomy has quit [Client Quit]
fphilipe_ has joined #ruby
elated has joined #ruby
<elated> I'd like construct an image with a function from x,y to color. What's a well suited library for that?
<elated> given I already have the function
ogres has joined #ruby
cthulchu has quit [Ping timeout: 245 seconds]
feelextra has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<feelextra> hello, i have a question about migrations in Rails: when i have a model file for a table and run a migration that alters the table, does the model file change as well?
fluxAeon has joined #ruby
fluxAeon is now known as flux__aeon
suukim has quit [Quit: Konversation terminated!]
spacesuitdiver has quit [Remote host closed the connection]
clemens3_ has joined #ruby
bvdw6 has quit [Remote host closed the connection]
feelextra has quit [Ping timeout: 245 seconds]
thunderbirdtr has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
z4phod_ is now known as z4phod
RiPuk has quit [Quit: ZNC 1.7.3 - https://znc.in]
dsmythe_ has quit [Read error: Connection reset by peer]
RiPuk has joined #ruby
dsmythe has joined #ruby
SeepingN has joined #ruby
orbyt_ has joined #ruby
<havenwood> feel, oh - they left
<havenwood> no, it doesn't change the model to run a migration
AJA4350 has quit [Ping timeout: 258 seconds]
nahra has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
tdy1 has joined #ruby
nahra has joined #ruby
mikecmpbll has joined #ruby
livcd has quit [Changing host]
livcd has joined #ruby
heyimwill has quit [Ping timeout: 252 seconds]
lomex has joined #ruby
krasnus has quit [Ping timeout: 252 seconds]
yield_ has joined #ruby
yield_ has quit [Ping timeout: 246 seconds]
ellcs has quit [Ping timeout: 264 seconds]
heyimwill has joined #ruby
galaxie has quit [Ping timeout: 256 seconds]
krasnus has joined #ruby
nowhere_man has joined #ruby
galaxie has joined #ruby
tdy1 has quit [Ping timeout: 245 seconds]
duderonomy has joined #ruby
dsmythe_ has joined #ruby
reber has joined #ruby
lomex has left #ruby ["Textual IRC Client: www.textualapp.com"]
dsmythe has quit [Ping timeout: 258 seconds]
skryking has joined #ruby
englosh has quit [Quit: Page closed]
skryking has quit [Remote host closed the connection]
skryking has joined #ruby
dviola has quit [Quit: WeeChat 2.4]
yield_ has joined #ruby
yield_ has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mangold has joined #ruby
teclator has joined #ruby
teclator_ has joined #ruby
code_zombie has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
gell5 has joined #ruby
gell5 has quit [Remote host closed the connection]
jenrzzz has joined #ruby
gell5 has joined #ruby
BTRE has quit [Remote host closed the connection]
wildermind has quit [Quit: Connection closed for inactivity]
BTRE has joined #ruby
yield_ has joined #ruby
reber has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yield_ has quit [Ping timeout: 245 seconds]
ogres has quit [Quit: Connection closed for inactivity]
orbyt_ has joined #ruby
ddd has joined #ruby
ddd has quit [Client Quit]
pupsikov has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
tdy1 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has quit [Ping timeout: 258 seconds]
yield_ has joined #ruby
orbyt_ has joined #ruby
skryking has quit [Remote host closed the connection]
ramfjord_ has joined #ruby
GodFather has joined #ruby
yield_ has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
dsmythe has joined #ruby
dsmythe_ has quit [Ping timeout: 276 seconds]
AJA4350 has joined #ruby
Ltem has quit [Quit: bye]
hiroaki has quit [Quit: Leaving]
ldnunes has quit [Quit: Leaving]
tdy1 has quit [Ping timeout: 255 seconds]
dviola has joined #ruby
teclator_ has quit [Ping timeout: 258 seconds]
teclator has quit [Ping timeout: 246 seconds]
tdy1 has joined #ruby
yield_ has joined #ruby
dellavg_ has quit [Ping timeout: 268 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yield_ has quit [Ping timeout: 245 seconds]
tdy1 has quit [Ping timeout: 276 seconds]
sameerynho has quit [Ping timeout: 250 seconds]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
Fernando-Basso has joined #ruby
kyrylo has joined #ruby
_joes_ has quit [Remote host closed the connection]
laaron has joined #ruby
flux__aeon has quit [Quit: Textual IRC Client: www.textualapp.com]
_joes_ has joined #ruby
eph^ has quit [Read error: Connection reset by peer]
Dbugger has joined #ruby
_joes_ has quit [Ping timeout: 250 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
Dbugger has quit [Quit: Leaving]
clemens3 has joined #ruby
clemens3_ has quit [Ping timeout: 255 seconds]
orbyt_ has joined #ruby
dviola has quit [Quit: WeeChat 2.4]
_joes_ has joined #ruby
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
queip has quit [Ping timeout: 245 seconds]
mangold has quit [Quit: This computer has gone to sleep]
lucasb has quit [Quit: Connection closed for inactivity]
queip has joined #ruby
yield_ has joined #ruby
edwardly has quit [Read error: Connection reset by peer]
polishdub has quit [Quit: leaving]
yield_ has quit [Ping timeout: 245 seconds]
fphilipe_ has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
_joes_ has quit [Ping timeout: 245 seconds]
fphilipe_ has quit [Ping timeout: 257 seconds]
yield_ has joined #ruby
yield_ has quit [Ping timeout: 258 seconds]
mrtnpwn has joined #ruby
mrtnpwn has quit [Client Quit]
tdy1 has joined #ruby
AJA4350 has quit [Ping timeout: 258 seconds]
AJA4350 has joined #ruby
cd has quit [Quit: cd]
yield_ has joined #ruby
yield_ has quit [Ping timeout: 250 seconds]
mangold has joined #ruby