logidze 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logidze/model.rb +5 -1
- data/lib/logidze/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 571e06644d88083ccf41f25a69c13530436055233406337c7458f8cdbb6d86f0
|
4
|
+
data.tar.gz: f7301fee68a37cfb436a2b3f1ad80ebb8e375b8bc936ee39894f036273edbf35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4430563010f78a5f467fad89a260ba0a299d5ac892d4ca63728f4a0dd1ff2e7cb210fa05c2aba513298fd069fbd951c930aeedfd2f401e9e15af1cde6081a302
|
7
|
+
data.tar.gz: 336576627fc5c4b54fadcc531406579328497bff61b4db47973a442b6b7ae0710d7f0f953da360dbe0f4e22abfeeadfe411c342919d0ab212a73bfae7a2731b5
|
data/lib/logidze/model.rb
CHANGED
@@ -25,7 +25,7 @@ module Logidze
|
|
25
25
|
attribute :log_data, Logidze::History::Type.new
|
26
26
|
end
|
27
27
|
|
28
|
-
delegate :version,
|
28
|
+
delegate :version, to: :log_data, prefix: "log"
|
29
29
|
end
|
30
30
|
|
31
31
|
module ClassMethods # :nodoc:
|
@@ -195,6 +195,10 @@ module Logidze
|
|
195
195
|
end
|
196
196
|
# rubocop: enable Metrics/MethodLength
|
197
197
|
|
198
|
+
def log_size
|
199
|
+
log_data&.size || 0
|
200
|
+
end
|
201
|
+
|
198
202
|
protected
|
199
203
|
|
200
204
|
def apply_diff(version, diff)
|
data/lib/logidze/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logidze
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- palkan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|