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 ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rocket_pants-rpm.gemspec
4
+ gemspec
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,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -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,5 @@
1
+ module RocketPants
2
+ module RPM
3
+ VERSION = "1.0.0"
4
+ end
5
+ 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: []