get-your-rep 0.0.2.2 → 0.0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/get-your-rep.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3c54b6059d0012b8fb8e18bdcfb2d272a68596f
|
4
|
+
data.tar.gz: 39ca06d24c3e34fc86238310334129cf9b88faa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b28d04afa4b1c057fa2de4eeeb07f183124de1c07d888b76605e439caec23a16e3a5f104ed257a41423080ab48c23970907c53e88c62d458ecc1ee9a2683d1f
|
7
|
+
data.tar.gz: a9ac4209497c2b211f740c7561b40d9dc2d9261919d961ffb322cfdd862068ed6246ecc7f37d766d5abb4d4f57e6c8f0a69fc4c1812afd39ea9ea7642bc2b09e
|
data/lib/get-your-rep.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'httparty'
|
2
|
-
|
3
2
|
class GetYourRep
|
4
3
|
attr_accessor :rep, :rep_info, :address, :api_key, :level, :role
|
5
4
|
|
@@ -12,6 +11,9 @@ class GetYourRep
|
|
12
11
|
if @rep.empty?
|
13
12
|
puts 'Could not find your rep.'
|
14
13
|
return nil
|
14
|
+
elsif @rep['error']
|
15
|
+
puts 'Error message received. Confirm and re-enter your address'
|
16
|
+
return @rep
|
15
17
|
end
|
16
18
|
parse_rep
|
17
19
|
parse_channels
|