DG MS fixed bug where self was not in the module...wtf
This commit is contained in:
parent
1118b56bb1
commit
ad14cd0678
1 changed files with 3 additions and 6 deletions
|
|
@ -5,24 +5,22 @@ module Diaspora
|
|||
end
|
||||
|
||||
def self.process(xml)
|
||||
|
||||
doc = Nokogiri::HTML(xml)
|
||||
parse_author(doc)
|
||||
puts ""
|
||||
parse_entry(doc)
|
||||
end
|
||||
|
||||
def parse_author(doc)
|
||||
def self.parse_author(doc)
|
||||
doc = Nokogiri::HTML(doc) if doc.is_a? String
|
||||
|
||||
|
||||
service = parse_service(doc)
|
||||
feed_url = parse_feed_url(doc)
|
||||
avatar_thumbnail = parse_avatar_thumbnail(doc)
|
||||
username = parse_username(doc)
|
||||
profile_url = parse_profile_url(doc)
|
||||
|
||||
|
||||
|
||||
puts "the sender:"
|
||||
puts service
|
||||
puts feed_url
|
||||
|
|
@ -31,14 +29,13 @@ module Diaspora
|
|||
puts profile_url
|
||||
end
|
||||
|
||||
def parse_entry(doc)
|
||||
def self.parse_entry(doc)
|
||||
doc = Nokogiri::HTML(doc) if doc.is_a? String
|
||||
|
||||
message = parse_message(doc)
|
||||
permalink = parse_permalink(doc)
|
||||
published_at = parse_published_at(doc)
|
||||
updated_at = parse_updated_at(doc)
|
||||
|
||||
|
||||
puts "the message"
|
||||
puts message
|
||||
|
|
|
|||
Loading…
Reference in a new issue