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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a623a667db5890d88ca602d744725ce1a63ff6aee02ce8d6aa8439e714a8456
4
- data.tar.gz: bfcb26a192fcc815ef7dfb875280fd4b3d12840177ecd39b6af691d50dc51539
3
+ metadata.gz: 6fb16e2b7875babb8be42dcd1bd734c150a9965be347d59ce8c977597fd07679
4
+ data.tar.gz: 291ec1529c2db59b7b047af54e2dad386c83f885422e4ecdd59f2aff448444d8
5
5
  SHA512:
6
- metadata.gz: b47a7e817788640e8d05f88835c179aae1f6075eff460e4ad4677453f7bfe3882616caff2b06001c76bc22ded91fbf0d00eb32a2acd042647f7ae56d38bf3b42
7
- data.tar.gz: 35086c2e4b6d1c0ab332663bf5241c61e2c4b977f7757b7d5827dda428fe873d6d923163f9ad72271bd0cd57f4c07b221f0e3ff4591c9057eeccdca3bd4447c1
6
+ metadata.gz: d931d49bc337899519bf9731b0f0262b0b88eb7f36256e9255730fae574d328af1a98a27d82f947f1e03e49e4f629ffc7a1eb08ba4732a8aeda9e22e841d0d1b
7
+ data.tar.gz: 2f574ae47e801ab3d1fb2d079c288142590f8a8e8d7916ab386e53b69858d0fb9175779509301cd9bea1e790b7926cbf54bb9213820cb1aabebd0062e02bfd4f
@@ -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 supprt for http_proxy and https_proxy environment variables https://github.com/whatthewhat/simple_segment/pull/26 by @saks
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.1.0...HEAD
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] && isoify_dates!(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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleSegment
4
- VERSION = '1.1.0'
4
+ VERSION = '1.2.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.1.0
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-04-11 00:00:00.000000000 Z
11
+ date: 2020-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler