ddbcli 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/ddbcli +1 -1
  2. data/lib/ddbcli/ddb-driver.rb +5 -4
  3. metadata +1 -1
data/bin/ddbcli CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
3
3
 
4
- Version = '0.1.8'
4
+ Version = '0.1.9'
5
5
 
6
6
  HISTORY_FILE = File.join((ENV['HOME'] || ENV['USERPROFILE'] || '.'), '.ddbcli_history')
7
7
  HISTSIZE = 500
@@ -193,10 +193,11 @@ module DynamoDB
193
193
 
194
194
  table_names.map do |table_name|
195
195
  table_info = @client.query('DescribeTable', 'TableName' => table_name)['Table']
196
- h[table_name] = {
197
- 'TableStatus' => table_info['TableStatus'],
198
- 'ItemCount' => table_info['ItemCount'],
199
- }
196
+ h[table_name] = {}
197
+
198
+ %w(TableStatus ItemCount TableSizeBytes).each do |i|
199
+ h[table_name][i] = table_info[i]
200
+ end
200
201
  end
201
202
 
202
203
  return h
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddbcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: