qq.... I have a hash which might contain some procs/lambdas - I don't care about them specifically but later on I need to Marshal.load/dump the hash so Im trying to find a nice way to 'clean' the hash of any procs/lambdas....etc. The easiest way so far is to do cleanhash = JSON.load(dirtyhash.to_json) which "stringyfies" everything and means I can Marshal.dump/load it without error - but that's pretty expensive - is there are better way to do
So, I can use 'respond_to?' to see if an object contains a certain method - is there anyway to dig a little deeper to check how many arguments the method takes?
In my scenario I think its ok - I need to import dynamic code (plugins) and the host app needs to determine whether or not a certain method exists (respond_to?) and if so whether or not to pass an argument hash to it
So, I started a little open source project recently, struggled to come up with a good name for it, when I did, I googled it and couldn't find any matching projects - after developing it, and being pretty tied to the name, I just found out there is already a rubygem with the same name for a now deprecated library that was released in 2013
Are there any acceptable cases where (with the original authors cooperation) a rubygem can be retired and deleted, and replaced with something else of the same name? I guess even if it was deprecated 2 years ago it could still cause confusion, so I guess not