snoo 0.1.0.pre.4 → 0.1.0.pre.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/snoo/moderation.rb +3 -2
- data/lib/snoo/version.rb +1 -1
- metadata +1 -1
data/lib/snoo/moderation.rb
CHANGED
@@ -77,7 +77,7 @@ module Snoo
|
|
77
77
|
first: data[0]['data-fullname'],
|
78
78
|
first_date: Time.parse(data[0].children[0].child['datetime']),
|
79
79
|
last: data[-1]['data-fullname'],
|
80
|
-
last_date: Time.parse(data[-1].children[0].child['datetime'])
|
80
|
+
last_date: Time.parse(data[-1].children[0].child['datetime']),
|
81
81
|
}
|
82
82
|
data.each do |tr|
|
83
83
|
|
@@ -86,7 +86,8 @@ module Snoo
|
|
86
86
|
time: Time.parse(tr.children[0].child['datetime']),
|
87
87
|
author: tr.children[1].child.content,
|
88
88
|
action: tr.children[2].child['class'].split[1],
|
89
|
-
description: tr.children[3].content
|
89
|
+
description: tr.children[3].content,
|
90
|
+
href: tr.children[3].css('a')[0]['href']
|
90
91
|
}
|
91
92
|
end
|
92
93
|
return processed
|
data/lib/snoo/version.rb
CHANGED