mixpanel_client 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -1
- data/lib/mixpanel/client.rb +1 -1
- data/lib/mixpanel/version.rb +1 -1
- data/spec/mixpanel_client/mixpanel_client_spec.rb +6 -0
- metadata +4 -4
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
|
-
[
|
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)
|
data/lib/mixpanel/client.rb
CHANGED
@@ -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|
|
data/lib/mixpanel/version.rb
CHANGED
@@ -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:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.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-
|
18
|
+
date: 2011-08-15 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|