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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7ade2e3ad29ce511cb3537e6d800280da158c8a1eeb676ac767b0489c7c25d1
4
- data.tar.gz: d1f727f3fcf58637e9888eeffcb3a4120b5107a79c400b7ae845936bd2f8eab7
3
+ metadata.gz: 240fb431c4348b54e3b0359a5fb0070708c350a3c2a770e2119de572b3056f60
4
+ data.tar.gz: a3ddc14c98ba70b2ed2132fd4b29a0c69e88cf217c83a82ac660b9f015fafe33
5
5
  SHA512:
6
- metadata.gz: 7938d1e380cb4f93fa99682cc667f29480c73ee3dcb99e06f74b5fd8092c4f91f03039831e3391112f1c11d3d9f6f11a0a1e57b0c2343e59c3889bb435df2a89
7
- data.tar.gz: 15eb31c9595bbabe5feed8474bb75b69139393dfeb262202ee5416162c66de998cc954558132b6c2589ebea4afc46a01d072ede7b08edaddef6eeaf4a80b5fc6
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] # A two-element array of timestamp columns, or nil/false
138
- ) do
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, AWS_ACCESS_KEY_ID,
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
@@ -1,6 +1,6 @@
1
1
  require "ocean-dynamo/engine"
2
2
 
3
- require "aws-sdk"
3
+ require "aws-sdk-dynamodb"
4
4
  require "active_model"
5
5
  require "active_support"
6
6
 
@@ -1,3 +1,3 @@
1
1
  module OceanDynamo
2
- VERSION = "1.7.0"
2
+ VERSION = "1.8.0"
3
3
  end
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.7.0
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: '2'
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: '2'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activemodel
29
29
  requirement: !ruby/object:Gem::Requirement