turbot-runner 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module TurbotRunner
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
@@ -50,6 +50,12 @@
50
50
  "registered_address": {
51
51
  "$ref": "includes/address.json"
52
52
  },
53
+ "headquarters_address": {
54
+ "$ref": "includes/address.json"
55
+ },
56
+ "mailing_address": {
57
+ "$ref": "includes/address.json"
58
+ },
53
59
  "officers": {
54
60
  "type": "array",
55
61
  "items": {
@@ -127,6 +133,42 @@
127
133
  "type": "number",
128
134
  "description": "The number of employees",
129
135
  "minimum": 0
136
+ },
137
+ "merged_into": {
138
+ "type": "object",
139
+ "description": "Information on the merger of this company into a 'survivor' company",
140
+ "properties": {
141
+ "surviving_company": {
142
+ "type": ["object"],
143
+ "description": "the surviving_company that this has been merged into",
144
+ "properties": {
145
+ "name": {
146
+ "type": "string",
147
+ "description": "The legal name of the surviving company",
148
+ "minLength": 1
149
+ },
150
+ "company_number": {
151
+ "type": "string",
152
+ "description": "The company_number of the surviving company, if known",
153
+ "minLength": 1
154
+ },
155
+ "jurisdiction": {
156
+ "type": "string",
157
+ "description": "The jurisdiction of incorporation of the surviving company",
158
+ "minLength": 2
159
+ }
160
+ },
161
+ "anyOf": [{"required": ["name"]},
162
+ {"required": ["company_number"]}]
163
+ },
164
+ "effective_date": {
165
+ "type": "string",
166
+ "format": "date",
167
+ "description": "The date of the merger"
168
+ }
169
+ },
170
+ "additionalProperties": false,
171
+ "required": ["surviving_company"]
130
172
  }
131
173
  }
132
174
  }
@@ -3,11 +3,43 @@
3
3
  "description": "An officer (director, senior executive) of a company",
4
4
  "type": "object",
5
5
  "properties": { "name": { "type": "string", "minLength": 1 },
6
- "start_date": { "type": "date" },
7
- "end_date": { "type": "date" },
6
+ "start_date": {
7
+ "type": "string",
8
+ "format": "date"
9
+ },
10
+ "end_date": {
11
+ "type": "string",
12
+ "format": "date"
13
+ },
8
14
  "position": { "type": "string" },
9
- "other_attributes": { "type": "object" },
10
- "uid": { "type": "string" }
15
+ "other_attributes": {
16
+ "type": "object",
17
+ "properties": {
18
+ "date_of_birth": {
19
+ "type": "string",
20
+ "format": "date"
21
+ },
22
+ "nationality": {
23
+ "type": "string"
24
+ },
25
+ "person_uid": {
26
+ "type": "string",
27
+ "description": "a unique identifier given to the individual (as opposed to the officership)"
28
+ },
29
+ "address": {
30
+ "type": "string"
31
+ },
32
+ "type": {
33
+ "type": "string",
34
+ "enum": ["Person", "Company"],
35
+ "description": "The type of entity that is the officer (either 'Person' or 'Company')"
36
+ }
37
+ }
38
+ },
39
+ "uid": {
40
+ "type": "string",
41
+ "description": "a unique identifier given to the officership"
42
+ }
11
43
  },
12
44
  "required": [ "name" ]
13
45
  }
@@ -3,7 +3,10 @@
3
3
  "description": "A previous name of a company",
4
4
  "type": "object",
5
5
  "properties": { "company_name": { "type": "string", "minLength": 1 },
6
- "con_date": { "type": "date" },
6
+ "con_date": {
7
+ "type": "date",
8
+ "description": "The end (conversion) date of the name"
9
+ },
7
10
  "start_date": { "type": "date" }
8
11
  },
9
12
  "required": [ "company_name" ]
