moab-versioning 1.4.3 → 1.4.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
  SHA1:
3
- metadata.gz: ebda84ca119de87229f6ae1f4b70e2adbbe53d86
4
- data.tar.gz: edefbf1e78f24fb343fde84a9773915f9fc08eb1
3
+ metadata.gz: 312b0e5facd607971f9a0ee183b2eebce15b22e1
4
+ data.tar.gz: e2adbe99f6e03b7cb3895a3961c6e114f32df6b8
5
5
  SHA512:
6
- metadata.gz: 77ff11cfc86d99b60778742adaf637f10652a6e659a0afb987968c61a33aa57741382f548616a97023f19522913a74eaefad4b7839ac9f4e3c34cb47c07dbedd
7
- data.tar.gz: f077c2e1a600decd96223ce057c33a4f950189a02a326aa60fbf41e13564ef8d3374198d849f6553be844e9b6d67dd7db71be230915c1f9d1391b894ba2ec417
6
+ metadata.gz: c3e7e608940768078871f96f99ab2dfa92c726c95a95c20551cdd5838de4c2737feeb9681205c2ebd6a66c77c32585753c7191b32a1e88b42e65060c3484f692
7
+ data.tar.gz: 401ce03d9bb929702e0bb518b4c936536e204c9873d91b3d32ed3b523fcae27f4f5e4c4b7894446388d8ef1aded02afeb4d6ff4cabdd544ee15625d549e96871
@@ -56,6 +56,7 @@ module Moab
56
56
  # @param other [FileInstance] The other file instance being compared to this instance
57
57
  # @return [Boolean] Returns true if self and other have the same path.
58
58
  def eql?(other)
59
+ return false unless other.respond_to?(:path) # Cannot equal an incomparable type!
59
60
  self.path == other.path
60
61
  end
61
62
 
@@ -77,6 +77,7 @@ module Moab
77
77
  # @param other [FileManifestation] The {FileManifestation} object to compare with self
78
78
  # @return [Boolean] True if {FileManifestation} objects have same content
79
79
  def ==(other)
80
+ return false unless (other.respond_to?(:signature) && other.respond_to?(:instances)) # Cannot equal an incomparable type!
80
81
  (self.signature == other.signature) && (self.instances == other.instances)
81
82
  end
82
83
 
@@ -111,6 +111,7 @@ module Moab
111
111
  # @param other [FileSignature] The other file signature being compared to this signature
112
112
  # @return [Boolean] Returns true if self and other have comparable fixity data.
113
113
  def eql?(other)
114
+ return false unless (other.respond_to?(:size) && other.respond_to?(:checksums))
114
115
  return false if self.size.to_i != other.size.to_i
115
116
  self_checksums = self.checksums
116
117
  other_checksums = other.checksums
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moab-versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Weber
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-01-12 00:00:00.000000000 Z
14
+ date: 2015-02-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: confstruct
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  version: 1.3.6
246
246
  requirements: []
247
247
  rubyforge_project:
248
- rubygems_version: 2.2.2
248
+ rubygems_version: 2.4.5
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: Ruby implementation of digital object versioning toolkit used by the SULAIR