exceptional 2.0.28 → 2.0.29

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.
@@ -38,6 +38,8 @@ module Exceptional
38
38
  rescue Exception => e
39
39
  raise ConfigurationException.new("Unable to load configuration #{config_file} for environment #{application_environment} : #{e.message}")
40
40
  end
41
+ else
42
+ puts "Exceptional::Config.load - no configuration file"
41
43
  end
42
44
  end
43
45
 
@@ -56,7 +58,7 @@ module Exceptional
56
58
  end
57
59
 
58
60
  def application_root
59
- defined?(Rails) ? Rails.root : Dir.pwd
61
+ (defined?(Rails) && Rails.respond_to?(:root)) ? Rails.root : Dir.pwd
60
62
  end
61
63
 
62
64
  def ssl?
@@ -1,3 +1,3 @@
1
1
  module Exceptional
2
- VERSION = '2.0.28'
2
+ VERSION = '2.0.29'
3
3
  end
@@ -4,7 +4,6 @@ describe Exceptional::AlertData do
4
4
  it "raises error" do
5
5
  data = Exceptional::AlertData.new(Exceptional::Alert.new("A string"), "Alert")
6
6
  result_json = JSON.parse(data.to_json)
7
- puts result_json.inspect
8
7
  result_json['rescue_block']['name'].should == 'Alert'
9
8
  result_json['exception']['message'].should == "A string"
10
9
  result_json['exception']['exception_class'] == 'Exceptional::Alert'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exceptional
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 28
10
- version: 2.0.28
9
+ - 29
10
+ version: 2.0.29
11
11
  platform: ruby
12
12
  authors:
13
13
  - Contrast
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-22 00:00:00 +00:00
18
+ date: 2010-12-01 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency