dynamo_record 0.0.10 → 0.0.11
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 +4 -4
- data/lib/dynamo_record/config.rb +2 -1
- data/lib/dynamo_record/persistence.rb +2 -1
- data/lib/dynamo_record/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b01814694fc302d08b6ca66554b33881d65f6bac
|
|
4
|
+
data.tar.gz: 2619814e9bd392cb4ddb0338d52174c355f80df2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c94d4a280a054cde24f74e013fac12da4af7cfec3fc71b617cef14fffa16ca71fe1f87c573188e158845e616c675a779e84a4f2a856c4b31832b070c931d629c
|
|
7
|
+
data.tar.gz: beafb148cf6219148eca799f7c71234c355d6e1eac9a22a58803da40e33e5e2e6ec66cfb05d80630350f225f62c93eb4f8ea1eea9e7ce49fcb83b4dd55e52067
|
data/lib/dynamo_record/config.rb
CHANGED
|
@@ -2,13 +2,14 @@ module DynamoRecord
|
|
|
2
2
|
module Config
|
|
3
3
|
extend self
|
|
4
4
|
|
|
5
|
-
attr_accessor :access_key_id, :secret_access_key, :region, :namespace, :read_capacity_units, :write_capacity_units
|
|
5
|
+
attr_accessor :access_key_id, :secret_access_key, :region, :namespace, :read_capacity_units, :write_capacity_units, :compute_checksums
|
|
6
6
|
|
|
7
7
|
def set_defaults
|
|
8
8
|
self.region = 'us-east-1'
|
|
9
9
|
self.read_capacity_units = 20
|
|
10
10
|
self.write_capacity_units = 20
|
|
11
11
|
self.namespace = nil
|
|
12
|
+
self.compute_checksums = true
|
|
12
13
|
end
|
|
13
14
|
set_defaults
|
|
14
15
|
end
|
|
@@ -12,7 +12,8 @@ module DynamoRecord
|
|
|
12
12
|
@client ||= Aws::DynamoDB::Client.new(
|
|
13
13
|
access_key_id: DynamoRecord::Config.access_key_id,
|
|
14
14
|
secret_access_key: DynamoRecord::Config.secret_access_key,
|
|
15
|
-
region: DynamoRecord::Config.region
|
|
15
|
+
region: DynamoRecord::Config.region,
|
|
16
|
+
compute_checksums: DynamoRecord::Config.compute_checksums
|
|
16
17
|
)
|
|
17
18
|
end
|
|
18
19
|
|