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 +1 -1
- data/collins_notify.gemspec +1 -1
- data/lib/collins_notify/application.rb +6 -2
- data/lib/collins_notify/configuration.rb +2 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/collins_notify.gemspec
CHANGED
@@ -6,8 +6,12 @@ module CollinsNotify
|
|
6
6
|
attr_writer :config
|
7
7
|
attr_reader :logger
|
8
8
|
|
9
|
-
def initialize
|
10
|
-
|
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.
|
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: -
|
140
|
+
hash: -3273446281456660358
|
141
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
142
|
none: false
|
143
143
|
requirements:
|