google_reader 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,4 +1,4 @@
1
1
  Gemfile.lock
2
2
  *.xml
3
-
3
+ *.rbc
4
4
  *.gem
@@ -7,6 +7,14 @@ module GoogleReader
7
7
  @entry = entry
8
8
  end
9
9
 
10
+ def hash
11
+ self.id.hash
12
+ end
13
+
14
+ def ==(other)
15
+ self.id == other.id
16
+ end
17
+
10
18
  def id
11
19
  id_node.text
12
20
  end
@@ -1,3 +1,3 @@
1
1
  module GoogleReader
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
data/spec/entry_spec.rb CHANGED
@@ -21,6 +21,18 @@ describe GoogleReader::Entry, "where the author is known, and the updated timest
21
21
  GoogleReader::Entry.new(entry)
22
22
  end
23
23
 
24
+ it "should be equal to itself" do
25
+ subject.should == subject
26
+ end
27
+
28
+ it "should be equal to another entry instance with the same id" do
29
+ subject.should == GoogleReader::Entry.new(entry)
30
+ end
31
+
32
+ it "should have the same hash as another instance with the same id" do
33
+ subject.hash.should == GoogleReader::Entry.new(entry).hash
34
+ end
35
+
24
36
  it "should HTML unescape the title" do
25
37
  subject.title.should == "Find cheapest combination of rooms in hotels & other entries"
26
38
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: google_reader
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.2
5
+ version: 1.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Fran\xC3\xA7ois Beausoleil"