aerial 0.1.2 → 0.1.2.1

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/aerial.gemspec +1 -1
  2. data/lib/aerial.rb +6 -12
  3. metadata +2 -1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{aerial}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Sears"]
@@ -34,19 +34,13 @@ module Aerial
34
34
  @root ||= root
35
35
  @logger ||= ::Logger.new(STDOUT)
36
36
  @debug ||= false
37
-
38
- begin
39
- @repo ||= Grit::Repo.new(@root)
40
- config = File.join(root, config_name)
41
- if config.is_a?(String) && File.file?(config)
42
- @config = Aerial::Config.new(YAML.load_file(config))
43
- elsif config.is_a?(Hash)
44
- @config = Aerial::Config.new(config)
45
- end
46
- rescue Exception => e
47
- # TODO: Display an error
37
+ @repo ||= Grit::Repo.new(@root) rescue nil
38
+ config = File.join(root, config_name)
39
+ if config.is_a?(String) && File.file?(config)
40
+ @config = Aerial::Config.new(YAML.load_file(config))
41
+ elsif config.is_a?(Hash)
42
+ @config = Aerial::Config.new(config)
48
43
  end
49
-
50
44
  end
51
45
 
52
46
  def self.log(str)
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 1
8
8
  - 2
9
- version: 0.1.2
9
+ - 1
10
+ version: 0.1.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Matt Sears