lib/buildr/core/application.rb
# Returns Gem::Specification for every listed and installed Gem, Gem::Dependency
# for listed and uninstalled Gem, which is the installed before loading the buildfile.
Returns Gem::Specification for every listed and installed Gem, Gem::Dependency
for listed and uninstalled Gem, which is the installed before loading the buildfile.
Returns Gem :: Specification for every listed and installed Gem Gem :: Dependency for listed and uninstalled Gem which is the installed before loading the buildfile .
def listed_gems 
      Array(settings.build['gems']).map do |dep|
        name, trail = dep.scan(/^\s*(\S*)\s*(.*)\s*$/).first
        versions = trail.scan(/[=><~!]{0,2}\s*[\d\.]+/)
        versions = ['>= 0'] if versions.empty?
        dep = Gem::Dependency.new(name, versions)
        Gem::SourceIndex.from_installed_gems.search(dep).last || dep
      end
    end
def listed_gems Array ( settings . build [ 'gems' ] ) . map do | dep | name , trail = dep . scan ( / ^ \s *( \S *) \s *(.*) \s *$ / ) . first versions = trail . scan ( / [=><~!]{0,2} \s *[ \d \. ]+ / ) versions = [ '>= 0' ] if versions . empty? dep = Gem :: Dependency . new ( name , versions ) Gem :: SourceIndex . from_installed_gems . search ( dep ) . last || dep end end
Returns Gem::Specification for every listed and installed Gem, Gem::Dependency
for listed and uninstalled Gem, which is the installed before loading the buildfile.
Returns Gem :: Specification for every listed and installed Gem Gem :: Dependency for listed and uninstalled Gem which is the installed before loading the buildfile .
#:nodoc: