mixpanel 4.0.8 → 4.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
- [![Build Status](https://secure.travis-ci.org/zevarito/mixpanel.png?branch=master)](http://travis-ci.org/zevarito/mixpanel)
1
+ # Important News
2
2
 
3
- ### If you are upgrading from a previous version to 4.x.x please read deprecation notes.
3
+ This Gem will not be maintained anymore, there is an Official gem being developed and we encourage you to use that gem from now on.
4
+
5
+ We will merge PR for bugs for a little period of time, but no new features will be added.
6
+
7
+ [Official Gem repository](https://github.com/mixpanel/mixpanel-ruby)
4
8
 
5
9
  ## Table of Contents
6
10
 
@@ -81,7 +81,7 @@ module Mixpanel::Person
81
81
  data = build_person action, request_properties, properties
82
82
  end
83
83
 
84
- parse_response post_request(options[:url], { data: encoded_data(data) }, options[:async])
84
+ parse_response post_request(options[:url], { :data => encoded_data(data) }, options[:async])
85
85
  end
86
86
 
87
87
  def person_request_properties(request_properties_or_distinct_id)
@@ -24,7 +24,7 @@ module Mixpanel
24
24
  data_hash = JSON.load(data)
25
25
  if data_hash.is_a?(Hash) && data_hash['_mixpanel_url']
26
26
  url = data_hash.delete('_mixpanel_url')
27
- Net::HTTP.post_form(URI.parse(url), data_hash)
27
+ Net::HTTP.post_form(::URI.parse(url), data_hash)
28
28
  end
29
29
  end
30
30
  producer.join
@@ -63,7 +63,7 @@ module Mixpanel
63
63
  if async
64
64
  send_async(url, data)
65
65
  else
66
- Net::HTTP.post_form(URI.parse(url), data)
66
+ Net::HTTP.post_form(::URI.parse(url), data)
67
67
  end
68
68
  end
69
69
 
@@ -79,7 +79,7 @@ module Mixpanel
79
79
  w = Mixpanel::Tracker.worker
80
80
  begin
81
81
  url << "\n"
82
- w.write JSON.dump(data.merge(_mixpanel_url: url))
82
+ w.write JSON.dump(data.merge(:_mixpanel_url => url))
83
83
  1
84
84
  rescue Errno::EPIPE => e
85
85
  Mixpanel::Tracker.dispose_worker w
@@ -2,7 +2,7 @@ files = ['README.md', 'LICENSE', 'Rakefile', 'mixpanel.gemspec', '{spec,lib}/**/
2
2
 
3
3
  spec = Gem::Specification.new do |s|
4
4
  s.name = "mixpanel"
5
- s.version = "4.0.8"
5
+ s.version = "4.0.9"
6
6
  s.rubyforge_project = "mixpanel"
7
7
  s.description = "Simple lib to track events in Mixpanel service. It can be used in any rack based framework."
8
8
  s.author = "Alvaro Gil"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixpanel
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.8
4
+ version: 4.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-16 00:00:00.000000000 Z
12
+ date: 2013-11-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json