logga 1.2.0 → 1.4.0

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: 105a1af12eefcd40a687226d748ebe9e62453ed4
4
- data.tar.gz: 3e1abeefa415beb7fc32dc3220580ecfd96f040d
3
+ metadata.gz: c9434272e2e6abace03aeda69fbc33cb7ffa14d1
4
+ data.tar.gz: 19a90c76932c845daf8a9001cbcc52682a7c6dfc
5
5
  SHA512:
6
- metadata.gz: 52c2fa8a24829fec5556f96733163e27d99d32723f5776fa1871fa20b026e2f9189e2306ffd99fefb5339e0d8435f100feaea598240539a3009bd1f2ff6a435c
7
- data.tar.gz: 7cd8ce6fcaf95c658df3876c5a92192896929736fe669ff7f21ded5cf67c5e0dc963bd7a88b13bdfdcd0cc7639abffcbfddbd77a8a7436b1247a20011b1e48da
6
+ metadata.gz: 852eb6e83549f5894dad56a89b4672697bcdf8ea7523f76feb256b18304109c73553773723856e97f31a1cfb2fca65d1ce2a71ea0c1de55832913229f0c12102
7
+ data.tar.gz: 5e63e9aab7812003e6e8bd7885af6064ee4d81dcbba39a12db4b6d191022a7b30de3929faf7dbe17823318fea12934137a52c9a6bdc69cfdb012a188c98bb733
data/README.md CHANGED
@@ -38,7 +38,7 @@ modified.
38
38
 
39
39
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
40
40
 
41
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
41
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then `git push gemfury master` where gemfury remote is `https://[YOUR GEM FURY USER NAME]git.fury.io/boxt/logga_engine.git`.
42
42
 
43
43
  ## Contributing
44
44
 
@@ -37,9 +37,10 @@ module Logga
37
37
 
38
38
  def log_model_changes
39
39
  field_changes = previous_changes.reject do |k, _|
40
- excluded_fields.include?(k.to_sym) ||
41
- EXCLUDED_KEYS.include?(k.to_sym) ||
42
- EXCLUDED_KEYS_SUFFIXES.any? { |suffix| k.to_s.end_with?(suffix.to_s) }
40
+ EXCLUDED_KEYS.include?(k.to_sym) ||
41
+ (!log_fields.include?(k.to_sym) &&
42
+ (excluded_fields.include?(k.to_sym) ||
43
+ EXCLUDED_KEYS_SUFFIXES.any? { |suffix| k.to_s.end_with?(suffix.to_s) }))
43
44
  end
44
45
  log_field_changes(field_changes)
45
46
  end
data/lib/logga/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Logga
2
- VERSION = "1.2.0"
2
+ VERSION = '1.4.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logga
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Chinery, Rob Hesketh, Lorenzo Tello
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-20 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler