oboe-heroku 0.8.0.9 → 0.8.0.16

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Import dependencies from oboe-heroku.gemspec
4
+ gemspec :name => 'oboe-heroku'
5
+
6
+ gem 'rake'
7
+
8
+ group :development do
9
+ gem 'guard'
10
+ gem 'guard-rspec'
11
+
12
+ gem 'rb-inotify', :require => false
13
+ gem 'rb-fsevent', :require => false
14
+ gem 'rb-fchange', :require => false
15
+ end
16
+
data/Gemfile.lock ADDED
@@ -0,0 +1,64 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ oboe-heroku (0.8.0.9)
5
+ oboe (>= 2.1.4)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ coderay (1.0.9)
11
+ diff-lcs (1.2.4)
12
+ ffi (1.9.0)
13
+ formatador (0.2.4)
14
+ guard (1.8.2)
15
+ formatador (>= 0.2.4)
16
+ listen (>= 1.0.0)
17
+ lumberjack (>= 1.0.2)
18
+ pry (>= 0.9.10)
19
+ thor (>= 0.14.6)
20
+ guard-rspec (3.0.2)
21
+ guard (>= 1.8)
22
+ rspec (~> 2.13)
23
+ listen (1.3.0)
24
+ rb-fsevent (>= 0.9.3)
25
+ rb-inotify (>= 0.9)
26
+ rb-kqueue (>= 0.2)
27
+ lumberjack (1.0.4)
28
+ method_source (0.8.2)
29
+ oboe (2.1.4)
30
+ pry (0.9.12.2)
31
+ coderay (~> 1.0.5)
32
+ method_source (~> 0.8)
33
+ slop (~> 3.4)
34
+ rake (10.1.0)
35
+ rb-fchange (0.0.6)
36
+ ffi
37
+ rb-fsevent (0.9.3)
38
+ rb-inotify (0.9.1)
39
+ ffi (>= 0.5.0)
40
+ rb-kqueue (0.2.0)
41
+ ffi (>= 0.5.0)
42
+ rspec (2.14.1)
43
+ rspec-core (~> 2.14.0)
44
+ rspec-expectations (~> 2.14.0)
45
+ rspec-mocks (~> 2.14.0)
46
+ rspec-core (2.14.5)
47
+ rspec-expectations (2.14.2)
48
+ diff-lcs (>= 1.1.3, < 2.0)
49
+ rspec-mocks (2.14.3)
50
+ slop (3.4.6)
51
+ thor (0.18.1)
52
+
53
+ PLATFORMS
54
+ ruby
55
+
56
+ DEPENDENCIES
57
+ guard
58
+ guard-rspec
59
+ oboe-heroku!
60
+ rake
61
+ rb-fchange
62
+ rb-fsevent
63
+ rb-inotify
64
+ rspec
data/Rakefile CHANGED
@@ -1,3 +1,16 @@
1
1
  #!/usr/bin/env rake
2
2
 
3
+ require 'rake/testtask'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new('spec')
7
+
8
+ Rake::TestTask.new do |t|
9
+ t.libs << 'spec'
10
+ end
11
+
12
+ desc "Run tests"
13
+ task :default => :spec
14
+ task :test => :spec
15
+
3
16
  Dir["tasks/**/*.rake"].each { |ext| load ext } if defined?(Rake)
Binary file
data/lib/heroku_metal.rb CHANGED
@@ -66,8 +66,8 @@ module Oboe
66
66
  # Assure defaults since SWIG enforces Strings
67
67
  opts[:layer] ||= ''
68
68
  opts[:xtrace] ||= ''
69
- opts['X-TV-Meta'] ||= ''
70
- Oboe::Context.sampleRequest(opts[:layer], opts[:xtrace], opts['X-TV-Meta'])
69
+ opts['TV-Meta'] ||= ''
70
+ Oboe::Context.sampleRequest(opts[:layer], opts[:xtrace], opts['TV-Meta'])
71
71
  end
72
72
 
73
73
  def through?
data/lib/oboe-heroku.rb CHANGED
@@ -5,11 +5,12 @@ begin
5
5
  require 'oboe_metal.so'
6
6
  require 'heroku_metal'
7
7
  require 'oboe-heroku/loading'
8
+ require 'oboe-heroku/version'
8
9
 
9
10
  # Require the core oboe gem
10
11
  require 'oboe'
11
12
 
12
- Oboe::Loading.initialize_heroku
13
+ ::OboeHeroku::Loading.initialize
13
14
 
14
15
  rescue LoadError
