get_your_rep 0.1.6 → 0.1.7

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: 2036494c7f29adf4d775344439692a8686b74492
4
- data.tar.gz: e4cbee4036cb3c619127fd539617295b3084448c
3
+ metadata.gz: 467eb20c6e5784807ccc88f2b29ee68286782eb2
4
+ data.tar.gz: f728164e861d9a7cfa6c4ff302abc7faaac9cbc8
5
5
  SHA512:
6
- metadata.gz: 1d3bc8fdce0bdca164bb380efb0e24c66ccf244d09cb378f6431c0c1bb010442747b5299c315282cadb43f9dce921460afe8094be3d7deff9a36db53d972e4a3
7
- data.tar.gz: ec9cfdc2dc4a623d21c6304829aaac5123b8accbb5f965d15a1880014f6d16c542e6341c547fa78424cc1296c81049f696472fdad4a8483d4c4e3fe81552f72f
6
+ metadata.gz: 7f2d15c8cb5ccf50d0683f39d219387f6e0b84039a4cb50e998b70bd6bda954d55fc77fa45347391df1d229c01aa101febd48d54d7e5188effdec78709754059
7
+ data.tar.gz: ce25d3bb659d585fc4b93f9ed3e8672e235eec7fa9584a827e6a62c48af11968b164d7dc1c79da354b0b4b883e70141a9328683cb50a3e5cc06658bb2cfa34ee
@@ -183,12 +183,20 @@ module GetYourRep
183
183
 
184
184
  def district_office
185
185
  @district_office = self.office_locations.select { |loc| loc[:type] == 'district' }.first
186
- {} if @district_office.nil?
186
+ if @district_office.nil?
187
+ {}
188
+ else
189
+ @district_office
190
+ end
187
191
  end
188
192
 
189
193
  def capitol_office
190
194
  @capitol_office = self.office_locations.select { |loc| loc[:type] == 'capitol' }.first
191
- {} if @capitol_office.nil?
195
+ if @capitol_office.nil?
196
+ {}
197
+ else
198
+ @capitol_office
199
+ end
192
200
  end
193
201
 
194
202
  # Get the :email value.
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.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - msimonborg