dito 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dito/identify.rb +1 -1
- data/lib/dito/track.rb +2 -2
- data/lib/dito/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3e27a16d5e3ea5d150934ddf9c7aa94db3ca734
|
4
|
+
data.tar.gz: 82a0f60be974128ecaf7cb14cdf1641e75688354
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae3b571a2cabb87c00abc578a77fc0346c0ce293a0bd0668960d4c376aba3e27f0d8b799a7e7f36cf5f65cc8600399154d56e59ed12bf3083c02048715a8fcb4
|
7
|
+
data.tar.gz: 637dee709da57a2e5a70723a22787650aaa93b8b5278ad7d8d2ad1a3feabc5b9ddff076bbdef428651230a4d4387326af0c63e1e8adaab0648372770f29200d3
|
data/lib/dito/identify.rb
CHANGED
@@ -23,7 +23,7 @@ module Dito
|
|
23
23
|
id = user[:id]
|
24
24
|
params[:network_name] = 'pt'
|
25
25
|
else
|
26
|
-
return { error
|
26
|
+
return { :error => { :message => 'Missing the user id param. See the available options here: http://developers.dito.com.br/docs/sdks/ruby' } }
|
27
27
|
end
|
28
28
|
|
29
29
|
params[:user_data] = {}
|
data/lib/dito/track.rb
CHANGED
@@ -20,10 +20,10 @@ module Dito
|
|
20
20
|
id = options[:id]
|
21
21
|
id_type = 'id'
|
22
22
|
else
|
23
|
-
return { error
|
23
|
+
return { :error => { :message => 'Missing the user id param. See the available options here: http://developers.dito.com.br/docs/sdks/ruby' } }
|
24
24
|
end
|
25
25
|
|
26
|
-
params = { event
|
26
|
+
params = { :event => options[:event].to_json }
|
27
27
|
params[:id_type] = id_type if id_type.present?
|
28
28
|
|
29
29
|
Dito::Request.post 'events', "/users/#{id}/", params
|
data/lib/dito/version.rb
CHANGED