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.
- data/lib/gds_api/panopticon/registerer.rb +4 -2
- data/lib/gds_api/version.rb +1 -1
- metadata +3 -3
@@ -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
|
-
|
17
|
-
|
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
|
data/lib/gds_api/version.rb
CHANGED
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.
|
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:
|
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:
|
173
|
+
hash: 4150429579943977469
|
174
174
|
segments:
|
175
175
|
- 0
|
176
176
|
version: "0"
|