Sha256: fce02fd80311b4f3977a3349b57c4ffdb19976a213f60fe9d079f8f065d80112

Contents?: true

Size: 879 Bytes

Versions: 2

Compression:

Stored size: 879 Bytes

Contents

# -*- encoding: utf-8 -*-

module MusicBrainz
  class << self
    def query_interval
      $stdout.send :puts, "WARNING! MusicBrainz.query_interval is deprecated. Use MusicBrainz::Tools::Proxy.query_interval"
      MusicBrainz::Tools::Proxy.query_interval
    end

    def query_interval=(sec)
      $stdout.send :puts, "WARNING! MusicBrainz.query_interval= is deprecated. Use MusicBrainz::Tools::Proxy.query_interval"
      MusicBrainz::Tools::Proxy.query_interval = sec
    end

    def cache_path
      $stdout.send :puts, "WARNING! MusicBrainz.cache_path is deprecated. Use MusicBrainz::Tools::Cache.cache_path"
      MusicBrainz::Tools::Cache.cache_path
    end

    def cache_path=(path)
      $stdout.send :puts, "WARNING! MusicBrainz.cache_path= is deprecated. Use MusicBrainz::Tools::Cache.cache_path"
      MusicBrainz::Tools::Cache.cache_path = path
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
musicbrainz-0.7.1 lib/deprecated.rb
musicbrainz-0.7.0 lib/deprecated.rb