Join GitHub today
Gem::Specification should allow to specify source code repository/location #1007
I would find it handy if "Source Code" link on rubygems.org would not have to be populated by hand for each gem, but instead be read from the Specification (https://github.com/rubygems/rubygems/blob/master/lib/rubygems/specification.rb).
It might look like:
Gem::Specification.new do |spec| spec.name = "mygem" # ... spec.source_code_link = "https://github.com/fwolfste/magento_remote" # or wherever it is # ... end
This would ease e.g. forking and inspecting existing code. When gem owners do not populate this field on rubygems, potential contributors have only access to the installed version of the code (e.g. in
referenced this issue
Sep 8, 2014
Thanks @drbrain for these instructions.
This sounds as it would then be guaranteed to get this functionality :)
The patch might probably simply go against https://github.com/rubygems/rubygems.org/blob/master/app/models/linkset.rb#L15
def update_attributes_from_gem_specification!(spec) self.update_attributes!(:home => spec.homepage, # Fetch "Source Code" link from metadata/repository_url :code => spec.metadata[:repository_url]) end