Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Re-add and deprecate default_engine

Closes #43.
  • Loading branch information...
commit fc3df0c7a3e2ab9ce0c2c7e7617a4da97dd13f6e 1 parent 25b8deb
@sferik sferik authored
Showing with 11 additions and 2 deletions.
  1. +6 −0 lib/multi_json.rb
  2. +5 −2 multi_json.gemspec
View
6 lib/multi_json.rb
@@ -19,6 +19,12 @@ def initialize(message, backtrace, data)
["json/pure", :json_pure]
]
+ # TODO: Remove for 2.0 release (but no sooner)
+ def default_engine
+ deprecate("MultiJson.default_engine is deprecated and will be removed in the next major version. Use MultiJson.default_adapter instead.")
+ self.default_adapter
+ end
+
# The default adapter based on what you currently
# have loaded and installed. First checks to see
# if any adapters are already loaded, then checks
View
7 multi_json.gemspec
@@ -25,8 +25,11 @@ Gem::Specification.new do |gem|
MultiJson.engine is deprecated and will be removed in the next major version.
Use MultiJson.adapter instead.
- MultiJson.engine= is deprecated and will be removed in the next major version.
- Use MultiJson.use instead.
+ MultiJson.engine= is deprecated and will be removed in the next major
+ version. Use MultiJson.use instead.
+
+ MultiJson.default_engine is deprecated and will be removed in the next major
+ version. Use MultiJson.default_adapter instead.
********************************************************************************
eos
Please sign in to comment.
Something went wrong with that request. Please try again.