logga 1.2.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/logga/active_record.rb +4 -3
- data/lib/logga/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9434272e2e6abace03aeda69fbc33cb7ffa14d1
|
4
|
+
data.tar.gz: 19a90c76932c845daf8a9001cbcc52682a7c6dfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
|
data/lib/logga/active_record.rb
CHANGED
@@ -37,9 +37,10 @@ module Logga
|
|
37
37
|
|
38
38
|
def log_model_changes
|
39
39
|
field_changes = previous_changes.reject do |k, _|
|
40
|
-
|
41
|
-
|
42
|
-
|
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
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.
|
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-
|
11
|
+
date: 2019-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|