ec2ssh 2.0.2 → 2.0.3

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.
data/ChangeLog.md CHANGED
@@ -1,4 +1,9 @@
1
1
  # Change Log
2
+ ## 2.0.3
3
+
4
+ * Fix bug: Fix undefined method `empty?` when aws keys not set
5
+ Thanks to @2get #6
6
+
2
7
  ## 2.0.2
3
8
 
4
9
  * Fix bug: Raises nil.empty? exception on ec2ssh update
data/lib/ec2ssh/hosts.rb CHANGED
@@ -8,7 +8,7 @@ module Ec2ssh
8
8
  @dotfile = dotfile
9
9
  @ec2 = Hash.new do |h,region|
10
10
  key = dotfile.aws_key(keyname)
11
- raise AwsEnvNotDefined if key['access_key_id'].empty? || key['secret_access_key'].empty?
11
+ raise AwsEnvNotDefined if key['access_key_id'].nil? || key['secret_access_key'].nil?
12
12
  h[region] = AWS::EC2.new(
13
13
  :ec2_endpoint => "#{region}.ec2.amazonaws.com",
14
14
  :access_key_id => key['access_key_id'],
@@ -1,3 +1,3 @@
1
1
  module Ec2ssh
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-20 00:00:00.000000000 Z
12
+ date: 2013-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor