analytico 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/analytico/client.rb +10 -2
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -69,13 +69,21 @@ module Analytico
69
69
  return nil
70
70
  end
71
71
  if @@async
72
- self.send_later @@connection.post(endpoint, data)
72
+ self.send_later :transmit, endpoint, data
73
73
  else
74
- @@connection.post endpoint, data
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: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mauricio Gomes