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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a38532f27161eb41307906372c21c1db90c9adb82b8b4a41742bf0f9ba0d3d36
4
- data.tar.gz: 4f565edb1834ab789fdf6a98dfd77ec36bbbcfbb3a92d4dd17051659db3630ba
3
+ metadata.gz: d8ddee10edcd4d87e35140d998f03f17503bedbf93802dd1ad9026dbb5e1da5b
4
+ data.tar.gz: ec509b9e2fd6e1d816780f54ac9c2ed41d43b354a3b0427347d238422c10817f
5
5
  SHA512:
6
- metadata.gz: 69f2f61f5dd87bf339b6b3ad49d01e8e05295131f78dff98c76f2fe0047f1b3a5e631040f157e534ca030169d887904efd0afd2bbf8f78ec75620dcce11b8adc
7
- data.tar.gz: 31cc0b6499b6e5201800dd8261027e615ebea9e9093d8995a2503d3c67f4931ed628b6d2250309a615df592b8f18d964b0796846f6a052fb6a1b8ee851fb1a25
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
- emphasis that possibility.
53
+ emphasize that possibility.
54
54
 
55
55
  ### Delete
56
56
 
@@ -26,8 +26,14 @@ module Dynomite::DbConfig
26
26
  endpoint = ENV['DYNAMODB_ENDPOINT'] || config['endpoint']
27
27
  check_dynamodb_local!(endpoint)
28
28
 
29
- Aws.config.update(endpoint: endpoint) if endpoint
30
- @@db ||= Aws::DynamoDB::Client.new
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
@@ -1,3 +1,3 @@
1
1
  module Dynomite
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
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.7
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-08-10 00:00:00.000000000 Z
11
+ date: 2018-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport