gds-api-adapters 0.0.39 → 0.0.40
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gds_api/json_client.rb +1 -1
- data/lib/gds_api/test_helpers/contactotron.rb +2 -0
- data/lib/gds_api/test_helpers/imminence.rb +2 -0
- data/lib/gds_api/test_helpers/json_client_helper.rb +16 -0
- data/lib/gds_api/test_helpers/panopticon.rb +1 -1
- data/lib/gds_api/test_helpers/publisher.rb +1 -1
- data/lib/gds_api/version.rb +1 -1
- data/test/json_client_test.rb +7 -1
- data/test/panopticon_api_test.rb +0 -9
- data/test/publisher_api_test.rb +0 -9
- metadata +22 -21
data/lib/gds_api/json_client.rb
CHANGED
data/lib/gds_api/version.rb
CHANGED
data/test/json_client_test.rb
CHANGED
@@ -5,7 +5,13 @@ require 'base64'
|
|
5
5
|
|
6
6
|
class JsonClientTest < MiniTest::Spec
|
7
7
|
def setup
|
8
|
-
@
|
8
|
+
@json_client_cache = GdsApi::JsonClient.cache
|
9
|
+
GdsApi::JsonClient.cache = {}
|
10
|
+
@client = GdsApi::JsonClient.new
|
11
|
+
end
|
12
|
+
|
13
|
+
def teardown
|
14
|
+
GdsApi::JsonClient.cache = @json_client_cache
|
9
15
|
end
|
10
16
|
|
11
17
|
def options;
|
data/test/panopticon_api_test.rb
CHANGED
@@ -27,15 +27,6 @@ class PanopticonApiTest < MiniTest::Unit::TestCase
|
|
27
27
|
GdsApi::Panopticon.new('test')
|
28
28
|
end
|
29
29
|
|
30
|
-
def setup
|
31
|
-
@json_client_cache = GdsApi::JsonClient.cache
|
32
|
-
GdsApi::JsonClient.cache = {}
|
33
|
-
end
|
34
|
-
|
35
|
-
def teardown
|
36
|
-
GdsApi::JsonClient.cache = @json_client_cache
|
37
|
-
end
|
38
|
-
|
39
30
|
def test_given_a_slug__should_fetch_artefact_from_panopticon
|
40
31
|
panopticon_has_metadata(basic_artefact)
|
41
32
|
|
data/test/publisher_api_test.rb
CHANGED
@@ -54,15 +54,6 @@ class GdsApi::PublisherTest < MiniTest::Unit::TestCase
|
|
54
54
|
GdsApi::Publisher.new("test")
|
55
55
|
end
|
56
56
|
|
57
|
-
def setup
|
58
|
-
@json_client_cache = GdsApi::JsonClient.cache
|
59
|
-
GdsApi::JsonClient.cache = {}
|
60
|
-
end
|
61
|
-
|
62
|
-
def teardown
|
63
|
-
GdsApi::JsonClient.cache = @json_client_cache
|
64
|
-
end
|
65
|
-
|
66
57
|
def test_given_a_slug_should_go_get_resource_from_publisher_app
|
67
58
|
publication_exists(basic_answer)
|
68
59
|
pub = api.publication_for_slug(basic_answer['slug'])
|
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: 0.0.
|
4
|
+
version: 0.0.40
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-01-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: plek
|
16
|
-
requirement: &
|
16
|
+
requirement: &27792140 !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: *27792140
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: null_logger
|
27
|
-
requirement: &
|
27
|
+
requirement: &27791720 !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: *27791720
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: lrucache
|
38
|
-
requirement: &
|
38
|
+
requirement: &27791220 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.1.1
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *27791220
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
|
-
requirement: &
|
49
|
+
requirement: &27790720 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.9.2.2
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *27790720
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: webmock
|
60
|
-
requirement: &
|
60
|
+
requirement: &27790260 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '1.7'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *27790260
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mocha
|
71
|
-
requirement: &
|
71
|
+
requirement: &27789800 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 0.10.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *27789800
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: minitest
|
82
|
-
requirement: &
|
82
|
+
requirement: &27789340 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 2.10.0
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *27789340
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rack
|
93
|
-
requirement: &
|
93
|
+
requirement: &27788960 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *27788960
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: simplecov
|
104
|
-
requirement: &
|
104
|
+
requirement: &27788420 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 0.5.4
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *27788420
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: simplecov-rcov
|
115
|
-
requirement: &
|
115
|
+
requirement: &27788000 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,7 +120,7 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *27788000
|
124
124
|
description: A set of adapters providing easy access to the GDS gov.uk APIs
|
125
125
|
email:
|
126
126
|
- jystewart@gmail.com
|
@@ -136,6 +136,7 @@ files:
|
|
136
136
|
- lib/gds_api/test_helpers/imminence.rb
|
137
137
|
- lib/gds_api/test_helpers/contactotron.rb
|
138
138
|
- lib/gds_api/test_helpers/panopticon.rb
|
139
|
+
- lib/gds_api/test_helpers/json_client_helper.rb
|
139
140
|
- lib/gds_api/test_helpers/publisher.rb
|
140
141
|
- lib/gds_api/imminence.rb
|
141
142
|
- lib/gds_api/needotron.rb
|