lib/onebox/engine/douban_onebox.rb in onebox-1.8.68 vs lib/onebox/engine/douban_onebox.rb in onebox-1.8.69

- old
+ new

@@ -7,17 +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 + 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