traitorous 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/traitorous/equality.rb +8 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 147aa556988fc13509f445eb0887d4d943c6384b
4
- data.tar.gz: 3eeb33815f1a8bd1c9f3ee83aa19961c053b15a1
3
+ metadata.gz: 1dcf2e9d0afef212d428c6140582dd2d14b66e6a
4
+ data.tar.gz: 129a2a34983b5ed2b65908f227a2f81ef0ec1d95
5
5
  SHA512:
6
- metadata.gz: 0613a5b93cacd2a046d2ae996b606adcbc1051421ddec3e1b3b88906927816e1b0daa3c15618990f74a8f5fe50af7b8fe6cacb9f8048270ea7562f221459932e
7
- data.tar.gz: 05c16f0da36240e35a124d086f10c0860027d60128b9137c6e09bc1e86fb50985cae32dff2ed937bfcc28ab4bbf03689fc2a392bcc840f1131e6905c8c37e603
6
+ metadata.gz: 84c658572a8ae35cc9e38e7bb8732e15eb8e2c55cf3d2cafc996896324fa67de78d5cbb87048c795967edd569fd3d04bdbe831b042ace881e9c580b3bb4a18c8
7
+ data.tar.gz: 460429463388d6aaa6a2e88f8622da871451baa62cccd1fb29318e37d9eeb3048ff3bfabe30f77973fa80fc30a73c118f0e40aa447b6fa053c7c1bd1d7ef25a1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.3.0
@@ -33,6 +33,14 @@ module Traitorous
33
33
  end
34
34
  end
35
35
 
36
+ def eql?(other)
37
+ self == other
38
+ end
39
+
40
+ def hash
41
+ traits.hash
42
+ end
43
+
36
44
  # compare the equality of 2 arrays, and I'm not sure this is the best way to
37
45
  # do the comparisons.
38
46
  # @params alpha [Array] first array
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traitorous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - scott m parrish
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-07 00:00:00.000000000 Z
11
+ date: 2015-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport