oboe-heroku 0.8.0.19 → 0.8.0.27.beta1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/heroku_metal.rb CHANGED
@@ -48,7 +48,7 @@ module Oboe_metal
48
48
  # The Oboe Reporter is configured via Heroku config variables.
49
49
  Oboe.reporter = Oboe::Reporter.new(nil, nil)
50
50
 
51
- Oboe::API.report_init('ruby') unless ["development", "test"].include? ENV['RACK_ENV']
51
+ Oboe::API.report_init('rack') unless ["development", "test"].include? ENV['RACK_ENV']
52
52
 
53
53
  rescue Exception => e
54
54
  $stderr.puts e.message
@@ -3,7 +3,7 @@ module OboeHeroku
3
3
  MAJOR = 0
4
4
  MINOR = 8
5
5
  PATCH = 0
6
- BUILD = 19
6
+ BUILD = "27.beta1"
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
9
  end
data/lib/oboe-heroku.rb CHANGED
@@ -2,16 +2,20 @@
2
2
  # All rights reserved.
3
3
 
4
4
  begin
5
- require 'oboe_metal.so'
6
- require 'heroku_metal'
7
- require 'oboe-heroku/loading'
8
- require 'oboe-heroku/version'
5
+ if ENV.has_key?('TRACEVIEW_URL')
6
+ require 'oboe_metal.so'
7
+ require 'heroku_metal'
8
+ require 'oboe-heroku/loading'
9
+ require 'oboe-heroku/version'
9
10
 
10
- # Require the core oboe gem
11
- require 'oboe'
12
-
13
- ::OboeHeroku::Loading.initialize
11
+ # Require the core oboe gem
12
+ require 'oboe'
14
13
 
14
+ ::OboeHeroku::Loading.initialize
15
+ else
16
+ $stderr.puts "The TraceView addon is not part of this application. You can either run "
17
+ $stderr.puts "'heroku addons:add traceview' or remove the oboe-heroku gem from your bundle."
18
+ end
15
19
  rescue LoadError
16
20
  if ENV.has_key?('TRACEVIEW_DEBUG_LEVEL') and (ENV['TRACEVIEW_DEBUG_LEVEL'].to_i > 1)
17
21
  $stderr.puts "[oboe-heroku/error] Could not load oboe-heroku dependencies."
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oboe-heroku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0.19
5
- prerelease:
4
+ version: 0.8.0.27.beta1
5
+ prerelease: 9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Peter Giacomo Lombardo
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-10-23 00:00:00.000000000 Z
13
+ date: 2013-10-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: oboe
@@ -119,9 +119,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements:
122
- - - ! '>='
122
+ - - ! '>'
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 1.3.1
125
125
  requirements: []
126
126
  rubyforge_project:
127
127
  rubygems_version: 1.8.24