rocket_pants-rpm 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +19 -0
- data/README.md +27 -0
- data/Rakefile +2 -0
- data/lib/rocket_pants-rpm.rb +1 -0
- data/lib/rocket_pants/rpm.rb +32 -0
- data/lib/rocket_pants/rpm/version.rb +5 -0
- data/rocket_pants-rpm.gemspec +19 -0
- metadata +54 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2012 Filter Squad
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# rocket_pants-rpm
|
2
|
+
|
3
|
+
Provides support for making `RocketPants::Base` work with RPM.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'rocket_pants-rpm'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
And you're done. NewRelic RPM will then work as expected.
|
16
|
+
|
17
|
+
## Contributing
|
18
|
+
|
19
|
+
1. Fork it
|
20
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
21
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
22
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
23
|
+
5. Create new Pull Request
|
24
|
+
|
25
|
+
## License
|
26
|
+
|
27
|
+
This extension is released under the MIT License (see the [license file](https://github.com/filtersquad/rocket_pants-rpm/blob/master/LICENSE)) and is copyright Filter Squad, 2012.
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'rocket_pants/rpm'
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require "rocket_pants/rpm/version"
|
2
|
+
require "newrelic_rpm"
|
3
|
+
require 'new_relic/agent/instrumentation/rails3/action_controller'
|
4
|
+
|
5
|
+
module RocketPants
|
6
|
+
module RPM
|
7
|
+
|
8
|
+
DependencyDetection.defer do
|
9
|
+
@name = :rocketpants_controller
|
10
|
+
|
11
|
+
depends_on do
|
12
|
+
defined?(::Rails) && ::Rails::VERSION::MAJOR.to_i == 3
|
13
|
+
end
|
14
|
+
|
15
|
+
depends_on do
|
16
|
+
defined?(ActionController) && defined?(ActionController::Base)
|
17
|
+
end
|
18
|
+
|
19
|
+
executes do
|
20
|
+
NewRelic::Agent.logger.debug 'Installing RocketPants Controller instrumentation'
|
21
|
+
end
|
22
|
+
|
23
|
+
executes do
|
24
|
+
class RocketPants::Base
|
25
|
+
include NewRelic::Agent::Instrumentation::ControllerInstrumentation
|
26
|
+
include NewRelic::Agent::Instrumentation::Rails3::ActionController
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
|
4
|
+
require 'rocket_pants/rpm/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.authors = ["Darcy Laycock"]
|
8
|
+
gem.email = ["darcy@filtersquad.com"]
|
9
|
+
gem.description = %q{Integrates RocketPants and RPM for great success.}
|
10
|
+
gem.summary = %q{Provides rpm-instrumentation for RocketPants.}
|
11
|
+
gem.homepage = ""
|
12
|
+
|
13
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
14
|
+
gem.files = `git ls-files`.split("\n")
|
15
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
|
+
gem.name = "rocket_pants-rpm"
|
17
|
+
gem.require_paths = ["lib"]
|
18
|
+
gem.version = RocketPants::RPM::VERSION
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rocket_pants-rpm
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Darcy Laycock
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-03-28 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Integrates RocketPants and RPM for great success.
|
15
|
+
email:
|
16
|
+
- darcy@filtersquad.com
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- .gitignore
|
22
|
+
- Gemfile
|
23
|
+
- LICENSE
|
24
|
+
- README.md
|
25
|
+
- Rakefile
|
26
|
+
- lib/rocket_pants-rpm.rb
|
27
|
+
- lib/rocket_pants/rpm.rb
|
28
|
+
- lib/rocket_pants/rpm/version.rb
|
29
|
+
- rocket_pants-rpm.gemspec
|
30
|
+
homepage: ''
|
31
|
+
licenses: []
|
32
|
+
post_install_message:
|
33
|
+
rdoc_options: []
|
34
|
+
require_paths:
|
35
|
+
- lib
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ! '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
requirements: []
|
49
|
+
rubyforge_project:
|
50
|
+
rubygems_version: 1.8.15
|
51
|
+
signing_key:
|
52
|
+
specification_version: 3
|
53
|
+
summary: Provides rpm-instrumentation for RocketPants.
|
54
|
+
test_files: []
|