turbot-runner 0.2.31 → 0.2.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +3 -3
  3. data/bin/bundle +105 -0
  4. data/bin/rspec +29 -0
  5. data/lib/turbot_runner/runner.rb +5 -7
  6. data/lib/turbot_runner/version.rb +1 -1
  7. data/schema/schemas/accounts-statement-schema.json +48 -29
  8. data/schema/schemas/alternate-registration-schema.json +88 -0
  9. data/schema/schemas/alternative-name-schema.json +83 -0
  10. data/schema/schemas/company-schema.json +22 -6
  11. data/schema/schemas/control-statement-schema.json +46 -8
  12. data/schema/schemas/filing-schema.json +3 -4
  13. data/schema/schemas/financial-payment-schema.json +1 -1
  14. data/schema/schemas/gazette-notice-schema.json +337 -312
  15. data/schema/schemas/includes/{accounts_element.json → accounts-element.json} +1 -1
  16. data/schema/schemas/includes/address.json +2 -3
  17. data/schema/schemas/includes/{alternative_name.json → alternative-name.json} +1 -1
  18. data/schema/schemas/includes/base-statement.json +5 -2
  19. data/schema/schemas/includes/company-for-nesting.json +3 -3
  20. data/schema/schemas/includes/company.json +1 -1
  21. data/schema/schemas/includes/date.json +17 -4
  22. data/schema/schemas/includes/entity.json +2 -2
  23. data/schema/schemas/includes/{filing_document.json → filing-document.json} +12 -3
  24. data/schema/schemas/includes/filing.json +1 -1
  25. data/schema/schemas/includes/financial-payment-data-object.json +1 -1
  26. data/schema/schemas/includes/identifier.json +1 -1
  27. data/schema/schemas/includes/{industry_code.json → industry-code.json} +1 -1
  28. data/schema/schemas/includes/legislation.json +1 -1
  29. data/schema/schemas/includes/licence-data-object.json +1 -1
  30. data/schema/schemas/includes/officer.json +1 -1
  31. data/schema/schemas/includes/organisation.json +8 -5
  32. data/schema/schemas/includes/permission.json +1 -1
  33. data/schema/schemas/includes/{person_name.json → person-name.json} +1 -1
  34. data/schema/schemas/includes/person.json +9 -7
  35. data/schema/schemas/includes/{previous_name.json → previous-name.json} +1 -1
  36. data/schema/schemas/includes/range.json +1 -1
  37. data/schema/schemas/includes/sanction.json +5 -2
  38. data/schema/schemas/includes/share-parcel-data.json +1 -1
  39. data/schema/schemas/includes/share-parcel.json +17 -5
  40. data/schema/schemas/includes/subsidiary-relationship-data.json +1 -1
  41. data/schema/schemas/includes/total-shares.json +1 -1
  42. data/schema/schemas/includes/{unknown_entity_type.json → unknown-entity-type.json} +8 -5
  43. data/schema/schemas/licence-schema.json +1 -1
  44. data/schema/schemas/primary-data-schema.json +1 -1
  45. data/schema/schemas/register-entry-schema.json +4 -3
  46. data/schema/schemas/sanctioned-entity-schema.json +4 -5
  47. data/schema/schemas/share-parcel-schema.json +1 -1
  48. data/schema/schemas/simple-financial-payment-schema.json +1 -1
  49. data/schema/schemas/simple-licence-schema.json +1 -1
  50. data/schema/schemas/simple-subsidiary-schema.json +1 -1
  51. data/schema/schemas/subsequent-registration-schema.json +89 -0
  52. data/schema/schemas/subsidiary-relationship-schema.json +1 -1
  53. data/schema/schemas/supplier-relationship-schema.json +82 -0
  54. data/schema/schemas/trademark-registration-schema.json +3 -1
  55. data/spec/lib/runner_spec.rb +71 -39
  56. metadata +19 -11
@@ -43,8 +43,7 @@
43
43
  "required": [
44
44
  "postal_code"
45
45
  ]
