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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d917b27026162b0d5c123b44dbdd9d3ae5ad6be1517785a8513967fbc9dad3ef
4
- data.tar.gz: e9e7806e3ce5bc7e701aa1984d7f5bf5ece59392427a7a34496c6f20c9291127
3
+ metadata.gz: c91c57ffcdb641479b3174ea6ad523c976d6668f4fe049025d51bcd0574e716a
4
+ data.tar.gz: d57923238e3c0bba29cc00b209ee30f3b8eaa4e026553d3cae6a1b4586072fef
5
5
  SHA512:
6
- metadata.gz: 2960caed15b4d69719bd351801a25b89e73e5c2874a2c17263a72baed7711073d01debaae85dcff517c4128e48646b9d3b479fe99515f741267a3db986fd59df
7
- data.tar.gz: 0b8116d232569e56b148499663ea6993ef4bd222a835125a96e5b4407ea2a4137ffb0f3d15940824644c419f8a9e20625087572ecf57d261cb6efd09c86a1631
6
+ metadata.gz: 94ef9e11202aff8cc8fa0039eaeb3a758de300cf1913ce20b3536b1187ed931a3bc00f05ff6571e51d3d6d22eeb6d40496b0454f5709f8b8228acfe6d0eeee6d
7
+ data.tar.gz: 7091ca4a4be36329d7a7e426cc4a1fbb8b0bd9ac67938677fd6fd5fe71295bf8d7f695666987c7755fdee2b254abd62b4607979eb1fbdcf603a45be79c85c7ab
data/.gitignore CHANGED
@@ -11,3 +11,5 @@ local_tests_cheatsheet.rb
11
11
 
12
12
  # rspec failure tracking
13
13
  .rspec_status
14
+
15
+ chili_logger-*.gem
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chili_logger (0.0.11)
4
+ chili_logger (0.0.12)
5
5
  aws-sdk (~> 2.9, >= 2.9.0)
6
6
  bunny
7
7
  httparty
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.whodunit
828
- # PaperTrail.request.whodunit will be available in all parts of application while a request is being processed
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? && changes.empty? && action_verb != 'destroy'
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?
@@ -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', '~> 2.9', '>= 2.9.0'
14
+ spec.add_dependency 'aws-sdk-sqs', '~> 1.30.0'
15
15
  spec.add_dependency 'bunny'
16
16
  spec.add_dependency 'httparty'
17
17
 
@@ -1,4 +1,4 @@
1
- require 'aws-sdk'
1
+ require 'aws-sdk-sqs'
2
2
 
3
3
  # class for centralizing Creative's logging logic
4
4
  class ChiliLogger
@@ -1,3 +1,3 @@
1
1
  class ChiliLogger
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'.freeze
3
3
  end
@@ -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.8/lib/chili_logger.rb:61:in
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):53:in `__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.11
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-10 00:00:00.000000000 Z
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: '2.9'
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: '2.9'
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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file