turbot-runner 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjY3ZDJkZjIzNTNiMDJkNzE0ODA2NWRmOWJjMzc4NmRmY2JiYjRiOQ==
4
+ N2JhNzliMDZmNzcwZjBlMWQzNmE2OWIzNDcyNTAwZmU0MjUzNmUzNg==
5
5
  data.tar.gz: !binary |-
6
- MjEzNWNkNGRhODdjNjkyOWQyMmZmNjc3YjBmODVlZjBhNTg5ODUwOQ==
6
+ ZTkxN2NjZTE0ZjJkMDZhNTVmYjQxMTkyYWIyMzY3NWJlOWU1OTIxMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTFjMWZhYjZjMWMwNTBlNTA3YWRmNmJmMzA4NGU4Mzk4YWFmYTYzYjc4ZWJh
10
- NTZiMjU5YjE0NTY2ZmQ4ODQ5NWJhMmRlNWMzYTdkZDZhZDhjZjJlMjM4M2I4
11
- OTcyNTg3Yjc5MzVmOTBlNWJlN2JiMWZlZTNmMDRkMDgwNGFhMDE=
9
+ NTU2MDk0NjI5MTI4MmQ1Zjk2N2E5ZmM4ZjM4MzAxMTE5N2JkYjc5ZTBiNWYw
10
+ MmQ2MzBiMjczNTYwNTVkM2Y3NTRkNTQ1ZGZkMGFjZDQ2NGUzYmM2NzIxYTQ2
11
+ M2E5NGE3ZTYxZThlODU1ZWE2ZWE4MjNiZDBjOGI1OGUwYTNhYjY=
12
12
  data.tar.gz: !binary |-
13
- YjQ0M2Q5N2ZjY2RmNjcyYzEyMGQyNDAzOTlmOWNiNGM3MzIzYTVmYTU1OGI0
14
- YjdlYTFhZTYxYmNmY2EwZTAwNjRlZjljMTBlMTNhODAxYTQ5ZDE3YmMwNTcx
15
- MTJlZmRkODA0Y2ZjYmRkYzI1ZWNiZjQ0MmVjOWViMTg2Nzc4ZDU=
13
+ MjEyZjM4ZDcyY2VhZjBlYTdjZGRmZGI0ODhiZWVkMTEyMzU5NWEyZGQ0NDM3
14
+ YTcxMmNiNGQyNTdkODliOGNiZDU1Y2NkMGU2ZDI2NjhiZDVlYWQ2OTA0NjAx
15
+ NDhmYTUyZWY2Njk3ODcxZDMzNGNmMzQ4MGJmYzkyOTlkZmMzMGY=
@@ -1,3 +1,3 @@
1
1
  module TurbotRunner
2
- VERSION = '0.1.15'
2
+ VERSION = '0.1.16'
3
3
  end
