Sha256: 5695d7ba9e6627cfe70d8729937814279ce0dc269a813c10ef91904eb8f0432d
Contents?: true
Size: 416 Bytes
Versions: 13
Compression:
Stored size: 416 Bytes
Contents
module GemWrappers module Specification def self.installed_gems if Gem::VERSION > '1.8' then Gem::Specification.to_a else Gem.source_index.map{|name,spec| spec} end end def self.find(name = "gem-wrappers") @gem_wrappers_spec ||= installed_gems.find{|spec| spec.name == name } end def self.version find ? find.version.to_s : nil end end end
Version data entries
13 entries across 13 versions & 1 rubygems