collins_notify 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "collins_notify"
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Blake Matheny"]
@@ -6,8 +6,12 @@ module CollinsNotify
6
6
  attr_writer :config
7
7
  attr_reader :logger
8
8
 
9
- def initialize
10
- @logger = get_logger :logfile => $stderr, :program => 'collins_notify'
9
+ def initialize lgr = nil
10
+ if lgr.nil? then
11
+ @logger = get_logger :logfile => $stderr, :program => 'collins_notify'
12
+ else
13
+ @logger = lgr
14
+ end
11
15
  @config = CollinsNotify::Configuration.new @logger
12
16
  end
13
17
 
@@ -139,6 +139,8 @@ module CollinsNotify
139
139
  f = format_file file
140
140
  if File.exists?(f) then
141
141
  f
142
+ elsif template_dir && File.exists?(File.expand_path(File.join(template_dir, file))) then
143
+ File.expand_path(File.join(template_dir, file))
142
144
  elsif File.exists?(File.expand_path(File.join(default_template_dir, file))) then
143
145
  File.expand_path(File.join(default_template_dir, file))
144
146
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: collins_notify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -137,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  segments:
139
139
  - 0
140
- hash: -4369586567197848766
140
+ hash: -3273446281456660358
141
141
  required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  none: false
143
143
  requirements: