cloudenvoy 0.4.0 → 0.4.1

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: b9322dedfad594507282b8a475531a48ed6c9cae16bb098e115a8a71c9c88485
4
- data.tar.gz: b44299bb873d6a07028eca918826702c63d75460a7fa7986251792dc5fae81ac
3
+ metadata.gz: c0d42680109f30e014cb88dff9c7dc4fad3479f4cfd47131eb934c23ae0e08b2
4
+ data.tar.gz: af8a2e13e9f44dfc4af98e421084772a4961833a44faeb72b113aaa2e19ea825
5
5
  SHA512:
6
- metadata.gz: 512419c58e7eaf81cb9e6de2496cfffd72469a1e4fa5c6b07939645f2ab3b2af5e419b155cae026f5e13910fad762cdc1cdec44b282ed93ef9ac79eb77b8475b
7
- data.tar.gz: 9f9852d9afbba64c20a855c55e6e08f196bcc6f1a5f72f379e0839a118e638a7c96b98f7c2de227835c8b38c4cf9d4abbb19b29421cb58e85ad9637086d8db2a
6
+ metadata.gz: 6449a39dc1bb6e066e9020d824f9c204930e3c32e07c42a9464a2d48ef2b6dc4c179a302236dbaae56f525c7fca3bda33c5ce1fcdb7f03a2234e807a706baab1
7
+ data.tar.gz: 1271d88b89fc101ad5dccf86236983ff8bfaea72cdcbee52ce6bd484eb79c8cbbc4c312d73e4a73133a1bc60fb88362f49e7a663ca251ba9c0f9b2849f343fe4
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.4.1](https://github.com/keypup-io/cloudenvoy/tree/v0.4.1) (2020-10-06)
4
+
5
+ [Full Changelog](https://github.com/keypup-io/cloudenvoy/compare/v0.4.0...v0.4.1)
6
+
7
+ **Bug fix:**
8
+ - Logging: log publisher and subscriber errors during execution
9
+ - Rake tasks: fix early return statement when publisher or subscriber list is empty
10
+
3
11
  ## [v0.4.0](https://github.com/keypup-io/cloudenvoy/tree/v0.4.0) (2020-10-05)
4
12
 
5
13
  [Full Changelog](https://github.com/keypup-io/cloudenvoy/compare/v0.3.1...v0.4.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudenvoy (0.4.0)
4
+ cloudenvoy (0.4.1)
5
5
  activesupport
6
6
  google-cloud-pubsub (~> 2.0)
7
7
  jwt
@@ -95,7 +95,7 @@ GEM
95
95
  google-cloud-env (1.3.3)
96
96
  faraday (>= 0.17.3, < 2.0)
97
97
  google-cloud-errors (1.0.1)
98
- google-cloud-pubsub (2.0.0)
98
+ google-cloud-pubsub (2.1.0)
99
99
  concurrent-ruby (~> 1.1)
100
100
  google-cloud-core (~> 1.5)
101
101
  google-cloud-pubsub-v1 (~> 0.0)
@@ -22,10 +22,8 @@ module Cloudenvoy
22
22
  rescue InvalidSubscriberError
23
23
  # 404: Message delivery will be retried
24
24
  head :not_found
25
- rescue StandardError => e
25
+ rescue StandardError
26
26
  # 422: Message delivery will be retried
27
- Cloudenvoy.logger.error(e)
28
- Cloudenvoy.logger.error(e.backtrace.join("\n"))
29
27
  head :unprocessable_entity
30
28
  end
31
29
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- cloudenvoy (0.4.0)
4
+ cloudenvoy (0.4.1)
5
5
  activesupport
6
6
  google-cloud-pubsub (~> 2.0)
7
7
  jwt
@@ -82,7 +82,7 @@ GEM
82
82
  google-cloud-env (1.3.3)
83
83
  faraday (>= 0.17.3, < 2.0)
84
84
  google-cloud-errors (1.0.1)
85
- google-cloud-pubsub (2.0.0)
85
+ google-cloud-pubsub (2.1.0)
86
86
  concurrent-ruby (~> 1.1)
87
87
  google-cloud-core (~> 1.5)
88
88
  google-cloud-pubsub-v1 (~> 0.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- cloudenvoy (0.4.0)
4
+ cloudenvoy (0.4.1)
5
5
  activesupport
6
6
  google-cloud-pubsub (~> 2.0)
7
7
  jwt
@@ -95,7 +95,7 @@ GEM
95
95
  google-cloud-env (1.3.3)
96
96
  faraday (>= 0.17.3, < 2.0)
97
97
  google-cloud-errors (1.0.1)
98
- google-cloud-pubsub (2.0.0)
98
+ google-cloud-pubsub (2.1.0)
99
99
  concurrent-ruby (~> 1.1)
100
100
  google-cloud-core (~> 1.5)
101
101
  google-cloud-pubsub-v1 (~> 0.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- cloudenvoy (0.4.0)
4
+ cloudenvoy (0.4.1)
5
5
  activesupport
6
6
  google-cloud-pubsub (~> 2.0)
7
7
  jwt
@@ -94,7 +94,7 @@ GEM
94
94
  google-cloud-env (1.3.3)
95
95
  faraday (>= 0.17.3, < 2.0)
96
96
  google-cloud-errors (1.0.1)
97
- google-cloud-pubsub (2.0.0)
97
+ google-cloud-pubsub (2.1.0)
98
98
  concurrent-ruby (~> 1.1)
99
99
  google-cloud-core (~> 1.5)
100
100
  google-cloud-pubsub-v1 (~> 0.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- cloudenvoy (0.4.0)
4
+ cloudenvoy (0.4.1)
5
5
  activesupport
6
6
  google-cloud-pubsub (~> 2.0)
7
7
  jwt
@@ -94,7 +94,7 @@ GEM
94
94
  google-cloud-env (1.3.3)
95
95
  faraday (>= 0.17.3, < 2.0)
96
96
  google-cloud-errors (1.0.1)
97
- google-cloud-pubsub (2.0.0)
97
+ google-cloud-pubsub (2.1.0)
98
98
  concurrent-ruby (~> 1.1)
99
99
  google-cloud-core (~> 1.5)
100
100
  google-cloud-pubsub-v1 (~> 0.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- cloudenvoy (0.4.0)
4
+ cloudenvoy (0.4.1)
5
5
  activesupport
6
6
  google-cloud-pubsub (~> 2.0)
7
7
  jwt
@@ -94,7 +94,7 @@ GEM
94
94
  google-cloud-env (1.3.3)
95
95
  faraday (>= 0.17.3, < 2.0)
96
96
  google-cloud-errors (1.0.1)
97
- google-cloud-pubsub (2.0.0)
97
+ google-cloud-pubsub (2.1.0)
98
98
  concurrent-ruby (~> 1.1)
99
99
  google-cloud-core (~> 1.5)
100
100
  google-cloud-pubsub-v1 (~> 0.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- cloudenvoy (0.4.0)
4
+ cloudenvoy (0.4.1)
5
5
  activesupport
6
6
  google-cloud-pubsub (~> 2.0)
7
7
  jwt
@@ -94,7 +94,7 @@ GEM
94
94
  google-cloud-env (1.3.3)
95
95
  faraday (>= 0.17.3, < 2.0)
96
96
  google-cloud-errors (1.0.1)
97
- google-cloud-pubsub (2.0.0)
97
+ google-cloud-pubsub (2.1.0)
98
98
  concurrent-ruby (~> 1.1)
99
99
  google-cloud-core (~> 1.5)
100
100
  google-cloud-pubsub-v1 (~> 0.0)
@@ -200,6 +200,7 @@ module Cloudenvoy
200
200
  begin
201
201
  publish_message
202
202
  rescue StandardError => e
203
+ logger.error([e, e.backtrace.join("\n")].join("\n"))
203
204
  try(:on_error, e)
204
205
  return raise(e)
205
206
  end
@@ -211,8 +211,9 @@ module Cloudenvoy
211
211
  begin
212
212
  process(message)
213
213
  rescue StandardError => e
214
+ logger.error([e, e.backtrace.join("\n")].join("\n"))
214
215
  try(:on_error, e)
215
- return raise(e)
216
+ raise(e)
216
217
  end
217
218
  end
218
219
  ensure
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cloudenvoy
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
@@ -23,8 +23,8 @@ namespace :cloudenvoy do
23
23
 
24
24
  # Notify user when no suscribers
25
25
  if list.empty?
26
- puts 'There are no subscribers defined in your application'
27
- return
26
+ puts 'Skipping subscribers (none defined)'
27
+ next
28
28
  end
29
29
 
30
30
  puts 'The following subscribers are configured:'
@@ -47,8 +47,8 @@ namespace :cloudenvoy do
47
47
 
48
48
  # Notify user when no topics
49
49
  if list.empty?
50
- puts 'There are no publishers defined in your application'
51
- return
50
+ puts 'Skipping publishers (none defined)'
51
+ next
52
52
  end
53
53
 
54
54
  puts 'The following topics are configured:'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudenvoy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-05 00:00:00.000000000 Z
11
+ date: 2020-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport