rubypitaya 3.3.3 → 3.3.4

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: 94da55ebb23095e84bb7673c03c090c5e6d750258ab8a04861776e0f3bccd488
4
- data.tar.gz: b15065b35ab812d985d30bdd0b5ef073b739282632966c09a59e600bfc63b54c
3
+ metadata.gz: 3e526e596bef23aa113c700a8e2ab6311241ebd9257d2f030026cf53ed3d49d5
4
+ data.tar.gz: 5f932845d7c382c26c4c948508fd1855fb4dfb3eecc533f0560c378ce6c87f92
5
5
  SHA512:
6
- metadata.gz: c7355c105856b63dbd68f15c6181adfba4a5450b6f94c98444e431c1692ab3fddee02d8609dc28b3e3e9afd83792d1fd6197f22e3a7f41b88643551d23b9baa1
7
- data.tar.gz: cf3132334be52609395c0fde4bd1bacc27fe2335dcd75dc5cca27b73351d681145f9e9a5ddc422490809d848053524b59c30ff0149edfe2e0986cdc82700a9c1
6
+ metadata.gz: 025faa43f9e73e44f79a6cad82815ba445fb14be623a99dcf560200b2d4002b5fdf2e3ab8429eefd5110aa30611ca5eb3965f01da65ed6c3ba06e386962294e4
7
+ data.tar.gz: 4d8f19ca632af76c3329a9d658522089d776baba03b6fc6c83e8e61e8607b26479738d5836feb08da52967d82ddf606bfc92fec026d1849d190018dffb45230e
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'rubypitaya', '3.3.3'
3
+ gem 'rubypitaya', '3.3.4'
4
4
 
5
5
  group :development do
6
6
  gem 'pry', '0.14.1'
@@ -103,7 +103,7 @@ GEM
103
103
  rspec-support (~> 3.10.0)
104
104
  rspec-support (3.10.3)
105
105
  ruby2_keywords (0.0.5)
106
- rubypitaya (3.3.3)
106
+ rubypitaya (3.3.4)
107
107
  activerecord (= 6.1.4.1)
108
108
  etcdv3 (= 0.11.4)
109
109
  google-protobuf (= 3.18.1)
@@ -143,7 +143,7 @@ DEPENDENCIES
143
143
  listen (= 3.7.0)
144
144
  pry (= 0.14.1)
145
145
  rspec (= 3.10.0)
146
- rubypitaya (= 3.3.3)
146
+ rubypitaya (= 3.3.4)
147
147
  sinatra-contrib (= 2.1.0)
148
148
 
149
149
  BUNDLED WITH
@@ -180,10 +180,20 @@ module RubyPitaya
180
180
 
181
181
  @config.clear_cache
182
182
 
183
- response = @handler_router.call(handler_name, action_name, @session,
184
- @postman, @redis_connector.redis,
185
- @mongo_connector.mongo, @setup, @config,
186
- @log, params)
183
+ response = {}
184
+
185
+ begin
186
+ response = @handler_router.call(handler_name, action_name, @session,
187
+ @postman, @redis_connector.redis,
188
+ @mongo_connector.mongo, @setup, @config,
189
+ @log, params)
190
+ rescue RouteError => error
191
+ @log.error "ROUTE ERROR: #{error.class} | #{error.message}} \n #{error.backtrace.join("\n")}"
192
+ response = {
193
+ code: error.code,
194
+ message: error.message
195
+ }
196
+ end
187
197
 
188
198
  delta_time_seconds = ((Time.now.to_f - start_time_seconds) * 1000).round(2)
189
199
 
@@ -191,12 +201,6 @@ module RubyPitaya
191
201
 
192
202
  response
193
203
  end
194
- rescue RouteError => error
195
- @log.error "ROUTE ERROR: #{error.class} | #{error.message}} \n #{error.backtrace.join("\n")}"
196
- response = {
197
- code: error.code,
198
- message: error.message
199
- }
200
204
  rescue Exception => error
201
205
  @log.error "INTERNAL ERROR: #{error.class} | #{error.message}} \n #{error.backtrace.join("\n")}"
202
206
  run_nats_connection
@@ -1,3 +1,3 @@
1
1
  module RubyPitaya
2
- VERSION = '3.3.3'
2
+ VERSION = '3.3.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubypitaya
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luciano Prestes Cavalcanti