gds-api-adapters 10.6.4 → 10.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,14 +24,22 @@ module GdsApi
24
24
  description: record.description,
25
25
  state: record.state
26
26
  }
27
+
27
28
  if rendering_app
28
29
  hash[:rendering_app] = rendering_app
29
30
  end
30
- [:need_id, :section, :specialist_sectors, :indexable_content, :paths, :prefixes].each do |attr_name|
31
+
32
+ optional_params = [
33
+ :need_id, :section, :specialist_sectors, :organisation_ids,
34
+ :indexable_content, :paths, :prefixes
35
+ ]
36
+
37
+ optional_params.each do |attr_name|
31
38
  if record.respond_to? attr_name
32
- hash[attr_name] = record.send(attr_name)
39
+ hash[attr_name] = record.public_send(attr_name)
33
40
  end
34
41
  end
42
+
35
43
  hash
36
44
  end
37
45
 
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '10.6.4'
2
+ VERSION = '10.7.0'
3
3
  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: 10.6.4
4
+ version: 10.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-09 00:00:00.000000000 Z
12
+ date: 2014-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: plek
@@ -376,7 +376,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
376
376
  version: '0'
377
377
  segments:
378
378
  - 0
379
- hash: -4240733080959165707
379
+ hash: -4476224708678034802
380
380
  required_rubygems_version: !ruby/object:Gem::Requirement
381
381
  none: false
382
382
  requirements:
@@ -385,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
385
385
  version: '0'
386
386
  segments:
387
387
  - 0
388
- hash: -4240733080959165707
388
+ hash: -4476224708678034802
389
389
  requirements: []
390
390
  rubyforge_project:
391
391
  rubygems_version: 1.8.23