analytics-ruby 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/History.md +4 -0
- data/README.md +4 -0
- data/analytics-ruby-0.5.0.gem +0 -0
- data/analytics-ruby.gemspec +1 -0
- data/lib/analytics-ruby/request.rb +2 -0
- data/lib/analytics-ruby/version.rb +1 -1
- metadata +6 -4
data/Gemfile.lock
CHANGED
data/History.md
CHANGED
data/README.md
CHANGED
@@ -33,3 +33,7 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
33
33
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
34
34
|
|
35
35
|
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
36
|
+
|
37
|
+
|
38
|
+
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/segmentio/analytics-ruby/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
|
39
|
+
|
Binary file
|
data/analytics-ruby.gemspec
CHANGED
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.authors = ['Segment.io']
|
14
14
|
spec.email = 'friends@segment.io'
|
15
15
|
spec.homepage = 'https://github.com/segmentio/analytics-ruby'
|
16
|
+
spec.license = 'MIT'
|
16
17
|
|
17
18
|
spec.add_dependency 'faraday', ['>= 0.8', '< 0.10']
|
18
19
|
spec.add_dependency 'faraday_middleware', ['>= 0.8', '< 0.10']
|
@@ -31,6 +31,7 @@ module AnalyticsRuby
|
|
31
31
|
def post(secret, batch)
|
32
32
|
|
33
33
|
status, error = nil, nil
|
34
|
+
remaining_retries = 3
|
34
35
|
|
35
36
|
begin
|
36
37
|
res = @conn.post do |req|
|
@@ -45,6 +46,7 @@ module AnalyticsRuby
|
|
45
46
|
rescue Exception => err
|
46
47
|
status = -1
|
47
48
|
error = "Connection error: #{err}"
|
49
|
+
retry unless (remaining_retries -=1).zero?
|
48
50
|
end
|
49
51
|
|
50
52
|
AnalyticsRuby::Response.new status, error
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: analytics-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-11-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -110,6 +110,7 @@ extensions: []
|
|
110
110
|
extra_rdoc_files: []
|
111
111
|
files:
|
112
112
|
- analytics-ruby-0.4.0.gem
|
113
|
+
- analytics-ruby-0.5.0.gem
|
113
114
|
- analytics-ruby.gemspec
|
114
115
|
- Gemfile
|
115
116
|
- Gemfile.lock
|
@@ -131,7 +132,8 @@ files:
|
|
131
132
|
- spec/module_spec.rb
|
132
133
|
- spec/spec_helper.rb
|
133
134
|
homepage: https://github.com/segmentio/analytics-ruby
|
134
|
-
licenses:
|
135
|
+
licenses:
|
136
|
+
- MIT
|
135
137
|
post_install_message:
|
136
138
|
rdoc_options: []
|
137
139
|
require_paths:
|
@@ -150,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
152
|
version: '0'
|
151
153
|
requirements: []
|
152
154
|
rubyforge_project:
|
153
|
-
rubygems_version: 1.8.
|
155
|
+
rubygems_version: 1.8.28
|
154
156
|
signing_key:
|
155
157
|
specification_version: 3
|
156
158
|
summary: Segment.io analytics library
|