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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd2ab4ea5c739000052b48f4288a45056741b99f2e698c7960e5a0eda32b29ea
4
- data.tar.gz: 2ec438f29345455137bfedab7dcaf4e01b1d9d84d903b92ac4517753b10db5eb
3
+ metadata.gz: 571e06644d88083ccf41f25a69c13530436055233406337c7458f8cdbb6d86f0
4
+ data.tar.gz: f7301fee68a37cfb436a2b3f1ad80ebb8e375b8bc936ee39894f036273edbf35
5
5
  SHA512:
6
- metadata.gz: '0527218328332350cf799e746956b6b4ff7bb6503df1ae2d9fbf32feae01813eb81edbad7b90dc1dfd96c8fef34d079e646b66f1d0e0329ac12d99fdb6a79f4f'
7
- data.tar.gz: 44b70aaaae2f7c9bf3f32a58c2891c4e0c5dda61387367b79406681580fc9667bf85ebb0255c6c74fe8827829230015a94a086555f6ffe223ace709c0a01a8c1
6
+ metadata.gz: 4430563010f78a5f467fad89a260ba0a299d5ac892d4ca63728f4a0dd1ff2e7cb210fa05c2aba513298fd069fbd951c930aeedfd2f401e9e15af1cde6081a302
7
+ data.tar.gz: 336576627fc5c4b54fadcc531406579328497bff61b4db47973a442b6b7ae0710d7f0f953da360dbe0f4e22abfeeadfe411c342919d0ab212a73bfae7a2731b5
@@ -25,7 +25,7 @@ module Logidze
25
25
  attribute :log_data, Logidze::History::Type.new
26
26
  end
27
27
 
28
- delegate :version, :size, to: :log_data, prefix: "log"
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)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Logidze
3
- VERSION = "0.8.0"
3
+ VERSION = "0.8.1"
4
4
  end
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2018-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails