iris-rb 0.2.4 → 0.2.5

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: f07211c116a6d32d1dd993971412f5b41309cb517c2168ee8860324763ecc64e
4
- data.tar.gz: 5aaa83f97fdcd93de3c3bdd7fdcc59b78bdeb11ca863ecb19d8ff0b5e03d3d04
3
+ metadata.gz: 22033492bf246e1dda72356f975f86266b5bc30d82c6df1c7f0d94944d7c393c
4
+ data.tar.gz: 9ae1a0794e80ed4d8ef78da8141b2d26f9de3ae4d1929ad52e0a8648bc157ad5
5
5
  SHA512:
6
- metadata.gz: 02cda6da2c4ba32d65ed009f9aceb96059e79d2d482fcc44f434f419d47a1b47a412ae6d52d955bc6c661511ef0d8553eb746904f72328fb4d50e2395a116d12
7
- data.tar.gz: f86fa6b9984b1eaedf8e25b334e6a8c4d60ef854168d8cd9df7c59b7ad65940f0be79fd763ce4201aac81e8e0eafe10fbeadc46653e4eeedb2590def309b8455
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
- stampa "[#{applicazione.magenta}] #{messaggio}"
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
@@ -1,3 +1,3 @@
1
1
  modulo Iris
2
- VERSIONE = "0.2.4"
2
+ VERSIONE = "0.2.5"
3
3
  fine
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
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-22 00:00:00.000000000 Z
11
+ date: 2020-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: italian-ruby