chili_logger 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/chili_logger.gemspec +1 -1
- data/lib/brokers/sqs_broker.rb +1 -1
- data/lib/chili_logger/version.rb +1 -1
- data/log/chili-logger-coverage.yml +2 -2
- metadata +5 -17
- data/chili_logger-0.0.10.gem +0 -0
- data/chili_logger-0.0.6.gem +0 -0
- data/chili_logger-0.0.7.gem +0 -0
- data/chili_logger-0.0.8.gem +0 -0
- data/chili_logger-0.0.9.1.gem +0 -0
- data/chili_logger-0.0.9.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c91c57ffcdb641479b3174ea6ad523c976d6668f4fe049025d51bcd0574e716a
|
4
|
+
data.tar.gz: d57923238e3c0bba29cc00b209ee30f3b8eaa4e026553d3cae6a1b4586072fef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94ef9e11202aff8cc8fa0039eaeb3a758de300cf1913ce20b3536b1187ed931a3bc00f05ff6571e51d3d6d22eeb6d40496b0454f5709f8b8228acfe6d0eeee6d
|
7
|
+
data.tar.gz: 7091ca4a4be36329d7a7e426cc4a1fbb8b0bd9ac67938677fd6fd5fe71295bf8d7f695666987c7755fdee2b254abd62b4607979eb1fbdcf603a45be79c85c7ab
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -824,8 +824,8 @@ class ApplicationController < ActionController::Base
|
|
824
824
|
# sets papertrail Whodunit based on user defined in user_for_paper_trail
|
825
825
|
before_action :set_paper_trail_whodunnit
|
826
826
|
|
827
|
-
# customizes method implemented by PaperTrail and that sets PaperTrail.request.
|
828
|
-
# PaperTrail.request.
|
827
|
+
# customizes method implemented by PaperTrail and that sets PaperTrail.request.whodunnit
|
828
|
+
# PaperTrail.request.whodunnit will be available in all parts of application while a request is being processed
|
829
829
|
def user_for_paper_trail
|
830
830
|
current_user
|
831
831
|
end
|
@@ -935,7 +935,7 @@ class ApplicationRecord < ActiveRecord::Base
|
|
935
935
|
# enriches logs by automatically adding modified_records to them
|
936
936
|
def add_modified_record_to_log(action_verb, modified_record = self)
|
937
937
|
# only adds to log if record was created, changed or destroyed
|
938
|
-
return if !new_record? &&
|
938
|
+
return if !new_record? && !saved_changes? && action_verb != 'destroy'
|
939
939
|
|
940
940
|
current_log = ChiliLogger.instance.current_log
|
941
941
|
current_log.update_type('transaction_error') unless modified_record.errors.messages.empty?
|
data/chili_logger.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.homepage = 'https://gitlab.com/chiligumdev/chili_logger'
|
12
12
|
spec.license = 'MIT'
|
13
13
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
14
|
-
spec.add_dependency 'aws-sdk', '~>
|
14
|
+
spec.add_dependency 'aws-sdk-sqs', '~> 1.30.0'
|
15
15
|
spec.add_dependency 'bunny'
|
16
16
|
spec.add_dependency 'httparty'
|
17
17
|
|
data/lib/brokers/sqs_broker.rb
CHANGED
data/lib/chili_logger/version.rb
CHANGED
@@ -51,9 +51,9 @@ test:
|
|
51
51
|
transaction:
|
52
52
|
console:
|
53
53
|
publish_test:
|
54
|
-
- "/home/lucas/.rvm/gems/ruby-2.3.3/gems/chili_logger-0.0.
|
54
|
+
- "/home/lucas/.rvm/gems/ruby-2.3.3/gems/chili_logger-0.0.12/lib/chili_logger.rb:61:in
|
55
55
|
`publish_instant_log'"
|
56
|
-
- "(pry):
|
56
|
+
- "(pry):50:in `__pry__'"
|
57
57
|
- "/home/lucas/.rvm/gems/ruby-2.3.3/gems/pry-0.13.1/lib/pry/pry_instance.rb:290:in
|
58
58
|
`eval'"
|
59
59
|
- "/home/lucas/.rvm/gems/ruby-2.3.3/gems/pry-0.13.1/lib/pry/pry_instance.rb:290:in
|
metadata
CHANGED
@@ -1,35 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chili_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lucas sandeville
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: aws-sdk
|
14
|
+
name: aws-sdk-sqs
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 2.9.0
|
20
17
|
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
version: 1.30.0
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 2.9.0
|
30
24
|
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
26
|
+
version: 1.30.0
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: bunny
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,12 +75,6 @@ files:
|
|
81
75
|
- assets/images/rabbit-topic-explanation.webp
|
82
76
|
- bin/console
|
83
77
|
- bin/setup
|
84
|
-
- chili_logger-0.0.10.gem
|
85
|
-
- chili_logger-0.0.6.gem
|
86
|
-
- chili_logger-0.0.7.gem
|
87
|
-
- chili_logger-0.0.8.gem
|
88
|
-
- chili_logger-0.0.9.1.gem
|
89
|
-
- chili_logger-0.0.9.gem
|
90
78
|
- chili_logger.gemspec
|
91
79
|
- lib/brokers/rabbit_broker.rb
|
92
80
|
- lib/brokers/sqs_broker.rb
|
data/chili_logger-0.0.10.gem
DELETED
Binary file
|
data/chili_logger-0.0.6.gem
DELETED
Binary file
|
data/chili_logger-0.0.7.gem
DELETED
Binary file
|
data/chili_logger-0.0.8.gem
DELETED
Binary file
|
data/chili_logger-0.0.9.1.gem
DELETED
Binary file
|
data/chili_logger-0.0.9.gem
DELETED
Binary file
|