gds-api-adapters 0.0.35 → 0.0.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,8 +13,10 @@ module GdsApi
13
13
 
14
14
  def record_to_artefact(record)
15
15
  hash = {slug: record.slug, owning_app: owning_app, kind: kind, name: record.title}
16
- if record.respond_to? :need_id
17
- hash[:need_id] = record.need_id
16
+ [:need_id, :section].each do |attr_name|
17
+ if record.respond_to? attr_name
18
+ hash[attr_name] = record.send(attr_name)
19
+ end
18
20
  end
19
21
  hash
20
22
  end
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '0.0.35'
2
+ VERSION = '0.0.36'
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.35
5
+ version: 0.0.36
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Stewart
@@ -161,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
161
  requirements:
162
162
  - - ">="
163
163
  - !ruby/object:Gem::Version
164
- hash: -2949916119040228467
164
+ hash: 4150429579943977469
165
165
  segments:
166
166
  - 0
167
167
  version: "0"
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
172
172
  - !ruby/object:Gem::Version
173
- hash: -2949916119040228467
173
+ hash: 4150429579943977469
174
174
  segments:
175
175
  - 0
176
176
  version: "0"