Missing models
This commit is contained in:
parent
4efb93428e
commit
23d27756b8
|
@ -2,11 +2,11 @@
|
||||||
module MusicBrainz
|
module MusicBrainz
|
||||||
def self.query_interval=(sec)
|
def self.query_interval=(sec)
|
||||||
MusicBrainz::Tools::Proxy.query_interval = sec
|
MusicBrainz::Tools::Proxy.query_interval = sec
|
||||||
puts "WARNING! MusicBrainz.query_interval is deprecated. Use MusicBrainz::Tools::Proxy.query_interval"
|
STDOUT.send :puts, "WARNING! MusicBrainz.query_interval is deprecated. Use MusicBrainz::Tools::Proxy.query_interval"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.cache_path=(path)
|
def self.cache_path=(path)
|
||||||
MusicBrainz::Tools::Cache.cache_path = path
|
MusicBrainz::Tools::Cache.cache_path = path
|
||||||
puts "WARNING! MusicBrainz.cache_path is deprecated. Use MusicBrainz::Tools::Cache.cache_path"
|
$stdout.send :puts, "WARNING! MusicBrainz.cache_path is deprecated. Use MusicBrainz::Tools::Cache.cache_path"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -5,6 +5,7 @@ require "nokogiri"
|
||||||
require "cgi"
|
require "cgi"
|
||||||
|
|
||||||
require "version"
|
require "version"
|
||||||
|
require "deprecated"
|
||||||
|
|
||||||
module MusicBrainz
|
module MusicBrainz
|
||||||
autoload :Base, "musicbrainz/base"
|
autoload :Base, "musicbrainz/base"
|
||||||
|
|
|
@ -13,6 +13,10 @@ module MusicBrainz
|
||||||
@@query_interval = sec.to_f
|
@@query_interval = sec.to_f
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.query_interval
|
||||||
|
@@query_interval
|
||||||
|
end
|
||||||
|
|
||||||
def self.tries_limit=(num)
|
def self.tries_limit=(num)
|
||||||
@@tries_limit = num.to_i
|
@@tries_limit = num.to_i
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue