davidrichards-etl 0.0.7 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/etl/etl.rb +2 -3
  3. metadata +2 -2
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 7
4
+ :patch: 9
data/lib/etl/etl.rb CHANGED
@@ -30,7 +30,6 @@ class ETL
30
30
  # logger will be created for each ETL subclass.
31
31
  # Using the standard log levels here: DEBUG < INFO < WARN < ERROR < FATAL
32
32
  def logger
33
-
34
33
  logger_name = (self.to_s + "_logger").to_sym
35
34
 
36
35
  # Find and return the cached logger, if it's setup
@@ -50,7 +49,7 @@ class ETL
50
49
 
51
50
  # Setup a logger to a file with our formatting
52
51
  logfile = Log4r::FileOutputter.new('logfile',
53
- :filename => self.logger_filename,
52
+ :filename => File.join(self.logger_root, self.logger_filename),
54
53
  :trunc => false,
55
54
  :level => Log4r::DEBUG)
56
55
  logfile.formatter = format
@@ -85,7 +84,7 @@ class ETL
85
84
  when File.exist?(File.dirname(__FILE__) + "/log")
86
85
  File.expand_path(File.dirname(__FILE__) + '/log')
87
86
  else
88
- File.expand_path(File.dirname(__FILE__))
87
+ File.expand_path('.')
89
88
  end
90
89
  logger_root = read_inheritable_attribute(:logger_root) || @@logger_root
91
90
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: davidrichards-etl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Richards
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-15 00:00:00 -07:00
12
+ date: 2009-08-17 00:00:00 -07:00
13
13
  default_executable: etl
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency