Module: BigBananajour::GemDependencies

Defined in:
lib/bigbananajour/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( bananajour           2.2.2 ),
%w( sinatra              0.9.4 ),
%w( json                 1.1.7 ),
%w( fancypath            0.5.13 ),
%w( rainbow              1.0.1 ),
%w( grit                 1.1.1 ),
%w( dnssd                1.3.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



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

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

.for_name(name) ⇒ Object



25
26
27
# File 'lib/bigbananajour/gem_dependencies.rb', line 25

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