postcodeanywhere 0.10.1 → 0.10.2
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/README.rdoc +5 -3
- data/VERSION +1 -1
- data/lib/postcodeanywhere.rb +2 -2
- data/postcodeanywhere.gemspec +2 -2
- metadata +3 -3
data/README.rdoc
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This is an interface to postcode lookup service provided by postcodeanywhere.co.uk
|
|
4
4
|
|
|
5
|
-
you can use it as
|
|
5
|
+
you can use it as below:
|
|
6
6
|
|
|
7
7
|
1. gem install postcodeanywhere
|
|
8
8
|
|
|
@@ -10,13 +10,15 @@ you can use it as
|
|
|
10
10
|
PostcodeAnywhere::Request.account_code = "YOUR_ACCOUNT_CODE"
|
|
11
11
|
PostcodeAnywhere::Request.license_code = "YOUR_LICENSE_CODE"
|
|
12
12
|
|
|
13
|
-
3. Then in your model or controller
|
|
13
|
+
3. Then in your model or controller,
|
|
14
14
|
a. To get a list of addresses
|
|
15
15
|
PostcodeAnywhere::PostcodeSearch.new(:country_code=> "GB", :postcode => "sw19 1ne").lookup
|
|
16
16
|
|
|
17
17
|
b. Then, to get a particular detailed address (to fill out your address form fields)
|
|
18
18
|
PostcodeAnywhere::PostcodeSearch.new(:country_code=> "GB", :fetch_id => "24077031.00").fetch
|
|
19
|
-
|
|
19
|
+
|
|
20
|
+
4. Currently the fetch only works for UK and US. The other countries need different handling so it will be built when I have had a chance.
|
|
21
|
+
|
|
20
22
|
== Note on Patches/Pull Requests
|
|
21
23
|
|
|
22
24
|
* Fork the project.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.10.
|
|
1
|
+
0.10.2
|
data/lib/postcodeanywhere.rb
CHANGED
|
@@ -67,11 +67,11 @@ module PostcodeAnywhere
|
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
def lookup_url
|
|
70
|
-
ADDRESS_LOOKUP+"?"+self.lookup_type+"&"+self.postcode_with_no_spaces+"&"+self.country_code+"&"+self.license_information
|
|
70
|
+
ADDRESS_LOOKUP+"?"+self.lookup_type+"&"+self.postcode_with_no_spaces+"&country="+self.country_code+"&"+self.license_information
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
def fetch_url
|
|
74
|
-
ADDRESS_FETCH+"&"+self.address_fetch_id+"&"+self.country_code+"&"+self.license_information
|
|
74
|
+
ADDRESS_FETCH+"&"+self.address_fetch_id+"&country="+self.country_code+"&"+self.license_information
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
|
data/postcodeanywhere.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{postcodeanywhere}
|
|
8
|
-
s.version = "0.10.
|
|
8
|
+
s.version = "0.10.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["basedotextend"]
|
|
12
|
-
s.date = %q{2010-09-
|
|
12
|
+
s.date = %q{2010-09-20}
|
|
13
13
|
s.description = %q{Interface with postcodeanywhere.co.uk}
|
|
14
14
|
s.email = %q{sandeepvshetty@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 10
|
|
8
|
-
-
|
|
9
|
-
version: 0.10.
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.10.2
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- basedotextend
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-09-
|
|
17
|
+
date: 2010-09-20 00:00:00 +01:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|