snappier 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 61932de9cdce32aa92b7837f38387b9fc763c7729e6d9f57886a2896c2c716cf
4
- data.tar.gz: d5d06a0b18c6279cafa7d703f238ccbac5c1812a4a6b435e82db6b3f6a16bc0b
3
+ metadata.gz: 7ba736f367d2679006c1c3d4e6569f2c454c510f7dba8e5323d7ff10d868c849
4
+ data.tar.gz: 9db97fcc5401fbce775bf3a902107a4503f99d95c166faf65e770d34748655f3
5
5
  SHA512:
6
- metadata.gz: 2e071037c3b594612045befde4d73c0e471ba76ce1793ce720958d52fd9d6f4035cefe3cd9f073b142ea61a3cb5344ed1411865810ec9a311b5f2b3c570ec4bb
7
- data.tar.gz: '09993e8a427a9c657f82c0fb8a3e49c326ca47bc100976c14883bce2f15775c771f7bf6624adf1f3f8d9b136050a2609f36d129a10d7b20336dcb757db476089'
6
+ metadata.gz: db4c5f52d70e97f9409647c5bba823a47545e5221a9bc02dde35a2564750651b03b6d63a3cfcca3cc720c391228a1b075dd79b0af7897c5122eaf4dc437fff03
7
+ data.tar.gz: 21ab50eac9931674667972b9c0924ab46c1fd91e102507296ff98696b11c0f242179629d55a2b6e1cdaf43137ca99502e515715ec243623aa873b0de388e898a
@@ -48,6 +48,8 @@ module Snappier
48
48
 
49
49
  def self.append_changes_for_collections(changes, previous_collection, current_collection, path)
50
50
  ids = Set.new
51
+ previous_collection ||= []
52
+ current_collection ||= []
51
53
  previous_collection.each { |e| ids << e["id"] if e["id"] }
52
54
  current_collection.each { |e| ids << e["id"] if e["id"] }
53
55
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Snappier
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snappier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Ryall