health_check 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/health_check.gemspec +1 -1
- data/lib/health_check/health_check_class.rb +2 -2
- data/test/helper.rb +2 -2
- metadata +3 -3
data/health_check.gemspec
CHANGED
@@ -22,8 +22,8 @@ class HealthCheck
|
|
22
22
|
cattr_accessor :default_smtp_settings
|
23
23
|
|
24
24
|
def self.db_migrate_path
|
25
|
-
# Lazy initialisation so
|
26
|
-
@@db_migrate_path ||= File.join(
|
25
|
+
# Lazy initialisation so Rails.root will be defined
|
26
|
+
@@db_migrate_path ||= File.join(Rails.root, 'db', 'migrate')
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.db_migrate_path=(value)
|
data/test/helper.rb
CHANGED
@@ -13,7 +13,7 @@ else
|
|
13
13
|
fail "TODO: Work out how to test as a gem (test as a plugin instead)"
|
14
14
|
# TODO: Work out how to do this!
|
15
15
|
#require 'rails/version'
|
16
|
-
#
|
16
|
+
#Rails.root = "test" unless defined?(Rails.root)
|
17
17
|
#module Rails
|
18
18
|
# def backtrace_cleaner(args)
|
19
19
|
# # do nothing
|
@@ -61,7 +61,7 @@ ActionMailer::Base.delivery_method = :test
|
|
61
61
|
# Make sure sendmail settings are set to something that is executrable (we wont actually execute it)
|
62
62
|
sendmail_path = '/usr/sbin/sendmail'
|
63
63
|
['/bin/true', 'c:/windows/explorer.exe', 'c:/winnt/explorer.exe',
|
64
|
-
File.join(
|
64
|
+
File.join(Rails.root, 'script', 'about')].each do |f|
|
65
65
|
sendmail_path = f if File.executable? f
|
66
66
|
end
|
67
67
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: health_check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ian Heggie
|