simple_segment 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -2
- data/lib/simple_segment/operations/track.rb +3 -4
- 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: 6fb16e2b7875babb8be42dcd1bd734c150a9965be347d59ce8c977597fd07679
|
|
4
|
+
data.tar.gz: 291ec1529c2db59b7b047af54e2dad386c83f885422e4ecdd59f2aff448444d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d931d49bc337899519bf9731b0f0262b0b88eb7f36256e9255730fae574d328af1a98a27d82f947f1e03e49e4f629ffc7a1eb08ba4732a8aeda9e22e841d0d1b
|
|
7
|
+
data.tar.gz: 2f574ae47e801ab3d1fb2d079c288142590f8a8e8d7916ab386e53b69858d0fb9175779509301cd9bea1e790b7926cbf54bb9213820cb1aabebd0062e02bfd4f
|
data/CHANGELOG.md
CHANGED
|
@@ -6,10 +6,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.2.0] - 2020-07-29
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- Use an empty hash if no properties were provided to `track` https://github.com/whatthewhat/simple_segment/pull/28
|
|
13
|
+
|
|
9
14
|
## [1.1.0] - 2020-04-11
|
|
10
15
|
|
|
11
16
|
### Added
|
|
12
|
-
- Added
|
|
17
|
+
- Added support for http_proxy and https_proxy environment variables https://github.com/whatthewhat/simple_segment/pull/26 by @saks
|
|
13
18
|
- Added Ruby 2.7 to travis.yml
|
|
14
19
|
|
|
15
20
|
## [1.0.0] - 2019-12-12
|
|
@@ -25,7 +30,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
25
30
|
### Changed
|
|
26
31
|
- 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
|
|
27
32
|
|
|
28
|
-
[Unreleased]: https://github.com/whatthewhat/simple_segment/compare/v1.
|
|
33
|
+
[Unreleased]: https://github.com/whatthewhat/simple_segment/compare/v1.2.0...HEAD
|
|
34
|
+
[1.2.0]: https://github.com/whatthewhat/simple_segment/compare/v1.1.0...v1.2.0
|
|
29
35
|
[1.1.0]: https://github.com/whatthewhat/simple_segment/compare/v1.0.0...v1.1.0
|
|
30
36
|
[1.0.0]: https://github.com/whatthewhat/simple_segment/compare/v0.3.0...v1.0.0
|
|
31
37
|
[0.3.0]: https://github.com/whatthewhat/simple_segment/compare/v0.2.1...v0.3.0
|
|
@@ -8,14 +8,13 @@ module SimpleSegment
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def build_payload
|
|
11
|
-
raise ArgumentError, 'event name must be present'
|
|
12
|
-
unless options[:event]
|
|
11
|
+
raise ArgumentError, 'event name must be present' unless options[:event]
|
|
13
12
|
|
|
14
|
-
properties = options[:properties]
|
|
13
|
+
properties = options[:properties] || {}
|
|
15
14
|
|
|
16
15
|
base_payload.merge(
|
|
17
16
|
event: options[:event],
|
|
18
|
-
properties: properties
|
|
17
|
+
properties: isoify_dates!(properties)
|
|
19
18
|
)
|
|
20
19
|
end
|
|
21
20
|
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.2.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: 2020-
|
|
11
|
+
date: 2020-07-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|