iris-rb 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iris/azione/registratore.ir +15 -2
- data/lib/iris/versione.ir +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22033492bf246e1dda72356f975f86266b5bc30d82c6df1c7f0d94944d7c393c
|
4
|
+
data.tar.gz: 9ae1a0794e80ed4d8ef78da8141b2d26f9de3ae4d1929ad52e0a8648bc157ad5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9bda320881bff8f40113b7002b57f2d2816f1b6212b215d00f65bb8e88499e0b694747e447f9661e5ffde141fe86fbc3f372e41a7c5dd2cd15f2b3d314a31d0
|
7
|
+
data.tar.gz: 5f5ac430688dc36c3e3e828205d448ebaf087972a940a663c741f768eea92600ecd263b246a7adf71a4466704b45eda4cc9adf66c4b4be826902e5b5168d7d24
|
@@ -17,14 +17,27 @@ modulo Iris
|
|
17
17
|
percorso_richiesta = @richiesta["REQUEST_PATH"]
|
18
18
|
parametri = @richiesta["iris.parametri"]
|
19
19
|
inizio_richiesta = @richiesta["timer.start"]
|
20
|
+
|
21
|
+
se @richiesta["utente_corrente"].esiste? e @richiesta["utente_corrente"].risponde_a? :_id
|
22
|
+
utente_corrente = "#{@richiesta["utente_corrente"]._id} |"
|
23
|
+
altrimenti
|
24
|
+
utente_corrente = nullo
|
25
|
+
fine
|
26
|
+
|
20
27
|
se inizio_richiesta.specificato?
|
21
28
|
tempo_richiesta = "#{((Tempo.adesso - inizio_richiesta) * 1000).arrotonda}ms"
|
22
29
|
altrimenti
|
23
30
|
tempo_richiesta = "-"
|
24
31
|
fine
|
25
|
-
messaggio = "#{stato_colorizzato} #{metodo_richiesta} #{percorso_richiesta} #{tempo_richiesta} | #{parametri}".congela
|
26
32
|
|
27
|
-
|
33
|
+
messaggio = [
|
34
|
+
utente_corrente,
|
35
|
+
stato_colorizzato,
|
36
|
+
metodo_richiesta,
|
37
|
+
percorso_richiesta,
|
38
|
+
tempo_richiesta ].compatta.unisci(" ")
|
39
|
+
|
40
|
+
stampa "[#{applicazione.magenta}] #{Tempo.adesso} | #{messaggio} | #{parametri}"
|
28
41
|
fine
|
29
42
|
|
30
43
|
##
|
data/lib/iris/versione.ir
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iris-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francesco Ballardin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: italian-ruby
|