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 +5 -5
- data/README.rdoc +4 -0
- data/lib/postcode_software.rb +1 -1
- data/spec/lib/postcode_software_spec.rb +13 -0
- metadata +27 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 48477372b7ef0446592ab33c7fb479f66c728e673245b21261709d01289d263f
|
|
4
|
+
data.tar.gz: 0b97f45a3190ef1ce68edef1c34d275d420a94f76004ad37c7e92bd3dc1a9a73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de48145a3a6739d587ac322db0b260f2554e40f386df0edb08b0af8bb66376b4dbc6e266578c43c930cb2eb8e5b165f606384cb4602ce69ad3a0e65aaf6723ca
|
|
7
|
+
data.tar.gz: 2822816adaaad340092409af65e5235c03222c26aa12820831e9e1202ab747dbe5bf7bc01634890643dae2892b351d4e578e77124bcd12da0c3c90a0375fb50c
|
data/README.rdoc
CHANGED
|
@@ -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
|
data/lib/postcode_software.rb
CHANGED
|
@@ -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.
|
|
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:
|
|
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: '
|
|
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: '
|
|
69
|
-
description: Ruby wrapper for PostcodeSoftware's web SDK, see
|
|
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:
|
|
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
|
-
|
|
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
|