ruby-postcodeanywhere 0.0.10 → 0.1.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.0.10
1
+ 0.1.0
@@ -1,11 +1,6 @@
1
1
  require 'httparty'
2
2
 
3
3
  module PostcodeAnywhere
4
-
5
- ADDRESS_LOOKUP = "https://services.postcodeanywhere.co.uk/PostcodeAnywhere/Interactive/Find/v1.10/xmla.ws"
6
- ADDRESS_FETCH = "https://services.postcodeanywhere.co.uk/PostcodeAnywhere/Interactive/RetrieveById/v1.20/xmla.ws"
7
-
8
- RETRIEVE_BY_PARTS_URL = "https://services.postcodeanywhere.co.uk/PostcodeAnywhere/Interactive/RetrieveByParts/v1.00/xmla.ws"
9
4
 
10
5
  # Account codes to access the PostcodeAnywhere Service
11
6
  mattr_accessor :account_code
@@ -18,8 +13,14 @@ module PostcodeAnywhere
18
13
  end
19
14
 
20
15
  class PostcodeSearch
21
-
22
16
  include HTTParty
17
+
18
+ base_uri 'https://services.postcodeanywhere.co.uk/PostcodeAnywhere/Interactive'
19
+
20
+ ADDRESS_LOOKUP = "/Find/v1.10/xmla.ws"
21
+ ADDRESS_FETCH = "/RetrieveById/v1.20/xmla.ws"
22
+ RETRIEVE_BY_PARTS_URL = "/RetrieveByParts/v1.00/xmla.ws"
23
+
23
24
  format :xml
24
25
 
25
26
  def lookup(postcode)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ruby-postcodeanywhere}
8
- s.version = "0.0.10"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Chris Norman}]
12
- s.date = %q{2011-06-22}
12
+ s.date = %q{2011-06-23}
13
13
  s.description = %q{Gem to provide basic access to PostcodeAnywhere services}
14
14
  s.email = %q{chris@norman.me}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ruby-postcodeanywhere
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.10
5
+ version: 0.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chris Norman
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-22 00:00:00 Z
13
+ date: 2011-06-23 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - ">="
105
105
  - !ruby/object:Gem::Version
106
- hash: 3507365170554414100
106
+ hash: -1344843909362846500
107
107
  segments:
108
108
  - 0
109
109
  version: "0"