@@ -5,11 +5,13 @@
5
5
  "properties": {
6
6
  "source_url": {
7
7
  "description": "Place where this fact can be verified",
8
- "type": "string"
8
+ "type": "string",
9
+ "minLength": 1
9
10
  },
10
11
  "sample_date": {
11
12
  "description": "Date on which this fact was known to be true",
12
- "type": "string"
13
+ "type": "date",
14
+ "minLength": 1
13
15
  },
14
16
  "confidence": {
15
17
  "description": "Confidence in accuracy of data",
@@ -18,11 +20,13 @@
18
20
  },
19
21
  "company_name": {
20
22
  "description": "Name of the company holding the licence",
21
- "type": "string"
23
+ "type": "string",
24
+ "minLength": 1
22
25
  },
23
26
  "company_jurisdiction": {
24
27
  "description": "Jurisdiction where company is based",
25
- "type": "string"
28
+ "type": "string",
29
+ "minLength": 1
26
30
  },
27
31
  "licence_number": {
28
32
  "description": "Licence number or code",
@@ -38,7 +42,8 @@
38
42
  },
39
43
  "licence_jurisdiction": {
40
44
  "description": "Jurisdiction for which licence is issued",
41
- "type": "string"
45
+ "type": "string",
46
+ "minLength": 1
42
47
  },
43
48
  "status": {
44
49
  "description": "Status of the licence",
@@ -5,11 +5,13 @@
5
5
  "properties": {
6
6
  "source_url": {
7
7
  "description": "Place where this fact can be verified",
8
- "type": "string"
8
+ "type": "string",
9
+ "minLength": 1
9
10
  },
10
11
  "sample_date": {
11
12
  "description": "Date on which this fact was known to be true",
12
- "type": "string"
13
+ "type": "string",
14
+ "minLength": 1
13
15
  },
14
16
  "start_date": {
15
17
  "description": "Earliest known date this was known to be a subsidiary",
@@ -26,11 +28,13 @@
26
28
  },
27
29
  "parent_name": {
28
30
  "description": "Name of the controlling company",
29
- "type": "string"
31
+ "type": "string",
32
+ "minLength": 1
30
33
  },
31
34
  "parent_jurisdiction": {
32
35
  "description": "Jurisdiction where controlling company is based",
33
- "type": "string"
36
+ "type": "string",
37
+ "minLength": 1
34
38
  },
35
39
  "parent_identifier": {
36
40
  "description": "Any unique ID for the controlling company",
@@ -47,11 +51,13 @@
47
51
  },
48
52
  "subsidiary_name": {
49
53
  "description": "The name of the subsidiary",
50
- "type": "string"
54
+ "type": "string",
55
+ "minLength": 1
51
56
  },
52
57
  "subsidiary_jurisdiction": {
53
58
  "description": "Jurisdiction of the subsidiary",
54
- "type": "string"
59
+ "type": "string",
60
+ "minLength": 1
55
61
  },
56
62
  "subsidiary_identifier": {
57
63
  "description": "Any unique id for the subsidiary that might be provided in the source",
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbot-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - OpenCorporates
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-08-14 00:00:00.000000000 Z
12
+ date: 2014-09-17 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: json-schema
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - '='
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - '='
25
28
  - !ruby/object:Gem::Version
@@ -39,28 +42,6 @@ files:
39
42
  - lib/turbot_runner/runner.rb
40
43
  - lib/turbot_runner/script_runner.rb
41
44
  - lib/turbot_runner/version.rb
42
- - schema/schemas/company-schema.json
43
- - schema/schemas/financial-payment-schema.json
44
- - schema/schemas/includes/address.json
45
- - schema/schemas/includes/alternative_name.json
46
- - schema/schemas/includes/company.json
47
- - schema/schemas/includes/filing.json
48
- - schema/schemas/includes/financial-payment-data-object.json
49
- - schema/schemas/includes/industry_code.json
50
- - schema/schemas/includes/licence-data-object.json
51
- - schema/schemas/includes/officer.json
52
- - schema/schemas/includes/previous_name.json
53
- - schema/schemas/includes/share-parcel-data.json
54
- - schema/schemas/includes/share-parcel.json
55
- - schema/schemas/includes/subsidiary-relationship-data.json
56
- - schema/schemas/includes/total-shares.json
57
- - schema/schemas/licence-schema.json
58
- - schema/schemas/primary-data-schema.json
59
- - schema/schemas/share-parcel-schema.json
60
- - schema/schemas/simple-financial-payment-schema.json
61
- - schema/schemas/simple-licence-schema.json
62
- - schema/schemas/simple-subsidiary-schema.json
63
- - schema/schemas/subsidiary-relationship-schema.json
64
45
  - spec/bots/bot-that-crashes-in-scraper/manifest.json
65
46
  - spec/bots/bot-that-crashes-in-scraper/scraper.rb
66
47
  - spec/bots/bot-that-crashes-in-transformer/manifest.json
@@ -96,29 +77,51 @@ files:
96
77
  - spec/outputs/full-scraper.out
97
78
  - spec/outputs/full-transformer.out
98
79
  - spec/outputs/truncated-scraper.out
80
+ - schema/schemas/company-schema.json
81
+ - schema/schemas/financial-payment-schema.json
82
+ - schema/schemas/includes/address.json
83
+ - schema/schemas/includes/alternative_name.json
84
+ - schema/schemas/includes/company.json
85
+ - schema/schemas/includes/filing.json
86
+ - schema/schemas/includes/financial-payment-data-object.json
87
+ - schema/schemas/includes/industry_code.json
88
+ - schema/schemas/includes/licence-data-object.json
89
+ - schema/schemas/includes/officer.json
90
+ - schema/schemas/includes/previous_name.json
91
+ - schema/schemas/includes/share-parcel-data.json
92
+ - schema/schemas/includes/share-parcel.json
93
+ - schema/schemas/includes/subsidiary-relationship-data.json
94
+ - schema/schemas/includes/total-shares.json
95
+ - schema/schemas/licence-schema.json
96
+ - schema/schemas/primary-data-schema.json
97
+ - schema/schemas/share-parcel-schema.json
98
+ - schema/schemas/simple-financial-payment-schema.json
99
+ - schema/schemas/simple-licence-schema.json
100
+ - schema/schemas/simple-subsidiary-schema.json
101
+ - schema/schemas/subsidiary-relationship-schema.json
99
102
  homepage: http://turbot.opencorporates.com/
100
103
  licenses:
101
104
  - MIT
102
- metadata: {}
103
105
  post_install_message:
104
106
  rdoc_options: []
105
107
  require_paths:
106
108
  - lib
107
109
  required_ruby_version: !ruby/object:Gem::Requirement
110
+ none: false
108
111
  requirements:
109
112
  - - ! '>='
110
113
  - !ruby/object:Gem::Version
111
114
  version: 1.9.2
112
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
+ none: false
113
117
  requirements:
114
118
  - - ! '>='
115
119
  - !ruby/object:Gem::Version
116
120
  version: '0'
117
121
  requirements: []
118
122
  rubyforge_project:
119
- rubygems_version: 2.2.2
123
+ rubygems_version: 1.8.23
120
124
  signing_key:
121
- specification_version: 4
125
+ specification_version: 3
122
126
  summary: Utilities for running bots with Turbot
123
127
  test_files: []
124
- has_rdoc:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTU4OTExM2RjYzNhYjIwM2NiN2ZmYjU3NDc3YjY0OGRhOTE4NDIwNQ==
5
- data.tar.gz: !binary |-
6
- NGM0ODRjYmI0OWNhNGJjZjc4Y2Q5YTRlNGRmYjgzYzNiM2QyZWViYQ==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- MTllYmUzMjgxMGE0Y2IyYjE0NzRiMDhlMzQzYzFkYzlkYjA3ZGMxODMyMDc1
10
- M2YyMmJiZTY5ZTVhMDk3NDhlYTYxMjg4ZTM5Y2E2MTVlZTAzMmE1MzQ1NmJk
11
- ODkwYzQ4YjgyM2FkZmNhN2M0MDk1MzNjZGEyNzQ3ZTAyN2FmOTA=
12
- data.tar.gz: !binary |-
13
- ZTYxNGE5ZWQ0ZmU4MGI5M2Y2ZDZkYmJlMmIwNjllNmMwOGFkZTA2ODBjNzIz
14
- ZDdmZGQ1MWJjZDY2N2QyZjMwNzc4ODgzODAyMDNkMDVkMGI2NjZmN2IzNzE5
15
- NTQ3ZjQ1MjI4NjRhYjljNzFjNzZiZWQzZjIyZGRlNjdhNzNiMGQ=