46
- }
47
- ,
46
+ },
48
47
  {
49
48
  "required": [
50
49
  "locality",
@@ -54,4 +53,4 @@
54
53
  ]
55
54
  }
56
55
  ]
57
- }
56
+ }
@@ -35,4 +35,4 @@
35
35
  "company_name",
36
36
  "type"
37
37
  ]
38
- }
38
+ }
@@ -7,7 +7,7 @@
7
7
  "type": "string"
8
8
  },
9
9
  "company": {
10
- "$ref" : "company.json"
10
+ "$ref": "company.json"
11
11
  },
12
12
  "data": {
13
13
  "type": "array",
@@ -18,5 +18,8 @@
18
18
  "additionalItems": false
19
19
  }
20
20
  },
21
- "required": ["company", "data"]
21
+ "required": [
22
+ "company",
23
+ "data"
24
+ ]
22
25
  }
@@ -121,19 +121,19 @@
121
121
  "industry_codes": {
122
122
  "type": "array",
123
123
  "items": {
124
- "$ref": "industry_code.json"
124
+ "$ref": "industry-code.json"
125
125
  }
126
126
  },
127
127
  "previous_names": {
128
128
  "type": "array",
129
129
  "items": {
130
- "$ref": "previous_name.json"
130
+ "$ref": "previous-name.json"
131
131
  }
132
132
  },
133
133
  "alternative_names": {
134
134
  "type": "array",
135
135
  "items": {
136
- "$ref": "alternative_name.json"
136
+ "$ref": "alternative-name.json"
137
137
  }
138
138
  },
139
139
  "branch": {
@@ -22,4 +22,4 @@
22
22
  "name",
23
23
  "jurisdiction"
24
24
  ]
25
- }
25
+ }
@@ -12,13 +12,26 @@
12
12
  "description": "month part of date in numbers e.g. 11 for November, 4 for April"
13
13
  },
14
14
  "day": {
15
- "type": ["number","null"],
15
+ "type": [
16
+ "number",
17
+ "null"
18
+ ],
16
19
  "description": "day part of date in numbers"
17
20
  }
18
21
  },
19
22
  "additionalProperties": false,
20
23
  "anyOf": [
21
- {"required": ["year", "month"]},
22
- {"required": ["month", "day"]}
24
+ {
25
+ "required": [
26
+ "year",
27
+ "month"
28
+ ]
29
+ },
30
+ {
31
+ "required": [
32
+ "month",
33
+ "day"
34
+ ]
35
+ }
23
36
  ]
24
- }
37
+ }
@@ -50,9 +50,9 @@
50
50
  ]
51
51
  },
52
52
  "entity_properties": {
53
- "$ref": "unknown_entity_type.json"
53
+ "$ref": "unknown-entity-type.json"
54
54
  }
55
55
  }
56
56
  }
57
57
  ]
58
- }
58
+ }
@@ -9,7 +9,13 @@
9
9
  },
10
10
  "file_format": {
11
11
  "description": "Format of the document, if known",
12
- "enum": ["xml","pdf","html","doc", null]
12
+ "enum": [
13
+ "xml",
14
+ "pdf",
15
+ "html",
16
+ "doc",
17
+ null
18
+ ]
13
19
  },
14
20
  "original_source_url": {
15
21
  "description": "Persistent URL for the document, if there is one",
@@ -33,7 +39,10 @@
33
39
  "classification": {
34
40
  "description": "type of document (at the moment only XBRL is the only option here)",
35
41
  "type": "string",
36
- "enum": ["xbrl", null]
42
+ "enum": [
43
+ "xbrl",
44
+ null
45
+ ]
37
46
  },
38
47
  "pages": {
39
48
  "description": "Number of pages, if known",
@@ -53,4 +62,4 @@
53
62
  ]
54
63
  }
55
64
  ]
56
- }
65
+ }
@@ -49,4 +49,4 @@
49
49
  ]
50
50
  }
51
51
  ]
