padrino-rpm 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,7 +34,8 @@ Padrino.after_load do
34
34
  end
35
35
 
36
36
  Padrino.before_load do
37
- require 'new_relic/rack_app'
37
+ require 'new_relic/control'
38
+ require 'new_relic/rack/developer_mode'
38
39
 
39
40
  if Padrino.env == :development
40
41
  Padrino.use NewRelic::Rack::DeveloperMode
@@ -18,11 +18,14 @@ module PadrinoRpm
18
18
  include NewRelic::Agent::Instrumentation::ControllerInstrumentation
19
19
 
20
20
  def route_eval(*args, &block)
21
- name = @route.as_options[:name]
22
- short_name = name.to_s.split(/_/).last
23
-
24
- perform_action_with_newrelic_trace(:category => :controller, :name => short_name, :params => request.params, :class_name => @route.controller) do
25
- route_eval_without_newrelic(*args, &block) # RPM loads the sinatra plugin to eagerly
21
+ if @route
22
+ name = @route.as_options[:name]
23
+ short_name = name.to_s.split(/_/).last
24
+ controller = @route.controller
25
+ end
26
+
27
+ perform_action_with_newrelic_trace(:category => :controller, :name => short_name, :params => request.params, :class_name => controller) do
28
+ route_eval_without_newrelic(*args, &block) # RPM loads the sinatra plugin too eagerly
26
29
  end
27
30
  end
28
31
 
@@ -3,11 +3,11 @@
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{padrino-rpm}
5
5
 
6
- s.version = "0.4.0"
6
+ s.version = "0.5.0"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Florian Gilcher"]
10
- s.date = %q{2011-05-17}
10
+ s.date = %q{2011-08-19}
11
11
  s.description = %q{A gem for monitoring Padrino with newrelic rpm}
12
12
  s.email = %q{florian.gilcher@asquera.de}
13
13
 
@@ -16,6 +16,6 @@ Gem::Specification.new do |s|
16
16
  s.summary = %q{Padrino Instrumentation for New Relic RPM}
17
17
  s.files = `git ls-files`.split("\n")
18
18
 
19
- s.add_dependency(%q<newrelic_rpm>, [">= 3.0.0"])
19
+ s.add_dependency(%q<newrelic_rpm>, "~> 3.1.0")
20
20
  end
21
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-rpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,20 +9,19 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-05-17 00:00:00.000000000 +02:00
13
- default_executable:
12
+ date: 2011-08-19 00:00:00.000000000Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: newrelic_rpm
17
- requirement: &2165545140 !ruby/object:Gem::Requirement
16
+ requirement: &2156174740 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
- - - ! '>='
19
+ - - ~>
21
20
  - !ruby/object:Gem::Version
22
- version: 3.0.0
21
+ version: 3.1.0
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *2165545140
24
+ version_requirements: *2156174740
26
25
  description: A gem for monitoring Padrino with newrelic rpm
27
26
  email: florian.gilcher@asquera.de
28
27
  executables: []
@@ -36,7 +35,6 @@ files:
36
35
  - lib/padrino-rpm.rb
37
36
  - lib/padrino-rpm/instrumentation/padrino.rb
38
37
  - padrino-rpm.gemspec
39
- has_rdoc: true
40
38
  homepage: http://github.com/Asquera/padrino-rpm
41
39
  licenses: []
42
40
  post_install_message:
@@ -57,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
55
  version: '0'
58
56
  requirements: []
59
57
  rubyforge_project:
60
- rubygems_version: 1.6.2
58
+ rubygems_version: 1.8.7
61
59
  signing_key:
62
60
  specification_version: 3
63
61
  summary: Padrino Instrumentation for New Relic RPM