Sha256: a85050ae261066e9f58702b0f23de48b67ae8e3c5a250ef6efd2c02c04c2cd86
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
class Version def self.list vimorg_dir = get_vimorg_dir return [] unless File.exists?(vimorg_dir) Dir.chdir(vimorg_dir) do list = `hg tags`.split.reverse return list.values_at(* list.each_index.select { |i| i.odd? }) end end def self.versions output = [] vims_dir = get_vims_dir return output unless File.exists?(vims_dir) Dir.glob(File.join(vims_dir, 'v*')).sort.each do |d| output << File.basename(d) end return output end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vvm-rb-0.0.13 | lib/vvm-rb/version.rb |