recorder 0.1.19 → 0.1.20

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: ed0d2b551b3fd36584909d933601f88164ec0a21
4
- data.tar.gz: d91f3377fbd0e303d433d70b207e46666ea0c0f8
3
+ metadata.gz: 9017142368d57513a5b5be3a3def20ffe43c399f
4
+ data.tar.gz: e58ef82cfb1c2709d8fd96430f9ee74ebac19660
5
5
  SHA512:
6
- metadata.gz: dcc2ef8280b34784dfe659b787bb19663afc50d5d1c614d6c5fba04cdf81b04c968b1662e8b61a732950d79593f4211e712d022a682c8604e40d691b99e037b7
7
- data.tar.gz: bb72827dfe92518277062d568c03ba53c98564ec23722889f7dd3c34826d5ec1c1e94a1cce2547d8acca1f7d47188dcf6c3e8b3dcbd7890d54e14af9cf90f93c
6
+ metadata.gz: b76edc2c3bb411f7c4d9471894c33a058f751681682c827195b0454116ddfc15ffff72ae89fb420d0f5c8e83708631e80332e490565f593bf920dc777098cb16
7
+ data.tar.gz: ef682c79e420910a6a90234f126f201ad109b3b52100161d6d87c12d3c00c988a50d7c9e585430fea03f650f3eff9effe7a4e88790e6c6ad79f4e04db346585f
@@ -29,6 +29,7 @@ class Recorder::Revision < ActiveRecord::Base
29
29
  # @return [Recorder::Changeset]
30
30
  def item_changeset
31
31
  return @item_changeset if defined?(@item_changeset)
32
+ return nil if self.data['changes'].nil?
32
33
 
33
34
  @item_changeset ||= self.changeset_class(self.item).new(self.item, self.data['changes'])
34
35
  end
@@ -3,7 +3,7 @@ module Recorder
3
3
  module VERSION
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- PATCH = 19
6
+ PATCH = 20
7
7
  PRE = nil
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".").freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recorder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Alexandrov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-11 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord