Sha256: f42d57484be8d9417a71679706635be4741ee40f8ea1c7b3e99a0e328434298e

Contents?: true

Size: 462 Bytes

Versions: 16

Compression:

Stored size: 462 Bytes

Contents

require 'molinillo'

module Xcake
  class DependencyProvider

    include Molinillo::SpecificationProvider

    attr_accessor :repository

    def initialize(repository)
      @repository = repository
    end

    def name_for(dependency)
      dependency
    end

    def search_for(dependency)
      @repository.select do |g|
        g == dependency
      end
    end

    def dependencies_for(specification)
      specification.dependencies
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
xcake-0.6.19 lib/xcake/dependency_provider.rb
xcake-0.6.18 lib/xcake/dependency_provider.rb
xcake-0.6.17 lib/xcake/dependency_provider.rb
xcake-0.6.16 lib/xcake/dependency_provider.rb
xcake-0.6.14 lib/xcake/dependency_provider.rb
xcake-0.6.13 lib/xcake/dependency_provider.rb
xcake-0.6.12 lib/xcake/dependency_provider.rb
xcake-0.6.11 lib/xcake/dependency_provider.rb
xcake-0.6.10 lib/xcake/dependency_provider.rb
xcake-0.6.9 lib/xcake/dependency_provider.rb
xcake-0.6.8 lib/xcake/dependency_provider.rb
xcake-0.6.7 lib/xcake/dependency_provider.rb
xcake-0.6.6 lib/xcake/dependency_provider.rb
xcake-0.6.5 lib/xcake/dependency_provider.rb
xcake-0.6.4 lib/xcake/dependency_provider.rb
xcake-0.6.2 lib/xcake/dependency_provider.rb