15
16
  if ENV.has_key?('TRACEVIEW_DEBUG_LEVEL') and (ENV['TRACEVIEW_DEBUG_LEVEL'].to_i > 1)
@@ -17,4 +18,5 @@ rescue LoadError
17
18
  end
18
19
  rescue Exception => e
19
20
  $stderr.puts "[oboe-heroku/error] Problem loading: #{e.inspect}"
21
+ $stderr.puts e.backtrace.join("\n")
20
22
  end
@@ -1,7 +1,7 @@
1
- module Oboe
1
+ module OboeHeroku
2
2
  module Loading
3
3
 
4
- def self.initialize_heroku
4
+ def self.initialize
5
5
  # OBOE_TRACE_NEVER 0
6
6
  # OBOE_TRACE_ALWAYS 1
7
7
  # OBOE_TRACE_THROUGH 2
@@ -18,6 +18,10 @@ module Oboe
18
18
  else
19
19
  # OBOE_TRACE_ALWAYS
20
20
  Oboe::Context.setTracingMode(1)
21
+
22
+ # We support 'never' or 'always' on Heroku. If :tracing_mode is
23
+ # neither of these, default to always
24
+ Oboe::Config[:tracing_mode] = 'always'
21
25
  end
22
26
  else
23
27
  # OBOE_TRACE_ALWAYS
@@ -1,9 +1,9 @@
1
- class OboeHeroku
1
+ module OboeHeroku
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 8
5
5
  PATCH = 0
6
- BUILD = 9
6
+ BUILD = 16
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
9
  end
data/oboe-heroku.gemspec CHANGED
@@ -2,20 +2,24 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
  require "oboe-heroku/version"
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.name = %q{oboe-heroku}
6
- s.version = OboeHeroku::Version::STRING
7
- s.date = Time.now.strftime('%Y-%m-%d')
8
-
9
- s.authors = ["Peter Giacomo Lombardo", "Guy Lancaster"]
10
- s.email = %q{traceviewsupport@appneta.com}
11
- s.homepage = %q{http://www.appneta.com/application-performance-management}
12
- s.summary = %q{AppNeta TraceView performance instrumentation gem for the Heroku platform}
13
- s.description = %q{The oboe-heroku gem provides TraceView instrumentation for Ruby and Ruby frameworks on Heroku.}
5
+ s.name = %q{oboe-heroku}
6
+ s.version = OboeHeroku::Version::STRING
7
+ s.date = Time.now.strftime('%Y-%m-%d')
8
+
9
+ s.authors = ["Peter Giacomo Lombardo", "Guy Lancaster"]
10
+ s.email = %q{traceviewsupport@appneta.com}
11
+ s.homepage = %q{http://www.appneta.com/application-performance-management}
12
+ s.summary = %q{AppNeta TraceView performance instrumentation gem for the Heroku platform}
13
+ s.description = %q{The oboe-heroku gem provides TraceView instrumentation for Ruby and Ruby frameworks on Heroku.}
14
14
 
15
- s.extra_rdoc_files = ["LICENSE"]
16
- s.files = `git ls-files`.split("\n")
15
+ s.extra_rdoc_files = ["LICENSE"]
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = Dir.glob("{spec}/**/*.rb")
17
18
 
18
- s.extensions = ['ext/oboe_metal/extconf.rb']
19
+ s.extensions = ['ext/oboe_metal/extconf.rb']
19
20
 
20
- s.add_dependency(%q<oboe>, [">= 2.1.3"])
21
+ s.add_dependency(%q<oboe>, [">= 2.1.4"])
22
+
23
+ s.add_development_dependency 'rake'
24
+ s.add_development_dependency 'rspec'
21
25
  end
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.8.0.9
4
+ version: 0.8.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-09-03 00:00:00.000000000 Z
13
+ date: 2013-09-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: oboe
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
- version: 2.1.3
22
+ version: 2.1.4
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,39 @@ dependencies:
27
27
  requirements:
28
28
  - - ! '>='
29
29
  - !ruby/object:Gem::Version
30
- version: 2.1.3
30
+ version: 2.1.4
31
+ - !ruby/object:Gem::Dependency
32
+ name: rake
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ type: :development
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
31
63
  description: The oboe-heroku gem provides TraceView instrumentation for Ruby and Ruby
32
64
  frameworks on Heroku.
33
65
  email: traceviewsupport@appneta.com
@@ -38,6 +70,8 @@ extra_rdoc_files:
38
70
  - LICENSE
39
71
  files:
40
72
  - .gitignore
73
+ - Gemfile
74
+ - Gemfile.lock
41
75
  - LICENSE
42
76
  - README.md
43
77
  - Rakefile