swirl 1.2 → 1.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.
Files changed (2) hide show
  1. data/lib/swirl/ec2.rb +3 -1
  2. metadata +2 -2
data/lib/swirl/ec2.rb CHANGED
@@ -20,7 +20,9 @@ module Swirl
20
20
 
21
21
 
22
22
  def self.options(name=:default, file="~/.swirl")
23
- YAML.load_file(File.expand_path(file))[name]
23
+ file = File.expand_path(file)
24
+ return {} if !File.exists?(file)
25
+ YAML.load_file(file)[name]
24
26
  end
25
27
 
26
28
  def initialize(options={}, file="~/.swirl")
metadata CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
- - 2
8
- version: "1.2"
7
+ - 3
8
+ version: "1.3"
9
9
  platform: ruby
10
10
  authors:
11
11
  - Blake Mizerany