rails-pulse 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pulse/controller.rb +4 -1
- metadata +52 -32
data/lib/pulse/controller.rb
CHANGED
@@ -8,7 +8,10 @@ class PulseController < ActionController::Base
|
|
8
8
|
adapter = ActiveRecord::Base::connection_pool.spec.config[:adapter]
|
9
9
|
|
10
10
|
health_method = "#{adapter}_healthy?"
|
11
|
-
|
11
|
+
|
12
|
+
# Need to include all methods in respond_to? because Ruby 2.0 returns false
|
13
|
+
# even for protected methods.
|
14
|
+
activerecord_okay = if respond_to?(health_method, true)
|
12
15
|
send(health_method)
|
13
16
|
else
|
14
17
|
raise "Don't know how to check #{adapter}... please to fix?"
|
metadata
CHANGED
@@ -1,10 +1,15 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-pulse
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 5
|
9
|
+
- 2
|
10
|
+
version: 0.5.2
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Paul Gross
|
9
14
|
- Jesse Newland
|
10
15
|
- Josh Goebel
|
@@ -13,28 +18,34 @@ authors:
|
|
13
18
|
autorequire:
|
14
19
|
bindir: bin
|
15
20
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
21
|
+
|
22
|
+
date: 2013-04-01 00:00:00 Z
|
23
|
+
dependencies:
|
24
|
+
- !ruby/object:Gem::Dependency
|
19
25
|
name: rails
|
20
|
-
|
26
|
+
prerelease: false
|
27
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
21
28
|
none: false
|
22
|
-
requirements:
|
23
|
-
- -
|
24
|
-
- !ruby/object:Gem::Version
|
25
|
-
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
hash: 3
|
33
|
+
segments:
|
34
|
+
- 0
|
35
|
+
version: "0"
|
26
36
|
type: :runtime
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
This is the maintained version of the `pulse` gem.'
|
37
|
+
version_requirements: *id001
|
38
|
+
description: |-
|
39
|
+
Adds a pulse URL that pings the DB to a Rails app.
|
40
|
+
This is the maintained version of the `pulse` gem.
|
32
41
|
email: jnewland@gmail.com
|
33
42
|
executables: []
|
43
|
+
|
34
44
|
extensions: []
|
35
|
-
|
45
|
+
|
46
|
+
extra_rdoc_files:
|
36
47
|
- README.textile
|
37
|
-
files:
|
48
|
+
files:
|
38
49
|
- README.textile
|
39
50
|
- lib/pulse/controller.rb
|
40
51
|
- lib/pulse/helper.rb
|
@@ -45,29 +56,38 @@ files:
|
|
45
56
|
- spec/spec_helper.rb
|
46
57
|
homepage: http://github.com/jnewland/pulse
|
47
58
|
licenses: []
|
59
|
+
|
48
60
|
post_install_message:
|
49
61
|
rdoc_options: []
|
50
|
-
|
62
|
+
|
63
|
+
require_paths:
|
51
64
|
- lib
|
52
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
66
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
|
58
|
-
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
hash: 3
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
version: "0"
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
75
|
none: false
|
60
|
-
requirements:
|
61
|
-
- -
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
hash: 3
|
80
|
+
segments:
|
81
|
+
- 0
|
82
|
+
version: "0"
|
64
83
|
requirements: []
|
84
|
+
|
65
85
|
rubyforge_project:
|
66
|
-
rubygems_version: 1.8.
|
86
|
+
rubygems_version: 1.8.15
|
67
87
|
signing_key:
|
68
88
|
specification_version: 3
|
69
89
|
summary: Adds a pulse URL that pings the DB to a Rails app.
|
70
|
-
test_files:
|
90
|
+
test_files:
|
71
91
|
- spec/pulse_spec.rb
|
72
92
|
- spec/spec.opts
|
73
93
|
- spec/spec_helper.rb
|