oboe 2.6.1.0 → 2.6.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5236804c4d8fb3575b96b9adc6166157f3b262aa
4
- data.tar.gz: c38126e75df9257d61b0c6572a96409795f37f0e
3
+ metadata.gz: 910571cb0ab799c3a6a2aa4ab7e3c9e4fce88032
4
+ data.tar.gz: 0ae240f38177e6eaef045e4fab5acbdb94eeb375
5
5
  SHA512:
6
- metadata.gz: be62476276374b23481ee433c76b784361a402b9b763730e2f86326758c9fac7e74d2af147fd560ed2780591557f9ded2853434c83655cc8424b60604f9c9429
7
- data.tar.gz: a7de077c04074bd76205fd71a4831a67c621306fdcef8b0260727bb0927d3f2420e1a2383a43f4623a21df1f1761481606eecb68dcb95f3ce0bf077e1f67c6d3
6
+ metadata.gz: 7328be6f93b8288d0ea86ca10f74f60ed7b30af07fc0e3f29faab9811fcbee3f61c3491d6618388169144575547129cf94fba948af7cc3a4599a80b4dcecb490
7
+ data.tar.gz: 0ec98782356c87a08eedcabb964bf21be6536a1c29dfb5abc334e357a3f93ece4190f2da0120d93a20a1060c14e110a433fe598e02a2ba9d7e01cdbaf21f9b36
data/lib/base.rb CHANGED
@@ -63,7 +63,7 @@ module OboeBase
63
63
  end
64
64
 
65
65
  def forking_webserver?
66
- defined?(::Unicorn)
66
+ (defined?(::Unicorn) and ($0 =~ /unicorn/i)) ? true : false
67
67
  end
68
68
 
69
69
  ##
@@ -12,6 +12,9 @@ module Oboe
12
12
  # Don't send __Init in development or test
13
13
  return if ["development", "test"].include? ENV['RACK_ENV']
14
14
 
15
+ # Don't send __Init if the c-extension hasn't loaded
16
+ return unless Oboe.loaded
17
+
15
18
  platform_info = { '__Init' => 1 }
16
19
 
17
20
  begin
@@ -122,7 +122,7 @@ module Oboe
122
122
  event.addInfo(k.to_s, v.to_s) if valid_key? k
123
123
  end if !opts.nil? and opts.any?
124
124
 
125
- Oboe::Reporter.sendReport(event)
125
+ Oboe::Reporter.sendReport(event) if Oboe.loaded
126
126
  end
127
127
  end
128
128
  end
data/lib/oboe/loading.rb CHANGED
@@ -91,7 +91,8 @@ Oboe::Loading.require_api
91
91
 
92
92
  # Auto-start the Reporter unless we running Unicorn on Heroku
93
93
  # In that case, we start the reporters after fork
94
- unless defined?(::Unicorn) and ENV.has_key?('TRACEVIEW_URL')
94
+ unless Oboe.heroku? and Oboe.forking_webserver?
95
+ Oboe.logger.debug "[oboe/debug] starting Reporter from oboe gem"
95
96
  Oboe::Reporter.start
96
97
  end
97
98
 
data/lib/oboe/version.rb CHANGED
@@ -5,7 +5,7 @@ module Oboe
5
5
  module Version
6
6
  MAJOR = 2
7
7
  MINOR = 6
8
- PATCH = 1
8
+ PATCH = 2
9
9
  BUILD = 0
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oboe
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1.0
4
+ version: 2.6.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Giacomo Lombardo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-12 00:00:00.000000000 Z
12
+ date: 2014-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake