zevarito / mixpanel

Simple lib to track events in Mixpanel service. It can be used in any rack based framework.
MIT License
273 stars 84 forks source link

Namespacing issue with mixpanel_client gem breaks tracking #128

Open AhmedBelal opened 10 years ago

AhmedBelal commented 10 years ago

Tracking events breaks due to a namespacing issue if you have this gem installed: https://github.com/keolo/mixpanel_client

undefined method `parse' for Mixpanel::URI:Class
/Users/ahmed/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/attr_encrypted-1.2.1/lib/attr_encrypted.rb:241:in `method_missing'
/Users/ahmed/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/mixpanel-4.0.8/lib/mixpanel/tracker.rb:66:in `post_request'
/Users/ahmed/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/mixpanel-4.0.8/lib/mixpanel/event.rb:40:in `track_event'
/Users/ahmed/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/mixpanel-4.0.8/lib/mixpanel/event.rb:7:in `track'

URI.parse should be ::URI.parse to avoid namespacing conflicts