ocean-dynamo 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -4
- data/lib/ocean-dynamo.rb +1 -1
- data/lib/ocean-dynamo/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 240fb431c4348b54e3b0359a5fb0070708c350a3c2a770e2119de572b3056f60
|
4
|
+
data.tar.gz: a3ddc14c98ba70b2ed2132fd4b29a0c69e88cf217c83a82ac660b9f015fafe33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e358d5c04bc509a0ca658cb8f3efe63710b5a00515ffccaed09031c3072757f7f2c40cc5f60f82d8b846db03b3ed5a122f5eac3ee0a5402ba46ae94983233399
|
7
|
+
data.tar.gz: 6220d19986f2aecf51c03f381fa2040bae6a4aceb52c57d9b1850efb4799fcf3ee9268c6009ba6c5b1ad1325ae987289851acb99728045b9a991227706df9fb5
|
data/README.md
CHANGED
@@ -134,8 +134,9 @@ value will return the empty string, <tt>""</tt>.
|
|
134
134
|
connect: :late, # true, :late, nil/false
|
135
135
|
create: false, # If true, create the table if nonexistent
|
136
136
|
locking: :lock_version, # The name of the lock attribute or nil/false
|
137
|
-
timestamps: [:created_at, :updated_at]
|
138
|
-
|
137
|
+
timestamps: [:created_at, :updated_at], # A two-element array of timestamp columns, or nil/false
|
138
|
+
client: nil, # A DynamoDB client or nil
|
139
|
+
) do
|
139
140
|
# Attribute definitions
|
140
141
|
...
|
141
142
|
...
|
@@ -348,11 +349,14 @@ Aws.config.update(cfg)
|
|
348
349
|
```
|
349
350
|
As you can see, this relies on ENV variables to choose from three different
|
350
351
|
setups:
|
351
|
-
1. If you're using discrete AWS credentials, set AWS_REGION,
|
352
|
-
and AWS_SECRET_ACCESS_KEY.
|
352
|
+
1. If you're using discrete AWS credentials (not recommended), set AWS_REGION,
|
353
|
+
AWS_ACCESS_KEY_ID, and AWS_SECRET_ACCESS_KEY.
|
353
354
|
2. If you're using localstack, provide AWS_DYNAMODB_ENDPOINT (http://localhost:4569).
|
354
355
|
3. If you're using EC2 or ECS instance profile credentials, set only AWS_REGION.
|
355
356
|
|
357
|
+
You can also supply a DynamoDB client for each table by using the keyword
|
358
|
+
+client:+. If +nil+, the default config in +Aws.config+ will be used.
|
359
|
+
|
356
360
|
# Running the specs
|
357
361
|
|
358
362
|
We're using localstack (https://github.com/localstack/localstack) for development
|
data/lib/ocean-dynamo.rb
CHANGED
data/lib/ocean-dynamo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocean-dynamo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bengtson
|
@@ -11,19 +11,19 @@ cert_chain: []
|
|
11
11
|
date: 2018-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: aws-sdk
|
14
|
+
name: aws-sdk-dynamodb
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activemodel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|