Sha256: 237d2921a4a2a699ab4c841ed60fb0a4a04371aee16f22678266fa52861ccb09
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
class TMBundle::BundleName REGEX = /([_\.\-]tmbundle)$/i def initialize(name) @name = name end attr_reader :name private :name def install_name File.basename(name =~ REGEX ? name.gsub(REGEX, '.tmbundle') : name) end def repo_name name =~ REGEX ? name : name+'.tmbundle' end def git_url "https://github.com/#{repo_name}.git" end def inspect "#<TMBundle::BundleName @name=#@name repo_name:#{repo_name} git_url:#{git_url} install_name:#{install_name}>" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tmbundle-manager-0.1.1 | lib/tmbundle/bundle_name.rb |