outback 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,7 +1,8 @@
1
- *0.0.8 (March 21, 2012)*
1
+ *0.0.9 (March 21, 2012)*
2
2
 
3
3
  * Removed aws-s3 gem in favour of s3 gem
4
4
  * changed bucket to bucket_name in S3 target configuration
5
+ * print line number in case of config errors
5
6
 
6
7
  *0.0.7 (March 12, 2012)*
7
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
data/lib/outback/cli.rb CHANGED
@@ -42,7 +42,12 @@ module Outback
42
42
  Outback.error "Configuration Error! #{conf_error}"
43
43
  exit(1)
44
44
  rescue Exception => e
45
- Outback.error "Error loading config file: #{e}"
45
+ regexp = /#{Regexp.escape(config_file)}:(\d+)/
46
+ match_data = nil
47
+ if e.backtrace.detect { |line| match_data = line.match(regexp) }
48
+ line_info = " on line #{match_data.captures.first}"
49
+ end
50
+ Outback.error "Error loading config file: #{e}#{line_info}"
46
51
  exit(1)
47
52
  end
48
53
  if Outback::Configuration.loaded.empty?
@@ -6,7 +6,7 @@ end
6
6
 
7
7
  class It
8
8
 
9
- undef_method(*(instance_methods - %w*__id__ __send__*))
9
+ undef_method(*(instance_methods - ['__id__', '__send__', :__id__, :__send__]))
10
10
 
11
11
  def initialize
12
12
  @methods = []
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outback
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthias Grosser