aws-record 2.13.2 → 2.13.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: f559e294ec426e0b1a7311f71281a3467f6c1b4bf894c8e5e30b0b77d919dea5
4
- data.tar.gz: fcb3b69c3dbe449f2e68b1ead3bc7d606b5bd3f706ef7bbdf0d9db603c5c2eab
3
+ metadata.gz: 2bef51be84e19db7f5f609bbe75363201b34c405bd5f136f07bfa8395aa33516
4
+ data.tar.gz: 3cfef628a1c38497e0f4d947dbc5c552648217b39f86fda65b9b02a122f75846
5
5
  SHA512:
6
- metadata.gz: 69f44eaafb4fe0cf41fddad77f8257da36ae06acb48d0682e67e4fc0360ec3b849c4185d25a18d5f1ec561d7a2bbed6c177ef4034df1e85cf4553e532d8e7b78
7
- data.tar.gz: 24ffbbb032972281079776d0a6ec4141f0eb88e96bc85163305cc2c676e24ba5ca58d951644bdf55bd821e1ebf558723d37e0469943a33e510e10756602a1182
6
+ metadata.gz: c24c82a76920c67e0898b6013bfe66f3511b94ebaa0787fc007a2142649263adbe44d9dbaa31096fba277172fe47682862d63113e713fdaa7a6ec2e4a800133b
7
+ data.tar.gz: 3eeffd1656ca69b36afe0e708aedd4f6fd4e4874f1133507012fae78f0a5741a8f244d8ec4c89e0986914ed48489f1949c9b131949e90da28130088f52802d3f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ 2.13.4 (2025-05-21)
2
+ ------------------
3
+
4
+ * Issue - Use configured clients for batch reads in `find_all`.
5
+
6
+ 2.13.3 (2025-01-02)
7
+ ------------------
8
+
9
+ * Issue - add `attribute_names` class/instance method. (#145)
10
+
1
11
  2.13.2 (2024-08-21)
2
12
  ------------------
3
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.13.2
1
+ 2.13.4
@@ -77,6 +77,11 @@ module Aws
77
77
  @data.hash_copy
78
78
  end
79
79
 
80
+ # @return [Array] List of attribute names.
81
+ def attribute_names
82
+ self.class.attribute_names
83
+ end
84
+
80
85
  def self.inherit_attributes(klass)
81
86
  superclass_attributes = klass.superclass.instance_variable_get('@attributes')
82
87
 
@@ -516,6 +521,11 @@ module Aws
516
521
  @attributes
517
522
  end
518
523
 
524
+ # @return [Array] List of attribute names.
525
+ def attribute_names
526
+ @attributes.attributes.keys
527
+ end
528
+
519
529
  # @api private
520
530
  def keys
521
531
  @keys.keys
@@ -553,7 +553,7 @@ module Aws
553
553
  # include all the keys defined in model.
554
554
  # @raise [ArgumentError] if the provided keys are a duplicate.
555
555
  def find_all(keys)
556
- Aws::Record::Batch.read do |db|
556
+ Aws::Record::Batch.read(client: dynamodb_client) do |db|
557
557
  keys.each do |key|
558
558
  db.find(self, key)
559
559
  end
@@ -631,8 +631,8 @@ module Aws
631
631
  end
632
632
  end
633
633
  update_expressions = []
634
- update_expressions << ("SET #{set_expressions.join(', ')}") unless set_expressions.empty?
635
- update_expressions << ("REMOVE #{remove_expressions.join(', ')}") unless remove_expressions.empty?
634
+ update_expressions << "SET #{set_expressions.join(', ')}" unless set_expressions.empty?
635
+ update_expressions << "REMOVE #{remove_expressions.join(', ')}" unless remove_expressions.empty?
636
636
  {
637
637
  update_expression: update_expressions.join(' '),
638
638
  expression_attribute_names: exp_attr_names,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-record
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.2
4
+ version: 2.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-21 00:00:00.000000000 Z
11
+ date: 2025-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-dynamodb
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubygems_version: 3.5.5
96
+ rubygems_version: 3.4.19
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: AWS Record library for Amazon DynamoDB