turbot-runner 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/turbot_runner/runner.rb +4 -3
- data/lib/turbot_runner/version.rb +1 -1
- data/schema/schemas/company-schema.json +3 -0
- data/schema/schemas/includes/address.json +1 -1
- data/schema/schemas/includes/alternative_name.json +2 -2
- data/schema/schemas/includes/filing.json +1 -1
- data/schema/schemas/includes/industry_code.json +6 -3
- data/schema/schemas/includes/officer.json +8 -4
- data/schema/schemas/includes/previous_name.json +1 -1
- data/schema/schemas/includes/share-parcel.json +3 -0
- metadata +2 -2
data/lib/turbot_runner/runner.rb
CHANGED
@@ -35,9 +35,10 @@ module TurbotRunner
|
|
35
35
|
private
|
36
36
|
def full_interpreter_path
|
37
37
|
if language == "ruby"
|
38
|
-
# Ensure we use the same ruby as the current
|
39
|
-
# creating a subshell. Necessary for OSX
|
40
|
-
|
38
|
+
# Ensure we use the same ruby and LOAD_PATH as the current
|
39
|
+
# interpreter when creating a subshell. Necessary for OSX
|
40
|
+
# packaged version.
|
41
|
+
"RUBYLIB='#{$LOAD_PATH.join("\n")}' #{RbConfig.ruby}"
|
41
42
|
else
|
42
43
|
# Assume the first python in PATH
|
43
44
|
language
|
@@ -6,14 +6,17 @@
|
|
6
6
|
"properties": {
|
7
7
|
"company_number": {
|
8
8
|
"type": "string",
|
9
|
+
"description": "unique identifier given by the corporate register with which it is incorporated",
|
9
10
|
"minLength": 1
|
10
11
|
},
|
11
12
|
"name": {
|
12
13
|
"type": "string",
|
14
|
+
"description": "Legal name of the company",
|
13
15
|
"minLength": 1
|
14
16
|
},
|
15
17
|
"jurisdiction_code": {
|
16
18
|
"type": "string",
|
19
|
+
"description": "Code representing the jurisdiction/company register which is the canonical record of the company’s existence. Uses underscored ISO 3166-2 to represent it, e.g. es for Spain, us_de for Delaware",
|
17
20
|
"minLength": 2,
|
18
21
|
"maxLength": 5
|
19
22
|
},
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"description": "An address object",
|
10
10
|
"type": "object",
|
11
11
|
"properties": { "street_address": { "type": "string" },
|
12
|
-
"locality": {
|
12
|
+
"locality": {"type":"string"},
|
13
13
|
"region": { "type": "string" },
|
14
14
|
"postal_code": { "type": "string" },
|
15
15
|
"country": { "type": "string" }
|
@@ -3,8 +3,8 @@
|
|
3
3
|
"description": "An alternative name of a company, e.g. abbreviation, trading (including dba or doing business as), legal. As well as trading names etc, it can be used for storing alternative language representations of the legal name, in which case the language should be represented as two-letter ISO-639 code",
|
4
4
|
"type": "object",
|
5
5
|
"properties": { "company_name": { "type": "string", "minLength": 1 },
|
6
|
-
"start_date": {
|
7
|
-
"end_date": {
|
6
|
+
"start_date": {"type":"string","format": "date"},
|
7
|
+
"end_date": {"type":"string","format": "date"},
|
8
8
|
"language": { "type": "string", "minLength": 2, "maxLength": 2 },
|
9
9
|
"type": { "type": "string", "enum": ["trading", "abbreviation", "legal"] }
|
10
10
|
},
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "A statutory filing",
|
4
4
|
"type": "object",
|
5
5
|
"properties": { "title": { "type": "string" },
|
6
|
-
"date": {
|
6
|
+
"date": {"type":"string","format": "date"},
|
7
7
|
"description": { "type": "string" },
|
8
8
|
"uid": { "type": "string" },
|
9
9
|
"url": { "type": "string" },
|
@@ -4,9 +4,12 @@
|
|
4
4
|
"type": "object",
|
5
5
|
"properties": { "name": { "type": "string" },
|
6
6
|
"code": { "type": "string" },
|
7
|
-
"code_scheme_id": {
|
8
|
-
|
9
|
-
|
7
|
+
"code_scheme_id": {
|
8
|
+
"type": "string",
|
9
|
+
"description": "An identifier representing industry code scheme. At the moment these are eu_nace_2, uk_sic_2003, uk_sic_2007, us_naics_2002, us_naics_2007, be_nace_2008, dk_db_2007, nz_bic_2006, no_sic_2007, anz_sic_2006, nz_bic_2006, in_nic_2004_mca, ca_qc_cae, lu_nace_2. For other code schemes, or details of these, contact info@opencorporates.com"
|
10
|
+
},
|
11
|
+
"start_date": {"type":"string","format": "date"},
|
12
|
+
"end_date": {"type":"string","format": "date"}
|
10
13
|
},
|
11
14
|
"required": [ "code", "code_scheme_id" ]
|
12
15
|
}
|
@@ -4,12 +4,16 @@
|
|
4
4
|
"type": "object",
|
5
5
|
"properties": { "name": { "type": "string", "minLength": 1 },
|
6
6
|
"start_date": {
|
7
|
-
"
|
8
|
-
|
7
|
+
"anyOf": [
|
8
|
+
{"type":"string","format": "date"},
|
9
|
+
{"type":"null"}
|
10
|
+
]
|
9
11
|
},
|
10
12
|
"end_date": {
|
11
|
-
"
|
12
|
-
|
13
|
+
"anyOf": [
|
14
|
+
{"type":"string","format": "date"},
|
15
|
+
{"type":"null"}
|
16
|
+
]
|
13
17
|
},
|
14
18
|
"position": { "type": "string" },
|
15
19
|
"other_attributes": {
|
@@ -13,6 +13,9 @@
|
|
13
13
|
"maximum": 100,
|
14
14
|
"minimum": 0
|
15
15
|
},
|
16
|
+
"start_date": {"type":"string","format": "date"},
|
17
|
+
"end_date": {"type":"string","format": "date"},
|
18
|
+
"sample_date": {"type":"string","format": "date"},
|
16
19
|
"shareholders": {
|
17
20
|
"description": "Legal persons who own this share parcel",
|
18
21
|
"type": "array",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbot-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-12-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json-schema
|