mangusta 0.3.4 → 0.3.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: e7472212e85650b6952b9ab57e556b30887a5facade8e3b90b1a72689391f03a
4
- data.tar.gz: e3f8549b8be6b3c2ccb360b054b945927d2e9e11a87ee9127af80b05fcba899d
3
+ metadata.gz: 49e5a788ab0ef0164a34d95ea987d2a4b94678266c48303b73fcf7e69f79eec7
4
+ data.tar.gz: 403ab522c13d45fd0fc96829a85822ee3de408b32cd3dc8483dcb4fdb9b6f492
5
5
  SHA512:
6
- metadata.gz: 838ed58f6bee1f01bb09711065f7bf659d14e9933530937beaf7e9eab2db61fc5e88e76cea2b66f42c886e7e8b605a355ac4bfdf44100af30b7e8fcb241e415f
7
- data.tar.gz: 0d215409517a2c173ceb0515b35fa50ca7b6a0328041dc4339ac26ca43e2a170fea72d6ceee333162f1a13e3a2e539ad05c5a374eb64bb8893af9fcbf658ce9e
6
+ metadata.gz: 1ef74f2a4ca30e3c5d382f686922f70b7e2c940da707d0f72fbed56d1b4973ebfc1f4466b8808f40c2e9a5fe8ca4498c653399b0fbce5bd7f9e6e4f64b604831
7
+ data.tar.gz: 0d7dbcbf3f9b6b4138cd6fb360e82c088e10124521b846f4855fea6cbf06ea8569537887bf2f0e87cce067aeb589614a07ad33f51b11c7a860ee6d5abf69d9cb
@@ -62,15 +62,15 @@ modulo Mangusta
62
62
  se_stesso.campi << Mangusta::Documento::Campo.nuovo(nome, **parametri)
63
63
 
64
64
  definisci_metodo nome esegui
65
- ottieni_variabile_istanza "@#{nome}"
65
+ ottieni_valore nome
66
66
  fine
67
67
 
68
68
  definisci_metodo "#{nome}?" esegui
69
- ottieni_variabile_istanza("@#{nome}") == vero
69
+ ottieni_valore(nome) == vero
70
70
  fine
71
71
 
72
72
  definisci_metodo "#{nome}=" esegui |valore|
73
- imposta_variabile_istanza "@#{nome}", valore
73
+ imposta_valore nome, valore
74
74
  fine
75
75
  fine
76
76
 
@@ -62,7 +62,9 @@ modulo Mangusta
62
62
  ##
63
63
  # Recupera il valore di un campo del documento.
64
64
  definisci ottieni_valore(nome_campo)
65
- ottieni_variabile_istanza "@#{nome_campo}"
65
+ valore_campo = ottieni_variabile_istanza "@#{nome_campo}"
66
+ ritorna valore_campo se valore_campo.non_è_una? Mappa
67
+ valore_campo.simbolizza
66
68
  fine
67
69
 
68
70
  ##
@@ -167,6 +167,7 @@ modulo Mangusta
167
167
  risultato_cancellazione = _collezione.cancella_molti
168
168
  risultato_cancellazione.deleted_count
169
169
  fine
170
+ alias :cancella_tutte :cancella_tutti
170
171
 
171
172
  privati
172
173
 
@@ -1,3 +1,3 @@
1
1
  modulo Mangusta
2
- VERSIONE = "0.3.4"
2
+ VERSIONE = "0.3.5"
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.3.4
4
+ version: 0.3.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-24 00:00:00.000000000 Z
11
+ date: 2020-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: italian-ruby