Sha256: b35cb50f47e8777a852e63ca1368eeaaa105b9680ba2ae025cdea417352df35b
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 KB
Contents
require 'fileutils' module VCR class Config class << self attr_reader :cassette_library_dir def cassette_library_dir=(cassette_library_dir) @cassette_library_dir = cassette_library_dir FileUtils.mkdir_p(cassette_library_dir) if cassette_library_dir end attr_writer :default_cassette_options def default_cassette_options @default_cassette_options ||= {} end attr_writer :http_stubbing_library def http_stubbing_library @http_stubbing_library ||= begin defined_constants = [:FakeWeb, :WebMock].select { |c| Object.const_defined?(c) } defined_constants[0].to_s.downcase.to_sym if defined_constants.size == 1 end end def ignore_localhost=(value) VCR.http_stubbing_adapter && VCR.http_stubbing_adapter.ignore_localhost = value @ignore_localhost = value end def ignore_localhost? VCR.http_stubbing_adapter ? VCR.http_stubbing_adapter.ignore_localhost? : @ignore_localhost end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vcr-1.0.3 | lib/vcr/config.rb |
vcr-1.0.2 | lib/vcr/config.rb |
vcr-1.0.1 | lib/vcr/config.rb |
vcr-1.0.0 | lib/vcr/config.rb |