hornetseye-frame 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/hornetseye-frame/frame.rb +21 -0
  3. metadata +3 -3
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ require 'rbconfig'
8
8
  require 'tempfile'
9
9
 
10
10
  PKG_NAME = 'hornetseye-frame'
11
- PKG_VERSION = '0.7.0'
11
+ PKG_VERSION = '0.8.0'
12
12
  CXX = ENV[ 'CXX' ] || 'g++'
13
13
  STRIP = ENV[ 'STRIP' ] || 'strip'
14
14
  RB_FILES = FileList[ 'lib/**/*.rb' ]
@@ -61,6 +61,27 @@ module Hornetseye
61
61
  true
62
62
  end
63
63
 
64
+ def ==( other )
65
+ if other.is_a? Class
66
+ if other < Frame_
67
+ [ other.typecode, other.width, other.height ] ==
68
+ [ typecode, width, height ]
69
+ else
70
+ false
71
+ end
72
+ else
73
+ false
74
+ end
75
+ end
76
+
77
+ def hash
78
+ [ :Frame_, typecode, width, height ].hash
79
+ end
80
+
81
+ def eql?( other )
82
+ self == other
83
+ end
84
+
64
85
  end
65
86
 
66
87
  attr_reader :memory
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 7
7
+ - 8
8
8
  - 0
9
- version: 0.7.0
9
+ version: 0.8.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jan Wedekind
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-18 00:00:00 +01:00
17
+ date: 2010-10-25 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency