Projects
Mega:23.09
ruby
_service:tar_scm:rubygems.prov
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:rubygems.prov of Package ruby
#!/usr/bin/ruby require 'rubygems/package' module RubyGemsProv module Helpers # If there is some prelease version files, such as rc1 (i.e. non-numeric # field), prepend this field by tilde instead of dot. def self.normalize_prerelease(version) if version.prerelease? prerelease = version.version.sub /^#{version.release}\./, '' "#{version.release}~#{prerelease}" else version.release end end end # Reports all functionality gem provides. def self.provides while filename = gets filename.strip! begin specification = Gem::Specification.load filename puts "rubygem(#{specification.name}) = #{Helpers::normalize_prerelease(specification.version)}" rescue => e # Ignore all errors. end end end end if __FILE__ == $0 RubyGemsProv::provides end
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2