ddbcli 0.2.3 → 0.2.4

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.
Files changed (3) hide show
  1. data/bin/ddbcli +1 -1
  2. data/lib/ddbcli/cli/options.rb +6 -0
  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.2.3'
4
+ Version = '0.2.4'
5
5
 
6
6
  HISTORY_FILE = File.join((ENV['HOME'] || ENV['USERPROFILE'] || '.'), '.ddbcli_history')
7
7
  HISTSIZE = 500
@@ -51,6 +51,12 @@ def parse_options
51
51
 
52
52
  opt.parse!
53
53
 
54
+ if options.ddb_endpoint_or_region.kind_of?(URI) and not (options.access_key_id and options.secret_access_key)
55
+ options.access_key_id = 'scott'
56
+ options.secret_access_key = 'tiger'
57
+ puts 'Warning: dummy auth key was set because ACCESS_KEY/SECRET_KEY is not set'
58
+ end
59
+
54
60
  unless options.access_key_id and options.secret_access_key and options.ddb_endpoint_or_region
55
61
  puts opt.help
56
62
  exit 1
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.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: