gds-api-adapters 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ class GdsApi::ContentApi < GdsApi::Base
9
9
  end
10
10
 
11
11
  def with_tag(tag)
12
- get_json!("#{base_url}/with_tag.json?tag=#{tag}")
12
+ get_json!("#{base_url}/with_tag.json?tag=#{tag}&include_children=1")
13
13
  end
14
14
 
15
15
  private
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '1.7.0'
2
+ VERSION = '1.7.1'
3
3
  end
@@ -18,7 +18,7 @@ class ContentApiTest < MiniTest::Unit::TestCase
18
18
 
19
19
  def test_with_tag
20
20
  tag = "crime-and-justice"
21
- api_url = "https://contentapi.test.alphagov.co.uk/with_tag.json?tag=#{tag}"
21
+ api_url = "https://contentapi.test.alphagov.co.uk/with_tag.json?tag=#{tag}&include_children=1"
22
22
  json = {
23
23
  results: [{title: "Complain about a claims company"}]
24
24
  }.to_json
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.7.0
5
+ version: 1.7.1
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-09-06 00:00:00 Z
13
+ date: 2012-09-10 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: plek
@@ -154,42 +154,42 @@ extensions: []
154
154
  extra_rdoc_files: []
155
155
 
156
156
  files:
157
- - lib/gds_api/version.rb
158
- - lib/gds_api/publisher.rb
159
- - lib/gds_api/panopticon/registerer.rb
160
- - lib/gds_api/typhoeus_client.rb
161
157
  - lib/gds_api/content_api.rb
162
- - lib/gds_api/imminence.rb
163
- - lib/gds_api/contactotron.rb
164
- - lib/gds_api/test_helpers/publisher.rb
158
+ - lib/gds_api/licence_application.rb
165
159
  - lib/gds_api/test_helpers/content_api.rb
166
- - lib/gds_api/test_helpers/imminence.rb
167
160
  - lib/gds_api/test_helpers/contactotron.rb
168
- - lib/gds_api/test_helpers/panopticon.rb
169
161
  - lib/gds_api/test_helpers/json_client_helper.rb
170
- - lib/gds_api/licence_application.rb
171
- - lib/gds_api/base.rb
172
- - lib/gds_api/json_client.rb
173
- - lib/gds_api/response.rb
174
- - lib/gds_api/panopticon.rb
175
- - lib/gds_api/core-ext/openstruct.rb
176
- - lib/gds_api/oauth2_client.rb
162
+ - lib/gds_api/test_helpers/publisher.rb
163
+ - lib/gds_api/test_helpers/panopticon.rb
164
+ - lib/gds_api/test_helpers/imminence.rb
177
165
  - lib/gds_api/part_methods.rb
178
166
  - lib/gds_api/needotron.rb
167
+ - lib/gds_api/typhoeus_client.rb
168
+ - lib/gds_api/json_client.rb
169
+ - lib/gds_api/contactotron.rb
170
+ - lib/gds_api/oauth2_client.rb
171
+ - lib/gds_api/response.rb
172
+ - lib/gds_api/panopticon/registerer.rb
173
+ - lib/gds_api/publisher.rb
179
174
  - lib/gds_api/exceptions.rb
175
+ - lib/gds_api/version.rb
180
176
  - lib/gds_api/helpers.rb
177
+ - lib/gds_api/base.rb
178
+ - lib/gds_api/panopticon.rb
179
+ - lib/gds_api/core-ext/openstruct.rb
180
+ - lib/gds_api/imminence.rb
181
181
  - README.md
182
182
  - Rakefile
183
+ - test/imminence_api_test.rb
183
184
  - test/contactotron_api_test.rb
184
- - test/panopticon_api_test.rb
185
+ - test/licence_application_api_test.rb
186
+ - test/json_client_test.rb
185
187
  - test/publisher_api_test.rb
186
- - test/imminence_api_test.rb
187
188
  - test/panopticon_registerer_test.rb
188
- - test/content_api_test.rb
189
- - test/json_client_test.rb
190
- - test/gds_api_base_test.rb
191
- - test/licence_application_api_test.rb
189
+ - test/panopticon_api_test.rb
192
190
  - test/test_helper.rb
191
+ - test/gds_api_base_test.rb
192
+ - test/content_api_test.rb
193
193
  homepage: http://github.com/alphagov/gds-api-adapters
194
194
  licenses: []
195
195
 
@@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
203
  requirements:
204
204
  - - ">="
205
205
  - !ruby/object:Gem::Version
206
- hash: -2941031205011421741
206
+ hash: -3691164780019311001
207
207
  segments:
208
208
  - 0
209
209
  version: "0"
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - ">="
214
214
  - !ruby/object:Gem::Version
215
- hash: -2941031205011421741
215
+ hash: -3691164780019311001
216
216
  segments:
217
217
  - 0
218
218
  version: "0"
@@ -224,13 +224,13 @@ signing_key:
224
224
  specification_version: 3
225
225
  summary: Adapters to work with GDS APIs
226
226
  test_files:
227
+ - test/imminence_api_test.rb
227
228
  - test/contactotron_api_test.rb
228
- - test/panopticon_api_test.rb
229
+ - test/licence_application_api_test.rb
230
+ - test/json_client_test.rb
229
231
  - test/publisher_api_test.rb
230
- - test/imminence_api_test.rb
231
232
  - test/panopticon_registerer_test.rb
232
- - test/content_api_test.rb
233
- - test/json_client_test.rb
234
- - test/gds_api_base_test.rb
235
- - test/licence_application_api_test.rb
233
+ - test/panopticon_api_test.rb
236
234
  - test/test_helper.rb
235
+ - test/gds_api_base_test.rb
236
+ - test/content_api_test.rb