<summerisle>
good evening all, does anyone know of a way to define YARD/RDoc documentation external to source files? I have some gRPC generated code that I need to document, but should not/can not document in the actual source file because they will ultimately be regenerated.
<summerisle>
researching this has been fruitless
dcunit3d has joined #ruby
donofrio has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fercell has joined #ruby
ur5us_ has quit [Ping timeout: 264 seconds]
<nakilon>
summerisle you might find something in Google Cloud's github repos
<nakilon>
IIRC their SDK has some templating that then generates docs for every language or something like that
pinkpandabot has quit [Quit: groups!!!]
donofrio has joined #ruby
supercoven has joined #ruby
fercell has quit [Ping timeout: 256 seconds]
fercell has joined #ruby
skyikot has quit [Ping timeout: 240 seconds]
fercell has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
fercell has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
BenDover has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
cthu| has quit [Ping timeout: 265 seconds]
rippa has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
fippy has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby
charrit69 has joined #ruby
ur5us_ has joined #ruby
charrit69 has quit [Ping timeout: 240 seconds]
dfucci has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
hiroaki has joined #ruby
weaksauce has quit [Ping timeout: 264 seconds]
vondruch has joined #ruby
ur5us_ has quit [Ping timeout: 264 seconds]
royo25 has joined #ruby
gix- has quit [Ping timeout: 240 seconds]
cd has quit [Quit: cd]
BH23 has joined #ruby
Jonopoly has joined #ruby
cisco has joined #ruby
akem__ is now known as akem
fercell has joined #ruby
fippy has quit [Ping timeout: 256 seconds]
charrit69 has joined #ruby
cisco has quit [Quit: leaving]
cnsvc has quit [Ping timeout: 240 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
fippy has joined #ruby
Technodrome has joined #ruby
cloud69 has joined #ruby
BenDover has quit [Quit: BenDover]
dfucci has quit [Ping timeout: 246 seconds]
dfucci has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
Ediz has quit [Remote host closed the connection]
Ediz has joined #ruby
Ediz is now known as Guest25513
vondruch has quit [Ping timeout: 240 seconds]
baojg_ has joined #ruby
baojg has quit [Ping timeout: 264 seconds]
TCZ has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
<noctux>
hello again. Is there a way, to properly define a generic .hash method? I'm currently at a point, where I have a to "internalize" a list of objects, so transform them to another representation, deduplicate them and then hand out unique ids. So the correct way would probably be: use a Hash or Set (same datatstructure for mri) and put the elements there. However this means that I do have to implement
<noctux>
.hash and .eql? for a large number of classes. Is there a nice way to do that generically? I've found https://stackoverflow.com/a/25606643 for equal?, but I'm not sure whether something such as "instance_variables.map(&:hash).reduce(:^)" for .hash is a good idea: This means I assume that all instance_variables of e.g. Object also provide a sane .hash implementation...
<noctux>
may I assume something like that?
<noctux>
or will it most likely break in all different directions...
BenDover has joined #ruby
jinie has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
jcalla has quit [Ping timeout: 240 seconds]
jcalla has joined #ruby
meinside has joined #ruby
cloud69 has quit [Quit: Connection closed for inactivity]
drincruz has joined #ruby
Nahra has joined #ruby
foolish is now known as nyuszika7h
drincruz has quit [Ping timeout: 272 seconds]
vondruch has joined #ruby
baojg_ has quit [Remote host closed the connection]
baojg has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.9]
fippy has quit [Quit: Leaving]
drincruz has joined #ruby
TCZ has quit [Quit: Diabe? tkwi w szczegó?ach]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
supercoven has quit [Ping timeout: 240 seconds]
charrit69 has quit [Ping timeout: 240 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baojg_ has joined #ruby
baojg has quit [Ping timeout: 264 seconds]
TCZ has joined #ruby
<summerisle>
nakilon: hmm, maybe. if you're referring to protobuf specification documentation being copied into to the generated code that won't work for the grpc gem because it uses dynamic method lookup at runtime so there's not really any actuall "class" to document, let alone methods.
ignorand has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
charrit69 has joined #ruby
TCZ has quit [Quit: Diabe? tkwi w szczegó?ach]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
drincruz has joined #ruby
TvL2386 has quit [Remote host closed the connection]
<ignorand>
o/
Swyper has joined #ruby
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
al2o3-cr has quit [Quit: WeeChat 2.9]
al2o3-cr has joined #ruby
TCZ has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
Nahra has quit [Ping timeout: 240 seconds]
lucasb has joined #ruby
<adam12>
ignorand: ohai
<ignorand>
adam12: :)
Mikaela has quit [Quit: Mikaela]
rkoller has joined #ruby
Mikaela has joined #ruby
TomyWork has joined #ruby
skyikot has joined #ruby
baojg has joined #ruby
baojg_ has quit [Ping timeout: 264 seconds]
SuperLag has quit [Remote host closed the connection]
<TomyWork>
I'm doing "json = JSON.parse(response.body, object_class: OpenStruct)" to create a json object i can traverse using json.foo.bar.baz. Works fine so far. however, many of the keys look like "moo:meh" and I can't use json.foo.moo:meh.baz on that. I can use json.foo['moo:meh'].baz on it, though, but is there a more elegant way? maybe a way to replace all the keys?
Xiti has joined #ruby
<TomyWork>
basically i need a way to replace all the : in the keys by _, that would be nice
ChmEarl has joined #ruby
<jhass>
shouldn't be hard to write your own version of OpenStruct that handles that
DaRock has quit [Ping timeout: 256 seconds]
<TomyWork>
done that, works nicely :)
Lynx_ has joined #ruby
<Lynx_>
Hi! I have no idea about Ruby, but am trying to install a gem directly form github. Is this possible? Specifically this one: https://github.com/abshah/transrate (The original this is forked from can be installed with just gem install, but this fork contains some bug fixes)
<nofrex>
are you using Bundler, Lynx_ ?
<Lynx_>
I have no idea ;)
<TomyWork>
Lynx_, i dont know, but recent versions of "bundle init" are generating a Gemfile with something with github in it
<nofrex>
are you using this gem as a dependency in some other software, or are you using it stand-alone as a command-line utility, Lynx_ ?
<Lynx_>
The author recommended using 'gem install transrate -s https://github.com/abshah/transrate' to install this fork, but this only installs the original version for me.
<Lynx_>
nofrex: This is for stand-alone use on the command line, yes
<jhass>
Lynx_: you can just clone the repo, cd into it, gem build transrate.gemspec; gem install *.gem
<al2o3-cr>
Lynx_: or `gem install specific_install` then `gem git_install <git-repo>`
<Lynx_>
jhass, al2o3-cr: That's what I was looking for. Thanks!
<al2o3-cr>
Lynx_: yw :)
<al2o3-cr>
either work fine.
akem_ has joined #ruby
akem has quit [Ping timeout: 256 seconds]
<Lynx_>
While I'm here, when I run this I get a warning "The 'trollop' gem has been deprecated and has been replaced by 'optimist'." Can I fix this by just changing the names in the code, i.e. is optimist a drop-in replacement, or would I need to adapt code?
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
Rudd0 has quit [Ping timeout: 264 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
baojg_ has joined #ruby
baojg has quit [Ping timeout: 264 seconds]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 246 seconds]
towo has quit [Remote host closed the connection]
towo has joined #ruby
TCZ has joined #ruby
dfucci has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
cnsvc has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
ur5us_ has joined #ruby
ta has quit [Ping timeout: 265 seconds]
ta has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
<nakilon>
I start an external process with Open3.popen3 and wonder why get_process_mem gem shows the same amount for both processes -- exactly 14mb on start and exactly 120mb after some job on both sides
dfucci has joined #ruby
<nakilon>
maybe something about memory management on macOS I'm not aware about'
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]