snoo 0.1.0.pre.7 → 0.1.0.pre.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/snoo/moderation.rb +2 -3
- data/lib/snoo/pms.rb +1 -3
- data/lib/snoo/version.rb +1 -1
- metadata +2 -2
data/lib/snoo/moderation.rb
CHANGED
|
@@ -80,17 +80,16 @@ module Snoo
|
|
|
80
80
|
last_date: Time.parse(data[-1].children[0].child['datetime']),
|
|
81
81
|
}
|
|
82
82
|
data.each do |tr|
|
|
83
|
-
|
|
84
83
|
processed[:data] << {
|
|
85
84
|
fullname: tr['data-fullname'],
|
|
86
85
|
time: Time.parse(tr.children[0].child['datetime']),
|
|
87
86
|
author: tr.children[1].child.content,
|
|
88
87
|
action: tr.children[2].child['class'].split[1],
|
|
89
88
|
description: tr.children[3].content,
|
|
90
|
-
href: tr.children[3].css('a')[0]['href']
|
|
89
|
+
href: tr.children[3].css('a').count == 0 ? nil : tr.children[3].css('a')[0]['href']
|
|
91
90
|
}
|
|
92
91
|
end
|
|
93
|
-
|
|
92
|
+
return processed
|
|
94
93
|
end
|
|
95
94
|
|
|
96
95
|
# Get the modqueue, or a subset of it (dear god)
|
data/lib/snoo/pms.rb
CHANGED
|
@@ -52,9 +52,7 @@ module Snoo
|
|
|
52
52
|
# @option opts [String] :before Get all comments *before* this id
|
|
53
53
|
# @option opts [String] :after Get all comments *after* this
|
|
54
54
|
# @return (see #clear_sessions)
|
|
55
|
-
def get_messages where = "inbox", opts = {}
|
|
56
|
-
bools = [true, false]
|
|
57
|
-
|
|
55
|
+
def get_messages where = "inbox", opts = {}
|
|
58
56
|
query = {
|
|
59
57
|
mark: false
|
|
60
58
|
}
|
data/lib/snoo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: snoo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.0.pre.
|
|
4
|
+
version: 0.1.0.pre.8
|
|
5
5
|
prerelease: 6
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-12-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: httparty
|