lib/bundler/source.rb in bundler-0.9.0.pre1 vs lib/bundler/source.rb in bundler-0.9.0.pre2

- old
+ new

@@ -41,10 +41,11 @@ def fetch_specs index = Index.new Bundler.ui.info "Source: Fetching remote index for `#{uri}`... " (main_specs + prerelease_specs).each do |name, version, platform| + next unless Gem::Platform.match(platform) spec = RemoteSpecification.new(name, version, platform, @uri) spec.source = self index << spec end Bundler.ui.info "done." @@ -100,9 +101,10 @@ def initialize(options) @options = options @glob = options[:glob] || "{,*/}*.gemspec" @path = options[:path] + @default_spec = nil end def default_spec(*args) return @default_spec if args.empty? name, version = *args \ No newline at end of file