postcodeanywhere 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.2
1
+ 0.10.3
@@ -67,13 +67,20 @@ module PostcodeAnywhere
67
67
  end
68
68
 
69
69
  def lookup_url
70
- ADDRESS_LOOKUP+"?"+self.lookup_type+"&"+self.postcode_with_no_spaces+"&country="+self.country_code+"&"+self.license_information
70
+ ADDRESS_LOOKUP+"?"+self.lookup_type+"&"+self.postcode_with_no_spaces+self.selected_country+"&"+self.license_information
71
71
  end
72
72
 
73
73
  def fetch_url
74
- ADDRESS_FETCH+"&"+self.address_fetch_id+"&country="+self.country_code+"&"+self.license_information
74
+ ADDRESS_FETCH+"&"+self.address_fetch_id+self.selected_country+"&"+self.license_information
75
75
  end
76
76
 
77
+ def selected_country
78
+ if self.country_code == "GB"
79
+ ""
80
+ else
81
+ "&country="+self.country_code
82
+ end
83
+ end
77
84
 
78
85
  def address_fetch_id
79
86
  "id="+self.fetch_id
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{postcodeanywhere}
8
- s.version = "0.10.2"
8
+ s.version = "0.10.3"
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
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 10
8
- - 2
9
- version: 0.10.2
8
+ - 3
9
+ version: 0.10.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - basedotextend