rubypitaya 2.14.1 → 2.15.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86eb826473766e568cdeec334cb978b65d8b36188a129c8f5aa8b31d837afbf1
|
4
|
+
data.tar.gz: cf96a7e6c0ed0f0abc69e797d00ba59b6d9fdef5524761928bbda431593b582d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0416f1d8c5c8e31231bb7cb8800aa3bb4e68aa5415db605f5db79b8b83590c453ade21ea46644a38a02b7827f760dd45b9b186b0efb9b12471f9d1f86961c0ff
|
7
|
+
data.tar.gz: efb6d17b6f86544a3381d579b1625159f6ab0a4c11427ff69a466720ac755d576b21a760bfbda7e233d34701470231e18792b35f27879ede51a7da2f4d399816
|
@@ -84,7 +84,7 @@ GEM
|
|
84
84
|
rspec-support (~> 3.8.0)
|
85
85
|
rspec-support (3.8.3)
|
86
86
|
ruby2_keywords (0.0.2)
|
87
|
-
rubypitaya (2.
|
87
|
+
rubypitaya (2.15.0)
|
88
88
|
activerecord (= 6.0.2)
|
89
89
|
etcdv3 (= 0.10.2)
|
90
90
|
eventmachine (= 1.2.7)
|
@@ -123,7 +123,7 @@ DEPENDENCIES
|
|
123
123
|
listen (= 3.2.1)
|
124
124
|
pry (= 0.12.2)
|
125
125
|
rspec (= 3.8.0)
|
126
|
-
rubypitaya (= 2.
|
126
|
+
rubypitaya (= 2.15.0)
|
127
127
|
|
128
128
|
BUNDLED WITH
|
129
129
|
1.17.2
|
@@ -9,11 +9,19 @@ module RubyPitaya
|
|
9
9
|
def initialize
|
10
10
|
@config_core = ConfigCore.new
|
11
11
|
@config_core_override = nil
|
12
|
+
|
13
|
+
@result_cache = {}
|
12
14
|
end
|
13
15
|
|
14
16
|
def [](key)
|
17
|
+
result = @result_cache[key]
|
18
|
+
return result unless result.nil?
|
19
|
+
|
15
20
|
result = @config_core_override[key] unless @config_core_override.nil?
|
16
21
|
result = @config_core[key] if result.nil?
|
22
|
+
|
23
|
+
@result_cache[key] = result
|
24
|
+
|
17
25
|
result
|
18
26
|
end
|
19
27
|
|
@@ -21,5 +29,9 @@ module RubyPitaya
|
|
21
29
|
@config_core.auto_reload
|
22
30
|
@config_core_override.auto_reload unless @config_core_override.nil?
|
23
31
|
end
|
32
|
+
|
33
|
+
def clear_cache
|
34
|
+
@result_cache.clear
|
35
|
+
end
|
24
36
|
end
|
25
37
|
end
|
data/lib/rubypitaya/core/main.rb
CHANGED
@@ -165,6 +165,8 @@ module RubyPitaya
|
|
165
165
|
@log.info "request -> route: #{message_route}"
|
166
166
|
@log.info " -> data: #{message_data}"
|
167
167
|
|
168
|
+
@config.clear_cache
|
169
|
+
|
168
170
|
response = @handler_router.call(handler_name, action_name, @session,
|
169
171
|
@postman, @redis_connector.redis,
|
170
172
|
@setup, @config, @bll, @log, params)
|
@@ -177,7 +179,7 @@ module RubyPitaya
|
|
177
179
|
end
|
178
180
|
rescue Exception => error
|
179
181
|
@log.info "ERROR: #{error}"
|
180
|
-
@log.info error.backtrace
|
182
|
+
@log.info error.backtrace.join("\n")
|
181
183
|
run_nats_connection
|
182
184
|
end
|
183
185
|
end
|
data/lib/rubypitaya/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubypitaya
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luciano Prestes Cavalcanti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|