wolf_core 1.0.93 → 1.0.94

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: bd21976527246f7649d145ec27c8fef8e71b2f5377e3a9483f34ca059e06ec84
4
- data.tar.gz: b5d7d74dd719950ba77df45278093f94017a2d8573229c0e23e871f816cb4233
3
+ metadata.gz: 30bb3c7247f8d350928e6bbefffce87388146ee58412f377a7d619d72116c07f
4
+ data.tar.gz: 99d79ccc06430d548153e3c35608ee15051200b793633f2fed4959475076843d
5
5
  SHA512:
6
- metadata.gz: 22352cb336868a137783e802887ff4b868c1dfc5a7e033d6a75e39829d97d82a8d0aa4853d9774aeedd41f3673f0ad25c5863ecd59dddd43b1409aa51c6e74a6
7
- data.tar.gz: cdcb19e287c39c2bb9507a05d37b1d6520bdd42ad8df7a15fbf53e218d7c0553c5c132afcececef887ee0e1603b07714726f69db09327d2f364d0c1237b2734f
6
+ metadata.gz: dea4effa46180bf307215a7ac193ee8191dc0eef3338586412723a2ab43c980be799853fdeb01494d27532107e203468986edbb2062109e66b775006cf7ae0d1
7
+ data.tar.gz: ff42fd55723b1c48e90357e0068d32efb764b537532fe82ff171d4cecf63aed30a3d10026af6573eeab1e47936e61c2f65b0aae1a25ca7dc837561b25562aa04
@@ -17,11 +17,13 @@ module WolfCore
17
17
  })
18
18
  end
19
19
 
20
- def get_item(table_name:, key:)
21
- instance.get_item({
20
+ def get_item(table_name:, key:, index_name: nil)
21
+ get_params = {
22
22
  table_name: table_name,
23
23
  key: key
24
- }).item
24
+ }
25
+ get_params[:index_name] = index_name if index_name
26
+ instance.get_item(get_params).item
25
27
  end
26
28
 
27
29
  def query(table_name:, key_condition_expression:, expression_attribute_values:, index_name: nil)
@@ -18,10 +18,11 @@ module WolfCore
18
18
  )
19
19
  end
20
20
 
21
- def get_no_sql_item(table_name:, key:)
21
+ def get_no_sql_item(table_name:, key:, index_name: nil)
22
22
  WolfCore::NoSqlDbDataSource.get_item(
23
23
  table_name: table_name,
24
24
  key: key,
25
+ index_name: index_name
25
26
  )
26
27
  end
27
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.93"
4
+ VERSION = "1.0.94"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.93
4
+ version: 1.0.94
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo