Skip to content

Instantly share code, notes, and snippets.

@THUFIR
Created March 24, 2012 05:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save THUFIR/2178514 to your computer and use it in GitHub Desktop.
Save THUFIR/2178514 to your computer and use it in GitHub Desktop.
activerecord & feedzirra
thufir@dur:~/ruby/feedzirra$
thufir@dur:~/ruby/feedzirra$
thufir@dur:~/ruby/feedzirra$ ruby feed.rb
/home/thufir/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1626:in `raise_if_conflicts': Unable to activate activerecord-3.2.2, because activesupport-3.1.4 conflicts with activesupport (= 3.2.2) (Gem::LoadError)
from /home/thufir/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:741:in `activate'
from /home/thufir/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb:211:in `rescue in try_activate'
from /home/thufir/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb:208:in `try_activate'
from /home/thufir/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
from /home/thufir/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from feed.rb:3:in `<main>'
thufir@dur:~/ruby/feedzirra$
thufir@dur:~/ruby/feedzirra$ cat feed.rb
require 'rubygems'
require 'feedzirra'
require 'active_record'
feed = Feedzirra::Feed.fetch_and_parse("http://feeds.feedburner.com/PaulDixExplainsNothing")
feed.entries.each do|e|
puts "... #{e.title}"
end
thufir@dur:~/ruby/feedzirra$
thufir@dur:~/ruby/feedzirra$ ruby --version
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
thufir@dur:~/ruby/feedzirra$
thufir@dur:~/ruby/feedzirra$ gem --version
1.8.19
thufir@dur:~/ruby/feedzirra$
thufir@dur:~/ruby/feedzirra$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment