dynamodb-ruby 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d56caaa4e174f830bfa8e20151e848457ae6154e
4
- data.tar.gz: 95177ad6f13526ba23c2587a72994ef2d6d0da0c
3
+ metadata.gz: 0f400f961c27724abdf925b662694594bf00255d
4
+ data.tar.gz: 71afe2c4f0b094132cf51c4079c1b2ac71052157
5
5
  SHA512:
6
- metadata.gz: adbfd0dcdc70eb9fac17dece03d3591dfb5103f4b17a3de3c84a2611770b8b2d3c28ded95bea214feb328f421d7536bdf7471ca9cf12f047babdbdf830f00d11
7
- data.tar.gz: b8e9258db501e9d5b6c0b42bc5f1b0da3b7c29086808ac2d220fe16a6e1d9cb80963b95b3cb29ee7703aebd03c54b1fa1afafef619796a6d76080175cfde852c
6
+ metadata.gz: 1e788f4edf4e7da658eafa93b01a92794c2db47ba02351214c9a2b5c2093ed91d47e38b53db55c7438ea975624e4392236e5dbe17bbe7a46121c651bef2bafc7
7
+ data.tar.gz: 705d36d92187787ff5e01c65344f8b84f78f601ba8ce14efbe771848cdcaa6b5988ee51801c1c44fb5dd9516741f84138f07ea43cfb80ab4ee0596f1cd01ee7d
@@ -26,7 +26,7 @@ module Dynamodb
26
26
  end
27
27
 
28
28
  def config
29
- @@config ||= { endpoint: "http://localhost:10070" }
29
+ @@config ||= { }
30
30
  end
31
31
 
32
32
  def config=(client_config)
@@ -46,18 +46,10 @@ module Dynamodb
46
46
  end
47
47
 
48
48
  def delete_table(_table_name)
49
- # To prevent accidentally deleting tables in production
50
- (raise "Can't delete tables in production") unless self.name == "Dynamodb" &&
51
- self.config == { endpoint: "http://localhost:10070" }
52
-
53
49
  client.delete_table(table_name: _table_name)
54
50
  end
55
51
 
56
52
  def create_table(_table_name, options)
57
- # To prevent accidentally creating tables in production
58
- (raise "Can't create tables in production") unless self.name == "Dynamodb" &&
59
- self.config == { endpoint: "http://localhost:10070" }
60
-
61
53
  resource.create_table(
62
54
  {
63
55
  table_name: _table_name,
@@ -1,3 +1,3 @@
1
1
  module Dynamodb
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamodb-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Farrow
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-08 00:00:00.000000000 Z
11
+ date: 2017-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport