dynomite 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/lib/dynomite/db_config.rb +8 -2
- data/lib/dynomite/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8ddee10edcd4d87e35140d998f03f17503bedbf93802dd1ad9026dbb5e1da5b
|
4
|
+
data.tar.gz: ec509b9e2fd6e1d816780f54ac9c2ed41d43b354a3b0427347d238422c10817f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84c17f17ea4cedb15ca53576159a1a278d97b4a670b9aba9a5bc554dd331a0218fa4738adfaca5a93794aec51ebceb3df9457e9fec0bff38ef31b26cfb83e0e6
|
7
|
+
data.tar.gz: 38af677205f0c537be166345cfa1631fab5d06776792b28f90179d627d04fb375e31fc0ee1dd678fa2d4235390dd52f21e5c2971e2bd9007e1db009ace8343fa
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [1.0.8]
|
7
|
+
- scope endpoint option to dynamodb client only vs the entire Aws.config
|
8
|
+
|
6
9
|
## [1.0.7]
|
7
10
|
- update DYNOMITE_ENV var
|
8
11
|
|
data/README.md
CHANGED
@@ -50,7 +50,7 @@ post.attrs # {"id" => "myid", title" => "my title", desc: "my desc 2"}
|
|
50
50
|
|
51
51
|
Note, a race condition edge case can exist when several concurrent replace
|
52
52
|
calls are happening. This is why the interface is called replace to
|
53
|
-
|
53
|
+
emphasize that possibility.
|
54
54
|
|
55
55
|
### Delete
|
56
56
|
|
data/lib/dynomite/db_config.rb
CHANGED
@@ -26,8 +26,14 @@ module Dynomite::DbConfig
|
|
26
26
|
endpoint = ENV['DYNAMODB_ENDPOINT'] || config['endpoint']
|
27
27
|
check_dynamodb_local!(endpoint)
|
28
28
|
|
29
|
-
|
30
|
-
|
29
|
+
# Normally, do not set the endpoint to use the current configured region.
|
30
|
+
# Probably want to stay in the same region anyway for db connections.
|
31
|
+
#
|
32
|
+
# List of regional endpoints: https://docs.aws.amazon.com/general/latest/gr/rande.html#ddb_region
|
33
|
+
# Example:
|
34
|
+
# endpoint: https://dynamodb.us-east-1.amazonaws.com
|
35
|
+
options = endpoint ? { endpoint: endpoint } : {}
|
36
|
+
@@db ||= Aws::DynamoDB::Client.new(options)
|
31
37
|
end
|
32
38
|
|
33
39
|
# When endoint has been configured to point at dynamodb local: localhost:8000
|
data/lib/dynomite/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynomite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|