eventboss 1.9.7 → 1.9.8

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: 32c271ea01136f0e14f98ae6163f543f58edd8d45dd7cc0aa30c7facfda6fb44
4
- data.tar.gz: 7c45094a9e1e205f90759bcf3f11a261cafcef2b9e1e51e65c3948bad9b3ae50
3
+ metadata.gz: c6155826edcd3e6c387de6ecc5f7cf8d7406397a13d62d906189f5f7263d1880
4
+ data.tar.gz: 12c8d107fbad150e915d89232bbbd3db50c7df554f9eb9f5ccc167b5e75fe3ad
5
5
  SHA512:
6
- metadata.gz: a2e07d2f3c12b4e3f5c5c5c319b9f6663c498b8e398e6da7e955fcec98372601d3f0365d60d9dd32f7ae891d79bc5c6d824fb574f1a85e6d710013106516f434
7
- data.tar.gz: 12884bb40cfd6ee48b294e10c4b92ab2cb230ee32274dc3d271a4f348c9bbf174d7a72ed455f314034af8e9579ae97e9e88d67b44a82b47c526b4bfb7b2da52e
6
+ metadata.gz: 20b0f34459c49a1df77eb0866cfaf0ba7503a543fac3ccc96629d5b8d4d11e4acb0c2b3d98b88ddbaeea9f2267e3a07530e792c8ab9599fb608e5ce3da1a991a
7
+ data.tar.gz: 37e43169d46597336f94f21778b55d1c7fdc95194531b49c9218ea4a70a430d5fb57ff58176344d8ebae1b0ebef99b7d1c7fad96d9010e2321047a28d100ed4a
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+
8
+ ## [1.9.8]
9
+
10
+ - Improve performance by reusing SNS client
11
+
7
12
  ## [1.9.7]
8
13
 
9
14
  - Fix undefined method 'set_data' for nil span in Sentry integration
@@ -39,25 +39,22 @@ module Eventboss
39
39
  end
40
40
 
41
41
  def backend
42
- if configured?
43
- options = {
44
- region: configuration.eventboss_region,
45
- }
42
+ @backend ||=
43
+ if configured?
44
+ options = {
45
+ region: configuration.eventboss_region
46
+ }
46
47
 
47
- unless configuration.eventboss_use_default_credentials
48
- options[:credentials] = credentials
49
- end
48
+ options[:credentials] = credentials unless configuration.eventboss_use_default_credentials
50
49
 
51
- if configuration.aws_sns_endpoint
52
- options[:endpoint] = configuration.aws_sns_endpoint
53
- end
50
+ options[:endpoint] = configuration.aws_sns_endpoint if configuration.aws_sns_endpoint
54
51
 
55
- Aws::SNS::Client.new(options)
56
- elsif configuration.raise_on_missing_configuration
57
- raise NotConfigured, 'Eventboss is not configured.'
58
- else
59
- Mock.new
60
- end
52
+ Aws::SNS::Client.new(options)
53
+ elsif configuration.raise_on_missing_configuration
54
+ raise NotConfigured, 'Eventboss is not configured.'
55
+ else
56
+ Mock.new
57
+ end
61
58
  end
62
59
 
63
60
  def credentials
@@ -1,3 +1,3 @@
1
1
  module Eventboss
2
- VERSION = "1.9.7"
2
+ VERSION = "1.9.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventboss
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.7
4
+ version: 1.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - AirHelp