gds-api-adapters 10.6.4 → 10.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gds_api/panopticon/registerer.rb +10 -2
- data/lib/gds_api/version.rb +1 -1
- metadata +4 -4
@@ -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
|
-
|
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.
|
39
|
+
hash[attr_name] = record.public_send(attr_name)
|
33
40
|
end
|
34
41
|
end
|
42
|
+
|
35
43
|
hash
|
36
44
|
end
|
37
45
|
|
data/lib/gds_api/version.rb
CHANGED
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.
|
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-
|
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: -
|
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: -
|
388
|
+
hash: -4476224708678034802
|
389
389
|
requirements: []
|
390
390
|
rubyforge_project:
|
391
391
|
rubygems_version: 1.8.23
|