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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 879e08c770c49388f73103250f6d6b34dd996afe
4
- data.tar.gz: 09bc9f9c9c48498de136ab08d61092760ee16d0b
3
+ metadata.gz: ef237332f70848558231f2efa1d72ae670c0b1d2
4
+ data.tar.gz: c79816dfb00af261f512ff612330a5e86d2b46b2
5
5
  SHA512:
6
- metadata.gz: 0cd18092af983b5368707fa4198fdb57c934f7e8fd1b56acabc17db2297dca2ec356a99fcf95975318d4f19a4913e3cee57e11b2bed44c16a1066b36cf91863f
7
- data.tar.gz: 3b8b25c190b2b5919bf30c7f6972624ee093637c7b4b4aac7e63570f7a64ecf76df612eca1dccd8c843c0bfbaec55f26bebe6dc0a1bdee93bddc70d3ae2da9fb
6
+ metadata.gz: f899ceb86532ec8f506f6318ac5afeeba0251b466a7c0bbe5c0289f3d9cd307924d1f63af14c408f646155dfe0d1b2299a23593568ea5b28bd069badd5177e3c
7
+ data.tar.gz: a91b962fe4a7de6bcc5c4ba69b6a8c695672fad3e895b59e175880efa5b415c3b309684cfd8df80c3a892da0ae6f56af0fc72d198786a82c1a20d96b783fa856
@@ -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
@@ -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'
@@ -1,3 +1,3 @@
1
1
  module USaidWat
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-05 00:00:00.000000000 Z
11
+ date: 2015-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline