mangusta 0.3.3 → 0.3.4

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: f8655bc6ea7f5061caa495d6beeebf02efba56246b9e5bf60c86c154f2e20c4f
4
- data.tar.gz: 0ec4bc2abe42ef075500b6e5ff4994a9c82cd260a0280df0289dd293661c3fd9
3
+ metadata.gz: e7472212e85650b6952b9ab57e556b30887a5facade8e3b90b1a72689391f03a
4
+ data.tar.gz: e3f8549b8be6b3c2ccb360b054b945927d2e9e11a87ee9127af80b05fcba899d
5
5
  SHA512:
6
- metadata.gz: d5f98fcd88a35da27819b99cb85f298db72377262f5b612ed5fbcf30cf8308416842f9cc6cedcf7f3a8b09e922b92098ae019d0eeecadca297fdafd51916d703
7
- data.tar.gz: 5ce9383fefdcede3d6ae088ac78abd9ac3652f8a5243e3add4b8c2ef49704f0aa09f070f289ded2cbd27e3696918880b2c3f21811feb59b756be03a17f91bfe7
6
+ metadata.gz: 838ed58f6bee1f01bb09711065f7bf659d14e9933530937beaf7e9eab2db61fc5e88e76cea2b66f42c886e7e8b605a355ac4bfdf44100af30b7e8fcb241e415f
7
+ data.tar.gz: 0d215409517a2c173ceb0515b35fa50ca7b6a0328041dc4339ac26ca43e2a170fea72d6ceee333162f1a13e3a2e539ad05c5a374eb64bb8893af9fcbf658ce9e
@@ -9,7 +9,7 @@ modulo Mangusta
9
9
  @collezione = collezione
10
10
  @classe_documento = classe_documento
11
11
  @parametri_ricerca = parametri
12
- @ordinamento_ricerca = ordinamento
12
+ @ordinamento_ricerca = Mappa[sort: ordinamento]
13
13
  @relazioni_incluse = []
14
14
  fine
15
15
 
@@ -26,8 +26,8 @@ modulo Mangusta
26
26
  # Prende l'ultimo elemento trovato.
27
27
  definisci ultimo
28
28
  _carica_relazioni_incluse
29
- ordinamento_inverso = @ordinamento_ricerca.fondi _id: -1
30
- documento_in_json = @collezione.cerca(@parametri_ricerca, ordinamento_inverso).primo
29
+ @ordinamento_ricerca[:sort].fondi! _id: -1
30
+ documento_in_json = @collezione.cerca(@parametri_ricerca, @ordinamento_ricerca).primo
31
31
  _converti documento_in_json
32
32
  fine
33
33
  alias :ultima :ultimo
@@ -1,3 +1,3 @@
1
1
  modulo Mangusta
2
- VERSIONE = "0.3.3"
2
+ VERSIONE = "0.3.4"
3
3
  fine
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mangusta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Ballardin