analytics-ruby 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.3.2 / 2013-5-28
2
+ ===========
3
+ * Adding faraday timeout by [@yanchenyun](https://github.com/yangchenyun)
4
+
1
5
  0.3.1 / 2013-4-29
2
6
  ===========
3
7
  * Adding check for properties to be a Hash
@@ -34,6 +34,8 @@ module AnalyticsRuby
34
34
 
35
35
  begin
36
36
  res = @conn.post do |req|
37
+ req.options[:timeout] = 8
38
+ req.options[:open_timeout] = 3
37
39
  req.url(@path)
38
40
  req.body = AnalyticsRuby::JSON::dump(secret: secret, batch: batch)
39
41
  end
@@ -48,4 +50,4 @@ module AnalyticsRuby
48
50
  AnalyticsRuby::Response.new(status, error)
49
51
  end
50
52
  end
51
- end
53
+ end
@@ -1,3 +1,3 @@
1
1
  module AnalyticsRuby
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
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.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-29 00:00:00.000000000 Z
12
+ date: 2013-05-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
16
- requirement: &6419300 !ruby/object:Gem::Requirement
16
+ requirement: &11643380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: '0.10'
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *6419300
27
+ version_requirements: *11643380
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: faraday_middleware
30
- requirement: &6417620 !ruby/object:Gem::Requirement
30
+ requirement: &11642580 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -38,10 +38,10 @@ dependencies:
38
38
  version: '0.10'
39
39
  type: :runtime
40
40
  prerelease: false
41
- version_requirements: *6417620
41
+ version_requirements: *11642580
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: multi_json
44
- requirement: &6415600 !ruby/object:Gem::Requirement
44
+ requirement: &11641840 !ruby/object:Gem::Requirement
45
45
  none: false
46
46
  requirements:
47
47
  - - ~>
@@ -49,10 +49,10 @@ dependencies:
49
49
  version: '1.0'
50
50
  type: :runtime
51
51
  prerelease: false
52
- version_requirements: *6415600
52
+ version_requirements: *11641840
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rake
55
- requirement: &6414960 !ruby/object:Gem::Requirement
55
+ requirement: &11641400 !ruby/object:Gem::Requirement
56
56
  none: false
57
57
  requirements:
58
58
  - - ! '>='
@@ -60,10 +60,10 @@ dependencies:
60
60
  version: '0'
61
61
  type: :development
62
62
  prerelease: false
63
- version_requirements: *6414960
63
+ version_requirements: *11641400
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: rspec
66
- requirement: &6429260 !ruby/object:Gem::Requirement
66
+ requirement: &12146780 !ruby/object:Gem::Requirement
67
67
  none: false
68
68
  requirements:
69
69
  - - ! '>='
@@ -71,7 +71,7 @@ dependencies:
71
71
  version: '0'
72
72
  type: :development
73
73
  prerelease: false
74
- version_requirements: *6429260
74
+ version_requirements: *12146780
75
75
  description: The Segment.io ruby analytics library
76
76
  email: friends@segment.io
77
77
  executables: []