you_got_listed 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a8b006801dd59ac16fcd98fb7b225d9c9507bfa
4
- data.tar.gz: e592db0448465dd8b7ad4c6aef230c504ede03be
3
+ metadata.gz: 423ab00128d1ff55c76e7ac8d99951ffe2024471
4
+ data.tar.gz: b5bbfa538ebb3be2c3bae92ccfa93e0db76c5a7c
5
5
  SHA512:
6
- metadata.gz: 9bb6f390121da899562f8a6d5550a2f83c4211f878c207f0c33662823f4f914956473cbe25d1b1c6aaa272bd610e8a89ec50b3c4ba758ba09fcef042aca8d8e6
7
- data.tar.gz: 5cbec67f21e2b0da02560431dff4fd98d4cf4be0364697a4198aca7617f795e1dbf6566ce4bc263d3cb06b249c1024a43fb7b6bf2fba933eba8eae84e460b31a
6
+ metadata.gz: 86b53b015d6935ea48baf7558c25c723edbaff937080fce0b811e3e5998af48a9c3bc6db87a9976da896bd890b49a30bb07bf589fb72e271f8fd6fc82f9cf20f
7
+ data.tar.gz: fc3d69472c3ef8da166553526336f23640ebb7bc2c1a7396ddec320bc35a0c3df87ac7a8a9890c7162af315bdab18cc59925ad9805c408054d947475b399c921
@@ -35,7 +35,11 @@ module YouGotListed
35
35
 
36
36
  def find_address(address_id)
37
37
  if addresses.address.is_a?(Array)
38
- addresses.address.find{|address| address.id == address_id}
38
+ if address_id.blank?
39
+ addresses.address.first
40
+ else
41
+ addresses.address.find{|address| address.id == address_id}
42
+ end
39
43
  else
40
44
  addresses.address
41
45
  end
@@ -1,3 +1,3 @@
1
1
  module YouGotListed
2
- VERSION = '0.6.4'
2
+ VERSION = '0.6.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: you_got_listed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Cocca