analytics-ruby 2.0.11 → 2.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89903da9c69bfb8793fae1cc2d3f71a5c5460595
4
- data.tar.gz: 6a32ed10572a2562d68126bdc49ef867fbaeaac7
3
+ metadata.gz: 0cc5769725086412e35757d3959e7883e3a5498d
4
+ data.tar.gz: 45e568f567921439fa4acb33904722d504d0292c
5
5
  SHA512:
6
- metadata.gz: 8bf7c755ae6365ad1b69fad8a35cd111f61389de094b8d0f3b16a4758816f0f1b2c53518ba26b6071a39bbed9ebb9c8a72478496efc6921534af26ffb208c3ad
7
- data.tar.gz: 88473d554d87d57b45a206971c66246b6193a3634ef06d913c81a54c08da1c1a1cd94fa81816001475ae1b6bc6fa09d602b3fb002921b10507a9cf317da119d5
6
+ metadata.gz: cfe5c2576414e23f0010c7d3af9a41d4b2e5563f47f55f01dae92ae7aef560cf5cd39d6964d9a765a85759ead9abded63ceedc0858784c83d17788efd3dff9b8
7
+ data.tar.gz: 2bd40cee4400e41415103c8e063d7cb3c0482b4ab03b0365edc57613d615fcc89d1c3a0db4ace42cbc5320d03cb23237df3232049b5d5be8c10a8e79e96a7b61
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- analytics-ruby (2.0.10)
4
+ analytics-ruby (2.0.11)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/History.md CHANGED
@@ -1,3 +1,8 @@
1
+ 2.0.12 / 2015-01-10
2
+ ==================
3
+
4
+ * Fix batch being cleared and causing duplicates
5
+
1
6
  2.0.11 / 2014-09-22
2
7
  ==================
3
8
 
data/README.md CHANGED
@@ -3,11 +3,11 @@ analytics-ruby
3
3
 
4
4
  [![Build Status](https://travis-ci.org/segmentio/analytics-ruby.png?branch=master)](https://travis-ci.org/segmentio/analytics-ruby)
5
5
 
6
- analytics-ruby is a ruby client for [Segment.io](https://segment.io)
6
+ analytics-ruby is a ruby client for [Segment](https://segment.com)
7
7
 
8
8
  ## Documentation
9
9
 
10
- Documentation is available at [segment.io/libraries/ruby](https://segment.io/libraries/ruby)
10
+ Documentation is available at [segment.com/libraries/ruby](https://segment.com/libraries/ruby)
11
11
 
12
12
  ## License
13
13
 
@@ -26,7 +26,7 @@ WWWWWW||WWWWWW
26
26
 
27
27
  (The MIT License)
28
28
 
29
- Copyright (c) 2013 Segment.io Inc. <friends@segment.io>
29
+ Copyright (c) 2013 Segment Inc. <friends@segment.com>
30
30
 
31
31
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
32
32
 
@@ -1,5 +1,5 @@
1
1
  module Segment
2
2
  class Analytics
3
- VERSION = '2.0.11'
3
+ VERSION = '2.0.12'
4
4
  end
5
5
  end
@@ -44,11 +44,9 @@ module Segment
44
44
 
45
45
  res = Request.new.post @write_key, @batch
46
46
 
47
- if res.status == 200
48
- @lock.synchronize { @batch.clear }
49
- else
50
- @on_error.call res.status, res.error unless res.status == 200
51
- end
47
+ @lock.synchronize { @batch.clear }
48
+
49
+ @on_error.call res.status, res.error unless res.status == 200
52
50
  end
53
51
  end
54
52
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: analytics-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.11
4
+ version: 2.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Segment.io
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-07 00:00:00.000000000 Z
11
+ date: 2015-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake