postcodeanywhere 0.5.0 → 0.6.0

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.6.0
@@ -46,14 +46,14 @@ module PostcodeAnywhere
46
46
  data = PostcodeSearch.get self.fetch_url
47
47
  formatted_data = data["NewDataSet"]["Data"]
48
48
  @address_lookup = AddressLookup.new
49
- if @postcode_search.country_code == 'GB'
49
+ if self.country_code == 'GB'
50
50
  @address_lookup.postcode = formatted_data["postcode"]
51
51
  @address_lookup.address_line_1 = formatted_data["line1"]
52
52
  @address_lookup.address_line_2 = formatted_data["line2"]
53
53
  @address_lookup.address_line_3 = formatted_data["line3"]
54
54
  @address_lookup.post_town = formatted_data["post_town"]
55
55
  @address_lookup.county = formatted_data["county"].blank? ? formatted_data["post_town"] : formatted_data["county"]
56
- elsif @postcode_search.country_code == 'US'
56
+ elsif self.country_code == 'US'
57
57
  @address_lookup.postcode = formatted_data["zip4"].blank? ? @postcode_search.postcode : formatted_data["zip4"]
58
58
  @address_lookup.address_line_1 = formatted_data["line1"]
59
59
  @address_lookup.address_line_2 = formatted_data["line2"]
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{postcodeanywhere}
8
- s.version = "0.5.0"
8
+ s.version = "0.6.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["basedotextend"]
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 5
7
+ - 6
8
8
  - 0
9
- version: 0.5.0
9
+ version: 0.6.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - basedotextend