mangusta 0.1.6 → 0.1.7

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: 19d0fa9967b5ddde85ba0f8c8b502c0cc38f95e124786d829272aa0342127e9e
4
- data.tar.gz: cd76d49cafbb8345c7a998c0d3c394ffe90e2e97de799292582e385337ff3dfe
3
+ metadata.gz: 185d662021984ca3a2e7a2ed6f17df71dcf34bfbda72cb3872269718e620fd65
4
+ data.tar.gz: 7687638495453b1bfecd93399e10c33d13a2df1706fd332b08158f947948a2bc
5
5
  SHA512:
6
- metadata.gz: b5392df0eaa265f45a61d33a848d91eb4312260ed62c31ba3c0760d4bd7ef4ff8d38310feddd3f5ade79cf75a7728e77fb5aafb51eb9720652e088d2bb72b942
7
- data.tar.gz: 63cadaf4619ba3f924808cdb6abca4d265ad14d3fed06d0401cbcc802141b8395a676aae59d50d8fa40dd84627b71a7d787aa62fd19d45b5a9098b551fe28f6d
6
+ metadata.gz: 503d77f9dccec55caf1614b582a314913544287aa6e53bbbd234f18179ef6fb8a6ad2a967037a27a84813348ca4eb5a1814de2965f619d54aa8fb906fcedaa1a
7
+ data.tar.gz: 3e08553ea83e5a6a5e9db83b6a06d72798b6f3d99230c1b618d9bac78db67cc874f81f60eab4db0fbd6ed1536591a060ce4f078919b0dcaa1f75fceaeec2484f
@@ -82,7 +82,7 @@ modulo Mangusta
82
82
  parametri.per_ognuno esegui |nome_parametro, valore_parametro|
83
83
  nome_metodo_assegnamento = "#{nome_parametro}="
84
84
  prossimo se se_stesso.non_risponde_a? nome_metodo_assegnamento
85
- se_stesso.manda nome_metodo_assegnamento, valore_parametro
85
+ se_stesso.manda nome_metodo_assegnamento, _converti_in_id(valore_parametro)
86
86
  fine
87
87
  se_stesso
88
88
  fine
@@ -112,6 +112,16 @@ modulo Mangusta
112
112
  imposta_valore_campo :_id, BSON::ObjectId.new
113
113
  fine
114
114
 
115
+ ##
116
+ # Converte in BSON::ObjectId una stringa.
117
+ # Se la conversione fallisce, ritorna la stringa iniziale.
118
+ definisci _converti_in_id(stringa)
119
+ ritorna stringa se stringa.non_è_una? Stringa
120
+ BSON::ObjectId(stringa)
121
+ recupera
122
+ stringa
123
+ fine
124
+
115
125
  ##
116
126
  # Memorizza gli attiributi originali del documento.
117
127
  definisci _memorizza_attributi_originali(**attributi)
@@ -1,3 +1,3 @@
1
1
  modulo Mangusta
2
- VERSIONE = "0.1.6"
2
+ VERSIONE = "0.1.7"
3
3
  fine
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mangusta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
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-09 00:00:00.000000000 Z
11
+ date: 2020-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: italian-ruby