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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 903117350b0a00c579fc3226eb1ecfa6f08efb14
4
- data.tar.gz: 3698c3571dca9252decccc4a4fb535278fedc062
3
+ metadata.gz: 9213137f95493aaab8e8c6418fa73a43859cbca6
4
+ data.tar.gz: d2e5be99ef9a60a200c575adbc6bf808000f78c1
5
5
  SHA512:
6
- metadata.gz: 54d5d07b6321bed01f4937dc20cb429831dd40dd677f41cf1e76d14d12b1c7ed963289cfd0972c6c8e41c06c23f55ca171fc5a5e9789ffdf4de6b92f61f87a12
7
- data.tar.gz: 2984ce376d0a55987b81a6b4d94fa1e976c245cea8c16bc9cc3eb30fa1c4a8e47e84a585476bc7e242767cf5d0deeb0ca484c17a115b0076e8a712af311e9596
6
+ metadata.gz: 45d9292edc1300b6b72b325a40237f0d3f28f8ff2adc33ec2a8e321e55cbd5d6300f2fa464a4502e9f7dfb9b7a2a27a1197fea3aaacd761bfc3b43f617dd7e00
7
+ data.tar.gz: 61f278553c0d2e2041f7e670fdb803251883fc185b3ca00a7230ac1cbf7822edfb1ae08dc9121cadc9e8d175072370f28ff336e6b6d9282221364bb5e1c1a9fa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- context_logger (0.0.51)
4
+ context_logger (0.0.52)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'context_logger'
3
- s.version = '0.0.51'
4
- s.date = '2017-03-27'
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'
@@ -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.each{|column| @db_log_columns[column.name.to_sym] = true}
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.51
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-03-27 00:00:00.000000000 Z
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