1
0
Fork 0

Missing models

This commit is contained in:
Gregory Eremin 2012-07-06 19:24:50 +04:00
parent 4efb93428e
commit 23d27756b8
3 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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"

View File

@ -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