gds-api-adapters 0.0.50 → 0.0.51

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,6 +31,13 @@ module GdsApi
31
31
  stub_request(:get, url).to_return(:status => 404, :body => "", :headers => {})
32
32
  end
33
33
 
34
+ def stub_panopticon_default_artefact
35
+ stub_request(:get, %r{\A#{PANOPTICON_ENDPOINT}/artefacts}).to_return { |request|
36
+ # return a response with only a slug, and set that slug to match the requested artefact slug
37
+ {:body => JSON.dump("slug" => request.uri.path.split('/').last.chomp('.json'))}
38
+ }
39
+ end
40
+
34
41
  end
35
42
  end
36
43
  end
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '0.0.50'
2
+ VERSION = '0.0.51'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.50
5
+ version: 0.0.51
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Stewart
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-06-22 00:00:00 Z
13
+ date: 2012-07-11 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: plek
@@ -143,35 +143,35 @@ extensions: []
143
143
  extra_rdoc_files: []
144
144
 
145
145
  files:
146
- - lib/gds_api/helpers.rb
147
146
  - lib/gds_api/base.rb
148
- - lib/gds_api/part_methods.rb
147
+ - lib/gds_api/contactotron.rb
148
+ - lib/gds_api/core-ext/openstruct.rb
149
149
  - lib/gds_api/exceptions.rb
150
- - lib/gds_api/typhoeus_client.rb
150
+ - lib/gds_api/helpers.rb
151
151
  - lib/gds_api/imminence.rb
152
- - lib/gds_api/publisher.rb
153
- - lib/gds_api/contactotron.rb
154
- - lib/gds_api/panopticon.rb
155
- - lib/gds_api/version.rb
152
+ - lib/gds_api/json_client.rb
153
+ - lib/gds_api/needotron.rb
156
154
  - lib/gds_api/oauth2_client.rb
157
- - lib/gds_api/test_helpers/imminence.rb
158
- - lib/gds_api/test_helpers/publisher.rb
155
+ - lib/gds_api/panopticon/registerer.rb
156
+ - lib/gds_api/panopticon.rb
157
+ - lib/gds_api/part_methods.rb
158
+ - lib/gds_api/publisher.rb
159
+ - lib/gds_api/response.rb
159
160
  - lib/gds_api/test_helpers/contactotron.rb
160
- - lib/gds_api/test_helpers/panopticon.rb
161
+ - lib/gds_api/test_helpers/imminence.rb
161
162
  - lib/gds_api/test_helpers/json_client_helper.rb
162
- - lib/gds_api/response.rb
163
- - lib/gds_api/panopticon/registerer.rb
164
- - lib/gds_api/needotron.rb
165
- - lib/gds_api/json_client.rb
166
- - lib/gds_api/core-ext/openstruct.rb
163
+ - lib/gds_api/test_helpers/panopticon.rb
164
+ - lib/gds_api/test_helpers/publisher.rb
165
+ - lib/gds_api/typhoeus_client.rb
166
+ - lib/gds_api/version.rb
167
167
  - README.md
168
168
  - Rakefile
169
+ - test/contactotron_api_test.rb
169
170
  - test/gds_api_base_test.rb
170
171
  - test/json_client_test.rb
171
- - test/test_helper.rb
172
- - test/publisher_api_test.rb
173
172
  - test/panopticon_api_test.rb
174
- - test/contactotron_api_test.rb
173
+ - test/publisher_api_test.rb
174
+ - test/test_helper.rb
175
175
  homepage: http://github.com/alphagov/gds-api-adapters
176
176
  licenses: []
177
177
 
@@ -185,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - ">="
187
187
  - !ruby/object:Gem::Version
188
- hash: 2100847049130283593
188
+ hash: -2977258264852193962
189
189
  segments:
190
190
  - 0
191
191
  version: "0"
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  requirements:
195
195
  - - ">="
196
196
  - !ruby/object:Gem::Version
197
- hash: 2100847049130283593
197
+ hash: -2977258264852193962
198
198
  segments:
199
199
  - 0
200
200
  version: "0"
@@ -206,9 +206,9 @@ signing_key:
206
206
  specification_version: 3
207
207
  summary: Adapters to work with GDS APIs
208
208
  test_files:
209
+ - test/contactotron_api_test.rb
209
210
  - test/gds_api_base_test.rb
210
211
  - test/json_client_test.rb
211
- - test/test_helper.rb
212
- - test/publisher_api_test.rb
213
212
  - test/panopticon_api_test.rb
214
- - test/contactotron_api_test.rb
213
+ - test/publisher_api_test.rb
214
+ - test/test_helper.rb