dynamodb-local 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 6113c2211f8b53f0592fa506f780d07d44254f34
4
- data.tar.gz: df94baa04ad7da8956ac5672e6e4f91c0ab60655
3
+ metadata.gz: 7bff24b8c59c966c221f913f467497a4e305a816
4
+ data.tar.gz: ae4a5ef496462b3f42cb312cbc332794b6228014
5
5
  SHA512:
6
- metadata.gz: 4d82d0311bf979ae54b99401586fb1feac80e4c72383fb848f756366c328b58fbff99bb1ba4c25ec6cf335adf9d11bcf57d1bfee6e1ff2545aba544d06050a04
7
- data.tar.gz: 25a4715d2ffef364609464a83d93cb3245958dda61de44ed1d361c37cb302ff0b4da2290d2e80169252595a3d34deb3482371fcb58431c9e9f8290d06b92de3b
6
+ metadata.gz: a9321396fd1b8f805dd19bac76ab9485c0fcb89ffed4010544064a317428529efaf9c8c5635c832fcb6463237f60ec2d01a3cb3f875e3a27c63c17413f97bfc1
7
+ data.tar.gz: 660bf0016915af379f8dcd7b0ce75f706e2404d5883492e11af6b81136e710e836232d802405a75fe66dbc52f7d9fe0edf48f20572aa37d25abd4f820d2a76bc
data/README.md CHANGED
@@ -2,8 +2,7 @@
2
2
 
3
3
  This is a simple helper gem that automaticall installs the [DynamoDB local tool](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html) and provides a simple ruby wrapper binar that allows you start and stop the local DynamoDB server from the command line.
4
4
 
5
- *IMPORTANT:* DynamoDB Local supports the Java Runtime Engine (JRE)
6
- version 6.x or newer; it will not run on older JRE versions.
5
+ *IMPORTANT:* You must have the Java Runtime Engine (JRI) version 6.x or newer installed for the local serverto work; it will not run on older JRE versions.
7
6
 
8
7
  ## Installation
9
8
 
@@ -33,6 +32,45 @@ the underlying server. Those are:
33
32
  -port <port-no.> Specify a port number. Default is 8000
34
33
  </pre>
35
34
 
35
+ ## Integration with the AWS Ruby SDK v1
36
+
37
+ The v1 Ruby SDK ships with two versioned client classes, '2011-12-05'
38
+ and '2012-08-10'. DynamoDB local only works with the 2012 API version.
39
+ So you must specify the 2012 verion when creating a DynamoDB client.
40
+
41
+ ```ruby
42
+ # either of the following versions will create an appropriate client
43
+ # that will work with DynamoDB local
44
+ ddb = AWS::DynamoDB::Client.new(api_verison: '2012-08-10')
45
+ ddb = AWS::DynamoDB::Client::V20120810.new
46
+
47
+ # this defaults to older API version for backwards compatability
48
+ # and will not work with DyanmoDB local
49
+ ddb = AWS::DynamoDB::Client.new
50
+ ```
51
+
52
+ If you're using the [v2 SDK](https://github.com/aws/aws-sdk-core-ruby), the 2012 API is the default version.
53
+
54
+ Additionally, you must turn SSL off when you using DynamoDB local.
55
+
56
+ ```ruby
57
+ # Full working configuration using AWS Ruby SDK v1
58
+ ddb = AWS::DynamoDB::Client.new(api_verison: '2012-08-10',
59
+ endpoint: 'localhost',
60
+ port: '8000',
61
+ use_ssl: false)
62
+ ```
63
+
64
+ Alternatively, you can configure these as global defaults:
65
+
66
+ ```ruby
67
+ AWS.config(use_ssl: false,
68
+ dynamo_db: { api_verison: '2012-08-10',
69
+ endpoint: 'localhost',
70
+ port: '8000' })
71
+ ddb = AWS::DynamoDB::Client.new
72
+ ```
73
+
36
74
  ## Contributing
37
75
 
38
76
  1. Fork it ( https://github.com/[my-github-username]/dynamodb-local/fork )
@@ -1,5 +1,5 @@
1
1
  module Dynamodb
2
2
  module Local
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamodb-local
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Huckabee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-03 00:00:00.000000000 Z
11
+ date: 2014-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler