mixpanel_client 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -32,6 +32,12 @@ Ruby access to the [Mixpanel](http://mixpanel.com/) web analytics tool.
32
32
 
33
33
  ## Changelog
34
34
 
35
+ ### 2.0.1
36
+ * Added options used in segmentation resources.
37
+
38
+ ### 2.0.0
39
+ * Manually tested compatibility with Mixpanel gem.
40
+
35
41
  ### 2.0.0.beta2
36
42
  * Added JSON to gemspec for ruby versions less than 1.9.
37
43
 
@@ -52,7 +58,7 @@ Ruby access to the [Mixpanel](http://mixpanel.com/) web analytics tool.
52
58
  ## Collaborators and Maintainers
53
59
  [Keolo Keagy](http://github.com/keolo) (Author)
54
60
  [Mike Ferrier](http://github.com/mferrier)
55
- [Railwaymen](http://github.com/railwaymen)
61
+ [Grzegorz Forysinski](http://github.com/railwaymen)
56
62
  [Nathan Chong](http://github.com/paramaw)
57
63
  [Paul McMahon](http://github.com/pwim)
58
64
  [Chad Etzel](http://github.com/jazzychad)
@@ -16,7 +16,7 @@ module Mixpanel
16
16
 
17
17
  # Availalbe options for a Mixpanel API request
18
18
  OPTIONS = [:resource, :event, :funnel, :name, :type, :unit, :interval, :limit, :format, :bucket,
19
- :values]
19
+ :values, :from_date, :to_date, :on, :where, :buckets]
20
20
 
21
21
  # Dynamically define accessor methods for each option
22
22
  OPTIONS.each do |option|
@@ -10,6 +10,6 @@ module Mixpanel
10
10
  # Return metrics from Mixpanel Data API
11
11
  class Client
12
12
  # Mixpanel::Client library version
13
- VERSION = '2.0.0'
13
+ VERSION = '2.0.1'
14
14
  end
15
15
  end
@@ -98,6 +98,12 @@ describe Mixpanel::Client do
98
98
  format 'csv'
99
99
  bucket 'list'
100
100
  values '["tiger", "blood"]'
101
+ #below options only in segmentation events
102
+ from_date '2011-08-11'
103
+ to_date '2011-08-12'
104
+ on 'properties["product_id"]'
105
+ where '1 in properties["product_id"]'
106
+ buckets '5'
101
107
  end
102
108
 
103
109
  Mixpanel::Client::OPTIONS.each do |option|
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixpanel_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- version: 2.0.0
9
+ - 1
10
+ version: 2.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Keolo Keagy
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-15 00:00:00 -07:00
18
+ date: 2011-08-15 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency