newrelic-ping-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/LICENSE +22 -0
- data/README.md +26 -0
- data/Rakefile +19 -0
- data/app/controllers/newrelic_ping_rails/ping_controller.rb +9 -0
- data/config/routes.rb +5 -0
- data/lib/newrelic-ping-rails.rb +15 -0
- data/lib/newrelic_ping_rails/engine.rb +12 -0
- data/lib/newrelic_ping_rails/version.rb +3 -0
- metadata +74 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3f1d6a273fbbb7685e8b5af09d2c65c2581e8850
|
4
|
+
data.tar.gz: 6c6242cae05bf2d2b08b17a9276853d525ab26d0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8ddda8190863fa33ea4da55216c5d159b1cfbc9ea1b05c84c5511d8c80eba8f21acca41632e1823b7f266254cc246361672f969bad46b36cae070eff8887fac9
|
7
|
+
data.tar.gz: c97eaef3911d3a142dd3afd219f0497fe33953d8fe4e6c47f3cf1d274a2b3d8e68b31462bc225c1c3c91dcb5af5b405c89940fb9f7cdfa8af5e4a46f42f09c8b
|
data/.gitignore
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
*.rbc
|
2
|
+
capybara-*.html
|
3
|
+
.rspec
|
4
|
+
/log
|
5
|
+
/tmp
|
6
|
+
/coverage/
|
7
|
+
/spec/tmp
|
8
|
+
|
9
|
+
Gemfile.lock
|
10
|
+
/.bundle
|
11
|
+
/vendor/bundle
|
12
|
+
|
13
|
+
.ruby-version
|
14
|
+
.ruby-gemset
|
15
|
+
.rvmrc
|
16
|
+
|
17
|
+
# if using bower-rails ignore default bower_components path bower.json files
|
18
|
+
/vendor/assets/bower_components
|
19
|
+
*.bowerrc
|
20
|
+
bower.json
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Hillig & Schrot wonderweblabs GbR - www.wonderweblabs.com
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/README.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# newrelic ping rails
|
2
|
+
|
3
|
+
By [wonderweblabs](http://www.wonderweblabs.com).
|
4
|
+
|
5
|
+
**newrelic-ping-rails** provides just a route that you can hang in into your newrelic account. Since
|
6
|
+
we've got a ping check for every of our client projects, we don't want to copy this controller
|
7
|
+
over into every project by hand.
|
8
|
+
|
9
|
+
|
10
|
+
### Installation
|
11
|
+
|
12
|
+
Require in your Gemfile:
|
13
|
+
|
14
|
+
```bash
|
15
|
+
gem 'newrelic-ping-rails'
|
16
|
+
```
|
17
|
+
|
18
|
+
|
19
|
+
### Usage
|
20
|
+
|
21
|
+
After hanging in the gem, the route "/newrelic-ping" is available and returns "online" with status code 200.
|
22
|
+
|
23
|
+
|
24
|
+
## License
|
25
|
+
|
26
|
+
MIT License.
|
data/Rakefile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
|
3
|
+
begin
|
4
|
+
require 'bundler/setup'
|
5
|
+
rescue LoadError
|
6
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
7
|
+
end
|
8
|
+
|
9
|
+
require 'rdoc/task'
|
10
|
+
|
11
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
12
|
+
rdoc.rdoc_dir = 'rdoc'
|
13
|
+
rdoc.title = 'NewrelicPingRails'
|
14
|
+
rdoc.options << '--line-numbers'
|
15
|
+
rdoc.rdoc_files.include('README.rdoc')
|
16
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
17
|
+
end
|
18
|
+
|
19
|
+
Bundler::GemHelper.install_tasks
|
data/config/routes.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# rails
|
2
|
+
require 'rails/all'
|
3
|
+
|
4
|
+
# engine
|
5
|
+
require 'newrelic_ping_rails/engine'
|
6
|
+
|
7
|
+
module NewrelicPingRails
|
8
|
+
|
9
|
+
# The parent controller engines controllers inherits from.
|
10
|
+
# Defaults to ApplicationController. This should be set early
|
11
|
+
# in the initialization process and should be set to a string.
|
12
|
+
mattr_accessor :parent_controller
|
13
|
+
@@parent_controller = "ActionController::Base"
|
14
|
+
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: newrelic-ping-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sascha Hillig
|
8
|
+
- Alexander Schrot
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-03-01 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 4.1.5
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 5.0.0
|
24
|
+
type: :development
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 4.1.5
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 5.0.0
|
34
|
+
description: Provides a route to hang in for newrelic ping.
|
35
|
+
email:
|
36
|
+
- email@wonderweblabs.com
|
37
|
+
executables: []
|
38
|
+
extensions: []
|
39
|
+
extra_rdoc_files: []
|
40
|
+
files:
|
41
|
+
- ".gitignore"
|
42
|
+
- LICENSE
|
43
|
+
- README.md
|
44
|
+
- Rakefile
|
45
|
+
- app/controllers/newrelic_ping_rails/ping_controller.rb
|
46
|
+
- config/routes.rb
|
47
|
+
- lib/newrelic-ping-rails.rb
|
48
|
+
- lib/newrelic_ping_rails/engine.rb
|
49
|
+
- lib/newrelic_ping_rails/version.rb
|
50
|
+
homepage: https://github.com/wonderweblabs/newrelic-ping-rails
|
51
|
+
licenses:
|
52
|
+
- MIT
|
53
|
+
metadata: {}
|
54
|
+
post_install_message:
|
55
|
+
rdoc_options: []
|
56
|
+
require_paths:
|
57
|
+
- lib
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
requirements: []
|
69
|
+
rubyforge_project:
|
70
|
+
rubygems_version: 2.4.5
|
71
|
+
signing_key:
|
72
|
+
specification_version: 4
|
73
|
+
summary: Provides a route to hang in for newrelic ping.
|
74
|
+
test_files: []
|