usaidwat 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/browse.feature +8 -0
- data/lib/usaidwat/application.rb +2 -0
- data/lib/usaidwat/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef237332f70848558231f2efa1d72ae670c0b1d2
|
4
|
+
data.tar.gz: c79816dfb00af261f512ff612330a5e86d2b46b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f899ceb86532ec8f506f6318ac5afeeba0251b466a7c0bbe5c0289f3d9cd307924d1f63af14c408f646155dfe0d1b2299a23593568ea5b28bd069badd5177e3c
|
7
|
+
data.tar.gz: a91b962fe4a7de6bcc5c4ba69b6a8c695672fad3e895b59e175880efa5b415c3b309684cfd8df80c3a892da0ae6f56af0fc72d198786a82c1a20d96b783fa856
|
data/features/browse.feature
CHANGED
@@ -106,6 +106,14 @@ Feature: Browse comments
|
|
106
106
|
blank has no comments.
|
107
107
|
"""
|
108
108
|
|
109
|
+
Scenario: Sort comments when a user does not exist
|
110
|
+
Given the Reddit service does not have a user "testuser"
|
111
|
+
When I run `usaidwat tally testuser`
|
112
|
+
Then it should fail with:
|
113
|
+
"""
|
114
|
+
No such user: testuser
|
115
|
+
"""
|
116
|
+
|
109
117
|
Scenario: List comments for a particular subreddit
|
110
118
|
Given the Reddit service returns comments for the user "mipadi"
|
111
119
|
And time is frozen at Jun 24, 2015 11:05 AM
|
data/lib/usaidwat/application.rb
CHANGED
@@ -43,6 +43,8 @@ module USaidWat
|
|
43
43
|
tally = buckets[subreddit]
|
44
44
|
printf "%-*s %3d\n", longest_subreddit, subreddit, tally
|
45
45
|
end
|
46
|
+
rescue USaidWat::Client::NoSuchUserError
|
47
|
+
quit "No such user: #{username}", :no_such_user
|
46
48
|
end
|
47
49
|
|
48
50
|
desc 'log USERNAME [SUBREDDIT]', 'Show comments by a user'
|
data/lib/usaidwat/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: usaidwat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Dippery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|