Permalink
Browse files

first commit

  • Loading branch information...
1 parent 81f24c0 commit ed185fe6aef6d80dbef3983a7c4c5d6dc601e2f7 @julien51 julien51 committed May 12, 2009
Showing with 58 additions and 38 deletions.
  1. +47 −1 README.rdoc
  2. +10 −5 Rakefile
  3. +0 −31 example.rb
  4. 0 lib/superfeedr_ruby.rb
  5. +1 −1 superfeedr-ruby.gemspec
View
@@ -1,6 +1,52 @@
= superfeedr-ruby
-Description goes here.
+Yes, the gem is called superfeedr-ruby, but the library is superfeedr only ;)
+
+Superfeedr.com:http://superfeedr.com is a Real-time Cloud Feed Parsing service
+
+* *Realtime* : By combining different technologies we can notify you of new entries in less than 15 minutes (or it's free)
+* *No more polling* : Stop wasting your time and resources fetching 'old data', and stop being late when there is new data.
+* *Simplicity* : give us urls, and we'll do the rest. Check our docs and tutorials.
+* *Standardization* : No more nightmares with gazillions of formats, we will send you strict ATOM, whatever the original feed format is.
+* *Multi-channel* : receive the notifications by XMPP, on a local JID or your own external JID, or using WebHooks.
+* *Cost saving* : we will match the cost of your existing system.
+
+
+== Example ==
+
+ require "rubygems"
+ require "superfeedr"
+
+ ## You can have all the XMPP logging by changing the Babylon log level
+ Babylon.logger.level = Log4r::DEBUG
+
+
+ ##
+ # Don't ever forget that all this is ASYNCHRONOUS...
+ # If you don't run EM in your program, then it will started for... however, EM.run begin a blocking call, you shoudl probably run it into a specific Thread to keep the rest of your app running :)
+ Superfeedr.connect("demo@superfeedr.com", "*********") do
+ puts "Yay... connected ;)"
+
+ Superfeedr.on_notification do |notification|
+ puts "The feed #{notification.feed_url} has been fetched (#{notification.http_status}: #{notification.message_status}) and will be fecthed again in #{(notification.next_fetch - Time.now)/60} minutes."
+ notification.entries.each do |e|
+ puts " - #{e.title} (#{e.link}) was published (#{e.published}) with #{e.unique_id} as unique id : \n #{e.summary} (#{e.chunk}/#{e.chunks})"
+ end
+ end
+
+ Superfeedr.subscribe("http://github.com/superfeedr.atom") do |result|
+ puts "Yay, subscribed to the github Atom feed for Superfeedr" if result
+ Superfeedr.unsubscribe("http://github.com/superfeedr.atom") do |result|
+ puts "Sad, you unsubscribed from the github Atom feed for Superfeedr" if result
+ end
+ end
+
+ Superfeedr.subscribe("http://feeds.feedburner.com/NotifixiousFoundersBlog") do |result|
+ puts "Subscribed to Notifixious' blog" if result
+ end
+ end
+
+
== Copyright
View
@@ -4,14 +4,19 @@ require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
+ config = YAML.load(File.read('VERSION.yml'))
+ version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
gem.name = "superfeedr-ruby"
+ gem.version = "#{version}"
gem.summary = %Q{Ruby Client for the Superfeedr}
gem.email = "julien.genestoux@gmail.com"
gem.homepage = "http://github.com/julien51/superfeedr-ruby"
- gem.authors = ["julien"]
+ gem.authors = ["julien Genestoux"]
gem.rubyforge_project = "superfeedr-ruby"
-
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
+ gem.add_dependency('babylon')
+ gem.has_rdoc = true
+ gem.homepage = 'http://github.com/julien51/superfeedr-ruby/'
+ gem.files = FileList["[A-Z]*", "{bin,generators,lib,test,spec}/**/*"]
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
@@ -60,11 +65,11 @@ begin
config = YAML.load(
File.read(File.expand_path('~/.rubyforge/user-config.yml'))
)
-
+
host = "#{config['username']}@rubyforge.org"
remote_dir = "/var/www/gforge-projects/superfeedr-ruby/"
local_dir = 'rdoc'
-
+
Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
end
end
View
@@ -1,31 +0,0 @@
-require "rubygems"
-require "superfeedr"
-
-## You can have all the XMPP logging by changing the Babylon log level
-Babylon.logger.level = Log4r::DEBUG
-
-
-##
-# Don't ever forget that all this is ASYNCHRONOUS...
-# If you don't run EM in your program, then it will started for... however, EM.run begin a blocking call, you shoudl probably run it into a specific Thread to keep the rest of your app running :)
-Superfeedr.connect("demo@superfeedr.com", "superfeedr") do
- puts "Yay... connected ;)"
-
- Superfeedr.on_notification do |notification|
- puts "The feed #{notification.feed_url} has been fetched (#{notification.http_status}: #{notification.message_status}) and will be fecthed again in #{(notification.next_fetch - Time.now)/60} minutes."
- notification.entries.each do |e|
- puts " - #{e.title} (#{e.link}) was published (#{e.published}) with #{e.unique_id} as unique id : \n #{e.summary} (#{e.chunk}/#{e.chunks})"
- end
- end
-
- Superfeedr.subscribe("http://github.com/superfeedr.atom") do
- puts "Yay, subscribed to the github Atom feed for Superfeedr"
- Superfeedr.unsubscribe("http://github.com/superfeedr.atom") do
- puts "Sad, you unsubscribed from the github Atom feed for Superfeedr"
- end
- end
-
- Superfeedr.subscribe("http://feeds.feedburner.com/NotifixiousFoundersBlog") do
- puts "Subscribed to Notifixious' blog"
- end
-end
View
No changes.
View
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{superfeedr-ruby}
- s.version = "0.0.0"
+ s.version = "0.1.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["julien Genestoux"]

0 comments on commit ed185fe

Please sign in to comment.