mixpanel_magic_lamp 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f651ad5a3af1ce87116126f2fa6328dc6a169030
4
- data.tar.gz: dd9ed68640dba887329fa6460719af231cfbe684
3
+ metadata.gz: 6ae08051bc9e5d2d0209c02be26b537edb95b7bd
4
+ data.tar.gz: 90e2ed3e969007bb66909a330d3b49b6c12047b0
5
5
  SHA512:
6
- metadata.gz: dc85d1ac3e8b04e0b53bd73abbdda4b0fc2f05a609ea7a14e388efbcfc8d37dcb006292ba42d972188e71145d91080775d8d357140e092f61b5577065fb5b29f
7
- data.tar.gz: ce4acdc517669512adbb57e6fe6e88f7b5b7ba4a8f54f5b3ba2f4bda1301ac1f19c4133b5e5558028c9987276bcbd205cbbb8ca7110230476ef6ffac2f0bc0ff
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 generator mixpanel_magic_lamp:config
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
- ### Segementation
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
- built_in = '(' + args.compact.map do |name, values|
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
@@ -1,3 +1,3 @@
1
1
  module MixpanelMagicLamp
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.3"
3
3
  end
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.1
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-02 00:00:00.000000000 Z
11
+ date: 2015-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixpanel_client