postcodeinfo-client-ruby 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -3
- data/Gemfile.lock +3 -4
- data/README.md +4 -1
- data/VERSION +1 -1
- data/lib/postcodeinfo/client.rb +1 -4
- data/postcodeinfo-client-ruby.gemspec +12 -12
- data/spec/spec_helper.rb +3 -0
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3aa26610d744e3aa76e5fc43f60920375f7e4e0
|
4
|
+
data.tar.gz: 11539d5fb3bdd6ebe1aa8300b4f1d93a3985747a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60eea5c8612ff37befa8645db051add2e918acdc9d97d2eabed2a21729641b6866318e95ae10e2a89322047c573889de5003b311fee014a1f6cea96f5fed8467
|
7
|
+
data.tar.gz: a5ed3ae14d8233ea2fe5ea5a890b0f38dd0d7af12a5e898a7b9869eb136305252a617cd905c5d823024d95278c259f0320915f94f04b565d774183de64014f03
|
data/Gemfile
CHANGED
@@ -9,10 +9,10 @@ gem 'rest-client'
|
|
9
9
|
# Add dependencies to develop your gem here.
|
10
10
|
# Include everything needed to run rake, tests, features, etc.
|
11
11
|
group :development do
|
12
|
-
gem "byebug"
|
13
|
-
gem "rspec", ">= 3.2.0"
|
14
|
-
gem "rdoc", "~> 3.12"
|
15
12
|
gem "bundler", "~> 1.0"
|
13
|
+
gem "codeclimate-test-reporter", group: :test, require: nil
|
16
14
|
gem "jeweler", "~> 2.0.1"
|
15
|
+
gem "rdoc", "~> 3.12"
|
16
|
+
gem "rspec", ">= 3.2.0"
|
17
17
|
gem "simplecov", ">= 0"
|
18
18
|
end
|
data/Gemfile.lock
CHANGED
@@ -3,9 +3,8 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
addressable (2.3.8)
|
5
5
|
builder (3.2.2)
|
6
|
-
|
7
|
-
|
8
|
-
columnize (0.9.0)
|
6
|
+
codeclimate-test-reporter (0.4.7)
|
7
|
+
simplecov (>= 0.7.1, < 1.0.0)
|
9
8
|
descendants_tracker (0.0.4)
|
10
9
|
thread_safe (~> 0.3, >= 0.3.1)
|
11
10
|
diff-lcs (1.2.5)
|
@@ -88,7 +87,7 @@ PLATFORMS
|
|
88
87
|
|
89
88
|
DEPENDENCIES
|
90
89
|
bundler (~> 1.0)
|
91
|
-
|
90
|
+
codeclimate-test-reporter
|
92
91
|
jeweler (~> 2.0.1)
|
93
92
|
json
|
94
93
|
rdoc (~> 3.12)
|
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# postcodeinfo-client-ruby
|
2
2
|
|
3
|
-
API Client wrapper for https://github.com/ministryofjustice/postcodeinfo
|
3
|
+
API Client wrapper for [MoJ Postcode Info API](https://github.com/ministryofjustice/postcodeinfo)
|
4
|
+
|
5
|
+
[![Code Climate](https://codeclimate.com/github/ministryofjustice/postcodeinfo-client-ruby/badges/gpa.svg)](https://codeclimate.com/github/ministryofjustice/postcodeinfo-client-ruby)
|
6
|
+
[![Test Coverage](https://codeclimate.com/github/ministryofjustice/postcodeinfo-client-ruby/badges/coverage.svg)](https://codeclimate.com/github/ministryofjustice/postcodeinfo-client-ruby/coverage)
|
4
7
|
|
5
8
|
# Installation
|
6
9
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/postcodeinfo/client.rb
CHANGED
@@ -2,9 +2,6 @@ require 'json'
|
|
2
2
|
require 'rest-client'
|
3
3
|
require 'postcodeinfo/exceptions'
|
4
4
|
|
5
|
-
require 'byebug'
|
6
|
-
|
7
|
-
|
8
5
|
module PostcodeInfo
|
9
6
|
class Client
|
10
7
|
|
@@ -121,7 +118,7 @@ module PostcodeInfo
|
|
121
118
|
{
|
122
119
|
development: 'http://localhost:8000/',
|
123
120
|
test: 'http://localhost:8000/',
|
124
|
-
staging: 'https://postcodeinfo.dsd.io/',
|
121
|
+
staging: 'https://postcodeinfo-staging.dsd.io/',
|
125
122
|
production: 'https://postcodeinfo.service.gov.uk/'
|
126
123
|
}
|
127
124
|
end
|
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: postcodeinfo-client-ruby 0.1.
|
5
|
+
# stub: postcodeinfo-client-ruby 0.1.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "postcodeinfo-client-ruby"
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Al Davidson"]
|
14
|
-
s.date = "2015-
|
14
|
+
s.date = "2015-07-16"
|
15
15
|
s.description = "Provides a convenient interface for looking up postcodes in an instance of the MoJ postcodeinfo API (https://github.com/ministryofjustice/postcodeinfo).\n Lets you check if a postcode is valid, and lookup:\n * all addresses with that postcode\n * the latitude/longitude of its centre point\n * the name & GSS code of the local authority under which it resides."
|
16
16
|
s.email = "alistair.davidson@digital.justice.gov.uk"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -50,30 +50,30 @@ Gem::Specification.new do |s|
|
|
50
50
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
51
|
s.add_runtime_dependency(%q<json>, [">= 0"])
|
52
52
|
s.add_runtime_dependency(%q<rest-client>, [">= 0"])
|
53
|
-
s.add_development_dependency(%q<byebug>, [">= 0"])
|
54
|
-
s.add_development_dependency(%q<rspec>, [">= 3.2.0"])
|
55
|
-
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
56
53
|
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
54
|
+
s.add_development_dependency(%q<codeclimate-test-reporter>, [">= 0"])
|
57
55
|
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
56
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
57
|
+
s.add_development_dependency(%q<rspec>, [">= 3.2.0"])
|
58
58
|
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
59
59
|
else
|
60
60
|
s.add_dependency(%q<json>, [">= 0"])
|
61
61
|
s.add_dependency(%q<rest-client>, [">= 0"])
|
62
|
-
s.add_dependency(%q<byebug>, [">= 0"])
|
63
|
-
s.add_dependency(%q<rspec>, [">= 3.2.0"])
|
64
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
65
62
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
63
|
+
s.add_dependency(%q<codeclimate-test-reporter>, [">= 0"])
|
66
64
|
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
65
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
66
|
+
s.add_dependency(%q<rspec>, [">= 3.2.0"])
|
67
67
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
68
68
|
end
|
69
69
|
else
|
70
70
|
s.add_dependency(%q<json>, [">= 0"])
|
71
71
|
s.add_dependency(%q<rest-client>, [">= 0"])
|
72
|
-
s.add_dependency(%q<byebug>, [">= 0"])
|
73
|
-
s.add_dependency(%q<rspec>, [">= 3.2.0"])
|
74
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
75
72
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
73
|
+
s.add_dependency(%q<codeclimate-test-reporter>, [">= 0"])
|
76
74
|
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
75
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
76
|
+
s.add_dependency(%q<rspec>, [">= 3.2.0"])
|
77
77
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
78
78
|
end
|
79
79
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postcodeinfo-client-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Al Davidson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -39,75 +39,75 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '1.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: codeclimate-test-reporter
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: jeweler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 2.0.1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 2.0.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rdoc
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '3.12'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '3.12'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 2.0
|
103
|
+
version: 3.2.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 2.0
|
110
|
+
version: 3.2.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|