aws-record 2.13.1 → 2.13.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe251cd0c7fc4eabda02c7d02e0f68443027b21bf925733badf8f8fd7c8540e2
4
- data.tar.gz: 6107ea30546f5fb894a9f963b184b5414b1e6d6e0c6e073c57acfdaaf31c94fb
3
+ metadata.gz: f00e0b5d064c085fb4c789f556640daa5fdddb73ecca664e9567cd3779b1a644
4
+ data.tar.gz: 400a06cc869afe28dd9a823fada120eee08054d14522b964936c197ae4997d8c
5
5
  SHA512:
6
- metadata.gz: 2f67f857fe7837e662b05ba74f040fb0460275596981b0100edae2efd92349828f129a9836e7a0c2551efd8e2330da4175e3ae61a3d4bfa45a059ef94da4cb5a
7
- data.tar.gz: c75497be6b3f37fa84f65267f58bc098cdbc86ec08bdb6be549fe5407035582d797d2cc7e43eec5ff8d7c7b5f248a36b7939505dac4f89fc6b2149c951038234
6
+ metadata.gz: 86bdbd867e84eeb675418787f8ac29f0f05c7ff9c948bd1cb201a5aa99c108bcb87c945806da861c3835b6f771a509283215360831fc6b8168a74444a8acf021
7
+ data.tar.gz: 0e70aef2a89abc281031dd3d371b92f7a3020d65d850bf7d200d622d3ed3cb1bc13268b3c88a57b237291b0d7bd95c5f6be12ae0fe9912cbc0a385a411c59de2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ 2.13.3 (2025-01-02)
2
+ ------------------
3
+
4
+ * Issue - add `attribute_names` class/instance method. (#145)
5
+
6
+ 2.13.2 (2024-08-21)
7
+ ------------------
8
+
9
+ * Issue - Allow `global_secondary_index` to be defined in `TableConfig` without
10
+ supplying capacity settings. (#140)
11
+
1
12
  2.13.1 (2024-07-18)
2
13
  ------------------
3
14
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.13.1
1
+ 2.13.3
@@ -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
@@ -176,7 +176,7 @@ module Aws
176
176
  # @api private
177
177
  def global_secondary_index(name, &block)
178
178
  gsi = GlobalSecondaryIndex.new
179
- gsi.instance_eval(&block)
179
+ gsi.instance_eval(&block) if block_given?
180
180
  @global_secondary_indexes[name] = gsi
181
181
  end
182
182
 
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.1
4
+ version: 2.13.3
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-07-18 00:00:00.000000000 Z
11
+ date: 2025-01-02 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.5.9
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: AWS Record library for Amazon DynamoDB