summaryrefslogtreecommitdiff
path: root/lib/bundler/rubygems.rb
blob: e462a503b3b22b3da761fb9b0ca5f2dfb1518353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'rubygems'
require 'rubygems/specification'

module Gem
  @loaded_stacks = Hash.new { |h,k| h[k] = [] }

  class Specification
    attr_accessor :source, :location

    def load_paths
      require_paths.map {|p| File.join(full_gem_path, p) }
    end
    
    def groups
      @groups ||= []
    end
  end

  class Dependency
    attr_accessor :source, :group
  end
end