context_logger 0.0.51 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/context_logger.gemspec +3 -3
- data/lib/context_logger.rb +5 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9213137f95493aaab8e8c6418fa73a43859cbca6
|
|
4
|
+
data.tar.gz: d2e5be99ef9a60a200c575adbc6bf808000f78c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 45d9292edc1300b6b72b325a40237f0d3f28f8ff2adc33ec2a8e321e55cbd5d6300f2fa464a4502e9f7dfb9b7a2a27a1197fea3aaacd761bfc3b43f617dd7e00
|
|
7
|
+
data.tar.gz: 61f278553c0d2e2041f7e670fdb803251883fc185b3ca00a7230ac1cbf7822edfb1ae08dc9121cadc9e8d175072370f28ff336e6b6d9282221364bb5e1c1a9fa
|
data/Gemfile.lock
CHANGED
data/context_logger.gemspec
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'context_logger'
|
|
3
|
-
s.version = '0.0.
|
|
4
|
-
s.date = '2017-
|
|
3
|
+
s.version = '0.0.52'
|
|
4
|
+
s.date = '2017-08-10'
|
|
5
5
|
s.summary = 'Writes log by context'
|
|
6
6
|
s.description = 'Writes log to db and log files (configurable destinations) according the context and exposes the log entries via http'
|
|
7
|
-
s.authors = ['Alexander Libster','Simon Levin']
|
|
7
|
+
s.authors = ['Alexander Libster','Simon Levin','David Ron']
|
|
8
8
|
s.email = 'simon@naturalint.com'
|
|
9
9
|
s.files = `git ls-files`.split($/)
|
|
10
10
|
s.homepage = 'https://github.com/Natural-Intelligence/context_logger'
|
data/lib/context_logger.rb
CHANGED
|
@@ -96,7 +96,11 @@ module ContextLogger
|
|
|
96
96
|
def self.db_log_columns
|
|
97
97
|
return @db_log_columns if @db_log_columns
|
|
98
98
|
@db_log_columns = {}
|
|
99
|
-
::ContextLog.columns
|
|
99
|
+
if ::ContextLog.respond_to?(:columns)
|
|
100
|
+
::ContextLog.columns.each{|column| @db_log_columns[column.name.to_sym] = true}
|
|
101
|
+
elsif ::ContextLog.respond_to?(:fields)
|
|
102
|
+
::ContextLog.fields.keys.each{|column| @db_log_columns[column.to_sym] = true}
|
|
103
|
+
end
|
|
100
104
|
return @db_log_columns
|
|
101
105
|
end
|
|
102
106
|
|
metadata
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: context_logger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.52
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Libster
|
|
8
8
|
- Simon Levin
|
|
9
|
+
- David Ron
|
|
9
10
|
autorequire:
|
|
10
11
|
bindir: bin
|
|
11
12
|
cert_chain: []
|
|
12
|
-
date: 2017-
|
|
13
|
+
date: 2017-08-10 00:00:00.000000000 Z
|
|
13
14
|
dependencies: []
|
|
14
15
|
description: Writes log to db and log files (configurable destinations) according
|
|
15
16
|
the context and exposes the log entries via http
|