health_check 0.2.1 → 0.2.2

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.
data/health_check.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{health_check}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ian Heggie"]
@@ -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 RAILS_ROOT will be defined
26
- @@db_migrate_path ||= File.join(RAILS_ROOT, 'db', 'migrate')
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
- #RAILS_ROOT = "test" unless defined?(RAILS_ROOT)
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(RAILS_ROOT, 'script', 'about')].each do |f|
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ian Heggie