fitter-happier 0.0.4rc1 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/controllers/fitter_happier_controller.rb +7 -7
- metadata +12 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 081e95fef745ac3d5e00620d15fc64413a740124
|
4
|
+
data.tar.gz: b1d78ff499a607729f9a98a98f996be7302be8f1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0287146aa2a0e9e559bb575e3d35cec58e9343c7675245f0d81d044427d256b9f2ddae53185347dcc87846f921c494a7d1ff51ea79e833afc6faf90057b31f36
|
7
|
+
data.tar.gz: 9a752e11eadddeeadf95a9caded256533d0f26f2516e8f3ec0332ee6118267e97ea5ce86efa90414679ee33d05f1bb676eee555c0c659e1ffdedff5980318fd1
|
@@ -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,
|
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,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fitter-happier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease: 5
|
4
|
+
version: 0.0.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jon Moses
|
@@ -11,38 +10,34 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2013-
|
13
|
+
date: 2013-08-07 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: actionpack
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
|
-
- -
|
19
|
+
- - '>='
|
22
20
|
- !ruby/object:Gem::Version
|
23
21
|
version: '0'
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
|
-
- -
|
26
|
+
- - '>='
|
30
27
|
- !ruby/object:Gem::Version
|
31
28
|
version: '0'
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
30
|
name: rake
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
|
-
- -
|
33
|
+
- - '>='
|
38
34
|
- !ruby/object:Gem::Version
|
39
35
|
version: '0'
|
40
36
|
type: :development
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
|
-
- -
|
40
|
+
- - '>='
|
46
41
|
- !ruby/object:Gem::Version
|
47
42
|
version: '0'
|
48
43
|
description: Send bug reports to http://github.com/zspencer/fitter-happier/
|
@@ -61,27 +56,26 @@ files:
|
|
61
56
|
- README.mdown
|
62
57
|
homepage: https://github.com/zspencer/fitter-happier
|
63
58
|
licenses: []
|
59
|
+
metadata: {}
|
64
60
|
post_install_message:
|
65
61
|
rdoc_options: []
|
66
62
|
require_paths:
|
67
63
|
- lib
|
68
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
65
|
requirements:
|
71
|
-
- -
|
66
|
+
- - '>='
|
72
67
|
- !ruby/object:Gem::Version
|
73
68
|
version: '0'
|
74
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
70
|
requirements:
|
77
|
-
- -
|
71
|
+
- - '>='
|
78
72
|
- !ruby/object:Gem::Version
|
79
|
-
version:
|
73
|
+
version: '0'
|
80
74
|
requirements: []
|
81
75
|
rubyforge_project:
|
82
|
-
rubygems_version:
|
76
|
+
rubygems_version: 2.0.3
|
83
77
|
signing_key:
|
84
|
-
specification_version:
|
78
|
+
specification_version: 4
|
85
79
|
summary: FitterHappier is a plug-in that provides actions for monitoring site and/or
|
86
80
|
database availability for rails apps.
|
87
81
|
test_files: []
|