turbot-runner 0.2.30 → 0.2.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -3
- data/bin/bundle +105 -0
- data/bin/rspec +29 -0
- data/lib/turbot_runner.rb +1 -1
- data/lib/turbot_runner/runner.rb +5 -7
- data/lib/turbot_runner/version.rb +1 -1
- data/schema/schemas/accounts-statement-schema.json +48 -29
- data/schema/schemas/alternate-registration-schema.json +88 -0
- data/schema/schemas/alternative-name-schema.json +69 -0
- data/schema/schemas/company-schema.json +22 -6
- data/schema/schemas/control-statement-schema.json +46 -8
- data/schema/schemas/filing-schema.json +3 -4
- data/schema/schemas/financial-payment-schema.json +1 -1
- data/schema/schemas/gazette-notice-schema.json +337 -312
- data/schema/schemas/includes/{accounts_element.json → accounts-element.json} +1 -1
- data/schema/schemas/includes/address.json +2 -3
- data/schema/schemas/includes/{alternative_name.json → alternative-name.json} +1 -1
- data/schema/schemas/includes/base-statement.json +5 -2
- data/schema/schemas/includes/company-for-nesting.json +3 -3
- data/schema/schemas/includes/company.json +1 -1
- data/schema/schemas/includes/date.json +17 -4
- data/schema/schemas/includes/entity.json +2 -2
- data/schema/schemas/includes/{filing_document.json → filing-document.json} +12 -3
- data/schema/schemas/includes/filing.json +1 -1
- data/schema/schemas/includes/financial-payment-data-object.json +1 -1
- data/schema/schemas/includes/identifier.json +1 -1
- data/schema/schemas/includes/{industry_code.json → industry-code.json} +1 -1
- data/schema/schemas/includes/legislation.json +1 -1
- data/schema/schemas/includes/licence-data-object.json +1 -1
- data/schema/schemas/includes/officer.json +1 -1
- data/schema/schemas/includes/organisation.json +8 -5
- data/schema/schemas/includes/permission.json +1 -1
- data/schema/schemas/includes/{person_name.json → person-name.json} +1 -1
- data/schema/schemas/includes/person.json +9 -7
- data/schema/schemas/includes/{previous_name.json → previous-name.json} +1 -1
- data/schema/schemas/includes/range.json +1 -1
- data/schema/schemas/includes/sanction.json +5 -2
- data/schema/schemas/includes/share-parcel-data.json +1 -1
- data/schema/schemas/includes/share-parcel.json +17 -5
- data/schema/schemas/includes/subsidiary-relationship-data.json +1 -1
- data/schema/schemas/includes/total-shares.json +1 -1
- data/schema/schemas/includes/{unknown_entity_type.json → unknown-entity-type.json} +8 -5
- data/schema/schemas/licence-schema.json +1 -1
- data/schema/schemas/primary-data-schema.json +1 -1
- data/schema/schemas/register-entry-schema.json +4 -3
- data/schema/schemas/sanctioned-entity-schema.json +4 -5
- data/schema/schemas/share-parcel-schema.json +1 -1
- data/schema/schemas/simple-financial-payment-schema.json +1 -1
- data/schema/schemas/simple-licence-schema.json +1 -1
- data/schema/schemas/simple-subsidiary-schema.json +1 -1
- data/schema/schemas/subsequent-registration-schema.json +89 -0
- data/schema/schemas/subsidiary-relationship-schema.json +1 -1
- data/schema/schemas/supplier-relationship-schema.json +82 -0
- data/schema/schemas/trademark-registration-schema.json +3 -1
- data/spec/lib/runner_spec.rb +71 -39
- metadata +19 -11
@@ -7,7 +7,7 @@
|
|
7
7
|
"type": "string"
|
8
8
|
},
|
9
9
|
"company": {
|
10
|
-
"$ref"
|
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": [
|
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": "
|
124
|
+
"$ref": "industry-code.json"
|
125
125
|
}
|
126
126
|
},
|
127
127
|
"previous_names": {
|
128
128
|
"type": "array",
|
129
129
|
"items": {
|
130
|
-
"$ref": "
|
130
|
+
"$ref": "previous-name.json"
|
131
131
|
}
|
132
132
|
},
|
133
133
|
"alternative_names": {
|
134
134
|
"type": "array",
|
135
135
|
"items": {
|
136
|
-
"$ref": "
|
136
|
+
"$ref": "alternative-name.json"
|
137
137
|
}
|
138
138
|
},
|
139
139
|
"branch": {
|
@@ -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": [
|
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
|
-
{
|
22
|
-
|
24
|
+
{
|
25
|
+
"required": [
|
26
|
+
"year",
|
27
|
+
"month"
|
28
|
+
]
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"required": [
|
32
|
+
"month",
|
33
|
+
"day"
|
34
|
+
]
|
35
|
+
}
|
23
36
|
]
|
24
|
-
}
|
37
|
+
}
|
@@ -9,7 +9,13 @@
|
|
9
9
|
},
|
10
10
|
"file_format": {
|
11
11
|
"description": "Format of the document, if known",
|
12
|
-
"enum": [
|
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": [
|
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
|
+
}
|
@@ -44,7 +44,10 @@
|
|
44
44
|
"minLength": 4
|
45
45
|
},
|
46
46
|
"identifiers": {
|
47
|
-
"type": [
|
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": "
|
73
|
+
"$ref": "industry-code.json"
|
71
74
|
}
|
72
75
|
},
|
73
76
|
"previous_names": {
|
74
77
|
"type": "array",
|
75
78
|
"items": {
|
76
|
-
"$ref": "
|
79
|
+
"$ref": "previous-name.json"
|
77
80
|
}
|
78
81
|
},
|
79
82
|
"alternative_names": {
|
80
83
|
"type": "array",
|
81
84
|
"items": {
|
82
|
-
"$ref": "
|
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
|
+
}
|
@@ -5,7 +5,7 @@
|
|
5
5
|
"additionalProperties": false,
|
6
6
|
"properties": {
|
7
7
|
"name": {
|
8
|
-
"$ref": "
|
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": "
|
76
|
+
"$ref": "industry-code.json"
|
77
77
|
}
|
78
78
|
},
|
79
79
|
"alternative_names": {
|
80
80
|
"type": "array",
|
81
81
|
"items": {
|
82
|
-
"$ref": "
|
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": [
|
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
|
+
}
|
@@ -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": [
|
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": [
|
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": [
|
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": [
|
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
|
+
}
|
@@ -59,7 +59,10 @@
|
|
59
59
|
}
|
60
60
|
},
|
61
61
|
"identifiers": {
|
62
|
-
"type": [
|
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": "
|
73
|
+
"$ref": "industry-code.json"
|
71
74
|
}
|
72
75
|
},
|
73
76
|
"previous_names": {
|
74
77
|
"type": "array",
|
75
78
|
"items": {
|
76
|
-
"$ref": "
|
79
|
+
"$ref": "previous-name.json"
|
77
80
|
}
|
78
81
|
},
|
79
82
|
"alternative_names": {
|
80
83
|
"type": "array",
|
81
84
|
"items": {
|
82
|
-
"$ref": "
|
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
|
+
}
|