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 +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/simple_segment/batch.rb +2 -2
- data/lib/simple_segment/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e5090db1c874309f4cd0c4fef0cef16fc261eb9f41cc25e05bc653195199b1b
|
4
|
+
data.tar.gz: a36a26d72fd87df85236fb5b306e6c66dd9e64f1b65acb1f4b25ced8d7b655fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/simple_segment/batch.rb
CHANGED
@@ -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/
|
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[:
|
59
|
+
operation_payload[:type] = action
|
60
60
|
payload[:batch] << operation_payload
|
61
61
|
end
|
62
62
|
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
|
+
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-
|
11
|
+
date: 2022-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|