Sha256: e9b6bfeb03f5d65d781d6ce325b92e126bf437a38e16fe6d94a2e828dc8a915f

Contents?: true

Size: 615 Bytes

Versions: 26

Compression:

Stored size: 615 Bytes

Contents

module Inch
  module Codebase
    class Proxy
      attr_reader :objects

      def initialize(language, provider)
        @objects = Codebase::Objects.new(language, provider.objects)
      end

      def grade_lists
        lists = Evaluation.new_grade_lists
        lists.each do |range|
          list = objects.select { |o| range.scores.include?(o.score) }
          range.objects = Objects.sort_by_priority(list)
        end
        lists
      end

      def self.parse(dir, config)
        provider = CodeObject::Provider.parse(dir, config)
        new(config.language, provider)
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
inch-0.6.0 lib/inch/codebase/proxy.rb
inch-0.6.0.rc6 lib/inch/codebase/proxy.rb
inch-0.6.0.rc5 lib/inch/codebase/proxy.rb
inch-0.6.0.rc4 lib/inch/codebase/proxy.rb
inch-0.6.0.rc3 lib/inch/codebase/proxy.rb
inch-0.6.0.rc2 lib/inch/codebase/proxy.rb
inch-0.6.0.rc1 lib/inch/codebase/proxy.rb
inch-0.5.10 lib/inch/codebase/proxy.rb
inch-0.5.9 lib/inch/codebase/proxy.rb
inch-0.5.8 lib/inch/codebase/proxy.rb
inch-0.5.7 lib/inch/codebase/proxy.rb
inch-0.5.6 lib/inch/codebase/proxy.rb
inch-0.5.5 lib/inch/codebase/proxy.rb
inch-0.5.4 lib/inch/codebase/proxy.rb
inch-0.5.3 lib/inch/codebase/proxy.rb
inch-0.5.2 lib/inch/codebase/proxy.rb
inch-0.5.1 lib/inch/codebase/proxy.rb
inch-0.5.0 lib/inch/codebase/proxy.rb
inch-0.5.0.rc11 lib/inch/codebase/proxy.rb
inch-0.5.0.rc10 lib/inch/codebase/proxy.rb