sdbcli 0.2.4 → 0.2.5

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 (2) hide show
  1. data/bin/sdbcli +6 -2
  2. metadata +3 -3
data/bin/sdbcli CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  $LOAD_PATH << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
3
3
 
4
- Version = '0.2.4'
4
+ Version = '0.2.5'
5
5
  HISTORY_FILE = File.join((ENV['HOME'] || ENV['USERPROFILE'] || '.'), '.sdbcli_history')
6
6
 
7
7
  require 'rubygems'
@@ -17,7 +17,11 @@ secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
17
17
  sdb_endpoint = ENV['SDB_ENDPOINT'] || ENV['REGION_NAME'] || 'sdb.amazonaws.com'
18
18
 
19
19
  if /\A[^.]+\Z/ =~ sdb_endpoint
20
- sdb_endpoint = "sdb.#{sdb_endpoint}.amazonaws.com"
20
+ if sdb_endpoint == 'us-east-1'
21
+ sdb_endpoint = 'sdb.amazonaws.com'
22
+ else
23
+ sdb_endpoint = "sdb.#{sdb_endpoint}.amazonaws.com"
24
+ end
21
25
  end
22
26
 
23
27
  ARGV.options do |opt|
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdbcli
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel