Skip to content

Commit

Permalink
renamed library to ruby buzz
Browse files Browse the repository at this point in the history
  • Loading branch information
Conor Hunt committed Feb 14, 2010
1 parent d9c8919 commit f626c91
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 26 deletions.
24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
Buzzr
=====
Ruby Buzz - RBuzz
=================

A simple wrapper to help retrieve and parse the Google Buzz Atom Feed.
A simple Ruby wrapper to help retrieve and parse the Google Buzz Atom Feed.

Coming soon - subscribing to updates, posting to feed

Note: This library was renamed from Buzzr to Ruby Buzz. Buzzr.com sent me a friendly trademark
infringement notice and threatened a lawsuit if I didn't rename the library immediately.

Install
-------

gem install buzzr
gem install rbuzz

Buzzr is hosted on the Gemcutter repository. It depends on the RAtom library - http://github.com/seangeo/ratom
Ruby Buzz is hosted on the Gemcutter repository. It depends on the RAtom library - http://github.com/seangeo/ratom

Example
-------

require 'buzzr'
require 'rbuzz'

feed_url = Buzzr::Feed.discover("conorhunt")
feed = Buzzr::Feed.retrieve(feed_url)
feed_url = Rbuzz::Feed.discover("conorhunt")
feed = Rbuzz::Feed.retrieve(feed_url)

feed.entries.each do |entry|
puts "Title: #{entry.title}"
Expand Down Expand Up @@ -59,11 +62,6 @@ Example
puts
end

Notes
-----

Props to Psi <http://github.com/psi> for the awesome name. Way better than Rbuzz :)

COPYRIGHT
---------

Expand Down
6 changes: 3 additions & 3 deletions examples/basic.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'buzzr'
require 'rbuzz'

feed_url = Buzzr::Feed.discover(ARGV[0])
feed = Buzzr::Feed.retrieve(feed_url)
feed_url = Rbuzz::Feed.discover(ARGV[0])
feed = Rbuzz::Feed.retrieve(feed_url)

feed.entries.each do |entry|
puts "Title: #{entry.title}"
Expand Down
44 changes: 44 additions & 0 deletions lib/basic.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
require 'rubygems'
require 'rbuzz'

feed_url = Rbuzz::Feed.discover(ARGV[0])
feed = Rbuzz::Feed.retrieve(feed_url)

feed.entries.each do |entry|
puts "Title: #{entry.title}"
puts "Author: #{entry.author.name}"
puts "Comment Count: #{entry.comment_count}"
puts "Content"
puts entry.content
puts

if entry.urls.length > 0
puts "Links"
entry.urls.each {|u| puts "URI: #{u}" }
puts
end

if entry.images.length > 0
puts "Images"
entry.images.each {|i| puts "URI: #{i}" }
puts
end

if entry.videos.length > 0
puts "Videos"
entry.videos.each {|v| puts "URI: #{v}" }
puts
end

if entry.comment_count > 0
puts "Comments"
puts
entry.comments.each do |comment|
puts "Author: #{comment.author.name}"
puts "#{comment.content}"
puts
end
end
puts "------"
puts
end
5 changes: 0 additions & 5 deletions lib/buzzr.rb

This file was deleted.

5 changes: 5 additions & 0 deletions lib/rbuzz.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require 'atom'
require 'open-uri'
require 'rbuzz/feed'
require 'rbuzz/feed_entry'
require 'rbuzz/feed_reply'
2 changes: 1 addition & 1 deletion lib/buzzr/feed.rb → lib/rbuzz/feed.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Buzzr
module Rbuzz
class FeedError < Exception; end;

class Feed
Expand Down
2 changes: 1 addition & 1 deletion lib/buzzr/feed_entry.rb → lib/rbuzz/feed_entry.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Buzzr
module Rbuzz
class FeedEntry
attr :atom_entry
attr :atom_replies
Expand Down
2 changes: 1 addition & 1 deletion lib/buzzr/feed_reply.rb → lib/rbuzz/feed_reply.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Buzzr
module Rbuzz
class FeedReply
attr :atom_entry

Expand Down
4 changes: 2 additions & 2 deletions buzzr.gemspec → rbuzz.gemspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Gem::Specification.new do |s|
s.name = 'buzzr'
s.name = 'rbuzz'
s.version = '0.2'
s.date = '2010-02-10'
s.authors = ['Conor Hunt']
s.email = 'conor.hunt@gmail.com'
s.summary = %q{Ruby wrapper for Google Buzz atom feeds}
s.homepage = 'http://github.com/conorh/buzzr'
s.homepage = 'http://github.com/conorh/rbuzz'
s.description = %q{Ruby wrapper for Google Buzz atom feeds}

s.files = ['README.md', 'LICENSE', 'Changelog', 'examples'] + Dir['lib/**/*'].to_a
Expand Down

0 comments on commit f626c91

Please sign in to comment.