context_logger 0.0.53 → 0.0.54
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/app/controllers/api/v1/resources/context_loggers_controller.rb +7 -7
- data/context_logger.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 948df51513db5d83a70cde2a7395de2433889a3c
|
|
4
|
+
data.tar.gz: e5315995db0cfe5ef8dff2b02f36dcc580dfb56d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0a35a9763934accd75b8f716350286cb4d8cf39cc0aa18dd6677c7db2c376669712c98c2309dff68b3c5e6ee8ecadaa8a940923c791aa537fc8244f2377eeccf
|
|
7
|
+
data.tar.gz: d95353bf2878f6febe9769a87a80f0fa52845017236cf02edce1586e558bb55ac66d03f611e5c79b807dca535f66068dee0d3ff738ff2e73ad38775add30773d
|
data/Gemfile.lock
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
module
|
|
1
|
+
module Api
|
|
2
2
|
module V1
|
|
3
3
|
module Resources
|
|
4
4
|
class ContextLoggersController < ::ActionController::Base
|
|
5
5
|
def index
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
if params[:action_id].nil?
|
|
7
|
+
render json: {error: 'Missing mandatory parameter action_id'}, :status => 400, layout: false
|
|
8
|
+
return
|
|
9
|
+
end
|
|
10
|
+
#TODO: add pagination
|
|
11
|
+
render json: ::ContextLog.where(action_id: params[:action_id]).all, layout: false, :root => false
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
14
|
end
|
data/context_logger.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'context_logger'
|
|
3
|
-
s.version = '0.0.
|
|
3
|
+
s.version = '0.0.54'
|
|
4
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'
|