quandl_logger 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -0,0 +1 @@
1
+ ## Quandl logger class for use in quandl gems.
data/lib/quandl/logger.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'logger'
2
+
1
3
  require 'quandl/logger/version'
2
4
 
3
5
  require "active_support"
@@ -19,8 +21,9 @@ module Quandl
19
21
  @@logger if defined?(@@logger)
20
22
  end
21
23
 
22
- def use(value)
23
- @@logger = value
24
+ def use(log_file)
25
+ log_file = ::Logger.new(log_file) if log_file.is_a?(String)
26
+ @@logger = log_file
24
27
  end
25
28
 
26
29
  end
@@ -1,5 +1,5 @@
1
1
  module Quandl
2
2
  class Logger
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quandl_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: