RUBY-315 deprecate BSON.max_bson_size and BSON.update_max_bson_size.
This commit is contained in:
parent
cf0dafd6e7
commit
d999a5ba4d
|
@ -29,10 +29,12 @@ module BSON
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.max_bson_size
|
def self.max_bson_size
|
||||||
|
warn "BSON::BSON_CODER.max_bson_size is deprecated and will be removed in v2.0."
|
||||||
CBson.max_bson_size
|
CBson.max_bson_size
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.update_max_bson_size(connection)
|
def self.update_max_bson_size(connection)
|
||||||
|
warn "BSON::BSON_CODER.update_max_bson_size is deprecated and now a no-op. It will be removed in v2.0."
|
||||||
CBson.update_max_bson_size(connection)
|
CBson.update_max_bson_size(connection)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -18,10 +18,12 @@ module BSON
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.max_bson_size
|
def self.max_bson_size
|
||||||
|
warn "BSON::BSON_CODER.max_bson_size is deprecated and will be removed in v2.0."
|
||||||
Java::OrgJbson::RubyBSONEncoder.max_bson_size(self)
|
Java::OrgJbson::RubyBSONEncoder.max_bson_size(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.update_max_bson_size(connection)
|
def self.update_max_bson_size(connection)
|
||||||
|
warn "BSON::BSON_CODER.update_max_bson_size is deprecated and now a no-op. It will be removed in v2.0."
|
||||||
Java::OrgJbson::RubyBSONEncoder.update_max_bson_size(self, connection)
|
Java::OrgJbson::RubyBSONEncoder.update_max_bson_size(self, connection)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -78,10 +78,12 @@ module BSON
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.update_max_bson_size(connection)
|
def self.update_max_bson_size(connection)
|
||||||
|
warn "BSON::BSON_CODER.update_max_bson_size is deprecated and now a no-op. It will be removed in v2.0."
|
||||||
@@max_bson_size = connection.max_bson_size
|
@@max_bson_size = connection.max_bson_size
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.max_bson_size
|
def self.max_bson_size
|
||||||
|
warn "BSON::BSON_CODER.max_bson_size is deprecated and will be removed in v2.0."
|
||||||
@@max_bson_size
|
@@max_bson_size
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue