lib/mixpanel.rb in mixpanel-0.8.1 vs lib/mixpanel.rb in mixpanel-0.9.0
- old
+ new
@@ -1,2 +1,8 @@
-require 'mixpanel/mixpanel'
-require 'mixpanel/mixpanel_middleware'
+require 'mixpanel/tracker'
+
+module Mixpanel
+ def self.new(token, env, async = false)
+ Kernel.warn("DEPRECATED: Use Mixpanel::Tracker.new instead")
+ Mixpanel::Tracker.new(token, env, async)
+ end
+end