turbot 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/turbot/version.rb +1 -1
- data/schema/schemas/company-schema.json +69 -21
- data/schema/schemas/financial-payment-schema.json +9 -4
- data/schema/schemas/includes/address.json +36 -13
- data/schema/schemas/includes/alternative_name.json +32 -9
- data/schema/schemas/includes/company-for-nesting.json +229 -0
- data/schema/schemas/includes/company.json +15 -6
- data/schema/schemas/includes/filing.json +48 -16
- data/schema/schemas/includes/financial-payment-data-object.json +73 -21
- data/schema/schemas/includes/identifier.json +18 -0
- data/schema/schemas/includes/industry_code.json +25 -12
- data/schema/schemas/includes/licence-data-object.json +40 -13
- data/schema/schemas/includes/officer.json +66 -46
- data/schema/schemas/includes/organisation.json +58 -0
- data/schema/schemas/includes/permission.json +46 -0
- data/schema/schemas/includes/person.json +62 -0
- data/schema/schemas/includes/person_name.json +71 -0
- data/schema/schemas/includes/previous_name.json +19 -9
- data/schema/schemas/includes/share-parcel-data.json +55 -40
- data/schema/schemas/includes/share-parcel.json +71 -56
- data/schema/schemas/includes/subsidiary-relationship-data.json +19 -8
- data/schema/schemas/includes/total-shares.json +13 -6
- data/schema/schemas/includes/unknown_entity_type.json +58 -0
- data/schema/schemas/licence-schema.json +155 -15
- data/schema/schemas/primary-data-schema.json +18 -15
- data/schema/schemas/share-parcel-schema.json +8 -7
- data/schema/schemas/simple-financial-payment-schema.json +49 -12
- data/schema/schemas/simple-licence-schema.json +23 -8
- data/schema/schemas/simple-subsidiary-schema.json +21 -8
- data/schema/schemas/subsidiary-relationship-schema.json +23 -4
- metadata +11 -4
@@ -1,6 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
-
"title": "Simple Financial Payment",
|
4
3
|
"description": "A Financial Payment is a payment from government to a recipient",
|
5
4
|
"type": "object",
|
6
5
|
"properties": {
|
@@ -10,12 +9,17 @@
|
|
10
9
|
},
|
11
10
|
"sample_date": {
|
12
11
|
"description": "Date on which this fact was known to be true",
|
13
|
-
"type": "string"
|
12
|
+
"type": "string",
|
13
|
+
"format": "date"
|
14
14
|
},
|
15
15
|
"confidence": {
|
16
16
|
"description": "Confidence in accuracy of data",
|
17
17
|
"type": "string",
|
18
|
-
"enum": [
|
18
|
+
"enum": [
|
19
|
+
"HIGH",
|
20
|
+
"MEDIUM",
|
21
|
+
"LOW"
|
22
|
+
]
|
19
23
|
},
|
20
24
|
"company_name": {
|
21
25
|
"description": "Name of the company that received the money",
|
@@ -51,19 +55,32 @@
|
|
51
55
|
},
|
52
56
|
"more_details_url": {
|
53
57
|
"description": "A url from which more details can be seen (may be the same as the source_url)",
|
54
|
-
"type": [
|
58
|
+
"type": [
|
59
|
+
"string",
|
60
|
+
null
|
61
|
+
]
|
55
62
|
},
|
56
63
|
"description": {
|
57
64
|
"description": "The description of the transaction as given in the raw data",
|
58
|
-
"type": [
|
65
|
+
"type": [
|
66
|
+
"string",
|
67
|
+
null
|
68
|
+
]
|
59
69
|
},
|
60
70
|
"expense_type": {
|
61
71
|
"description": "The type of expense -- can be either capital, revenue (i.e. current expenditure) or null",
|
62
|
-
"enum": [
|
72
|
+
"enum": [
|
73
|
+
"capital",
|
74
|
+
"revenue",
|
75
|
+
null
|
76
|
+
]
|
63
77
|
},
|
64
78
|
"expense_area": {
|
65
79
|
"description": "category (in words) of the expenditure",
|
66
|
-
"type": [
|
80
|
+
"type": [
|
81
|
+
"string",
|
82
|
+
null
|
83
|
+
]
|
67
84
|
},
|
68
85
|
"entity_name": {
|
69
86
|
"description": "The name of the government entity that made the payment, e.g. Environment Agency",
|
@@ -71,15 +88,35 @@
|
|
71
88
|
},
|
72
89
|
"entity_uri": {
|
73
90
|
"description": "A unique URL (ideally a dereferencable URI) for the government entity",
|
74
|
-
"type": [
|
91
|
+
"type": [
|
92
|
+
"string",
|
93
|
+
null
|
94
|
+
]
|
75
95
|
},
|
76
96
|
"department_name": {
|
77
97
|
"description": "The name of the government department which the entity belongs to (if relevant), e.g. Department of Health",
|
78
|
-
"type": [
|
98
|
+
"type": [
|
99
|
+
"string",
|
100
|
+
null
|
101
|
+
]
|
79
102
|
},
|
80
103
|
"csv_line_number": {
|
81
104
|
"description": "If the source for the data is a CSV file, you can optionally include the line number of the CSV from which this data was retrieved",
|
82
|
-
"type": [
|
105
|
+
"type": [
|
106
|
+
"string",
|
107
|
+
null
|
108
|
+
]
|
109
|
+
}
|
83
110
|
},
|
84
|
-
"
|
85
|
-
|
111
|
+
"additionalProperties": false,
|
112
|
+
"required": [
|
113
|
+
"source_url",
|
114
|
+
"sample_date",
|
115
|
+
"company_name",
|
116
|
+
"company_jurisdiction",
|
117
|
+
"value",
|
118
|
+
"payee_name",
|
119
|
+
"date",
|
120
|
+
"currency"
|
121
|
+
]
|
122
|
+
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
-
"title": "Simple Licence Schema",
|
4
3
|
"type": "object",
|
5
4
|
"properties": {
|
6
5
|
"source_url": {
|
@@ -10,13 +9,17 @@
|
|
10
9
|
},
|
11
10
|
"sample_date": {
|
12
11
|
"description": "Date on which this fact was known to be true",
|
13
|
-
"type": "
|
14
|
-
"
|
12
|
+
"type": "string",
|
13
|
+
"format": "date"
|
15
14
|
},
|
16
15
|
"confidence": {
|
17
16
|
"description": "Confidence in accuracy of data",
|
18
17
|
"type": "string",
|
19
|
-
"enum": [
|
18
|
+
"enum": [
|
19
|
+
"HIGH",
|
20
|
+
"MEDIUM",
|
21
|
+
"LOW"
|
22
|
+
]
|
20
23
|
},
|
21
24
|
"company_name": {
|
22
25
|
"description": "Name of the company holding the licence",
|
@@ -34,7 +37,10 @@
|
|
34
37
|
},
|
35
38
|
"jurisdiction_classification": {
|
36
39
|
"description": "Description of how regulator classifies licence",
|
37
|
-
"type": [
|
40
|
+
"type": [
|
41
|
+
"string",
|
42
|
+
"array"
|
43
|
+
]
|
38
44
|
},
|
39
45
|
"regulator": {
|
40
46
|
"description": "The regulating body that issued the licence",
|
@@ -52,8 +58,17 @@
|
|
52
58
|
"category": {
|
53
59
|
"description": "Category of licence",
|
54
60
|
"type": "string",
|
55
|
-
"enum": [
|
61
|
+
"enum": [
|
62
|
+
"Financial",
|
63
|
+
"Business"
|
64
|
+
]
|
56
65
|
}
|
57
66
|
},
|
58
|
-
"
|
59
|
-
|
67
|
+
"additionalProperties": false,
|
68
|
+
"required": [
|
69
|
+
"source_url",
|
70
|
+
"sample_date",
|
71
|
+
"company_name",
|
72
|
+
"company_jurisdiction"
|
73
|
+
]
|
74
|
+
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
-
"title": "Simple Subsidiary Schema",
|
4
3
|
"type": "object",
|
5
4
|
"properties": {
|
6
5
|
"source_url": {
|
@@ -11,20 +10,26 @@
|
|
11
10
|
"sample_date": {
|
12
11
|
"description": "Date on which this fact was known to be true",
|
13
12
|
"type": "string",
|
14
|
-
"
|
13
|
+
"format": "date"
|
15
14
|
},
|
16
15
|
"start_date": {
|
17
16
|
"description": "Earliest known date this was known to be a subsidiary",
|
18
|
-
"type": "string"
|
17
|
+
"type": "string",
|
18
|
+
"format": "date"
|
19
19
|
},
|
20
20
|
"end_date": {
|
21
21
|
"description": "Latest known date this was known to be a subsidiary",
|
22
|
-
"type": "string"
|
22
|
+
"type": "string",
|
23
|
+
"format": "date"
|
23
24
|
},
|
24
25
|
"confidence": {
|
25
26
|
"description": "Confidence in accuracy of data",
|
26
27
|
"type": "string",
|
27
|
-
"enum": [
|
28
|
+
"enum": [
|
29
|
+
"HIGH",
|
30
|
+
"MEDIUM",
|
31
|
+
"LOW"
|
32
|
+
]
|
28
33
|
},
|
29
34
|
"parent_name": {
|
30
35
|
"description": "Name of the controlling company",
|
@@ -47,7 +52,7 @@
|
|
47
52
|
"percentage_controlled": {
|
48
53
|
"description": "Percentage of the subsidiary that is controlled (if known), either directly or indirectly",
|
49
54
|
"type": "string",
|
50
|
-
"pattern": "^[0-9]{1,2}[.]?[0-9]{0,2}$"
|
55
|
+
"pattern": "^[0-9]{1,2}0?[.]?[0-9]{0,2}$"
|
51
56
|
},
|
52
57
|
"subsidiary_name": {
|
53
58
|
"description": "The name of the subsidiary",
|
@@ -64,5 +69,13 @@
|
|
64
69
|
"type": "string"
|
65
70
|
}
|
66
71
|
},
|
67
|
-
"
|
68
|
-
|
72
|
+
"additionalProperties": false,
|
73
|
+
"required": [
|
74
|
+
"source_url",
|
75
|
+
"sample_date",
|
76
|
+
"parent_name",
|
77
|
+
"parent_jurisdiction",
|
78
|
+
"subsidiary_name",
|
79
|
+
"subsidiary_jurisdiction"
|
80
|
+
]
|
81
|
+
}
|
@@ -1,9 +1,26 @@
|
|
1
1
|
{
|
2
|
-
"title": "Subsidiary Relationship",
|
3
|
-
"description": "A relationship of control between two companies",
|
4
2
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"description": "A relationship of control between two companies",
|
5
4
|
"type": "object",
|
6
5
|
"properties": {
|
6
|
+
"sample_date": {
|
7
|
+
"type": "string",
|
8
|
+
"format": "date"
|
9
|
+
},
|
10
|
+
"start_date": {
|
11
|
+
"type": "string",
|
12
|
+
"format": "date"
|
13
|
+
},
|
14
|
+
"start_date_type": {
|
15
|
+
"type": "string"
|
16
|
+
},
|
17
|
+
"end_date": {
|
18
|
+
"type": "string",
|
19
|
+
"format": "date"
|
20
|
+
},
|
21
|
+
"end_date_type": {
|
22
|
+
"type": "string"
|
23
|
+
},
|
7
24
|
"source_jurisdiction": {
|
8
25
|
"description": "Jurisdiction of the source of the data",
|
9
26
|
"type": "string"
|
@@ -20,8 +37,10 @@
|
|
20
37
|
"additionalItems": false
|
21
38
|
}
|
22
39
|
},
|
40
|
+
"additionalProperties": false,
|
23
41
|
"required": [
|
24
42
|
"company",
|
25
|
-
"data"
|
43
|
+
"data",
|
44
|
+
"sample_date"
|
26
45
|
]
|
27
|
-
}
|
46
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Turbot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: turbotlib
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.1.
|
131
|
+
version: 0.1.24
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - '='
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.1.
|
138
|
+
version: 0.1.24
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: excon
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,17 +193,24 @@ files:
|
|
193
193
|
- schema/schemas/financial-payment-schema.json
|
194
194
|
- schema/schemas/includes/address.json
|
195
195
|
- schema/schemas/includes/alternative_name.json
|
196
|
+
- schema/schemas/includes/company-for-nesting.json
|
196
197
|
- schema/schemas/includes/company.json
|
197
198
|
- schema/schemas/includes/filing.json
|
198
199
|
- schema/schemas/includes/financial-payment-data-object.json
|
200
|
+
- schema/schemas/includes/identifier.json
|
199
201
|
- schema/schemas/includes/industry_code.json
|
200
202
|
- schema/schemas/includes/licence-data-object.json
|
201
203
|
- schema/schemas/includes/officer.json
|
204
|
+
- schema/schemas/includes/organisation.json
|
205
|
+
- schema/schemas/includes/permission.json
|
206
|
+
- schema/schemas/includes/person.json
|
207
|
+
- schema/schemas/includes/person_name.json
|
202
208
|
- schema/schemas/includes/previous_name.json
|
203
209
|
- schema/schemas/includes/share-parcel-data.json
|
204
210
|
- schema/schemas/includes/share-parcel.json
|
205
211
|
- schema/schemas/includes/subsidiary-relationship-data.json
|
206
212
|
- schema/schemas/includes/total-shares.json
|
213
|
+
- schema/schemas/includes/unknown_entity_type.json
|
207
214
|
- schema/schemas/licence-schema.json
|
208
215
|
- schema/schemas/primary-data-schema.json
|
209
216
|
- schema/schemas/share-parcel-schema.json
|