4 ms·
From what I can tell, it looks like Gemstash was used as a reference to build google-cloud-gemserver. There are certainly pattern similarities, but a lot of the
by rickyc091 9y ago
From what I can tell, it looks like Gemstash was used as a reference to build google-cloud-gemserver. There are certainly pattern similarities, but a lot of the codebase has been rewritten. The foundational structure is definitely very similar, but the code within it is different.
Edit >> Adding References (Excuse my formatting.)
gemstash.rb
* https://github.com/bundler/gemstash/blob/master/lib/gemstash.rb https://github.com/bundler/gemstash/blob/master/lib/gemstash...
* https://github.com/GoogleCloudPlatform/google-cloud-gemserver/blob/master/lib/google/cloud/gemserver.rb https://github.com/GoogleCloudPlatform/google-cloud-gemserve...
version.rb
* https://github.com/bundler/gemstash/blob/master/lib/gemstash/version.rb https://github.com/bundler/gemstash/blob/master/lib/gemstash...
* https://github.com/GoogleCloudPlatform/google-cloud-gemserver/blob/master/lib/google/cloud/gemserver/version.rb https://github.com/GoogleCloudPlatform/google-cloud-gemserve...
setup
* https://github.com/bundler/gemstash/blob/master/bin/setup https://github.com/bundler/gemstash/blob/master/bin/setup
* https://github.com/GoogleCloudPlatform/google-cloud-gemserver/blob/master/bin/setup https://github.com/GoogleCloudPlatform/google-cloud-gemserve...
Just a few examples of similarities. The file location is identical as well.
- whistlerbrk 9y agoWith the exception of the setup bit, the rest of those links are totally standard Ruby gem setup.
- jsnell 9y agoThat's bundler boilerplate, totally verbatim: https://github.com/bundler/bundler/blob/master/lib/bundler/templates/newgem/bin/setup.tt https://github.com/bundler/bundler/blob/master/lib/bundler/t...
- vmarsy 9y agoIs there any examples of concrete source code matching exactly? I'm not familiar with ruby, but what if it's just how ruby projects are set up usually? The version file content, and the file structure might just be both taken from a tutorial on how to create a basic ruby package? This happens for other languages, a lot of CMakeLists.txt files looks very similar for instance, including the exact location of version files and whatnot if people follow tutorials like [1] [1] https://cmake.org/cmake-tutorial/ https://cmake.org/cmake-tutorial/
- shadeslayer 9y agoThe way I see it, those are similar because they're very common programming patterns in the Ruby community.
- reubensutton 9y agoThese are all pretty generic Ruby things - the first file is just configuring which components of gemstash to auto load, the other two are most probably auto generated when you make a new gem