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.96.0 lib/cc/config/json_adapter.rb
codeclimate-0.95.0 lib/cc/config/json_adapter.rb
codeclimate-0.94.1 lib/cc/config/json_adapter.rb
codeclimate-0.94.0 lib/cc/config/json_adapter.rb
codeclimate-0.93.0 lib/cc/config/json_adapter.rb
codeclimate-0.92.1 lib/cc/config/json_adapter.rb
codeclimate-0.92.0 lib/cc/config/json_adapter.rb
codeclimate-0.91.0 lib/cc/config/json_adapter.rb
codeclimate-0.90.0 lib/cc/config/json_adapter.rb
codeclimate-0.89.0 lib/cc/config/json_adapter.rb
codeclimate-0.88.0 lib/cc/config/json_adapter.rb
codeclimate-0.87.5 lib/cc/config/json_adapter.rb
codeclimate-0.87.4 lib/cc/config/json_adapter.rb
codeclimate-0.87.3 lib/cc/config/json_adapter.rb
codeclimate-0.87.2 lib/cc/config/json_adapter.rb
codeclimate-0.87.1 lib/cc/config/json_adapter.rb
codeclimate-0.87.0 lib/cc/config/json_adapter.rb
codeclimate-0.86.0 lib/cc/config/json_adapter.rb
codeclimate-0.85.29 lib/cc/config/json_adapter.rb
codeclimate-0.85.28 lib/cc/config/json_adapter.rb