Sha256: b086a2745aef3ef4bb0b1db590aeb3a7054d1870df5dc3cfad9f33001dbbd664
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
module VCR def config warn "WARNING: `VCR.config` is deprecated. Use VCR.configure instead." configure { |c| yield c } end def self.const_missing(const) return super unless const == :Config warn "WARNING: `VCR::Config` is deprecated. Use VCR.configuration instead." configuration end def Cassette.const_missing(const) return super unless const == :MissingERBVariableError warn "WARNING: `VCR::Cassette::MissingERBVariableError` is deprecated. Use `VCR::Errors::MissingERBVariableError` instead." Errors::MissingERBVariableError end class Configuration def stub_with(*adapters) warn "WARNING: `VCR.config { |c| c.stub_with ... }` is deprecated. Use `VCR.configure { |c| c.hook_into ... }` instead." hook_into(*adapters) end end module Deprecations module Middleware module Faraday def initialize(*args) if block_given? Kernel.warn "WARNING: Passing a block to `VCR::Middleware::Faraday` is deprecated. \n" + "As of VCR 2.0, you need to wrap faraday requests in VCR.use_cassette, just like with any other library hook." end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vcr-2.0.0.rc1 | lib/vcr/deprecations.rb |
vcr-2.0.0.beta2 | lib/vcr/deprecations.rb |
vcr-2.0.0.beta1 | lib/vcr/deprecations.rb |