logga 0.4.4 → 0.4.5

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
  SHA1:
3
- metadata.gz: cb2d801c0e0a72c4f94bf838b6f1b52865b99c69
4
- data.tar.gz: 211a2b4751aed93d53cff29908f864e6e0e2f71f
3
+ metadata.gz: ab62ff1370669bb1cadac392052a00a660d28d48
4
+ data.tar.gz: d2ed8a64441ee89f7b819fe5fc50b8d7be7e5111
5
5
  SHA512:
6
- metadata.gz: e697adc193d753e991cb35dc234dc95470712616b0137b8a7c2370684e1da8d118c87664f3a142b4c51f41065ebd9ebbefaae045fbc0b60afd8e3933587c8b6d
7
- data.tar.gz: 9f75a8d8ac461cab76e08b5168268d8a4b261c9fa2c36cffa4b937c52c08d535b547e29da29b33d2caa6c72510f520f5c031c9cfb3d7ac64959fe2c9fb99f080
6
+ metadata.gz: 598d54c4ed728881abbfc32f8610a5cb0677ad20ffe76e7f56883389fa0c1fb50b62452a9013d4cedad2f6b4725df4776790216f9539bf1c807b609a7680bdde
7
+ data.tar.gz: 41450b01c953e90b29ba79cdecb87f3ad4060f4ba96e7481bc621034bdb0092617617f8ef1c9805b8f880f716fd473b16114bddb7bd2492ebe2e3bf5cb4e0537
@@ -45,7 +45,7 @@ module Logga
45
45
  body_generator = ->(record, field, old_value, new_value) { default_change_log_body(record, field, old_value, new_value) }
46
46
  body = changes.inject([]) do |result, (field, (old_value, new_value))|
47
47
  result << log_fields.fetch(field.to_sym, body_generator).call(self, field, old_value, new_value)
48
- end.join('\n')
48
+ end.compact.join('\n')
49
49
  log_receiver&.log_entries&.create(author_data.merge(body: body))
50
50
  end
51
51
  end
data/lib/logga/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Logga
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Chinery, Rob Hesketh, Lorenzo Tello