redfinger 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.rdoc +13 -2
  2. data/Rakefile +1 -1
  3. data/VERSION +1 -1
  4. data/redfinger.gemspec +5 -5
  5. metadata +3 -3
@@ -2,6 +2,17 @@
2
2
 
3
3
  Redfinger is a simple Ruby library built to consume the Webfinger protocol. It's simple!
4
4
 
5
+ For more information about Webfinger, see:
6
+
7
+ * http://hueniverse.com/2009/08/introducing-webfinger/
8
+ * http://code.google.com/p/webfinger/
9
+
10
+ == Installation
11
+
12
+ Redfinger is a gem:
13
+
14
+ gem install redfinger
15
+
5
16
  == Usage
6
17
 
7
18
  Just call it with an e-mail address of a domain that provides the Webfinger protocol:
@@ -12,7 +23,7 @@ Just call it with an e-mail address of a domain that provides the Webfinger prot
12
23
 
13
24
  From there, you have access to the links provided in the response as well as some shortcuts for common uses:
14
25
 
15
- finger = Redfinger.finger('youraccount@gmail.com)
26
+ finger = Redfinger.finger('youraccount@gmail.com')
16
27
  finger.open_id.first.to_s # => "http://www.google.com/profiles/youraccount"
17
28
 
18
29
  Links are simple hash based objects that store the 'rel' URI (such as that for hCard, OpenID, etc.), the 'href' (the actual destination URI), and the content type if specified. Note you can also just use <tt>#to_s</tt> on a link to get the destination URI.
@@ -22,7 +33,7 @@ So how can you use Webfinger to your advantage? Let's take the example of hCard.
22
33
  require 'mofo'
23
34
  require 'redfinger'
24
35
 
25
- hcard_uri = Redfinger.finger('example@gmail.com').hcard.first
36
+ hcard_uri = Redfinger.finger('example@gmail.com').hcard.first.to_s
26
37
  hcard = hCard.find(hcard_uri)
27
38
  hcard.fn # => "Example Guy"
28
39
  hcard.title # => "Title guy gave himself on Google profile"
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ begin
11
11
  gem.homepage = "http://github.com/mbleigh/redfinger"
12
12
  gem.authors = ["Michael Bleigh"]
13
13
  gem.add_dependency "rest-client"
14
- gem.add_dependency "nokogiri"
14
+ gem.add_dependency "nokogiri", ">= 1.4.0"
15
15
  gem.add_dependency "hashie"
16
16
  gem.add_development_dependency "rspec", ">= 1.2.9"
17
17
  gem.add_development_dependency "webmock"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{redfinger}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Bleigh"]
12
- s.date = %q{2010-02-12}
12
+ s.date = %q{2010-02-13}
13
13
  s.description = %q{A Ruby Webfinger client}
14
14
  s.email = %q{michael@intridea.com}
15
15
  s.extra_rdoc_files = [
@@ -51,20 +51,20 @@ Gem::Specification.new do |s|
51
51
 
52
52
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
53
53
  s.add_runtime_dependency(%q<rest-client>, [">= 0"])
54
- s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
54
+ s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.0"])
55
55
  s.add_runtime_dependency(%q<hashie>, [">= 0"])
56
56
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
57
57
  s.add_development_dependency(%q<webmock>, [">= 0"])
58
58
  else
59
59
  s.add_dependency(%q<rest-client>, [">= 0"])
60
- s.add_dependency(%q<nokogiri>, [">= 0"])
60
+ s.add_dependency(%q<nokogiri>, [">= 1.4.0"])
61
61
  s.add_dependency(%q<hashie>, [">= 0"])
62
62
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
63
63
  s.add_dependency(%q<webmock>, [">= 0"])
64
64
  end
65
65
  else
66
66
  s.add_dependency(%q<rest-client>, [">= 0"])
67
- s.add_dependency(%q<nokogiri>, [">= 0"])
67
+ s.add_dependency(%q<nokogiri>, [">= 1.4.0"])
68
68
  s.add_dependency(%q<hashie>, [">= 0"])
69
69
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
70
70
  s.add_dependency(%q<webmock>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redfinger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-12 00:00:00 -05:00
12
+ date: 2010-02-13 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: "0"
33
+ version: 1.4.0
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: hashie