oboe-heroku 0.9.8.5 → 0.9.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09a2ea8949c3fc2ffda5bfb868780bb88d49fa48
4
- data.tar.gz: ccd61361d513fa72d32982e717c4922c2f35e0aa
3
+ metadata.gz: 1065da7d1a0f64f619796886b3878e12528b814a
4
+ data.tar.gz: 7fa251e99d9f6e16672f73a27d6fa0231a10a6d5
5
5
  SHA512:
6
- metadata.gz: d1137d8c5bc0e25f7772018bd002f9e7fc142ba7b708ed593cf9984ad0c48df2d905602f1b250e99d75a985523006ec2895eec3397d67c30689da55e0c1c9c12
7
- data.tar.gz: 5639161f8854f80b6008490b07a411bf703de39fcb6b66982ad17f9b956c401b29635f49614234538169d4884c5773dc2fe21e9ca1d1f46bcaa7119a810140e4
6
+ metadata.gz: af03f9c07f86dd002ebf19f6632dc3f16ade8d9ff9b628bb736d2f6c49aa32e0386b999303774b3570542e7ff23beab63d9ba12fb2ece01ecf63450140759738
7
+ data.tar.gz: 525626a0924328b46272688aa8599b31d7692a75cfea579001a67209b9c58f464d35652fc294b8650a02f95106b6bcd62db89712c7555933b450f041e53a61f3
data/lib/base.rb CHANGED
@@ -58,6 +58,14 @@ module OboeBase
58
58
  Context.log(layer, label, options = options)
59
59
  end
60
60
 
61
+ def heroku?
62
+ true
63
+ end
64
+
65
+ def forking_webserver?
66
+ defined?(::Unicorn)
67
+ end
68
+
61
69
  ##
62
70
  # These methods should be implemented by the descendants
63
71
  # (Oboe_metal, Oboe_metal (JRuby), Heroku_metal)
data/lib/heroku_metal.rb CHANGED
@@ -50,8 +50,8 @@ module Oboe_metal
50
50
 
51
51
  # The Oboe Reporter is configured via Heroku config variables.
52
52
  Oboe.reporter = Oboe::Reporter.new(nil, nil)
53
-
54
- Oboe::API.report_init('rack') unless ["development", "test"].include? ENV['RACK_ENV']
53
+
54
+ Oboe::API.report_init
55
55
 
56
56
  rescue Exception => e
57
57
  $stderr.puts e.message
@@ -121,11 +121,12 @@ module Oboe
121
121
  # such as Unicorn or Passenger
122
122
  #
123
123
  def disconnect!
124
- ::Oboe::Context.disconnect(::Oboe.reporter) if Oboe.loaded
124
+ # To avoid an issue with SSL reconnects, delay Reporter initialization
125
+ # until after the fork is completed. Here, do nothing for now.
125
126
  end
126
127
 
127
128
  def reconnect!
128
- ::Oboe::Context.reconnect(::Oboe.reporter) if Oboe.loaded
129
+ Oboe::Reporter.start
129
130
  end
130
131
  end
131
132
  end
@@ -2,8 +2,8 @@ module OboeHeroku
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- PATCH = 8
6
- BUILD = 5
5
+ PATCH = 9
6
+ BUILD = 0
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
9
  end
data/oboe-heroku.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.extensions = ['ext/oboe_metal/extconf.rb']
22
22
 
23
- s.add_dependency(%q<oboe>, [">= 2.4.0.1"])
23
+ s.add_dependency(%q<oboe>, [">= 2.6.1.0"])
24
24
 
25
25
  s.add_development_dependency 'rake'
26
26
  s.add_development_dependency 'rspec'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oboe-heroku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8.5
4
+ version: 0.9.9.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-02-18 00:00:00.000000000 Z
12
+ date: 2014-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oboe
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '>='
19
19
  - !ruby/object:Gem::Version
20
- version: 2.4.0.1
20
+ version: 2.6.1.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '>='
26
26
  - !ruby/object:Gem::Version
27
- version: 2.4.0.1
27
+ version: 2.6.1.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement