lib/onebox/engine/douban_onebox.rb in onebox-1.7.3 vs lib/onebox/engine/douban_onebox.rb in onebox-1.7.4
- old
+ new
@@ -7,16 +7,17 @@
matches_regexp(/^(https?:\/\/)?([\da-z\.-]+)(douban.com\/)(.)+\/?$/)
private
- def data
- {
- link: link,
- title: raw.css('title').text.gsub("\n",'').strip(),
- image: raw.css('img[rel*="v:"]').first['src'],
- description: raw.css('meta[name=description]').first['content'],
- }
- end
- end
- end
+ def data
+ {
+ link: link,
+ title: raw.css('title').text.gsub("\n",'').strip(),
+ image: raw.css('img[rel*="v:"]').first['src'],
+ description: raw.css('meta[name=description]').first['content'],
+ }
+ end
+
+ end
+ end
end