quandl_logger 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Guardfile +8 -0
- data/examples/logger.rb +3 -2
- data/lib/quandl/configuration.rb +1 -1
- data/lib/quandl/logger/outputs.rb +7 -0
- data/lib/quandl/logger/version.rb +1 -1
- data/lib/quandl/logger.rb +3 -1
- data/quandl_logger.gemspec +4 -1
- metadata +32 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ea752248767ea26fe4014de334e727f16af1bd0
|
4
|
+
data.tar.gz: 4a383942651498e641abbb731da766ad7d91dfba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e50074a3a8f00a7b1e2c9dbd54e4d72e0e5979d49dac5bf5e831f868bc2b283c7774716624dfbcd710a107fa7c38eb31e4d9dfe8a1c02b9f487fd1084f45497b
|
7
|
+
data.tar.gz: 39a7864945b05c156968a442b76c59503aa5f890235e1dacad6b411deddb13a6dc09c52a09ac9eeac6f326d32da9500b45066f6e55844c9ee8d6b754b7124e2a
|
data/Guardfile
ADDED
data/examples/logger.rb
CHANGED
data/lib/quandl/configuration.rb
CHANGED
@@ -47,7 +47,7 @@ class Configuration
|
|
47
47
|
|
48
48
|
def assign_attributes(hash)
|
49
49
|
hash.each do |k,v|
|
50
|
-
send("#{k}=", v) if self.class.attribute_names.include?(k) && respond_to?("#{k}=")
|
50
|
+
send("#{k}=", v) if self.class.attribute_names.include?(k.to_sym) && respond_to?("#{k}=")
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
data/lib/quandl/logger.rb
CHANGED
@@ -8,6 +8,7 @@ require "active_support/core_ext/hash"
|
|
8
8
|
require "active_support/core_ext/object"
|
9
9
|
|
10
10
|
require 'quandl/logger/graylog2'
|
11
|
+
require 'quandl/logger/outputs'
|
11
12
|
|
12
13
|
module Quandl
|
13
14
|
class Logger
|
@@ -24,7 +25,8 @@ module Quandl
|
|
24
25
|
end
|
25
26
|
|
26
27
|
def use(value)
|
27
|
-
return use_file(value)
|
28
|
+
return use_file(value) if value.kind_of?(String)
|
29
|
+
@logger = value
|
28
30
|
end
|
29
31
|
|
30
32
|
def info_with_elapsed(message=nil, &block)
|
data/quandl_logger.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quandl_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Hilscher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -122,6 +122,34 @@ dependencies:
|
|
122
122
|
- - ~>
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 1.3.2
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: guard
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: guard-rspec
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
125
153
|
description: Quandl logger class for use in quandl gems.
|
126
154
|
email:
|
127
155
|
- blake@hilscher.ca
|
@@ -131,6 +159,7 @@ extra_rdoc_files: []
|
|
131
159
|
files:
|
132
160
|
- .gitignore
|
133
161
|
- Gemfile
|
162
|
+
- Guardfile
|
134
163
|
- LICENSE
|
135
164
|
- README.md
|
136
165
|
- Rakefile
|
@@ -141,6 +170,7 @@ files:
|
|
141
170
|
- lib/quandl/configuration.rb
|
142
171
|
- lib/quandl/logger.rb
|
143
172
|
- lib/quandl/logger/graylog2.rb
|
173
|
+
- lib/quandl/logger/outputs.rb
|
144
174
|
- lib/quandl/logger/version.rb
|
145
175
|
- quandl_logger.gemspec
|
146
176
|
- spec/fixtures/config/graylog2.yml
|