52
- }
52
+ }
@@ -110,4 +110,4 @@
110
110
  "source_url",
111
111
  "confidence"
112
112
  ]
113
- }
113
+ }
@@ -17,4 +17,4 @@
17
17
  "uid",
18
18
  "identifier_system_code"
19
19
  ]
20
- }
20
+ }
@@ -26,4 +26,4 @@
26
26
  "code",
27
27
  "code_scheme_id"
28
28
  ]
29
- }
29
+ }
@@ -24,4 +24,4 @@
24
24
  }
25
25
  }
26
26
  ]
27
- }
27
+ }
@@ -60,4 +60,4 @@
60
60
  "source_url",
61
61
  "confidence"
62
62
  ]
63
- }
63
+ }
@@ -70,4 +70,4 @@
70
70
  "required": [
71
71
  "name"
72
72
  ]
73
- }
73
+ }
@@ -44,7 +44,10 @@
44
44
  "minLength": 4
45
45
  },
46
46
  "identifiers": {
47
- "type": ["array", "null"],
47
+ "type": [
48
+ "array",
49
+ "null"
50
+ ],
48
51
  "items": {
49
52
  "$ref": "identifier.json"
50
53
  }
@@ -67,19 +70,19 @@
67
70
  "industry_codes": {
68
71
  "type": "array",
69
72
  "items": {
70
- "$ref": "industry_code.json"
73
+ "$ref": "industry-code.json"
71
74
  }
72
75
  },
73
76
  "previous_names": {
74
77
  "type": "array",
75
78
  "items": {
76
- "$ref": "previous_name.json"
79
+ "$ref": "previous-name.json"
77
80
  }
78
81
  },
79
82
  "alternative_names": {
80
83
  "type": "array",
81
84
  "items": {
82
- "$ref": "alternative_name.json"
85
+ "$ref": "alternative-name.json"
83
86
  }
84
87
  },
85
88
  "other_attributes": {
@@ -90,4 +93,4 @@
90
93
  "required": [
91
94
  "name"
92
95
  ]
93
- }
96
+ }
@@ -43,4 +43,4 @@
43
43
  ]
44
44
  }
45
45
  ]
46
- }
46
+ }
@@ -68,4 +68,4 @@
68
68
  }
69
69
  }
70
70
  ]
71
- }
71
+ }
@@ -5,7 +5,7 @@
5
5
  "additionalProperties": false,
6
6
  "properties": {
7
7
  "name": {
8
- "$ref": "person_name.json"
8
+ "$ref": "person-name.json"
9
9
  },
10
10
  "jurisdiction": {
11
11
  "type": "string",
@@ -55,7 +55,7 @@
55
55
  "minLength": 4
56
56
  },
57
57
  "registered_address": {
58
- "description":"address for service (or address given in the context of legal requirement)",
58
+ "description": "address for service (or address given in the context of legal requirement)",
59
59
  "$ref": "address.json"
60
60
  },
61
61
  "headquarters_address": {
@@ -73,13 +73,13 @@
73
73
  "industry_codes": {
74
74
  "type": "array",
75
75
  "items": {
76
- "$ref": "industry_code.json"
76
+ "$ref": "industry-code.json"
77
77
  }
78
78
  },
79
79
  "alternative_names": {
80
80
  "type": "array",
81
81
  "items": {
82
- "$ref": "alternative_name.json"
82
+ "$ref": "alternative-name.json"
83
83
  }
84
84
  },
85
85
  "date_of_birth": {
@@ -91,7 +91,6 @@
91
91
  {
92
92
  "$ref": "date.json"
93
93
  }
94
-
95
94
  ]
96
95
  },
97
96
  "nationality": {
@@ -105,7 +104,10 @@
105
104
  "format": "non-blank"
106
105
  },
107
106
  "identifiers": {
108
- "type": ["array", "null"],
107
+ "type": [
108
+ "array",
109
+ "null"
110
+ ],
109
111
  "items": {
110
112
  "$ref": "identifier.json"
111
113
  }
@@ -118,4 +120,4 @@
118
120
  "required": [
119
121
  "name"
120
122
  ]
121
- }
123
+ }
@@ -21,4 +21,4 @@
21
21
  "required": [
22
22
  "company_name"
23
23
  ]
