hdo-storting-importer 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ module Hdo
23
23
  hash['description'],
24
24
  hash['onBehalfOf'],
25
25
  hash['body'],
26
- Representative.from_hash(hash['deliveredBy'] || {})
26
+ hash['deliveredBy'] && Representative.from_hash(hash['deliveredBy']),
27
27
  ]
28
28
 
29
29
  new(*arr)
@@ -57,8 +57,13 @@
57
57
  },
58
58
  "representatives": {
59
59
  "type": "array",
60
- "description": "An element with each representative's vote. The object should contain a set of <a href='#input-format-representative'>&lt;representative&gt;</a> objects with the property 'voteResult', for which valid values are 'for', 'against', 'absent'.",
60
+ "description": "An array of each representative's vote. The object should contain a set of <a href='#input-format-representative'>&lt;representative&gt;</a> objects with the property 'voteResult', for which valid values are 'for', 'against', 'absent'.",
61
61
  "items": { "$ref": "hdo#representative" }
62
+ },
63
+ "propositions": {
64
+ "type": "array",
65
+ "description": "An array with the propositions voted over.",
66
+ "items": { "$ref": "hdo#proposition" }
62
67
  }
63
68
  }
64
69
  }
@@ -1,5 +1,5 @@
1
1
  module Hdo
2
2
  module StortingImporter
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hdo-storting-importer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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: 2012-08-08 00:00:00.000000000 Z
12
+ date: 2012-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder