plexus 0.5.7 → 0.5.8

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.
@@ -13,7 +13,7 @@ module Plexus
13
13
 
14
14
  # Ignore labels for equality.
15
15
  def eql?(other)
16
- same_class = (self.class.ancestors.include? other.class)
16
+ same_class = self.class.ancestors.include?(other.class) || other.class.ancestors.include?(self.class)
17
17
  same_class && target == other.target && source == other.source
18
18
  end
19
19
  alias == eql?
@@ -6,7 +6,7 @@ module Plexus
6
6
  # Edge equality allows for the swapping of source and target.
7
7
  #
8
8
  def eql?(other)
9
- same_class = (self.class.ancestors.include? other.class)
9
+ same_class = self.class.ancestors.include?(other.class) || other.class.ancestors.include?(self.class)
10
10
  super || (same_class && target == other.source && source == other.target)
11
11
  end
12
12
  alias == eql?
@@ -1,6 +1,6 @@
1
1
  module Plexus
2
2
  MAJOR = 0
3
3
  MINOR = 5
4
- PATCH = 7
4
+ PATCH = 8
5
5
  VERSION = [MAJOR, MINOR, PATCH].join('.')
6
6
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: plexus
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.7
5
+ version: 0.5.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bruce Williams