openc_bot 0.0.18 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/openc_bot/exceptions.rb +3 -0
- data/lib/openc_bot/helpers/incremental_search.rb +1 -1
- data/lib/openc_bot/helpers/register_methods.rb +28 -9
- data/lib/openc_bot/version.rb +1 -1
- data/publish.sh +2 -0
- data/schemas/Gemfile +1 -1
- data/schemas/schemas/company-schema.json +62 -3
- data/schemas/schemas/includes/address.json +1 -1
- data/schemas/schemas/includes/alternative_name.json +2 -2
- data/schemas/schemas/includes/filing.json +1 -1
- data/schemas/schemas/includes/industry_code.json +6 -3
- data/schemas/schemas/includes/officer.json +40 -4
- data/schemas/schemas/includes/previous_name.json +5 -2
- data/schemas/schemas/includes/share-parcel.json +3 -0
- data/schemas/schemas/simple-licence-schema.json +10 -5
- data/schemas/schemas/simple-subsidiary-schema.json +12 -6
- data/schemas/spec/sample-data/invalid/company-19.json +1 -1
- data/schemas/spec/sample-data/invalid/company-56.json +7 -0
- data/schemas/spec/sample-data/invalid/company-57.json +7 -0
- data/schemas/spec/sample-data/invalid/company-58.json +7 -0
- data/schemas/spec/sample-data/invalid/company-59.json +13 -0
- data/schemas/spec/sample-data/invalid/company-60.json +7 -0
- data/schemas/spec/sample-data/invalid/company-61.json +7 -0
- data/schemas/spec/sample-data/invalid/company-62.json +9 -0
- data/schemas/spec/sample-data/invalid/company-63.json +12 -0
- data/schemas/spec/sample-data/invalid/company-64.json +14 -0
- data/schemas/spec/sample-data/invalid/company-65.json +14 -0
- data/schemas/spec/sample-data/invalid/company-66.json +13 -0
- data/schemas/spec/sample-data/invalid/company-67.json +14 -0
- data/schemas/spec/sample-data/invalid/company-68.json +12 -0
- data/schemas/spec/sample-data/invalid/company-69.json +12 -0
- data/schemas/spec/sample-data/invalid/company-70.json +14 -0
- data/schemas/spec/sample-data/invalid/simple-licence-04.json +10 -0
- data/schemas/spec/sample-data/invalid/simple-licence-05.json +10 -0
- data/schemas/spec/sample-data/invalid/simple-licence-06.json +10 -0
- data/schemas/spec/sample-data/invalid/simple-subsidiary-02.json +13 -0
- data/schemas/spec/sample-data/valid/company-19.json +13 -2
- data/schemas/spec/sample-data/valid/company-33.json +5 -0
- data/schemas/spec/sample-data/valid/company-43.json +7 -0
- data/schemas/spec/sample-data/valid/company-44.json +7 -0
- data/schemas/spec/sample-data/valid/company-45.json +23 -0
- data/schemas/spec/sample-data/valid/company-46.json +7 -0
- data/schemas/spec/sample-data/valid/company-47.json +12 -0
- data/schemas/spec/sample-data/valid/company-48.json +7 -0
- data/schemas/spec/sample-data/valid/company-49.json +14 -0
- data/schemas/spec/sample-data/valid/company-50.json +13 -0
- data/schemas/spec/sample-data/valid/company-51.json +14 -0
- data/schemas/spec/sample-data/valid/company-52.json +12 -0
- data/schemas/spec/sample-data/valid/company-53.json +9 -0
- data/schemas/spec/validation_spec.rb +1 -1
- data/spec/lib/exceptions_spec.rb +25 -2
- data/spec/lib/helpers/incremental_search_spec.rb +13 -1
- data/spec/lib/helpers/register_methods_spec.rb +31 -2
- data/spec/schemas/company-schema_spec.rb +9 -9
- metadata +51 -44
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"company_name": "",
|
3
|
+
"company_jurisdiction": "gb",
|
4
|
+
"licence_number": "ABC123",
|
5
|
+
"jurisdiction_classification": "Bank",
|
6
|
+
"licence_jurisdiction": "fr",
|
7
|
+
"source_url": "http://example.com/abc123",
|
8
|
+
"sample_date": "2014-06-01",
|
9
|
+
"confidence": "MEDIUM"
|
10
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"company_name": "Foo",
|
3
|
+
"company_jurisdiction": "",
|
4
|
+
"licence_number": "ABC123",
|
5
|
+
"jurisdiction_classification": "Bank",
|
6
|
+
"licence_jurisdiction": "fr",
|
7
|
+
"source_url": "http://example.com/abc123",
|
8
|
+
"sample_date": "2014-06-01",
|
9
|
+
"confidence": "MEDIUM"
|
10
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"source_url": "http://somewhere.com/a",
|
3
|
+
"sample_date": "2014/02/01",
|
4
|
+
"start_date": "2014/01/01",
|
5
|
+
"end_date": "2015/02/01",
|
6
|
+
"confidence": "HIGH",
|
7
|
+
"parent_name": "Widgets R US",
|
8
|
+
"parent_jurisdiction": "us_de",
|
9
|
+
"direct": true,
|
10
|
+
"percentage_controlled": "56.124",
|
11
|
+
"subsidiary_name": "",
|
12
|
+
"subsidiary_jurisdiction": "us_de"
|
13
|
+
}
|
@@ -13,14 +13,25 @@
|
|
13
13
|
},
|
14
14
|
{
|
15
15
|
"name": "Barney Rubble",
|
16
|
+
"start_date": null,
|
17
|
+
"end_date": null,
|
16
18
|
"other_attributes": {
|
17
19
|
"foo": "bar"
|
18
20
|
}
|
19
21
|
},
|
20
22
|
{
|
21
|
-
"name": "
|
23
|
+
"name": "Wilman Rubble",
|
22
24
|
"start_date": "2010-12-22",
|
23
|
-
"end_date": "2011-01-03"
|
25
|
+
"end_date": "2011-01-03",
|
26
|
+
"uid": "ABC1234",
|
27
|
+
"other_attributes": {
|
28
|
+
"address": "32 Rubble St, Bedrock",
|
29
|
+
"nationality": "United States",
|
30
|
+
"date_of_birth": "1970-04-22",
|
31
|
+
"occupation": "Caveman",
|
32
|
+
"type": "Person",
|
33
|
+
"person_uid": "CD444"
|
34
|
+
}
|
24
35
|
}
|
25
36
|
]
|
26
37
|
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/*valid share_parcels*/
|
2
|
+
{
|
3
|
+
"name": "Foo Inc",
|
4
|
+
"company_number": "12345",
|
5
|
+
"jurisdiction_code": "ie",
|
6
|
+
"share_parcels": [
|
7
|
+
{
|
8
|
+
"number_of_shares": 1234,
|
9
|
+
"start_date": "2008-11-22",
|
10
|
+
"start_date_type": "=",
|
11
|
+
"shareholders": [
|
12
|
+
{
|
13
|
+
"name": "Megacorp Inc",
|
14
|
+
"type": "Company",
|
15
|
+
"jurisdiction": "Bermuda",
|
16
|
+
"company_number": "12345",
|
17
|
+
"address": "1 Global Ave, Bermuda"
|
18
|
+
}
|
19
|
+
],
|
20
|
+
"confidence": 42
|
21
|
+
}
|
22
|
+
]
|
23
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/*valid mailing_address object*/
|
2
|
+
{
|
3
|
+
"name": "Foo Inc",
|
4
|
+
"company_number": "12345",
|
5
|
+
"jurisdiction_code": "us_de",
|
6
|
+
"mailing_address": {
|
7
|
+
"street_address": "32 Foo St",
|
8
|
+
"locality": "Footown",
|
9
|
+
"region": "Fooshire",
|
10
|
+
"postal_code": "FO1 2BA"
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/*valid headquarters_address object*/
|
2
|
+
{
|
3
|
+
"name": "Foo Inc",
|
4
|
+
"company_number": "12345",
|
5
|
+
"jurisdiction_code": "us_de",
|
6
|
+
"headquarters_address": {
|
7
|
+
"street_address": "32 Foo St",
|
8
|
+
"locality": "Footown",
|
9
|
+
"region": "Fooshire",
|
10
|
+
"postal_code": "FO1 2BA"
|
11
|
+
}
|
12
|
+
}
|