Module: Bananajour::GemDependencies

Defined in:
lib/bananajour/gem_dependencies.rb

Overview

DRYs version number dependencies and provides a simple way require them

Defined Under Namespace

Classes: Dependency

Constant Summary collapse

DEPENDENCIES =
[
%w( sinatra              0.9.2 ),
%w( json                 1.1.7 ),
%w( chrislloyd-fancypath 0.5.8 ),
%w( rainbow              1.0.1 ),
%w( mojombo-grit         1.1.1 ),
%w( dnssd                0.7.1 ),
%w( rack                 1.0.0 ),
%w( thin                 1.0.0 ),
%w( haml                 2.0.9 ),
%w( activesupport        2.3.2 )

Class Method Summary collapse

Class Method Details

.allObject



19
20
21
# File 'lib/bananajour/gem_dependencies.rb', line 19

def self.all
  DEPENDENCIES.map {|(name, version)| Dependency.new(name, version)}
end

.for_name(name) ⇒ Object



22
23
24
# File 'lib/bananajour/gem_dependencies.rb', line 22

def self.for_name(name)
  all.find {|d| d.name == name }
end