newrelic-ping 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f25dbdfd92b986db34848021afd44f29e94ffa91
4
+ data.tar.gz: 71de7e2ae98321825660bae4106a4e9a60fb4e18
5
+ SHA512:
6
+ metadata.gz: a3d3071c31a427e31d2a42002113a5d5064a370487ce14d7eece915947262c191df57611008655b0d2945a01d0dc3f272fb0077b0c59e86257efcb4f63ba0f80
7
+ data.tar.gz: f290f54fd8e5182d60f8ca3b615bfe92102de5d616aedd8dc9306b44e3961955c01e22538c5f68002e7fe86358a62a6d0af5f6b7dc3016388b3eef92e21bd563
File without changes
@@ -0,0 +1,12 @@
1
+ module NewRelicPing
2
+ class ApplicationController < NewRelicPing.configuration.parent_controller
3
+ def index
4
+ respond_to do |format|
5
+ format.html
6
+ format.json { render json: {status: 'ok'} }
7
+ format.xml { render xml: {status: 'ok'} }
8
+ format.text { render plain: 'ok' }
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1 @@
1
+ <div>ok</div>
@@ -0,0 +1,3 @@
1
+ NewRelicPing::Engine.routes.draw do
2
+ get '/(.:format)', to: 'application#index'
3
+ end
@@ -0,0 +1,4 @@
1
+ require "new_relic_ping/engine"
2
+
3
+ module NewRelicPing
4
+ end
@@ -0,0 +1,29 @@
1
+ module NewRelicPing
2
+ class << self
3
+ attr_writer :configuration
4
+ end
5
+
6
+ def self.configuration
7
+ @configuration ||= Configuration.new
8
+ end
9
+
10
+ def self.reset
11
+ @configuration = Configuration.new
12
+ end
13
+
14
+ def self.configure
15
+ yield(configuration)
16
+ end
17
+
18
+ class Configuration
19
+ attr_accessor :parent_controller
20
+
21
+ def initialize
22
+ @parent_controller = ::ApplicationController
23
+ end
24
+ end
25
+
26
+ class Engine < ::Rails::Engine
27
+ isolate_namespace NewRelicPing
28
+ end
29
+ end
@@ -0,0 +1,3 @@
1
+ module NewRelicPing
2
+ VERSION = '0.2.0'
3
+ end
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'new_relic_ping/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'newrelic-ping'
8
+ spec.version = NewRelicPing::VERSION
9
+ spec.date = Time.now.strftime('%Y-%m-%d')
10
+ spec.authors = ['Leon Hooijer']
11
+ spec.email = ['leonhooijer@outlook.com']
12
+
13
+ spec.summary = 'Provides application status information.'
14
+ spec.description = spec.summary
15
+ spec.homepage = 'https://github.com/leonhooijer/status'
16
+ spec.license = 'MIT'
17
+
18
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
+ f.match(%r{^(test|spec|features)/})
20
+ end
21
+ spec.bindir = 'exe'
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ['lib']
24
+ end
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: newrelic-ping
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Leon Hooijer
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-04-03 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Provides application status information.
14
+ email:
15
+ - leonhooijer@outlook.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - app/controllers/status/application_controller.rb
22
+ - app/views/status/application/index.html.erb
23
+ - config/routes.rb
24
+ - lib/new_relic_ping.rb
25
+ - lib/new_relic_ping/engine.rb
26
+ - lib/new_relic_ping/version.rb
27
+ - new_relic_ping.gemspec
28
+ homepage: https://github.com/leonhooijer/status
29
+ licenses:
30
+ - MIT
31
+ metadata: {}
32
+ post_install_message:
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubyforge_project:
48
+ rubygems_version: 2.6.10
49
+ signing_key:
50
+ specification_version: 4
51
+ summary: Provides application status information.
52
+ test_files: []