snoo 0.1.0.pre.7 → 0.1.0.pre.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- return processed
92
+ return processed
94
93
  end
95
94
 
96
95
  # Get the modqueue, or a subset of it (dear god)
@@ -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
  }
@@ -1,4 +1,4 @@
1
1
  module Snoo
2
2
  # The version string (duh)
3
- VERSION = "0.1.0.pre.7"
3
+ VERSION = "0.1.0.pre.8"
4
4
  end
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.7
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-11-03 00:00:00.000000000 Z
12
+ date: 2012-12-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty