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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/get-your-rep.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5782743aa78484538eca8156d39114aea6b0439b
4
- data.tar.gz: 3aad613a0154bd43b19bf8eb9346094bc6e3ce88
3
+ metadata.gz: a3c54b6059d0012b8fb8e18bdcfb2d272a68596f
4
+ data.tar.gz: 39ca06d24c3e34fc86238310334129cf9b88faa1
5
5
  SHA512:
6
- metadata.gz: d3bd88655f3445091aab84c6e8b3a692cb1a7e74e618fa2adaf6c10f9548991f12c8779d10ee63086a0b52ebf6ef5fad7c261a9ed654eb1b6d98d61db7d478c3
7
- data.tar.gz: 1e0052493c6ea74c3f63516fdadf6c0240884cacbfcd714ef5bf327e5016ba799fd9431d8a00b746570c723e9f7c9a27e93dc2e26255c569b55d78cbae40d182
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get-your-rep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.2
4
+ version: 0.0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - msimonborg