mixpanel_magic_lamp 1.0.1 → 1.0.3
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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/mixpanel_magic_lamp/expression_builder.rb +3 -1
- data/lib/mixpanel_magic_lamp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6ae08051bc9e5d2d0209c02be26b537edb95b7bd
|
|
4
|
+
data.tar.gz: 90e2ed3e969007bb66909a330d3b49b6c12047b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43d40765a44e9074b3ac4ff0b5dc01acc27c608862a7976fd120c7b14744686ba3dd1c6fa88ee0af7eb375e5c7249ab3ac0e112a04263a967ed27baa99a6e2e1
|
|
7
|
+
data.tar.gz: 75967405dbba7fabdac95f4e2c6193caf9d8a11f984b8c7d3518f67a9ba7aa4533636a97853565b853437d47e533ef1b65be81ece606e441f46e286a61f7f18e
|
data/README.md
CHANGED
|
@@ -40,7 +40,7 @@ end
|
|
|
40
40
|
### Rails config generator
|
|
41
41
|
Copy base config file on your **Rails app** by
|
|
42
42
|
```bash
|
|
43
|
-
rails
|
|
43
|
+
rails generate mixpanel_magic_lamp:config
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
|
|
@@ -138,7 +138,7 @@ Mixpanel.where.and.is_not_set(['country', 'user_type']).to_s
|
|
|
138
138
|
## Actions
|
|
139
139
|
Mixpanel API client has a lot of possible actions, so far these are the supported actions:
|
|
140
140
|
|
|
141
|
-
###
|
|
141
|
+
### Segmentation
|
|
142
142
|
Classic **Mixpanel** segmentation action, where you can specify *event name*, *from/to dates* and *any conditions* you want. Prepare and run as many request in parallel you need
|
|
143
143
|
|
|
144
144
|
```ruby
|
|
@@ -66,7 +66,9 @@ module MixpanelMagicLamp
|
|
|
66
66
|
private
|
|
67
67
|
def join(args, union, exp)
|
|
68
68
|
args = [args] unless args.is_a? Array or args.is_a? Hash
|
|
69
|
-
|
|
69
|
+
(args.is_a? Array) ? args.compact! : args.reject! {|k,v| v.nil?}
|
|
70
|
+
|
|
71
|
+
built_in = '(' + args.map do |name, values|
|
|
70
72
|
if values.nil?
|
|
71
73
|
exp.gsub(':name', name)
|
|
72
74
|
else
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mixpanel_magic_lamp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Guillermo Guerrero
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mixpanel_client
|