24
- }
24
+ }
@@ -21,4 +21,4 @@
21
21
  }
22
22
  },
23
23
  "additionalProperties": false
24
- }
24
+ }
@@ -36,7 +36,10 @@
36
36
  }
37
37
  },
38
38
  "legal_basis": {
39
- "type": ["array","null"],
39
+ "type": [
40
+ "array",
41
+ "null"
42
+ ],
40
43
  "items": {
41
44
  "$ref": "legislation.json"
42
45
  }
@@ -74,4 +77,4 @@
74
77
  ]
75
78
  }
76
79
  ]
77
- }
80
+ }
@@ -79,4 +79,4 @@
79
79
  "data_type",
80
80
  "properties"
81
81
  ]
82
- }
82
+ }
@@ -15,13 +15,19 @@
15
15
  },
16
16
  "percentage_of_shares_min": {
17
17
  "description": "Minimum percentage of shares (if for example a band of percentage is given)",
18
- "type": ["number","null"],
18
+ "type": [
19
+ "number",
20
+ "null"
21
+ ],
19
22
  "maximum": 100,
20
23
  "minimum": 0
21
24
  },
22
25
  "percentage_of_shares_max": {
23
26
  "description": "Maximum percentage of shares (if for example a band of percentage is given)",
24
- "type": ["number","null"],
27
+ "type": [
28
+ "number",
29
+ "null"
30
+ ],
25
31
  "maximum": 100,
26
32
  "minimum": 0
27
33
  },
@@ -33,13 +39,19 @@
33
39
  },
34
40
  "voting_percentage_min": {
35
41
  "description": "Minimum percentage of votes (if for example a band of votes is given)",
36
- "type": ["number","null"],
42
+ "type": [
43
+ "number",
44
+ "null"
45
+ ],
37
46
  "maximum": 100,
38
47
  "minimum": 0
39
48
  },
40
49
  "voting_percentage_max": {
41
50
  "description": "Maximum percentage of votes (if for example a band of votes is given)",
42
- "type": ["number","null"],
51
+ "type": [
52
+ "number",
53
+ "null"
54
+ ],
43
55
  "maximum": 100,
44
56
  "minimum": 0
45
57
  },
@@ -106,4 +118,4 @@
106
118
  }
107
119
  }
108
120
  }
109
- }
121
+ }
@@ -55,4 +55,4 @@
55
55
  }
56
56
  }
57
57
  }
58
- }
58
+ }
@@ -14,4 +14,4 @@
14
14
  "required": [
15
15
  "number"
16
16
  ]
17
- }
17
+ }
@@ -59,7 +59,10 @@
59
59
  }
60
60
  },
61
61
  "identifiers": {
62
- "type": ["array", "null"],
62
+ "type": [
63
+ "array",
64
+ "null"
65
+ ],
63
66
  "items": {
64
67
  "$ref": "identifier.json"
65
68
  }
@@ -67,19 +70,19 @@
67
70
  "industry_codes": {
68
71
  "type": "array",
69
72
  "items": {
70
- "$ref": "industry_code.json"
73
+ "$ref": "industry-code.json"
71
74
  }
72
75
  },
73
76
  "previous_names": {
74
77
  "type": "array",
75
78
  "items": {
76
- "$ref": "previous_name.json"
79
+ "$ref": "previous-name.json"
77
80
  }
78
81
  },
79
82
  "alternative_names": {
80
83
  "type": "array",
81
84
  "items": {
82
- "$ref": "alternative_name.json"
85
+ "$ref": "alternative-name.json"
83
86
  }
84
87
  },
85
88
  "other_attributes": {
@@ -90,4 +93,4 @@
90
93
  "required": [
91
94
  "name"
92
95
  ]
93
- }
96
+ }