baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: 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!
webhat has quit [Quit: No Ping reply in 180 seconds.]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DarthGandalf has quit [Ping timeout: 272 seconds]
eckhardt_ has joined #ruby
cagomez has quit [Remote host closed the connection]
r29v has quit [Quit: r29v]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
samort7 has joined #ruby
s2013 has joined #ruby
<zenspider> fuck me. sorted the data before I generated the graph and now it isn't crashing. totally non-random data driven crashes. gotta love it
DarthGandalf has joined #ruby
kapil___ has joined #ruby
nowhere_man has quit [Remote host closed the connection]
modin has quit [Ping timeout: 256 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnny56 has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
lxsameer has joined #ruby
orbyt_ has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
gizmore has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
hays_ has joined #ruby
<hays_> i am seeking a useful pattern for ruby. here's the deal. I tend to encode config items in JSON. its pretty easy to load in a json file and then just access the stuff. but its also kinda opaque in the sense that I'm not really validating or documenting the structure of that json in my code. is there a good, concise pattern for something like this?
johnny56 has joined #ruby
AJA4350 has quit [Quit: AJA4350]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akaiiro has quit [Ping timeout: 245 seconds]
cagomez has joined #ruby
lightstalker has quit [Remote host closed the connection]
lightstalker has joined #ruby
graphene has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 260 seconds]
graphene has joined #ruby
akaiiro has joined #ruby
modin has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
Tempesta has joined #ruby
DTZUZU has quit [Ping timeout: 244 seconds]
hays_ has quit [Remote host closed the connection]
sameerynho has quit [Ping timeout: 272 seconds]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
jmcgnh has quit [Ping timeout: 248 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
arescorpio has joined #ruby
jmcgnh has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
tdy has joined #ruby
arescorpio has quit [Quit: Leaving.]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
bmurt has joined #ruby
mroutis has joined #ruby
sspreitz has quit [Ping timeout: 260 seconds]
braincrash has quit [Quit: bye bye]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sspreitz has joined #ruby
braincrash has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
DTZUZU has joined #ruby
DTZUZU has quit [Ping timeout: 240 seconds]
tdy1 has joined #ruby
tdy has quit [Ping timeout: 256 seconds]
tdy1 has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 2.2]
DTZUZU has joined #ruby
gnufied has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
znz_jp has quit [Remote host closed the connection]
znz_jp has joined #ruby
t0xik has joined #ruby
t0xik is now known as t0x
akaiiro has quit [Remote host closed the connection]
mroutis has quit [Remote host closed the connection]
<havenwood> hays: Protocal Buffers might be along the lines of what you're looking for. Have you played with GRPC?
<havenwood> hays: It's a bit of a context shift, but it gives a bunch of the things I craved doing HTTP 1.1 with JSON.
<havenwood> hays: Err, is it only file storage you're looking for?
<havenwood> I may have been hasty...
raulp has quit [Ping timeout: 268 seconds]
<havenwood> Mmm. Actually reading your question, Protocol Buffers aren't entirely irrelevant. I've looked at json-schema for HTTP interfaces, but not actually adopted it so I'm not sure!
<havenwood> hays: Are you running into invalid config file issues? Or just looking for best practices?
graphene has quit [Remote host closed the connection]
duckpupp- has joined #ruby
graphene has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
za1b1tsu has joined #ruby
Inline has quit [Quit: Leaving]
Synthead has joined #ruby
<Synthead> what are your thoughts on foo = lots + of / logic; MyClass.new(foo: foo) vs. MyClass(foo: lots + of / logic) ?
lightstalker has quit [Ping timeout: 256 seconds]
<baweaver> depends
dellavg has joined #ruby
<baweaver> mostly on the context.
sauvin has joined #ruby
ryu- has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
Synthead has quit [Remote host closed the connection]
raulp has joined #ruby
<havenwood> Synth: I'm just glad you're using keyword arguments!
<dminuoso> havenwood: So that bug yesterday happened when I closed the lid of my macbook *while* running `bundle install` in a docker container.
<dminuoso> This should not happen. :(
<havenwood> dminuoso: haha
<baweaver> ohai dminuoso
<dminuoso> o/
G has joined #ruby
xt233 has joined #ruby
cadillac_ has quit [Ping timeout: 268 seconds]
<LiftLeft> what's the best http module?
cadillac_ has joined #ruby
<dminuoso> What is the best car.
<LiftLeft> I dunno I'll use em-http-request. It seems pretty active
apeiros has quit [Remote host closed the connection]
<LiftLeft> I dunno faraday look easier
<LiftLeft> *looks
<dminuoso> LiftLeft: What is the best airplane?
Furai has quit [Quit: WeeChat 2.2]
<LiftLeft> the one easiest to fly
<LiftLeft> kek
<dminuoso> LiftLeft: Without knowing what you consider "good", "useful" or actually need, it's hard to say really.
<dminuoso> The airplane easiest to fly with might not be the best to transport 10 cars with.
<dminuoso> The airplane easiest to fly with might not be the best to transport 600 people with.
<dminuoso> The airplaine easiert to fly with might not be the best in a dogfight.
<dminuoso> Notice a pattern? :)
apeiros has joined #ruby
Furai has joined #ruby
jlhg has joined #ruby
jlhg has left #ruby ["ERC (IRC client for Emacs 25.1.1)"]
Dbugger has joined #ruby
moei has quit [Quit: Leaving...]
apeiros has quit [Remote host closed the connection]
s2013 has joined #ruby
xt233 has quit [Remote host closed the connection]
postmodern has joined #ruby
aupadhye has joined #ruby
agent_white has quit [Ping timeout: 272 seconds]
dionysus69 has joined #ruby
shaman42_ has quit [Quit: Changing server]
hfp_work has quit [Quit: bye]
hfp_work has joined #ruby
DTZUZO has quit [Ping timeout: 272 seconds]
<LiftLeft> thanks
aufi has joined #ruby
kevinsjoberg has joined #ruby
clemens3 has joined #ruby
mike11 has joined #ruby
pavelz has joined #ruby
samort7 has quit [Quit: Leaving]
lightstalker has joined #ruby
drale2k_ has joined #ruby
apeiros has joined #ruby
moei has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheBrayn has quit [Quit: poof]
TomyWork has joined #ruby
TheBrayn has joined #ruby
ur5us has joined #ruby
mikecmpbll has joined #ruby
ferhaty has joined #ruby
KevinMGranger[m] has quit [Remote host closed the connection]
zalipuha[m] has quit [Remote host closed the connection]
Demos[m] has quit [Read error: Connection reset by peer]
Giphy[m] has quit [Read error: Connection reset by peer]
bascht[m] has quit [Remote host closed the connection]
Hanma[m] has quit [Remote host closed the connection]
carsonbaker[m] has quit [Read error: Connection reset by peer]
bastilian[m] has quit [Read error: Connection reset by peer]
turt2live has quit [Remote host closed the connection]
intheclouddan[m] has quit [Remote host closed the connection]
Hexafox[m] has quit [Remote host closed the connection]
luna_x[m] has quit [Read error: Connection reset by peer]
aviraldg[m] has quit [Read error: Connection reset by peer]
LiftLeft has quit [Quit: Bye]
Alina-malina has quit [Ping timeout: 260 seconds]
LiftLeft has joined #ruby
ByronJohnson has quit [Ping timeout: 260 seconds]
ByronJohnson has joined #ruby
jottr has joined #ruby
Tempesta has quit [Remote host closed the connection]
Alina-malina has joined #ruby
teclator has joined #ruby
aldr has joined #ruby
Demos[m] has joined #ruby
turt2live has joined #ruby
reber has joined #ruby
sameerynho has joined #ruby
Freshnuts has quit [Quit: Leaving]
aldr has quit [Remote host closed the connection]
dhollin3 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Beams has joined #ruby
dionysus69 has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aldr has joined #ruby
dhollinger has quit [Ping timeout: 244 seconds]
sylario has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
c0ncealed2 has quit [Remote host closed the connection]
c0ncealed2 has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
lxsameer has joined #ruby
sameerynho has quit [Ping timeout: 255 seconds]
amelliaa has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
drale2k_ has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.1]
za1b1tsu has joined #ruby
t0x is now known as t0xik
venmx has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
snuz has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikhael_k33hl has joined #ruby
alex`` has joined #ruby
<mikhael_k33hl> Line 48: https://github.com/jbussdieker/ruby-rsync/blob/master/lib/rsync/change.rb `send(prop)`, can someone tell me what it does?
<Radar> mikhael_k33hl: it calls the method of whatever the "prop" variable is within that loop
<Radar> send(:checksum), send(:size), etc.
<mikhael_k33hl> Radar: Oh okay, thanks for clarifying that one. First time stumbling on send() :)
Turnikov has joined #ruby
Eiam has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
agent_white has joined #ruby
Sigyn has quit [Quit: People always have such a hard time believing that robots could do bad things.]
jottr has quit [Ping timeout: 240 seconds]
Sigyn has joined #ruby
gnufied has joined #ruby
amelliaa has quit [Quit: -]
GodFather has joined #ruby
InfinityFye has joined #ruby
jottr has joined #ruby
apparition has joined #ruby
postmodern has quit [Quit: Leaving]
alex`` has quit [Ping timeout: 256 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aldr has quit []
agent_white has quit [Ping timeout: 244 seconds]
agent_white has joined #ruby
thi has quit []
cjohnson has quit [Ping timeout: 276 seconds]
drale2k_ has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
alem0lars has joined #ruby
nikivi- has quit [Remote host closed the connection]
theRoUS has joined #ruby
<theRoUS> is there any way a constructor (or any method) can identify the object that invoked it?
DTZUZO has joined #ruby
<theRoUS> not the #caller list, but the actual invoking object
dionysus70 has joined #ruby
dionysus70 has quit [Client Quit]
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
VladGh has quit [Remote host closed the connection]
alex`` has joined #ruby
<apeiros> theRoUS: no
outhicat has joined #ruby
<apeiros> it'd be binding_of_caller.eval("self"), but binding_of_caller is not vanilla ruby.
<theRoUS> apeiros: :-( nothing through bindings, or tracing, or ..?
<theRoUS> not vanilla?
<apeiros> I'm not sure about its current status. it might be a gem.
<theRoUS> aha
<theRoUS> hmm. i wonder why it's not part of vanilla..
<ineb> because it is overhead
agent_white has quit [Remote host closed the connection]
<theRoUS> over mine, certainly. :-)
agent_white has joined #ruby
<apeiros> ineb: not so sure about that. when you call methods, ruby has a callstack anyway.
<apeiros> and e.g. javascript exposes callee just fine (via arguments.callee there)
<ineb> wait. callee is self isnt it?
<theRoUS> fwis in general, of the two aspects of OOP, structural inheritance is always considered.. but runtime inheritance rather less so
AJA4350 has joined #ruby
<apeiros> ineb: errr, right, caller, not callee :D
snickers has joined #ruby
<ineb> apeiros: and Kernel#caller_locations does not hold this information?
<apeiros> no
<apeiros> that's just a properly destructured Kernel#caller
<ineb> i see
<apeiros> but feel free to check the docs
<apeiros> maybe they've added something
<apeiros> ruby is evolving after all, and I'm not always up to the latest things there are :)
<ineb> me neither. thats why iam asking :)
<ineb> and i also dont know if passing around the callers bindings would be overhead
<ineb> however, binding_of_caller is opening the debug inspector and i afaik this is overhead
<ineb> s/i//
<ineb> or better s/i // ^^
doubledup has joined #ruby
Zaab1t has joined #ruby
outhicat has left #ruby [#ruby]
doubledup has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 240 seconds]
doubledup has joined #ruby
mike11 has quit [Read error: Connection reset by peer]
drale2k_ has quit [Quit: Textual IRC Client: www.textualapp.com]
outhicat has joined #ruby
Blaguvest has joined #ruby
x0f has quit [Ping timeout: 276 seconds]
outhicat has quit []
outhicat has joined #ruby
cats has quit [Ping timeout: 272 seconds]
cats has joined #ruby
x0f has joined #ruby
Alina-malina has quit [Ping timeout: 272 seconds]
bmurt has joined #ruby
vondruch has quit [Ping timeout: 268 seconds]
GodFather has quit [Ping timeout: 272 seconds]
alem0lars has quit [Ping timeout: 268 seconds]
fmcgeough has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
agent_white has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
[Butch] has joined #ruby
outhicat has quit []
outhicat has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
Zaab1t has quit [Quit: Zaab1t]
Tempesta has joined #ruby
snuz has quit [Quit: WeeChat 2.2]
niexxx has joined #ruby
<niexxx> hi, is there any way that installing the packages libruby and ruby-dev could cause errors in code that dont cause errors otherwise? this is on both ubuntu and alpine
<niexxx> these are the errors:
<niexxx> #<Thread:0x000056434c715648@/var/lib/gems/2.5.0/gems/REDACTED/lib/REDACTED/subprocesses.rb:69 run> terminated with exception (report_on_exception is true):
<niexxx> /var/lib/gems/2.5.0/gems/REDACTED/lib/REDACTED/subprocesses.rb:70:in `each_line': stream closed in another thread (IOError)
<niexxx> could it be that installing those shared libraries etc. is causing more errors to be reported?
johnny56 has quit [Ping timeout: 276 seconds]
<niexxx> this is on ruby 2.5.1p57
outhicat has quit []
dhollin3 is now known as dhollinger
outhicat has joined #ruby
<apeiros> niexxx: that sounds like a bug in your REDACTED gem
<apeiros> looks like broken concurrent programming.
<niexxx> yeah of course, im not worried about the bug, im pretty sure i know what that is
<apeiros> ok. in that case, just the answer to your question: no
<niexxx> the issue is that exception (or at least those messages) dont occur on osx, and it doesnt occur on alpine until I install the ruby-dev package, and it doesnt occur on ubuntu until I install ruby-dev and libruby
<niexxx> very odd
jottr has joined #ruby
<apeiros> most concurrency issues are not deterministic.
<niexxx> ahhhh
<niexxx> good point. i mean ive run this code thousands of times and never seen it, and now this message appears 100% of the time in the aforementioned conditons.
<apeiros> same ruby versions? asking since the more likely reason is a change in ruby's thread scheduler, and that would (afaik) only change with the ruby version.
<apeiros> of course it can also just be completely random.
<niexxx> however, this error is occuring right before the process exits, I wonder if those libraries cause quite slightly different timings leading to those error messages making it to stdout before the process exits
ferhaty has quit [Quit: ferhaty]
<niexxx> ill try changing the code to wait before it dies or something
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
agent_white has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
beeman has quit [Killed (Sigyn (Spam is off topic on freenode.))]
alem0lars has joined #ruby
<niexxx> damn, it doesnt actually occur 100% of the time. assume makes an ass out of u and me...
<niexxx> especially where concurrency is concerned
Inline has joined #ruby
<apeiros> concurrency requires discipline. at least in ruby.
<niexxx> yeah, i guess i got sidetracked because its 100% never occurred on OSX, where i actually developed the thing, so i assumed it was the environment
Blaguvest has quit [Read error: Connection reset by peer]
<niexxx> presumably its just different timing from the different kernel schedulers or whatever
netscape101 has joined #ruby
sameerynho has joined #ruby
InfinityFye has quit [Read error: Connection reset by peer]
niexxx has quit [Ping timeout: 272 seconds]
troys has joined #ruby
niexxx has joined #ruby
johnny56 has joined #ruby
apparition has quit [Quit: Bye]
Alina-malina has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polishdub has joined #ruby
kevinsjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
dionysus69 has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
aufi has quit [Ping timeout: 272 seconds]
<niexxx> so, whats a good pattern for reading from an IO that may or may not be closed?
Azure has quit [Read error: Connection reset by peer]
<niexxx> until io.closed? {puts f.gets} has a race condition
Azure has joined #ruby
<niexxx> should I just catch the IOError and move on?
<apeiros> how about: avoid not knowing?
<apeiros> no, that code only has a race condition if there's more code than just that.
<apeiros> you could handle the IO in one thread instead of multiple.
<niexxx> to explain, what im trying to do is stream the stdout of a subprocess into the stdout of my ruby process
<elomatreb> Can you use the non-blocking operations for this?
FrankyCyborg has quit [Quit: FrankyCyborg]
<niexxx> i dont know why im being secretive about it, heres the code: https://github.com/JonnieCache/tinyci/blob/master/lib/tinyci/subprocesses.rb#L71
<niexxx> ive tried replacing that each_line block with until io.closed? || io.eof? {log_info io.gets}
<elomatreb> Mmh, isn't there a way to just give the subprocess your own stdout in the Open3 call?
akaiiro has joined #ruby
<niexxx> if there is id love to know it
<apeiros> don't know about open3, but with spawn it's definitively doable.
<apeiros> see Kernel#spawn
jottr has quit [Ping timeout: 244 seconds]
apeiros has quit []
niexxx has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
cats has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
niexxx has joined #ruby
catsed has joined #ruby
cagomez has quit [Remote host closed the connection]
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
nicesignal has quit [Remote host closed the connection]
cagomez has joined #ruby
nicesignal has joined #ruby
cagomez has quit [Remote host closed the connection]
aupadhye has quit [Quit: Leaving]
discopatrick has joined #ruby
mroutis has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
NightMonkey has quit [Quit: ZNC - http://znc.in]
yokel has joined #ruby
r29v has joined #ruby
rippa has joined #ruby
akaiiro has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
lxsameer has quit [Ping timeout: 244 seconds]
catsed is now known as cats
outhicat has quit [Remote host closed the connection]
teclator has quit [Disconnected by services]
ur5us has joined #ruby
qolq has joined #ruby
benzrf has joined #ruby
<benzrf> is there a nice way to take an iterable whose items are iterables and get an iterable which "flattens" it
s2013 has joined #ruby
<bougyman> benzrf: example?
ur5us has quit [Ping timeout: 256 seconds]
<ccooke> benzrf: it certainly wouldn't be hard to write one
<benzrf> i know, but i was hoping there was already something in the stdlib :)
<benzrf> bougyman: e.g., ['a.txt', 'b.txt'].map {|fn| File.open(fn).each_line}.join would give an Enumerable which produces the lines of 'a.txt' and then the lines of 'b.txt'
<benzrf> i mean, you could read them all into arrays and then use Array#flatten, but that would be a bad idea
impermanence has joined #ruby
bijan_ has joined #ruby
<ccooke> Actually, you might be able to use Enumerable#flat_map
mozzarella has quit [Remote host closed the connection]
<ccooke> depending on your block
<ccooke> That effectively concatenates the outputs of all the blocks
mozzarella has joined #ruby
<benzrf> oh wait
<benzrf> you mean instead of map in my sample
<ccooke> yes
<benzrf> oh, thatd probably work o:
<ccooke> or rather, I mean "In some cases, based on what you want, you could probably use that to do what you want"
<benzrf> yeah
<ccooke> Fine. have some horrible monkey-patch code ;-) https://gist.github.com/ccooke/d41afdf9838685d9c4d2bdd1980f77ad
<benzrf> heh
<benzrf> nah i couldve easily written it ;)
<benzrf> thanks tho
<benzrf> l8r
benzrf has left #ruby ["WeeChat 2.2"]
cthulchu_ has joined #ruby
<elomatreb> The answer would have been to collect/#to_a the enumerators in the block :s
kevinsjoberg has joined #ruby
cthulchu has quit [Ping timeout: 240 seconds]
<ccooke> That might be memory intensive if any of them are large
<niexxx> anyone else unable to push to github?
mikecmpbll has quit [Quit: inabit. zz.]
<mroutis> no, niexxx, slack is having an outage, tho
jrich523 has joined #ruby
Beams has quit [Quit: .]
cagomez has joined #ruby
<jrich523> hey guys, what is a = in a method def like def my_method=(value)
<mroutis> jrich523: an attribute writter
* mroutis finding documentation about it
<jrich523> awesome, thanks :)
<jrich523> nah i googled and found stuff
Cthulu201 has joined #ruby
<jrich523> just hard to google syntax, and ruby is full of it :-/
cagomez_ has joined #ruby
<mroutis> yep, I still dream of a way to index "code" for search engines
<jrich523> ugh someone once gave me a search engine for syntax search (probably wouldnt have helped here) but i lost it :(
GodFather has joined #ruby
Eiam has joined #ruby
<al2o3-cr> sometimes it's useful to use symbolhound.com; http://symbolhound.com/?q=def+foo%3D%28bar%29
<jrich523> hmm i wonder if it was symbol hound
<jrich523> i wish there was some rules on how to post generic code, so that you could search like that safely... and a general number lol.. so weird... like if you wanted to do "i want first 10" google will usually give you a suggestion for what number is more commonly searched, but... im typing too much
SeepingN has joined #ruby
cagomez has quit [Ping timeout: 272 seconds]
sanscoeur has joined #ruby
sanscoeur has quit [Remote host closed the connection]
orbyt_ has joined #ruby
bijan_ has quit [Remote host closed the connection]
orbyt_ has quit [Client Quit]
bijan_ has joined #ruby
apeiros_ has joined #ruby
cagomez_ has quit [Remote host closed the connection]
sanscoeur has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
DLSteve_ has joined #ruby
apeiros_ is now known as apeiros
SCHAPiE has quit [Quit: ZNC - https://znc.in]
solocshaw has joined #ruby
solocshaw has quit [Client Quit]
alex`` has quit [Ping timeout: 260 seconds]
solocshaw has joined #ruby
bijan_ has quit [Ping timeout: 260 seconds]
solocshaw has quit [Client Quit]
alem0lars has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
alem0lars has joined #ruby
<baweaver> avdi's keynote from Southeast Ruby just went live! https://www.youtube.com/watch?v=-JpAUN6Ovok
<baweaver> Give it a watch, it'll be worth your time.
<havenwood> baweaver: Nice! Congrats!
<havenwood> baweaver: ooh, thought it was yours :-(
<baweaver> Next week or so :)
<havenwood> Avdi's is good too :-)
<havenwood> \o/
<baweaver> Who all is going to RubyConf this year?
* havenwood raises hand
<baweaver> First time going :D
<havenwood> Ninth time going :D
orbyt_ has joined #ruby
mattwc has joined #ruby
eckhardt_ has joined #ruby
<havenwood> Err, eighth - I mean
* havenwood tries to count
<havenwood> Register for RubyConf!: https://rubyconf.org/register
<Zarthus> cheers baweaver, will do in a minute
bijan_ has joined #ruby
patr0clus has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
bijan_ has quit [Ping timeout: 256 seconds]
MuffinPimp has quit [Quit: Goodbye.]
<mroutis> I burnt my savings going to rails conf; guess I should start saving some bucks for RubyConf 2019
venmx has quit [Ping timeout: 244 seconds]
sanscoeur has quit []
bijan_ has joined #ruby
MuffinPimp has joined #ruby
graphene has quit [Remote host closed the connection]
lxsameer has joined #ruby
graphene has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 256 seconds]
SCHAPiE has joined #ruby
za1b1tsu has quit [Ping timeout: 272 seconds]
darkhanb has joined #ruby
bijan__ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
lxsameer has joined #ruby
KidSK8 has joined #ruby
kapil___ has joined #ruby
alex`` has quit [Ping timeout: 240 seconds]
clemens3 has quit [Ping timeout: 240 seconds]
<jrich523> hey guys, with a bundle install, is there a list of locations it checks? mostly, locally before checking the 'source' (link or search term would be plenty welcome!)
bijan_ has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 240 seconds]
agent_white has quit [Ping timeout: 240 seconds]
<jrich523> google is mostly getting me where it installs stuff to, not where it checks for gems
agent_white has joined #ruby
alex`` has joined #ruby
<havenwood> jrich523: First Bundler will check vendor/cache, then $GEM_HOME and finally the sources in your Gemfile.
dendazen has joined #ruby
<havenwood> jrich523: If you've installed that very gem and version before, it will use the installed version.
<jrich523> well does it look to the folder itself? i just noticed a gem that had no path and was just basically a reference to a folder within the project
<havenwood> jrich523: Use `gem which` to see where the file that's required for the gem lives.
<havenwood> jrich523: For example: gem which rails
alex`` has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
patr0clus has quit [Quit: WeeChat 2.1]
<havenwood> jrich523: What's the problem you're running into? Getting an error? Have you tried a pristine install of the offending gem?
impermanence has quit [Remote host closed the connection]
<jrich523> well, not so much a problem, was just sort of confused because this one has no path and its ok, but i saw someone reference... err... itself... and that confused me too, which basically just made me feel that i have no idea how bundle "finds" stuff
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alex`` has joined #ruby
<jrich523> this was a gem 'foreman_hooks' and it was just dump in to the foreman folder (its a plugin for it)
<jrich523> but i recall seeing something crazy like this on another project, gem 'corp-provision', path: '.' which is super odd, cuz thats within the gem/project
<jrich523> however it did have a 'todo: remove' so clearly why ever they did it, they knew it was a bad idea
lxsameer has quit [Ping timeout: 256 seconds]
beowuff has joined #ruby
ur5us has joined #ruby
solocshaw has joined #ruby
solocshaw has quit [Client Quit]
mroutis has quit [Ping timeout: 244 seconds]
ferhaty has joined #ruby
cadillac_ has quit [Ping timeout: 272 seconds]
ur5us has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
cadillac_ has joined #ruby
alem0lars has quit [Ping timeout: 260 seconds]
ferhaty has quit [Quit: ferhaty]
alex``` has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
alex`` has quit [Ping timeout: 240 seconds]
alex``` has quit [Client Quit]
lxsameer has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
s2013 has joined #ruby
lxsameer has joined #ruby
snuz has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
sauvin has quit [Remote host closed the connection]
akaiiro has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
lxsameer has joined #ruby
dionysus69 has joined #ruby
daxroc__ has left #ruby [#ruby]
agent_white has quit [Ping timeout: 244 seconds]
agent_white has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
mroutis has joined #ruby
beeman has joined #ruby
za1b1tsu has joined #ruby
s2013 has joined #ruby
<mroutis> baweaver: I just saw advi's keynote, it was surprisingly emotive
lxsameer has joined #ruby
<Zarthus> i just rounded it up as well, I added him to my beer list.
<mroutis> this is what I love about ruby / ruby on rails community, there's always a human side of it
za1b1tsu has quit [Ping timeout: 244 seconds]
<baweaver> avdi's a good guy, and has a heck of a story to tell. I need to get a beer with him some time later myself :)
<baweaver> (then again I don't really drink beer, so maybe a whisky for me instead)
<mroutis> btw. avdi has a course on OOP, I'm on the third week of the course an it have been amazing so far
lxsameer has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
dviola has joined #ruby
agent_white has quit [Quit: brb]
Freshnuts has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
augcesar has joined #ruby
<mikhael_k33hl> Will it be okay to publish a gem that is based on another one? like you just added a feature to it or changed a section?
<al2o3-cr> mikhael_k33hl: ofc
<mikhael_k33hl> al2o3-cr: what's ofc?
<kaleido> of course
<al2o3-cr> mikhael_k33hl: ok, sure you can ;)
<elomatreb> Two aspects: 1) Legally, obey the restrictions of the source license 2) socially, if it's just a minor change or something like that and/or the gem is still maintained, a pull request may be better
<mikhael_k33hl> oh okay, thanks
<mikhael_k33hl> elomatreb: nah, I don't think the owner wants to add the functions/features though
<elomatreb> If you've written the code, opening a pull request can't hurt. Although the owner doesn't appear too active
bmurt has quit [Ping timeout: 260 seconds]
<Zarthus> The MIT license absolutely allows you to fork free of charge and make your own ruby-rsync from that, though
<mikhael_k33hl> thanks, I'll do that and make some changes according to my needs hehe
<Zarthus> just don't hold that guy liable if it burns your house down ;)
<elomatreb> The problem is more that if this project now becomes active again and adds a new feature, your two implementations have diverged and people who want to use the gem will have to choose.
<elomatreb> Esp. if you use the same toplevel namespace this is really annoying to deal with
<Zarthus> aye, that's fair
<mikhael_k33hl> nah, I'll place mine on a different namespace, just wanted to create a gem honestly. haha
<al2o3-cr> mikhael_k33hl: have you experience with c extensions or libffi?
<mikhael_k33hl> al2o3-cr: nah I don't
<mikhael_k33hl> al2o3-cr: why? can I use that for rsync?
<al2o3-cr> mikhael_k33hl: was going to suggest make a little gem that wraps libuuid ;)
<al2o3-cr> if you were just putting it out there =P
<al2o3-cr> but i see you're concentrating on rsync
orbyt_ has joined #ruby
<mikhael_k33hl> al2o3-cr: https://linux.die.net/man/3/libuuid this?
<al2o3-cr> mikhael_k33hl: yes.
<mikhael_k33hl> what would I use libuuid for?
<mikhael_k33hl> Oh, you mean if I was to create a gem.
<mikhael_k33hl> Sorry about that, hehe.
clemens3 has joined #ruby
discopatrick has quit [Quit: Connection closed for inactivity]
<al2o3-cr> mikhael_k33hl: anything you need uuid's for.
impermanence has joined #ruby
<elomatreb> What would wrapping that get you over SecureRandom.uuid, if I may ask?
<mikhael_k33hl> al2o3-cr: right. however, I need to be able to retrieve stats information of an rsync job which I can't using the current rsync gem
thy0 has joined #ruby
doubledup has quit [Quit: Leaving]
mroutis has quit [Remote host closed the connection]
<al2o3-cr> mikhael_k33hl: are you asking me how?
<mikhael_k33hl> al2o3-cr: Uhhhm, not really but if you know how, that'd be great
<mikhael_k33hl> will save me time hehe
<al2o3-cr> mikhael_k33hl: firstly, give it a try. secondly if you don't succeed come back and i'll help you ;)
<mikhael_k33hl> al2o3-cr: I'll hold you on that. and thanks
<al2o3-cr> mikhael_k33hl: np.
masterasia has joined #ruby
<masterasia> am I able to monkey patch a few levels deep
<masterasia> by just declaring the module chain?
<al2o3-cr> masterasia: we'll probably need more context.
<mikhael_k33hl> is there a spec.before(:suite) alternative for minitest?
<masterasia> I want to override this authenticate method in a rails app
<masterasia> al2o3-cr,
<al2o3-cr> masterasia: why not use a refinement instead of monkey-patching?
<masterasia> I remember that feature. Let me see here.
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr> or prepend in the module chain if you must.
<masterasia> I need this change to be global though
s2013 has joined #ruby
<masterasia> adding in 2fa for a devise warden strategy
za1b1tsu has joined #ruby
za1b1tsu has quit [Ping timeout: 268 seconds]
ryu- has quit [Quit: leaving]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
niexxx has quit [Ping timeout: 256 seconds]
za1b1tsu has joined #ruby
s2013 has joined #ruby
s2013 has quit [Client Quit]
chouhoulis has joined #ruby
<al2o3-cr> masterasia: if you need it global then monkey-patch, but otherwise i'd just prepend a module or use a refinement.
<al2o3-cr> imho
<al2o3-cr> and humble that being ;)
mikhael_k33hl has quit [Quit: Page closed]
<al2o3-cr> i don't monkey-patch anything these days.
<al2o3-cr> masterasia: btw, lemurs are evil.
bmurt has joined #ruby
<elomatreb> baweaver: ^ heresy
<al2o3-cr> elomatreb: phaha, i'm joking ;)
jottr has joined #ruby
orbyt_ has joined #ruby
<elomatreb> :)
za1b1tsu has quit [Ping timeout: 272 seconds]
cagomez has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
<al2o3-cr> this channel to serious =p
<havenwood> al2o3-cr: too*
<havenwood> al2o3-cr: ;-P
* havenwood tries to be serious
<al2o3-cr> yep, ;)
* al2o3-cr wouldn't lie straight in a bed
<al2o3-cr> take that for a pun haha
<al2o3-cr> i'll leave that for baweaver ;D
Alina-malina has quit [Ping timeout: 260 seconds]
Fr4n has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fr4n has joined #ruby
postmodern has joined #ruby
Alina-malina has joined #ruby
* baweaver polishes hammer
<baweaver> Oh hey al2o3-cr! How's things?
<baweaver> Hm, I should make some evil lemurs some time.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> baweaver: everything a-ok.
dellavg has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
Dbugger has quit [Ping timeout: 265 seconds]
lxsameer has quit [Ping timeout: 268 seconds]
fredlinhares has joined #ruby
reber has quit [Remote host closed the connection]
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
kapil___ has quit [Quit: Connection closed for inactivity]
jcalla has quit [Quit: Leaving]
eckhardt_ has joined #ruby
za1b1tsu has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
eckhard__ has joined #ruby
drbrain has quit [Quit: Goodbye]
za1b1tsu has quit [Ping timeout: 244 seconds]
drbrain has joined #ruby
eckhardt_ has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
t0xik has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
drbrain has quit [Quit: Goodbye]
drbrain has joined #ruby
dionysus69 has joined #ruby
dendazen has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
orbyt_ has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graphene has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 240 seconds]
graphene has joined #ruby
chouhoulis has joined #ruby
snickers has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
cagomez has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
chouhoulis has joined #ruby
graphene has quit [Remote host closed the connection]
cagomez has joined #ruby
graphene has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
P1ro has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
cats has quit [Ping timeout: 260 seconds]
za1b1tsu has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
chouhoulis has joined #ruby
cats has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
drbrain has quit [Quit: Goodbye]
Nicmavr has joined #ruby
drbrain has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
venmx has joined #ruby
augcesar has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
eddof13 has joined #ruby
jottr has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
drbrain has quit [Ping timeout: 260 seconds]
drbrain has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
chouhoulis has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
polishdub has quit [Quit: leaving]
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
kevinsjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
lxsameer has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
za1b1tsu has joined #ruby
code_zombie has joined #ruby
za1b1tsu has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
TheBloke has quit [Ping timeout: 240 seconds]
TheBloke has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
code_zombie has quit [Quit: Leaving]
sameerynho has quit [Ping timeout: 265 seconds]
venmx has quit [Ping timeout: 272 seconds]
cats has quit [Ping timeout: 244 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cats has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
t0xik has quit [Quit: Connection closed for inactivity]
mroutis has joined #ruby
cthulchu_ has quit [Ping timeout: 268 seconds]
r3m_ has joined #ruby