rocket_pants-rpm 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/rocket_pants/rpm.rb +35 -7
- data/lib/rocket_pants/rpm/version.rb +1 -1
- metadata +7 -9
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a129b90e23434855de4358fa8e425dfd382796be
|
4
|
+
data.tar.gz: bc5b0413d440689bdf739668bf822c2db92b516a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e930d65e8c38ff968e4c27052b2ab2effda32b111aeae28137426b48a07f352124bfabb2ac8b3ff63c3f0ef91f1dc8898927d20f71fb26ab6ca9239af7f3f439
|
7
|
+
data.tar.gz: fd0f1835cdcec55e9be3c09ecbe7c316255c490ecfb840794f50507bdc7fa7c04fbed1d8a18d9bee02c1d1cdec46ad84fb1e621c0d4055abdf23abbd6c2d00e2
|
data/lib/rocket_pants/rpm.rb
CHANGED
@@ -1,25 +1,26 @@
|
|
1
1
|
require "rocket_pants/rpm/version"
|
2
2
|
require "newrelic_rpm"
|
3
3
|
require 'new_relic/agent/instrumentation/rails3/action_controller'
|
4
|
+
require 'new_relic/agent/instrumentation/rails4/action_controller'
|
4
5
|
|
5
6
|
module RocketPants
|
6
7
|
module RPM
|
7
|
-
|
8
|
+
|
8
9
|
DependencyDetection.defer do
|
9
|
-
@name = :
|
10
|
-
|
10
|
+
@name = :rails3_rocketpants_controller
|
11
|
+
|
11
12
|
depends_on do
|
12
13
|
defined?(::Rails) && ::Rails::VERSION::MAJOR.to_i == 3
|
13
14
|
end
|
14
15
|
|
15
16
|
depends_on do
|
16
|
-
defined?(
|
17
|
+
defined?(RocketPants) && defined?(RocketPants::Base)
|
17
18
|
end
|
18
19
|
|
19
20
|
executes do
|
20
|
-
NewRelic::Agent.logger.debug 'Installing RocketPants Controller instrumentation'
|
21
|
-
end
|
22
|
-
|
21
|
+
NewRelic::Agent.logger.debug 'Installing Rails 3 RocketPants Controller instrumentation'
|
22
|
+
end
|
23
|
+
|
23
24
|
executes do
|
24
25
|
class RocketPants::Base
|
25
26
|
include NewRelic::Agent::Instrumentation::ControllerInstrumentation
|
@@ -28,5 +29,32 @@ module RocketPants
|
|
28
29
|
end
|
29
30
|
end
|
30
31
|
|
32
|
+
DependencyDetection.defer do
|
33
|
+
@name = :rails4_rocketpants_controller
|
34
|
+
|
35
|
+
depends_on do
|
36
|
+
defined?(::Rails) && ::Rails::VERSION::MAJOR.to_i == 4
|
37
|
+
end
|
38
|
+
|
39
|
+
depends_on do
|
40
|
+
defined?(RocketPants) && defined?(RocketPants::Base)
|
41
|
+
end
|
42
|
+
|
43
|
+
executes do
|
44
|
+
NewRelic::Agent.logger.debug 'Installing Rails 4 RocketPants Controller instrumentation'
|
45
|
+
end
|
46
|
+
|
47
|
+
executes do
|
48
|
+
Rails.logger.info "running rpm execute"
|
49
|
+
class RocketPants::Base
|
50
|
+
include NewRelic::Agent::Instrumentation::ControllerInstrumentation
|
51
|
+
include NewRelic::Agent::Instrumentation::Rails4::ActionController
|
52
|
+
end
|
53
|
+
|
54
|
+
ActiveSupport::Notifications.subscribe(/^process_action.rocket_pants$/,
|
55
|
+
NewRelic::Agent::Instrumentation::ActionControllerSubscriber.new)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
31
59
|
end
|
32
60
|
end
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocket_pants-rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Darcy Laycock
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-11-27 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: Integrates RocketPants and RPM for great success.
|
15
14
|
email:
|
@@ -29,26 +28,25 @@ files:
|
|
29
28
|
- rocket_pants-rpm.gemspec
|
30
29
|
homepage: ''
|
31
30
|
licenses: []
|
31
|
+
metadata: {}
|
32
32
|
post_install_message:
|
33
33
|
rdoc_options: []
|
34
34
|
require_paths:
|
35
35
|
- lib
|
36
36
|
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
-
none: false
|
38
37
|
requirements:
|
39
|
-
- -
|
38
|
+
- - '>='
|
40
39
|
- !ruby/object:Gem::Version
|
41
40
|
version: '0'
|
42
41
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
42
|
requirements:
|
45
|
-
- -
|
43
|
+
- - '>='
|
46
44
|
- !ruby/object:Gem::Version
|
47
45
|
version: '0'
|
48
46
|
requirements: []
|
49
47
|
rubyforge_project:
|
50
|
-
rubygems_version:
|
48
|
+
rubygems_version: 2.0.14
|
51
49
|
signing_key:
|
52
|
-
specification_version:
|
50
|
+
specification_version: 4
|
53
51
|
summary: Provides rpm-instrumentation for RocketPants.
|
54
52
|
test_files: []
|