postcode_software 0.0.1 → 0.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8fcd0a5548ed9196d57b763770a21255d771cf08
4
- data.tar.gz: b4b02d5a0a8fcce3aadc336f9c8cbb6a09f2632c
2
+ SHA256:
3
+ metadata.gz: 48477372b7ef0446592ab33c7fb479f66c728e673245b21261709d01289d263f
4
+ data.tar.gz: 0b97f45a3190ef1ce68edef1c34d275d420a94f76004ad37c7e92bd3dc1a9a73
5
5
  SHA512:
6
- metadata.gz: df7be95cc6bd8c7af85e8d09c457b5d3dbb27a2cd65d94ec3cb749b5770a253a914c1bab7b3812e4f3012bbda79cf1ae7080c95ba952097d053e76a285a0df72
7
- data.tar.gz: 06813bab3a314ec7ccc9882b8bb78eced091a7ebfa69667102d221fff783d316a19e9d21067b7aecfc0924a53284056171e906ff411a38738932b42e264393ab
6
+ metadata.gz: de48145a3a6739d587ac322db0b260f2554e40f386df0edb08b0af8bb66376b4dbc6e266578c43c930cb2eb8e5b165f606384cb4602ce69ad3a0e65aaf6723ca
7
+ data.tar.gz: 2822816adaaad340092409af65e5235c03222c26aa12820831e9e1202ab747dbe5bf7bc01634890643dae2892b351d4e578e77124bcd12da0c3c90a0375fb50c
@@ -1,5 +1,9 @@
1
1
  == README
2
2
 
3
+ {<img src="https://badge.fury.io/rb/postcode_software.svg" alt="Gem Version" />}[http://badge.fury.io/rb/postcode_software]
4
+
5
+ {<img src="https://travis-ci.org/ianfleeton/postcode_software.svg" />}[https://travis-ci.org/ianfleeton/postcode_software]
6
+
3
7
  Unofficial Ruby wrapper for using the web SDK provided by postcodesoftware.net.
4
8
 
5
9
  === Installation
@@ -29,7 +29,7 @@ module PostcodeSoftware
29
29
  def self.sdk_url(postcode)
30
30
  [
31
31
  'http://ws1.postcodesoftware.co.uk/lookup.asmx/getAddress?account=',
32
- CGI::escape(account),
32
+ CGI::escape(account.to_s),
33
33
  '&password=',
34
34
  CGI::escape(password),
35
35
  '&postcode=',
@@ -46,6 +46,19 @@ RSpec.describe PostcodeSoftware do
46
46
  end
47
47
  end
48
48
 
49
+ context 'with valid numeric account and valid password' do
50
+ before do
51
+ PostcodeSoftware.account = 12345
52
+ PostcodeSoftware.password = 'valid'
53
+ end
54
+
55
+ context 'using example LS18 postcodes' do
56
+ let(:postcode) { 'LS18 4AA' }
57
+
58
+ it { is_expected.to be_kind_of(PostcodeSoftware::Response) }
59
+ end
60
+ end
61
+
49
62
  context 'with invalid account or password' do
50
63
  before do
51
64
  PostcodeSoftware.account = 'invalid'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postcode_software
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Fleeton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-02 00:00:00.000000000 Z
11
+ date: 2019-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -24,6 +24,26 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 12.0.0
34
+ - - "~>"
35
+ - !ruby/object:Gem::Version
36
+ version: '12.0'
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 12.0.0
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '12.0'
27
47
  - !ruby/object:Gem::Dependency
28
48
  name: rspec
29
49
  requirement: !ruby/object:Gem::Requirement
@@ -58,15 +78,15 @@ dependencies:
58
78
  requirements:
59
79
  - - "~>"
60
80
  - !ruby/object:Gem::Version
61
- version: '1.20'
81
+ version: '3.0'
62
82
  type: :development
63
83
  prerelease: false
64
84
  version_requirements: !ruby/object:Gem::Requirement
65
85
  requirements:
66
86
  - - "~>"
67
87
  - !ruby/object:Gem::Version
68
- version: '1.20'
69
- description: Ruby wrapper for PostcodeSoftware's web SDK, see http://www.postcodesoftware.net/sdk_web.htm
88
+ version: '3.0'
89
+ description: Ruby wrapper for PostcodeSoftware's web SDK, see https://web.postcodesoftware.com/sdk
70
90
  email: ianfleeton@gmail.com
71
91
  executables: []
72
92
  extensions: []
@@ -85,7 +105,7 @@ files:
85
105
  - spec/support/fixtures/LS184AF-no-premise.xml
86
106
  - spec/support/fixtures/account-not-active.xml
87
107
  - spec/support/fixtures/only-LS18.xml
88
- homepage: http://rubygems.org/gems/postcode_software
108
+ homepage: https://rubygems.org/gems/postcode_software
89
109
  licenses:
90
110
  - MIT
91
111
  metadata: {}
@@ -104,8 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
124
  - !ruby/object:Gem::Version
105
125
  version: '0'
106
126
  requirements: []
107
- rubyforge_project:
108
- rubygems_version: 2.2.2
127
+ rubygems_version: 3.0.3
109
128
  signing_key:
110
129
  specification_version: 4
111
130
  summary: Postcode Software