ostatus 0.0.5 → 0.0.6

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.
data/lib/ostatus/entry.rb CHANGED
@@ -83,9 +83,9 @@ module OStatus
83
83
 
84
84
  links = self.link
85
85
  if links[:alternate]
86
- links[:alternate][0][:href]
86
+ links[:alternate][0][:href].value
87
87
  elsif links[:self]
88
- links[:self][0][:href]
88
+ links[:self][0][:href].value
89
89
  else
90
90
  cur_url
91
91
  end
@@ -1,3 +1,3 @@
1
1
  module OStatus
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/spec/entry_spec.rb CHANGED
@@ -58,6 +58,12 @@ describe OStatus::Entry do
58
58
  end
59
59
  end
60
60
 
61
+ describe "#url" do
62
+ it "should return a String" do
63
+ @entry.url.class.should eql(String)
64
+ end
65
+ end
66
+
61
67
  describe "#info" do
62
68
  it "should give a Hash" do
63
69
  @entry.info.instance_of?(Hash).should eql(true)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Hackers of the Severed Hand