analytico 0.3.0 → 0.3.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/VERSION +1 -1
- data/lib/analytico/client.rb +10 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/lib/analytico/client.rb
CHANGED
@@ -69,13 +69,21 @@ module Analytico
|
|
69
69
|
return nil
|
70
70
|
end
|
71
71
|
if @@async
|
72
|
-
self.send_later
|
72
|
+
self.send_later :transmit, endpoint, data
|
73
73
|
else
|
74
|
-
|
74
|
+
transmit endpoint, data
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
78
|
private
|
79
|
+
|
80
|
+
def transmit(endpoint, data)
|
81
|
+
begin
|
82
|
+
@@connection.post(endpoint, data)
|
83
|
+
rescue
|
84
|
+
warn "%%% Analytico %%% There was an error communicating with Analytico"
|
85
|
+
end
|
86
|
+
end
|
79
87
|
|
80
88
|
def extract_options!(args)
|
81
89
|
if args.last.is_a?(Hash)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: analytico
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mauricio Gomes
|