simple_segment 1.4.0 → 1.5.0

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
  SHA256:
3
- metadata.gz: 4ecb763039e2fdacb85b464ebd96a7b46b4b18a92fb1a41069aff09af3c8fa92
4
- data.tar.gz: e8bd47c02313e50940a2b3c042533b324ce4cba322572ade72562c6c39eec119
3
+ metadata.gz: 6e5090db1c874309f4cd0c4fef0cef16fc261eb9f41cc25e05bc653195199b1b
4
+ data.tar.gz: a36a26d72fd87df85236fb5b306e6c66dd9e64f1b65acb1f4b25ced8d7b655fd
5
5
  SHA512:
6
- metadata.gz: 5f0097b62f7bcfdcd6ca0f7caa16dc29505b1fd6a896dac9178d481201d6aaabd1aa456760baef7dbb95de34f956374df643351b0769626566cb6cb2ae89e6cc
7
- data.tar.gz: 571840b8b57c64ac39d574b92e90db37290eb48e9f756c594c109f1948b27246503ceca31f00151f0802f4e67801dfcbb138f5311c6d105852e84636bd0710b1
6
+ metadata.gz: 4d9930d8f661b02fbdba7c513c0a5f424eeea901597059a8570518d1f719cc026cc24f1bd6c3a88508526198557929f8f7f3185f9f9408683c1b571cfc58e195
7
+ data.tar.gz: 1b34511c0bdd1960627e797c4a41802863cbaa15f67f53b8a3e583c3b3f95dd75b4b63d137e0e967c04cabee65853d5d96f6612f2a9a30c517af88cec782a499
data/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.5.0] - 2022-12-06
10
+
11
+ ### Changed
12
+ - Use the /v1/batch endpoint for batching events (this should be backward compatible according to Segment) https://github.com/whatthewhat/simple_segment/pull/40 by [@sgallag-insta](https://github.com/sgallag-insta)
13
+
9
14
  ## [1.4.0] - 2022-08-31
10
15
 
11
16
  ### Added
@@ -40,7 +45,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
40
45
  ### Changed
41
46
  - Date properties are now automatically converted to ISO 8601 to be consistent with the official client https://github.com/whatthewhat/simple_segment/pull/19 by @juanramoncg
42
47
 
43
- [Unreleased]: https://github.com/whatthewhat/simple_segment/compare/v1.4.0...HEAD
48
+ [Unreleased]: https://github.com/whatthewhat/simple_segment/compare/v1.5.0...HEAD
49
+ [1.5.0]: https://github.com/whatthewhat/simple_segment/compare/v1.4.0...v1.5.0
44
50
  [1.4.0]: https://github.com/whatthewhat/simple_segment/compare/v1.3.0...v1.4.0
45
51
  [1.3.0]: https://github.com/whatthewhat/simple_segment/compare/v1.2.0...v1.3.0
46
52
  [1.2.0]: https://github.com/whatthewhat/simple_segment/compare/v1.1.0...v1.2.0
@@ -48,7 +48,7 @@ module SimpleSegment
48
48
  raise ArgumentError, 'A batch must contain at least one action'
49
49
  end
50
50
 
51
- Request.new(client).post('/v1/import', payload)
51
+ Request.new(client).post('/v1/batch', payload)
52
52
  end
53
53
 
54
54
  private
@@ -56,7 +56,7 @@ module SimpleSegment
56
56
  def add(operation_class, options, action)
57
57
  operation = operation_class.new(client, symbolize_keys(options))
58
58
  operation_payload = operation.build_payload
59
- operation_payload[:action] = action
59
+ operation_payload[:type] = action
60
60
  payload[:batch] << operation_payload
61
61
  end
62
62
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleSegment
4
- VERSION = '1.4.0'
4
+ VERSION = '1.5.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_segment
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Topolskiy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-31 00:00:00.000000000 Z
11
+ date: 2022-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler