gds-api-adapters 14.10.0 → 14.11.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gds_api/json_client.rb +7 -0
- data/lib/gds_api/null_cache.rb +1 -1
- data/lib/gds_api/panopticon.rb +24 -0
- data/lib/gds_api/test_helpers/panopticon.rb +21 -0
- data/lib/gds_api/version.rb +1 -1
- data/test/panopticon_registerer_test.rb +1 -0
- data/test/{panopticon_api_test.rb → panopticon_test.rb} +71 -37
- data/test/test_helpers/panopticon_test.rb +44 -0
- metadata +44 -42
data/lib/gds_api/json_client.rb
CHANGED
@@ -20,6 +20,13 @@ module GdsApi
|
|
20
20
|
@cache ||= LRUCache.new(max_size: size, ttl: ttl)
|
21
21
|
end
|
22
22
|
|
23
|
+
# Set the caching implementation. Default is LRUCache. Can be Anything
|
24
|
+
# which responds to:
|
25
|
+
#
|
26
|
+
# [](key)
|
27
|
+
# []=(key, value)
|
28
|
+
# store(key, value, expiry_time=nil) - or a Ruby Time object
|
29
|
+
#
|
23
30
|
def self.cache=(c)
|
24
31
|
@cache = c
|
25
32
|
end
|
data/lib/gds_api/null_cache.rb
CHANGED
data/lib/gds_api/panopticon.rb
CHANGED
@@ -49,8 +49,32 @@ class GdsApi::Panopticon < GdsApi::Base
|
|
49
49
|
delete_json!("#{base_url}/#{id_or_slug}.json")
|
50
50
|
end
|
51
51
|
|
52
|
+
def create_tag(attributes)
|
53
|
+
post_json!("#{endpoint}/tags.json", attributes)
|
54
|
+
end
|
55
|
+
|
56
|
+
def put_tag(tag_type, tag_id, attributes)
|
57
|
+
put_json!(
|
58
|
+
tag_url(tag_type, tag_id),
|
59
|
+
attributes
|
60
|
+
)
|
61
|
+
end
|
62
|
+
|
63
|
+
def publish_tag(tag_type, tag_id)
|
64
|
+
post_json!(
|
65
|
+
tag_url(tag_type, tag_id, '/publish'),
|
66
|
+
# we don't need to send any more data along with the publish request,
|
67
|
+
# but a body is still required, so sending an empty JSON hash instead
|
68
|
+
{ }
|
69
|
+
)
|
70
|
+
end
|
71
|
+
|
52
72
|
private
|
53
73
|
def base_url
|
54
74
|
"#{endpoint}/artefacts"
|
55
75
|
end
|
76
|
+
|
77
|
+
def tag_url(tag_type, tag_id, action='')
|
78
|
+
"#{endpoint}/tags/#{tag_type}/#{tag_id}#{action}.json"
|
79
|
+
end
|
56
80
|
end
|
@@ -50,6 +50,27 @@ module GdsApi
|
|
50
50
|
|
51
51
|
stub.to_return(:status => 201)
|
52
52
|
end
|
53
|
+
|
54
|
+
def stub_panopticon_tag_creation(attributes)
|
55
|
+
url = "#{PANOPTICON_ENDPOINT}/tags.json"
|
56
|
+
stub_request(:post, url)
|
57
|
+
.with(body: attributes.to_json)
|
58
|
+
.to_return(status: 201, body: attributes.to_json)
|
59
|
+
end
|
60
|
+
|
61
|
+
def stub_panopticon_tag_update(tag_type, tag_id, attributes)
|
62
|
+
url = "#{PANOPTICON_ENDPOINT}/tags/#{tag_type}/#{tag_id}.json"
|
63
|
+
stub_request(:put, url)
|
64
|
+
.with(body: attributes.to_json)
|
65
|
+
.to_return(status: 200)
|
66
|
+
end
|
67
|
+
|
68
|
+
def stub_panopticon_tag_publish(tag_type, tag_id)
|
69
|
+
url = "#{PANOPTICON_ENDPOINT}/tags/#{tag_type}/#{tag_id}/publish.json"
|
70
|
+
stub_request(:post, url)
|
71
|
+
.with(body: {}.to_json)
|
72
|
+
.to_return(status: 200)
|
73
|
+
end
|
53
74
|
end
|
54
75
|
end
|
55
76
|
end
|
data/lib/gds_api/version.rb
CHANGED
@@ -2,17 +2,19 @@ require 'test_helper'
|
|
2
2
|
require 'gds_api/panopticon'
|
3
3
|
require 'gds_api/test_helpers/panopticon'
|
4
4
|
|
5
|
-
|
5
|
+
describe GdsApi::Panopticon do
|
6
6
|
include GdsApi::TestHelpers::Panopticon
|
7
7
|
|
8
|
-
|
8
|
+
let(:base_api_endpoint) { GdsApi::TestHelpers::Panopticon::PANOPTICON_ENDPOINT }
|
9
|
+
let(:api) { GdsApi::Panopticon.new(base_api_endpoint) }
|
10
|
+
|
11
|
+
let(:basic_artefact) {
|
9
12
|
{
|
10
13
|
name: 'An artefact',
|
11
14
|
slug: 'a-basic-artefact'
|
12
15
|
}
|
13
|
-
|
14
|
-
|
15
|
-
def artefact_with_contact
|
16
|
+
}
|
17
|
+
let(:artefact_with_contact) {
|
16
18
|
{
|
17
19
|
name: 'An artefact',
|
18
20
|
slug: 'an-artefact-with-contact',
|
@@ -21,9 +23,8 @@ class PanopticonApiTest < MiniTest::Unit::TestCase
|
|
21
23
|
email_address: 'helpline@defra.gsi.gov.uk'
|
22
24
|
}
|
23
25
|
}
|
24
|
-
|
25
|
-
|
26
|
-
def registerable_artefact
|
26
|
+
}
|
27
|
+
let(:registerable_artefact) {
|
27
28
|
{
|
28
29
|
slug: 'foo',
|
29
30
|
owning_app: 'my-app',
|
@@ -32,44 +33,40 @@ class PanopticonApiTest < MiniTest::Unit::TestCase
|
|
32
33
|
description: 'A custom foo of great customness.',
|
33
34
|
state: 'live'
|
34
35
|
}
|
35
|
-
|
36
|
-
|
37
|
-
def api
|
38
|
-
GdsApi::Panopticon.new(PANOPTICON_ENDPOINT)
|
39
|
-
end
|
36
|
+
}
|
40
37
|
|
41
|
-
|
38
|
+
it 'fetches an artefact given a slug' do
|
42
39
|
panopticon_has_metadata(basic_artefact)
|
43
40
|
|
44
41
|
artefact = api.artefact_for_slug(basic_artefact[:slug])
|
45
42
|
assert_equal 'An artefact', artefact.name
|
46
43
|
end
|
47
44
|
|
48
|
-
|
45
|
+
it 'fetches an artefact as a hash given a slug' do
|
49
46
|
panopticon_has_metadata(basic_artefact)
|
50
47
|
artefact = api.artefact_for_slug(basic_artefact[:slug], :as_hash => true)
|
51
48
|
assert_equal basic_artefact[:name], artefact['name']
|
52
49
|
end
|
53
50
|
|
54
|
-
|
55
|
-
url = "#{
|
51
|
+
it 'fetches and parses JSON into a hash' do
|
52
|
+
url = "#{base_api_endpoint}/some.json"
|
56
53
|
stub_request(:get, url).to_return(body: {a:1}.to_json)
|
57
|
-
|
54
|
+
|
58
55
|
assert_equal 1, api.get_json(url)['a']
|
59
56
|
end
|
60
57
|
|
61
|
-
|
62
|
-
url = "#{
|
58
|
+
it 'returns nil if the endpoint returns 404' do
|
59
|
+
url = "#{base_api_endpoint}/some.json"
|
63
60
|
stub_request(:get, url).to_return(status: Rack::Utils.status_code(:not_found))
|
64
61
|
|
65
62
|
assert_nil api.get_json(url)
|
66
63
|
end
|
67
64
|
|
68
|
-
|
69
|
-
assert_equal "#{
|
65
|
+
it 'constructs the correct URL for a slug' do
|
66
|
+
assert_equal "#{base_api_endpoint}/artefacts/slug.json", api.url_for_slug('slug')
|
70
67
|
end
|
71
68
|
|
72
|
-
|
69
|
+
it 'deserialises contacts into whole objects' do
|
73
70
|
panopticon_has_metadata(artefact_with_contact)
|
74
71
|
|
75
72
|
artefact = api.artefact_for_slug(artefact_with_contact[:slug])
|
@@ -77,8 +74,8 @@ class PanopticonApiTest < MiniTest::Unit::TestCase
|
|
77
74
|
assert_equal 'helpline@defra.gsi.gov.uk', artefact.contact.email_address
|
78
75
|
end
|
79
76
|
|
80
|
-
|
81
|
-
url = "#{
|
77
|
+
it 'creates a new artefact' do
|
78
|
+
url = "#{base_api_endpoint}/artefacts.json"
|
82
79
|
stub_request(:post, url)
|
83
80
|
.with(body: basic_artefact.to_json)
|
84
81
|
.to_return(body: basic_artefact.merge(id: 1).to_json)
|
@@ -86,8 +83,8 @@ class PanopticonApiTest < MiniTest::Unit::TestCase
|
|
86
83
|
api.create_artefact(basic_artefact)
|
87
84
|
end
|
88
85
|
|
89
|
-
|
90
|
-
url = "#{
|
86
|
+
it 'updates an existing artefact' do
|
87
|
+
url = "#{base_api_endpoint}/artefacts/1.json"
|
91
88
|
stub_request(:put, url)
|
92
89
|
.with(body: basic_artefact.to_json)
|
93
90
|
.to_return(status: 200, body: '{}')
|
@@ -95,8 +92,8 @@ class PanopticonApiTest < MiniTest::Unit::TestCase
|
|
95
92
|
api.update_artefact(1, basic_artefact)
|
96
93
|
end
|
97
94
|
|
98
|
-
|
99
|
-
url = "#{
|
95
|
+
it 'deletes an artefact' do
|
96
|
+
url = "#{base_api_endpoint}/artefacts/1.json"
|
100
97
|
stub_request(:delete, url)
|
101
98
|
.with(body: "")
|
102
99
|
.to_return(status: 200, body: '{}')
|
@@ -104,7 +101,7 @@ class PanopticonApiTest < MiniTest::Unit::TestCase
|
|
104
101
|
api.delete_artefact!(1)
|
105
102
|
end
|
106
103
|
|
107
|
-
|
104
|
+
it 'uses basic auth' do
|
108
105
|
credentials = {user: 'fred', password: 'secret'}
|
109
106
|
api = GdsApi::Panopticon.new('http://some.url', basic_auth: credentials)
|
110
107
|
url = "http://#{credentials[:user]}:#{credentials[:password]}@some.url/artefacts/1.json"
|
@@ -114,16 +111,16 @@ class PanopticonApiTest < MiniTest::Unit::TestCase
|
|
114
111
|
api.update_artefact(1, basic_artefact)
|
115
112
|
end
|
116
113
|
|
117
|
-
|
118
|
-
r = GdsApi::Panopticon::Registerer.new(endpoint_url:
|
114
|
+
it 'registers new artefacts en masse' do
|
115
|
+
r = GdsApi::Panopticon::Registerer.new(endpoint_url: base_api_endpoint, owning_app: 'my-app')
|
119
116
|
artefact = registerable_artefact()
|
120
117
|
panopticon_has_no_metadata_for('foo')
|
121
118
|
|
122
|
-
stub_request(:put, "#{
|
119
|
+
stub_request(:put, "#{base_api_endpoint}/artefacts/foo.json")
|
123
120
|
.with(body: artefact.to_json)
|
124
121
|
.to_return(body: artefact.merge(id: 1).to_json)
|
125
122
|
|
126
|
-
url = "#{
|
123
|
+
url = "#{base_api_endpoint}/artefacts.json"
|
127
124
|
stub_request(:post, url)
|
128
125
|
.with(body: artefact.to_json)
|
129
126
|
.to_return(body: artefact.merge(id: 1).to_json)
|
@@ -132,12 +129,12 @@ class PanopticonApiTest < MiniTest::Unit::TestCase
|
|
132
129
|
r.register(record)
|
133
130
|
end
|
134
131
|
|
135
|
-
|
132
|
+
it 'registers existing artefacts en masse' do
|
136
133
|
artefact = registerable_artefact()
|
137
|
-
r = GdsApi::Panopticon::Registerer.new(endpoint_url:
|
134
|
+
r = GdsApi::Panopticon::Registerer.new(endpoint_url: base_api_endpoint, owning_app: 'my-app')
|
138
135
|
|
139
136
|
panopticon_has_metadata(artefact)
|
140
|
-
url = "#{
|
137
|
+
url = "#{base_api_endpoint}/artefacts/foo.json"
|
141
138
|
stub_request(:put, url)
|
142
139
|
.with(body: artefact.to_json)
|
143
140
|
.to_return(status: 200, body: '{}')
|
@@ -145,4 +142,41 @@ class PanopticonApiTest < MiniTest::Unit::TestCase
|
|
145
142
|
record = OpenStruct.new(artefact.merge(title: artefact[:name]))
|
146
143
|
r.register(record)
|
147
144
|
end
|
145
|
+
|
146
|
+
describe 'tags' do
|
147
|
+
let(:tag) {
|
148
|
+
{ tag_type: 'section', tag_id: 'housing', title: 'Housing', description: 'Housing', parent_id: nil }
|
149
|
+
}
|
150
|
+
|
151
|
+
it 'creates a tag' do
|
152
|
+
url = "#{base_api_endpoint}/tags.json"
|
153
|
+
req = stub_request(:post, url)
|
154
|
+
.with(body: tag.to_json)
|
155
|
+
.to_return(status: 201, body: tag.to_json)
|
156
|
+
|
157
|
+
api.create_tag(tag)
|
158
|
+
assert_requested(req)
|
159
|
+
end
|
160
|
+
|
161
|
+
it 'updates a tag' do
|
162
|
+
url = "#{base_api_endpoint}/tags/section/citizenship/passports.json"
|
163
|
+
fields_to_update = { title: 'Passports' }
|
164
|
+
|
165
|
+
req = stub_request(:put, url)
|
166
|
+
.with(body: fields_to_update.to_json)
|
167
|
+
.to_return(status: 200)
|
168
|
+
|
169
|
+
api.put_tag('section', 'citizenship/passports', fields_to_update)
|
170
|
+
assert_requested(req)
|
171
|
+
end
|
172
|
+
|
173
|
+
it 'publishes a tag' do
|
174
|
+
url = "#{base_api_endpoint}/tags/section/citizenship/passports/publish.json"
|
175
|
+
req = stub_request(:post, url).with(body: {}.to_json)
|
176
|
+
.to_return(status: 200)
|
177
|
+
|
178
|
+
api.publish_tag('section', 'citizenship/passports')
|
179
|
+
assert_requested(req)
|
180
|
+
end
|
181
|
+
end
|
148
182
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'gds_api/panopticon'
|
3
|
+
require 'gds_api/test_helpers/panopticon'
|
4
|
+
|
5
|
+
describe GdsApi::TestHelpers::Panopticon do
|
6
|
+
include GdsApi::TestHelpers::Panopticon
|
7
|
+
|
8
|
+
def assert_stub_exists(*args)
|
9
|
+
expected_signature = WebMock::RequestSignature.new(*args)
|
10
|
+
|
11
|
+
assert(
|
12
|
+
WebMock::StubRegistry.instance.registered_request?(expected_signature),
|
13
|
+
"Stub is not registered:\n\t#{expected_signature.to_s}"
|
14
|
+
)
|
15
|
+
end
|
16
|
+
|
17
|
+
let(:base_api_endpoint) { GdsApi::TestHelpers::Panopticon::PANOPTICON_ENDPOINT }
|
18
|
+
|
19
|
+
it 'stubs the tag creation request' do
|
20
|
+
atts = { tag_id: 'foo' }
|
21
|
+
stub_panopticon_tag_creation(atts)
|
22
|
+
|
23
|
+
assert_stub_exists(:post, "#{base_api_endpoint}/tags.json", body: atts.to_json)
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'stubs the tag update request' do
|
27
|
+
atts = { title: 'Foo' }
|
28
|
+
stub_panopticon_tag_update('section', 'foo/bar', atts)
|
29
|
+
|
30
|
+
assert_stub_exists(:put,
|
31
|
+
"#{base_api_endpoint}/tags/section/foo/bar.json",
|
32
|
+
body: atts.to_json
|
33
|
+
)
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'stubs the tag publish request' do
|
37
|
+
stub_panopticon_tag_publish('section', 'foo/bar')
|
38
|
+
|
39
|
+
assert_stub_exists(:post,
|
40
|
+
"#{base_api_endpoint}/tags/section/foo/bar/publish.json",
|
41
|
+
body: {}.to_json
|
42
|
+
)
|
43
|
+
end
|
44
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gds-api-adapters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.
|
4
|
+
version: 14.11.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-10-
|
12
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: plek
|
16
|
-
requirement: &
|
16
|
+
requirement: &12741120 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *12741120
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: null_logger
|
27
|
-
requirement: &
|
27
|
+
requirement: &12740260 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *12740260
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: link_header
|
38
|
-
requirement: &
|
38
|
+
requirement: &12739520 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *12739520
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: lrucache
|
49
|
-
requirement: &
|
49
|
+
requirement: &12738700 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.1.1
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *12738700
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rest-client
|
60
|
-
requirement: &
|
60
|
+
requirement: &12754080 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.6.3
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *12754080
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rack-cache
|
71
|
-
requirement: &
|
71
|
+
requirement: &12753400 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *12753400
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rdoc
|
82
|
-
requirement: &
|
82
|
+
requirement: &12752600 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - =
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '3.12'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *12752600
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rake
|
93
|
-
requirement: &
|
93
|
+
requirement: &12751560 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 0.9.2.2
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *12751560
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: webmock
|
104
|
-
requirement: &
|
104
|
+
requirement: &12750880 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '1.19'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *12750880
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: mocha
|
115
|
-
requirement: &
|
115
|
+
requirement: &12750080 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: 0.12.4
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *12750080
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: minitest
|
126
|
-
requirement: &
|
126
|
+
requirement: &12749120 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ~>
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: 3.4.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *12749120
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: rack
|
137
|
-
requirement: &
|
137
|
+
requirement: &12748360 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: '0'
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *12748360
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: rack-test
|
148
|
-
requirement: &
|
148
|
+
requirement: &12747380 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: '0'
|
154
154
|
type: :development
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *12747380
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: simplecov
|
159
|
-
requirement: &
|
159
|
+
requirement: &12762600 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ~>
|
@@ -164,10 +164,10 @@ dependencies:
|
|
164
164
|
version: 0.5.4
|
165
165
|
type: :development
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
167
|
+
version_requirements: *12762600
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: simplecov-rcov
|
170
|
-
requirement: &
|
170
|
+
requirement: &12761140 !ruby/object:Gem::Requirement
|
171
171
|
none: false
|
172
172
|
requirements:
|
173
173
|
- - ! '>='
|
@@ -175,10 +175,10 @@ dependencies:
|
|
175
175
|
version: '0'
|
176
176
|
type: :development
|
177
177
|
prerelease: false
|
178
|
-
version_requirements: *
|
178
|
+
version_requirements: *12761140
|
179
179
|
- !ruby/object:Gem::Dependency
|
180
180
|
name: gem_publisher
|
181
|
-
requirement: &
|
181
|
+
requirement: &12760160 !ruby/object:Gem::Requirement
|
182
182
|
none: false
|
183
183
|
requirements:
|
184
184
|
- - ~>
|
@@ -186,10 +186,10 @@ dependencies:
|
|
186
186
|
version: 1.1.1
|
187
187
|
type: :development
|
188
188
|
prerelease: false
|
189
|
-
version_requirements: *
|
189
|
+
version_requirements: *12760160
|
190
190
|
- !ruby/object:Gem::Dependency
|
191
191
|
name: timecop
|
192
|
-
requirement: &
|
192
|
+
requirement: &12758120 !ruby/object:Gem::Requirement
|
193
193
|
none: false
|
194
194
|
requirements:
|
195
195
|
- - ~>
|
@@ -197,10 +197,10 @@ dependencies:
|
|
197
197
|
version: 0.5.1
|
198
198
|
type: :development
|
199
199
|
prerelease: false
|
200
|
-
version_requirements: *
|
200
|
+
version_requirements: *12758120
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
202
|
name: pry
|
203
|
-
requirement: &
|
203
|
+
requirement: &12756420 !ruby/object:Gem::Requirement
|
204
204
|
none: false
|
205
205
|
requirements:
|
206
206
|
- - ! '>='
|
@@ -208,7 +208,7 @@ dependencies:
|
|
208
208
|
version: '0'
|
209
209
|
type: :development
|
210
210
|
prerelease: false
|
211
|
-
version_requirements: *
|
211
|
+
version_requirements: *12756420
|
212
212
|
description: A set of adapters providing easy access to the GDS GOV.UK APIs
|
213
213
|
email:
|
214
214
|
- jystewart@gmail.com
|
@@ -298,12 +298,13 @@ files:
|
|
298
298
|
- test/rummager_helpers_test.rb
|
299
299
|
- test/support_test.rb
|
300
300
|
- test/fact_cave_test.rb
|
301
|
+
- test/test_helpers/panopticon_test.rb
|
301
302
|
- test/finder_api_test.rb
|
302
303
|
- test/licence_application_api_test.rb
|
303
304
|
- test/gov_uk_delivery_test.rb
|
304
|
-
- test/panopticon_api_test.rb
|
305
305
|
- test/maslow_test.rb
|
306
306
|
- test/panopticon_registerer_test.rb
|
307
|
+
- test/panopticon_test.rb
|
307
308
|
- test/middleware/govuk_request_id_sniffer_test.rb
|
308
309
|
- test/rummager_test.rb
|
309
310
|
- test/json_client_test.rb
|
@@ -342,7 +343,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
342
343
|
version: '0'
|
343
344
|
segments:
|
344
345
|
- 0
|
345
|
-
hash:
|
346
|
+
hash: -3839776880550840993
|
346
347
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
347
348
|
none: false
|
348
349
|
requirements:
|
@@ -351,7 +352,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
351
352
|
version: '0'
|
352
353
|
segments:
|
353
354
|
- 0
|
354
|
-
hash:
|
355
|
+
hash: -3839776880550840993
|
355
356
|
requirements: []
|
356
357
|
rubyforge_project:
|
357
358
|
rubygems_version: 1.8.11
|
@@ -369,12 +370,13 @@ test_files:
|
|
369
370
|
- test/rummager_helpers_test.rb
|
370
371
|
- test/support_test.rb
|
371
372
|
- test/fact_cave_test.rb
|
373
|
+
- test/test_helpers/panopticon_test.rb
|
372
374
|
- test/finder_api_test.rb
|
373
375
|
- test/licence_application_api_test.rb
|
374
376
|
- test/gov_uk_delivery_test.rb
|
375
|
-
- test/panopticon_api_test.rb
|
376
377
|
- test/maslow_test.rb
|
377
378
|
- test/panopticon_registerer_test.rb
|
379
|
+
- test/panopticon_test.rb
|
378
380
|
- test/middleware/govuk_request_id_sniffer_test.rb
|
379
381
|
- test/rummager_test.rb
|
380
382
|
- test/json_client_test.rb
|