Sha256: 9c278da6673d2f9f4e6d83e2399038a22558cc553b35754e82c483ca77d82998

Contents?: true

Size: 315 Bytes

Versions: 97

Compression:

Stored size: 315 Bytes

Contents

module CC
  class Config
    class JSONAdapter < Config
      DEFAULT_PATH = ".codeclimate.json".freeze

      attr_reader :config

      def self.load(path = DEFAULT_PATH)
        new(::JSON.parse(File.open(path).read))
      end

      def initialize(json = {})
        @config = json
      end
    end
  end
end

Version data entries

97 entries across 97 versions & 2 rubygems

Version Path
codeclimate-0.85.27 lib/cc/config/json_adapter.rb
codeclimate-0.85.26 lib/cc/config/json_adapter.rb
codeclimate-0.85.25 lib/cc/config/json_adapter.rb
codeclimate-0.85.24 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.54 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.53 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.52 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.51 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.50 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.49 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.48 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.47 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.46 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.45 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.44 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.43 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.42 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.41 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.40 lib/cc/config/json_adapter.rb
codeclimate-fede-0.85.39 lib/cc/config/json_adapter.rb