@@ -1,3 +1,4 @@
1
+
1
2
  {
2
3
  "$schema": "http://json-schema.org/draft-04/schema#",
3
4
  "title": "Company Schema",
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "Identifier",
3
+ "description": "An identifier for an entity (possibly other things, e.g. securities in the future). Examples are tax IDs, non-profit IDs, SEC CIK numbers, Federal Reserve RSSD id. The main requirements for an identifier is that they should be well-defined, and issued by a government or have statutory standing",
4
+ "type": "object",
5
+ "properties": { "code": { "type": "string" },
6
+ "code_scheme_id": {
7
+ "type": "string",
8
+ "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), gb_ccew (Charity Commission of England & Wales), lei (Global Legal Entity Identifier Schems)"
9
+ }
10
+ },
11
+ "required": [ "code", "code_scheme_id" ]
12
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "title": "Organisation",
3
+ "type": "object",
4
+ "description": "An entity which is a distinct organisation, but is not a company nor an individual. Examples include governments and governmental entities (e.g. Multilateral Devoelpment Banks, Government Departments, municipalities, etc), and also membership organisations",
5
+ "properties": {
6
+ "name": {
7
+ "type": "string",
8
+ "description": "Name of the entity",
9
+ "minLength": 1
10
+ },
11
+ "jurisdiction": {
12
+ "type": "string",
13
+ "description": "Name of the jurisdiction in which the entity is incorporated/domiciled (use global for global entities, e.g. UN)"
14
+ },
15
+ "website": {
16
+ "type": "string",
17
+ "minLength": 5
18
+ },
19
+ "telephone_number": {
20
+ "type": "string",
21
+ "minLength": 4
22
+ },
23
+ "fax_number": {
24
+ "type": "string",
25
+ "minLength": 4
26
+ },
27
+ "registered_address": {
28
+ "$ref": "address.json"
29
+ },
30
+ "headquarters_address": {
31
+ "$ref": "address.json"
32
+ },
33
+ "mailing_address": {
34
+ "$ref": "address.json"
35
+ },
36
+ "industry_codes": {
37
+ "type": "array",
38
+ "items": {
39
+ "$ref": "industry_code.json"
40
+ }
41
+ },
42
+ "previous_names": {
43
+ "type": "array",
44
+ "items": {
45
+ "$ref": "previous_name.json"
46
+ }
47
+ },
48
+ "alternative_names": {
49
+ "type": "array",
50
+ "items": {
51
+ "$ref": "alternative_name.json"
52
+ }
53
+ }
54
+ },
55
+ "required": ["name"]
56
+ }
57
+
@@ -0,0 +1,27 @@
1
+ { "oneOf":
2
+ [
3
+ {
4
+ "type": ["string","null"],
5
+ "minLength": 2
6
+ },
7
+ {
8
+ "name": "Permission",
9
+ "description": "A permission issued by a government or regulatory body to an entity to do something. This may be fine grained,e.g. to sell liquor, to accept customer deposits, or broader, e.g to operate as a bank, a restaurant. It may also be permission to do something physical, such as explore for oil in a given area, or mine for iron ore",
10
+ "type": "object",
11
+ "properties": { "activity_name": { "type": "string" },
12
+ "activity_id": { "type":"string" },
13
+ "permission_type": {
14
+ "enum": ["operating", "exploration", "exploitation"],
15
+ "description":"types of permission, such as 'operating', 'exploration', 'exploitation'"
16
+ },
17
+ "restrictions": { "type":"array",
18
+ "description":"conditions or restrictions on the permissions",
19
+ "items": { "type":"string" }
20
+ },
21
+ "other_attributes": { }
22
+ },
23
+ "required": ["activity_name"]
24
+ }
25
+ ]
26
+ }
27
+
@@ -0,0 +1,54 @@
1
+ {
2
+ "title": "Person",
3
+ "type": "object",
4
+ "description": "A person, for example, referenced in some other context, e.g. director of a company, shareholder, licence-holder, lobbyist",
5
+ "properties": {
6
+ "name": {
7
+ "oneOf": [
8
+ { "type": "string",
9
+ "minLength": 1
10
+ },
11
+ { "$ref": "person_name.json" }
12
+ ]
13
+ },
14
+ "jurisdiction": {
15
+ "type": "string",
16
+ "description": "Name of the jurisdiction in which the entity is based"
17
+ },
18
+ "website": {
19
+ "type": "string",
20
+ "minLength": 5
21
+ },
22
+ "telephone_number": {
23
+ "type": "string",
24
+ "minLength": 4
25
+ },
26
+ "fax_number": {
27
+ "type": "string",
28
+ "minLength": 4
29
+ },
30
+ "registered_address": {
31
+ "$ref": "address.json"
32
+ },
33
+ "headquarters_address": {
34
+ "$ref": "address.json"
35
+ },
36
+ "mailing_address": {
37
+ "$ref": "address.json"
38
+ },
39
+ "industry_codes": {
40
+ "type": "array",
41
+ "items": {
42
+ "$ref": "industry_code.json"
43
+ }
44
+ },
45
+ "alternative_names": {
46
+ "type": "array",
47
+ "items": {
48
+ "$ref": "alternative_name.json"
49
+ }
50
+ }
51
+ },
52
+ "required": ["name"]
53
+ }
54
+
@@ -0,0 +1,47 @@
1
+ { "oneOf":
2
+ [
3
+ {
4
+ "type": ["string",null],
5
+ "minLength": 2
6
+ },
7
+ {
8
+ "description": "The name of a person as an object",
9
+ "type": "object",
10
+ "properties": {
11
+ "given_name": {
12
+ "type": ["string",null],
13
+ "description": "The given name (often first name) of a person, as opposed to their family name. Following FOAF practice, this is preferred to first_name",
14
+ "minLength": 1
15
+ },
16
+ "family_name": {
17
+ "type": ["string",null],
18
+ "description": "The family name (often last name) of a person, as opposed to their family name. Following FOAF practice, this is preferred to last_name",
19
+ "minLength": 1
20
+ },
21
+ "first_name": {
22
+ "type": ["string",null],
23
+ "minLength": 1
24
+ },
25
+ "middle_name": {
26
+ "type": ["string",null],
27
+ "minLength": 1
28
+ },
29
+ "last_name": {
30
+ "type": ["string",null],
31
+ "minLength": 1
32
+ },
33
+ "title": {
34
+ "type": ["string",null],
35
+ "description": "Title such as Mr, Ms, Dr etc",
36
+ "minLength": 1
37
+ },
38
+ "suffixes": {
39
+ "type": ["string",null],
40
+ "description": "Any suffixes, including degrees, honours (OBE), ordinals (John Smith Jr, Bill Jones II) etc",
41
+ "minLength": 1
42
+ }
43
+ }
44
+ }
45
+ ]
46
+ }
47
+
@@ -0,0 +1,57 @@
1
+ {
2
+ "title": "UnknownEntityType",
3
+ "type": "object",
4
+ "description": "An entity of unknown type - potentially a company, a person, government entity, or some unincorporated organisation",
5
+ "properties": {
6
+ "name": {
7
+ "type": "string",
8
+ "description": "Name of the entity",
9
+ "minLength": 1
10
+ },
11
+ "jurisdiction": {
12
+ "type": "string",
13
+ "description": "Name of the jurisdiction in which the entity is incorporated/domiciled"
14
+ },
15
+ "website": {
16
+ "type": "string",
17
+ "minLength": 5
18
+ },
19
+ "telephone_number": {
20
+ "type": "string",
21
+ "minLength": 4
22
+ },
23
+ "fax_number": {
24
+ "type": "string",
25
+ "minLength": 4
26
+ },
27
+ "registered_address": {
28
+ "$ref": "address.json"
29
+ },
30
+ "headquarters_address": {
31
+ "$ref": "address.json"
32
+ },
33
+ "mailing_address": {
34
+ "$ref": "address.json"
35
+ },
36
+ "industry_codes": {
37
+ "type": "array",
38
+ "items": {
39
+ "$ref": "industry_code.json"
40
+ }
41
+ },
42
+ "previous_names": {
43
+ "type": "array",
44
+ "items": {
45
+ "$ref": "previous_name.json"
46
+ }
47
+ },
48
+ "alternative_names": {
49
+ "type": "array",
50
+ "items": {
51
+ "$ref": "alternative_name.json"
52
+ }
53
+ }
54
+ },
55
+ "required": ["name"]
56
+ }
57
+
@@ -0,0 +1,76 @@
1
+ {
2
+ "title": "Rich Licence Schema",
3
+ "description": "A Licence is a permission for an entity to do something that would otherwise not be permitted. Note that such permissions are recorded in multiple different ways and to different granularity. In addition categories cross over, for example a pornborker may be regulated as a retail establishment by a city, but also as a financial institution by a national or regional financial regulator. Sometimes the licence is a simple statement – the government of Rwanda has given a banking licence to a certain bank -- other times it is fine-grained and highly complex (e.g. an extractives licence or the UK FCA licencing scheme). This schema tries to make it easy to submit the former, while not losing granularity of the latter. The object has the name of Rich Licence to distinguish it from Simple Licence, which it is expected to ultimately replace.",
4
+ "$schema": "http://json-schema.org/draft-04/schema#",
5
+ "properties": {
6
+ "licence_holder": {
7
+ "entity": {
8
+ "oneOf": [
9
+ {"$ref": "company-schema.json"},
10
+ {"$ref": "includes/person.json"},
11
+ {"$ref": "includes/organisation.json"},
12
+ {"$ref": "includes/unknown_entity_type.json"}
13
+ ]
14
+ },
15
+ "entity_type": {
16
+ "enum": ["company", "person", "organisation", "unknown_entity_type", null]
17
+ }
18
+ },
19
+ "licence_issuer": {
20
+ "oneOf": [
21
+ {
22
+ "type": ["string","null"],
23
+ "minLength": 2
24
+ },
25
+ {"$ref": "includes/organisation.json"}
26
+ ]
27
+ },
28
+ "licenced_location": {
29
+ "$ref": "includes/address.json"
30
+ },
31
+ "licence_number": {
32
+ "type": "string"
33
+ },
34
+ "start_date": {
35
+ "description": "The issue date of the licence",
36
+ "type": "date"
37
+ },
38
+ "end_date": {
39
+ "description": "The expiry date of the licence",
40
+ "type": "date"
41
+ },
42
+ "renewal_date": {
43
+ "type": "date"
44
+ },
45
+ "licence_url": {
46
+ "type": "string",
47
+ "description": "A public URL for the licence"
48
+ },
49
+ "jurisdiction_of_licence": {
50
+ "type": "string",
51
+ "description": "The area in which this licence is valid"
52
+ },
53
+ "status": {
54
+ "type": "string",
55
+ "description": "The status of the licence. If the licence is made up of a number of permissions, each of which has a status, store the status in the permissions field instead/as well"
56
+ },
57
+ "category": {
58
+ "description": "Category of licence",
59
+ "type": "array",
60
+ "items": {
61
+ "type": "string",
62
+ "enum": ["Financial", "Business", "Extractive"]
63
+ }
64
+ },
65
+ "permissions": {
66
+ "type": "array",
67
+ "items": {
68
+ "$ref": "includes/permission.json"
69
+ }
70
+ },
71
+ "other_attributes": {
72
+ "description": "Use for other licence attributes for which we don't yet have curated schema attributes"
73
+ }
74
+ },
75
+ "required": ["source_url", "sample_date", "licence_holder", "permissions", "licence_issuer", "jurisdiction_of_licence"]
76
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbot-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenCorporates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-15 00:00:00.000000000 Z
11
+ date: 2015-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema
@@ -46,16 +46,23 @@ files:
46
46
  - schema/schemas/includes/company.json
47
47
  - schema/schemas/includes/filing.json
48
48
  - schema/schemas/includes/financial-payment-data-object.json
49
+ - schema/schemas/includes/identifier.json
49
50
  - schema/schemas/includes/industry_code.json
50
51
  - schema/schemas/includes/licence-data-object.json
51
52
  - schema/schemas/includes/officer.json
53
+ - schema/schemas/includes/organisation.json
54
+ - schema/schemas/includes/permission.json
55
+ - schema/schemas/includes/person.json
56
+ - schema/schemas/includes/person_name.json
52
57
  - schema/schemas/includes/previous_name.json
53
58
  - schema/schemas/includes/share-parcel-data.json
54
59
  - schema/schemas/includes/share-parcel.json
55
60
  - schema/schemas/includes/subsidiary-relationship-data.json
56
61
  - schema/schemas/includes/total-shares.json
62
+ - schema/schemas/includes/unknown_entity_type.json
57
63
  - schema/schemas/licence-schema.json
58
64
  - schema/schemas/primary-data-schema.json
65
+ - schema/schemas/rich-licence-schema.json
59
66
  - schema/schemas/share-parcel-schema.json
60
67
  - schema/schemas/simple-financial-payment-schema.json
61
68
  - schema/schemas/simple-licence-schema.json