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.
- data/Rakefile +1 -1
- data/lib/hornetseye-frame/frame.rb +21 -0
- metadata +3 -3
data/Rakefile
CHANGED
@@ -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
|
+
- 8
|
8
8
|
- 0
|
9
|
-
version: 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-
|
17
|
+
date: 2010-10-25 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|