fitter-happier 0.0.3 → 0.0.4rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mdown +1 -1
- data/app/controllers/fitter_happier_controller.rb +7 -7
- metadata +21 -11
data/README.mdown
CHANGED
@@ -24,7 +24,7 @@ Add the following to your gemfile
|
|
24
24
|
Uptime Monitoring
|
25
25
|
=================
|
26
26
|
|
27
|
-
See EngineYard's support guide on [uptime monitoring for your rails application](
|
27
|
+
See EngineYard's support guide on [uptime monitoring for your rails application](https://support.cloud.engineyard.com/entries/20996821-monitor-application-uptime)
|
28
28
|
|
29
29
|
Monit
|
30
30
|
=====
|
@@ -1,30 +1,30 @@
|
|
1
1
|
class FitterHappierController < ActionController::Base
|
2
2
|
layout nil
|
3
|
-
|
3
|
+
|
4
4
|
def index
|
5
5
|
render(:text => "FitterHappier Site Check Passed\n")
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
def site_check
|
9
9
|
time = Time.now.to_formatted_s(:rfc822)
|
10
10
|
render(:text => "FitterHappier Site Check Passed @ #{time}\n")
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
def site_and_database_check
|
14
14
|
table_name = (Rails::VERSION::STRING >= '2.1.0' ? 'schema_migrations' : 'schema_info')
|
15
|
-
query = "SELECT max(lpad(version, 20, 0)) FROM #{table_name}"
|
15
|
+
query = "SELECT max(lpad(version, 20, '0')) FROM #{table_name}"
|
16
16
|
version = ActiveRecord::Base.connection.select_value(query).to_i
|
17
17
|
time = Time.now.to_formatted_s(:rfc822)
|
18
18
|
render(:text => "FitterHappier Site and Database Check Passed @ #{time}\nSchema Version: #{version}\n")
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
private
|
22
|
-
|
22
|
+
|
23
23
|
def process_with_silence(*args)
|
24
24
|
logger.quietly do
|
25
25
|
process_without_silence(*args)
|
26
26
|
end
|
27
27
|
end
|
28
|
-
|
28
|
+
|
29
29
|
alias_method_chain :process, :silence
|
30
30
|
end
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fitter-happier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4rc1
|
5
|
+
prerelease: 5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jon Moses
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: actionpack
|
18
|
-
requirement:
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,15 @@ dependencies:
|
|
23
23
|
version: '0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements:
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ! '>='
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '0'
|
27
32
|
- !ruby/object:Gem::Dependency
|
28
33
|
name: rake
|
29
|
-
requirement:
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
30
35
|
none: false
|
31
36
|
requirements:
|
32
37
|
- - ! '>='
|
@@ -34,8 +39,13 @@ dependencies:
|
|
34
39
|
version: '0'
|
35
40
|
type: :development
|
36
41
|
prerelease: false
|
37
|
-
version_requirements:
|
38
|
-
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
description: Send bug reports to http://github.com/zspencer/fitter-happier/
|
39
49
|
email:
|
40
50
|
- zspencer@zacharyspencer.com
|
41
51
|
executables: []
|
@@ -64,12 +74,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
64
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
75
|
none: false
|
66
76
|
requirements:
|
67
|
-
- - ! '
|
77
|
+
- - ! '>'
|
68
78
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
79
|
+
version: 1.3.1
|
70
80
|
requirements: []
|
71
81
|
rubyforge_project:
|
72
|
-
rubygems_version: 1.8.
|
82
|
+
rubygems_version: 1.8.25
|
73
83
|
signing_key:
|
74
84
|
specification_version: 3
|
75
85
|
summary: FitterHappier is a plug-in that provides actions for monitoring site and/or
|