buzzr 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -59,6 +59,11 @@ Example
59
59
  puts
60
60
  end
61
61
 
62
+ Notes
63
+ -----
64
+
65
+ Props to Psi <http://github.com/psi> for the awesome name. Way better than Rbuzz :)
66
+
62
67
  COPYRIGHT
63
68
  ---------
64
69
 
@@ -1,4 +1,3 @@
1
- require 'rubygems'
2
1
  require 'atom'
3
2
  require 'open-uri'
4
3
  require 'buzzr/feed'
@@ -42,7 +42,7 @@ module Buzzr
42
42
  end
43
43
 
44
44
  def videos
45
- @videos ||= @atom_entry.links.find_all {|l| l.type =~ /video/i }.collect {|l| l.href}
45
+ @videos ||= @atom_entry.links.find_all {|l| l.type =~ %r{application/x-shockwave-flash}i }.collect {|l| l.href}
46
46
  end
47
47
 
48
48
  def author
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buzzr
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.1"
4
+ version: "0.2"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Conor Hunt
@@ -34,7 +34,6 @@ files:
34
34
  - README.md
35
35
  - LICENSE
36
36
  - Changelog
37
- - lib/basic.rb
38
37
  - lib/buzzr/feed.rb
39
38
  - lib/buzzr/feed_entry.rb
40
39
  - lib/buzzr/feed_reply.rb
@@ -1,44 +0,0 @@
1
- require 'rubygems'
2
- require 'buzzr'
3
-
4
- feed_url = Buzzr::Feed.discover(ARGV[0])
5
- feed = Buzzr::Feed.retrieve(feed_url)
6
-
7
- feed.entries.each do |entry|
8
- puts "Title: #{entry.title}"
9
- puts "Author: #{entry.author.name}"
10
- puts "Comment Count: #{entry.comment_count}"
11
- puts "Content"
12
- puts entry.content
13
- puts
14
-
15
- if entry.urls.length > 0
16
- puts "Links"
17
- entry.urls.each {|u| puts "URI: #{u}" }
18
- puts
19
- end
20
-
21
- if entry.images.length > 0
22
- puts "Images"
23
- entry.images.each {|i| puts "URI: #{i}" }
24
- puts
25
- end
26
-
27
- if entry.videos.length > 0
28
- puts "Videos"
29
- entry.videos.each {|v| puts "URI: #{v}" }
30
- puts
31
- end
32
-
33
- if entry.comment_count > 0
34
- puts "Comments"
35
- puts
36
- entry.comments.each do |comment|
37
- puts "Author: #{comment.author.name}"
38
- puts "#{comment.content}"
39
- puts
40
- end
41
- end
42
- puts "------"
43
- puts
44
- end