turbot 0.0.48 → 0.0.49

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MWU3YWMxMTE2MjcxZjZlZjczNmM5NDg3ZTZlMTEwZTY5MzcwM2Q4ZA==
5
- data.tar.gz: !binary |-
6
- Mzg1ZDM1OWQ5ODI2N2ExMzlkZTY5ZGFiZWViYzE5MGMyOTVkZTkxOA==
2
+ SHA1:
3
+ metadata.gz: 062fc535e7b4045b599ac30e1dc5a1276cc082d3
4
+ data.tar.gz: 9b0b852c875e9ce9346f64d6f024fd3bef7dc5fc
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MTY2MGJjYTQ0YWU2MzIwODE5MzJlYjUyNjVkNTcyZWNiNTY1MzNiNTczOGM0
10
- NzkzNjEzMWI0ZDYyZjRiYWJlYjJiZjQwOWM2M2M4NDk1YTk3MmJhYzA4Yzky
11
- ZTI4MTRjZmM2ZGU5YTJjMzcyMWQ3MWE2MmM1NDA5ODU5OWQ3N2Q=
12
- data.tar.gz: !binary |-
13
- NzViOTRlMThjZjIyMDY5MjlmODFhZDg3NWQ3ZjQ2YWY0YTMxMTE0MjVmYjZk
14
- NjNmZTc1OTgwMGJhZWVlNzE3NmMzYTI4NDFkYWNkM2M2YzhlNWE2MTYwODEx
15
- M2I4ZDZhYjdlZWIwMWY0Nzc2OGJhYWIxZDVmNzgxZTI5NGExYTc=
6
+ metadata.gz: b864c71e072b51c5556af5e1a4d821a583e58b8412ed6b59486d81403fc05bafbb549de97b3feebe4f12a479f13e7552bc8959fd2a9d4cecb49664e18611be54
7
+ data.tar.gz: 43d31aa20db363e1db25fb83d67fe94addfcec6864c75b640a7452ea24bcbf7c87ad2dd2515bd9b124aeb5abc6469debbca90dfe35cd132fd56193d0a2abaa03
@@ -1,3 +1,3 @@
1
1
  module Turbot
2
- VERSION = "0.0.48"
2
+ VERSION = "0.0.49"
3
3
  end
@@ -59,12 +59,24 @@
59
59
  "$ref": "includes/filing.json"
60
60
  }
61
61
  },
62
+ "industry_codes": {
63
+ "type": "array",
64
+ "items": {
65
+ "$ref": "includes/industry_code.json"
66
+ }
67
+ },
62
68
  "previous_names": {
63
69
  "type": "array",
64
70
  "items": {
65
71
  "$ref": "includes/previous_name.json"
66
72
  }
67
73
  },
74
+ "alternative_names": {
75
+ "type": "array",
76
+ "items": {
77
+ "$ref": "includes/alternative_name.json"
78
+ }
79
+ },
68
80
  "branch": {
69
81
  "type": ["string","null"],
70
82
  "description": "A flag to denote whether a company is a branch entity. This should only be set if the company is a type of branch (otherwise should be null). In general the only option here is 'F' for a 'Foreign' branch, i.e. an out-of-jurisdiction entity that has registered as having a presence in the jurisdiction. In the US this is sometimes called a Foreign Corporation",
@@ -0,0 +1,27 @@
1
+ {
2
+ "title": "Financial-Payment",
3
+ "description": "A Financial-Payment is a payment from government to a recipient",
4
+ "$schema": "http://json-schema.org/draft-04/schema#",
5
+ "type": "object",
6
+ "properties": {
7
+ "source_jurisdiction": {
8
+ "description": "Jurisdiction of the source of the data",
9
+ "type": "string"
10
+ },
11
+ "company": {
12
+ "$ref": "includes/company.json"
13
+ },
14
+ "data": {
15
+ "type": "array",
16
+ "description": "This is an array of data objects, that is the objects which actually contain the data about the datum. Generally there will only be one element in this, although in for some types of data_types there may naturally be several releated to the same company, e.g. shareholders",
17
+ "items": {
18
+ "$ref": "includes/financial-payment-data-object.json"
19
+ },
20
+ "additionalItems": false
21
+ }
22
+ },
23
+ "required": [
24
+ "company",
25
+ "data"
26
+ ]
27
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "AlternativeName",
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
+ "type": "object",
5
+ "properties": { "company_name": { "type": "string", "minLength": 1 },
6
+ "start_date": { "type": "date" },
7
+ "end_date": { "type": "date" },
8
+ "language": { "type": "string", "minLength": 2, "maxLength": 2 },
9
+ "type": { "type": "string", "enum": ["trading", "abbreviation", "legal"] }
10
+ },
11
+ "required": [ "company_name" ]
12
+ }
13
+
@@ -5,8 +5,10 @@
5
5
  "properties": {
6
6
  "name": { "type": "string" },
7
7
  "jurisdiction": { "type": "string" },
8
+ "company_number": { "type": "string" },
8
9
  "identifier": {
9
10
  "type": "string",
11
+ "description": "An official identifier paired with a code for the issuer of the identifier, e.g sec/12345",
10
12
  "pattern": "^[^/]+/[^/]+$"
11
13
  }
12
14
  },
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "Financial Payment Datum",
3
+ "type": "object",
4
+ "properties": {
5
+ "data_type": { "enum": [ "financial_payment" ] },
6
+ "source_url": {
7
+ "type": "string"},
8
+ "confidence": {
9
+ "type": "string"},
10
+ "properties": {
11
+ "type": "object",
12
+ "properties": {
13
+ "value": {
14
+ "description": "The regulating body that issued the licence",
15
+ "type": "string"},
16
+ "payee_name": {
17
+ "description": "The name of the payee (the entity that received the money)",
18
+ "type": "string"},
19
+ "currency": {
20
+ "description": "The currency of the payment (three letter symbol, e.g. USD, GBP, EUR)",
21
+ "type": "string"},
22
+ "date": {
23
+ "description": "The date on which the payment was made",
24
+ "type": "date"},
25
+ "transaction_number": {
26
+ "description": "The unique identifier for the transaction, scoped to this bot",
27
+ "type": "string"},
28
+ "jurisdiction": {
29
+ "description": "The jurisdiction of the body that made the payment, eg. UK, France, Delaware, Manchester",
30
+ "type": "string"},
31
+ "more_details_url": {
32
+ "description": "A url from which more details can be seen (may be the same as the source_url)",
33
+ "type": ["string",null]},
34
+ "description": {
35
+ "description": "The description of the transaction as given in the raw data",
36
+ "type": ["string",null]},
37
+ "expense_type": {
38
+ "description": "The type of expense -- can be either capital, revenue (i.e. current expenditure) or null",
39
+ "enum": ["capital","revenue",null]},
40
+ "expense_area": {
41
+ "description": "category (in words) of the expenditure",
42
+ "type": ["string",null]},
43
+ "entity_name": {
44
+ "description": "The name of the government entity that made the payment, e.g. Environment Agency",
45
+ "type": "string"},
46
+ "entity_uri": {
47
+ "description": "A unique URL (ideally a dereferencable URI) for the government entity",
48
+ "type": ["string",null]},
49
+ "department_name": {
50
+ "description": "The name of the government department which the entity belongs to (if relevant), e.g. Department of Health",
51
+ "type": ["string",null]},
52
+ "csv_line_number": {
53
+ "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",
54
+ "type": ["string",null]}
55
+ },
56
+ "required": [ "value", "payee_name", "date","currency" ]
57
+ }
58
+ },
59
+ "required": [ "data_type", "properties","source_url","confidence" ]
60
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "IndustryCode",
3
+ "description": "An industry code from a standard code list (e.g. NAICS 2007 or NACE 2)",
4
+ "type": "object",
5
+ "properties": { "name": { "type": "string" },
6
+ "code": { "type": "string" },
7
+ "code_scheme_id": { "type": "string", "enum": ["eu_nace_2", "uk_sic_2003", "uk_sic_2007", "us_naics_2002", "us_naics_2007", "be_nace_2008"] },
8
+ "start_date": { "type": "date" },
9
+ "end_date": { "type": "date" }
10
+ },
11
+ "required": [ "code", "code_scheme_id" ]
12
+ }
13
+
@@ -3,12 +3,19 @@
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "data_type": { "enum": [ "licence" ] },
6
+ "source_url": {
7
+ "type": "string"},
8
+ "confidence": {
9
+ "type": "string"},
6
10
  "properties": {
7
11
  "type": "object",
8
12
  "properties": {
9
13
  "regulator": {
10
14
  "description": "The regulating body that issued the licence",
11
15
  "type": "string"},
16
+ "category": {
17
+ "description": "The category of licence. Current possible values are: 'Financial','Business'",
18
+ "enum": [ "Financial", "Business" ]},
12
19
  "jurisdiction_code": {
13
20
  "description": "The jurisdiction for which licence was issued",
14
21
  "type": "string"},
@@ -21,8 +28,8 @@
21
28
  "oc_classification": {
22
29
  "type": "array"}
23
30
  },
24
- "required": [ "jurisdiction_code", "jurisdiction_classification" ]
31
+ "required": [ "jurisdiction_code", "jurisdiction_classification", "category" ]
25
32
  }
26
33
  },
27
- "required": [ "data_type", "properties" ]
34
+ "required": [ "data_type", "properties","source_url","confidence" ]
28
35
  }
@@ -11,6 +11,9 @@
11
11
  "direct": {
12
12
  "description": "If the control is direct (if via an intermediary, this value should be false; if unknown, left blank)",
13
13
  "type": "boolean"},
14
+ "percentage_controlled": {
15
+ "description": "Percentage controlled, either directly or indirectly",
16
+ "type": "number"},
14
17
  "significant": {
15
18
  "description": "Does the source define the control as somehow significant?",
16
19
  "type": "boolean"},
@@ -33,15 +36,7 @@
33
36
  "type": "string"
34
37
  },
35
38
  "identifier": {
36
- "description": "Unique identifier of person",
37
- "type": "string"
38
- },
39
- "address": {
40
- "description": "Address given for owner of parcel",
41
- "type": "string"
42
- },
43
- "address_country": {
44
- "description": "Country part of owner's address",
39
+ "description": "Unique identifier of company",
45
40
  "type": "string"
46
41
  }
47
42
  }
@@ -1,21 +1,27 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
2
  "title": "Licence Schema",
3
+ "description": "A Licence is a permission for an entity to do something that would otherwise not be permitted. An example is a 'Financial' licence to operate as a bank, or an financial advisor, for example, or a 'Business' Licence to sell alcohol, or operate an amusement arcade. Future licence types (extractives, pollution) will be added later",
4
+ "$schema": "http://json-schema.org/draft-04/schema#",
4
5
  "type": "object",
5
- "allOf" : [
6
- // The following is a basic statement with sample_date, etc
7
- { "$ref": "includes/base-statement.json" },
8
- // And this overrides it to provide data-type-specific information
9
- {
10
- "properties": {
11
- "data": {
12
- "items": {
13
- "allOf": [
14
- { "$ref": "includes/licence-data.json" }
15
- ]
16
- }
17
- }
18
- }
6
+ "properties": {
7
+ "source_jurisdiction": {
8
+ "description": "Jurisdiction of the source of the data",
9
+ "type": "string"
10
+ },
11
+ "company": {
12
+ "$ref": "includes/company.json"
13
+ },
14
+ "data": {
15
+ "type": "array",
16
+ "description": "This is an array of data objects, that is the objects which actually contain the data about the datum. Generally there will only be one element in this, although in for some types of data_types there may naturally be several releated to the same company, e.g. shareholders",
17
+ "items": {
18
+ "$ref": "includes/licence-data-object.json"
19
+ },
20
+ "additionalItems": false
19
21
  }
22
+ },
23
+ "required": [
24
+ "company",
25
+ "data"
20
26
  ]
21
27
  }
@@ -1,19 +1,27 @@
1
1
  {
2
+ "title": "Subsidiary Relationship",
3
+ "description": "A relationship of control between two companies",
2
4
  "$schema": "http://json-schema.org/draft-04/schema#",
3
- "title": "Subsidiary Relationship Schema",
4
5
  "type": "object",
5
- "allOf" : [
6
- { "$ref": "includes/base-statement.json" },
7
- {
8
- "properties": {
9
- "data": {
10
- "items": {
11
- "allOf": [
12
- { "$ref": "includes/subsidiary-relationship-data.json" }
13
- ]
14
- }
15
- }
16
- }
6
+ "properties": {
7
+ "source_jurisdiction": {
8
+ "description": "Jurisdiction of the source of the data",
9
+ "type": "string"
10
+ },
11
+ "company": {
12
+ "$ref": "includes/company.json"
13
+ },
14
+ "data": {
15
+ "type": "array",
16
+ "description": "This is an array of data objects, that is the objects which actually contain the data about the datum. Generally there will only be one element in this, although in for some types of data_types there may naturally be several releated to the same company, e.g. shareholders",
17
+ "items": {
18
+ "$ref": "includes/subsidiary-relationship-data.json"
19
+ },
20
+ "additionalItems": false
17
21
  }
22
+ },
23
+ "required": [
24
+ "company",
25
+ "data"
18
26
  ]
19
27
  }
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.0.48
4
+ version: 0.0.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Turbot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-14 00:00:00.000000000 Z
11
+ date: 2014-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: netrc
@@ -42,42 +42,42 @@ dependencies:
42
42
  name: launchy
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.3.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.3.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubyzip
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.0.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: json-schema
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
@@ -114,26 +114,26 @@ dependencies:
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 0.0.15
117
+ version: 0.0.17
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: 0.0.15
124
+ version: 0.0.17
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: excon
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ! '>='
129
+ - - '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
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
138
  version: '0'
139
139
  description: Client library and command-line tool to deploy and manage apps on Turbot.
@@ -175,23 +175,6 @@ files:
175
175
  - lib/turbot/updater.rb
176
176
  - lib/turbot/version.rb
177
177
  - lib/vendor/turbot/okjson.rb
178
- - schema/schemas/company-schema.json
179
- - schema/schemas/includes/address.json
180
- - schema/schemas/includes/base-statement.json
181
- - schema/schemas/includes/company.json
182
- - schema/schemas/includes/filing.json
183
- - schema/schemas/includes/licence-data.json
184
- - schema/schemas/includes/officer.json
185
- - schema/schemas/includes/previous_name.json
186
- - schema/schemas/includes/share-parcel-data.json
187
- - schema/schemas/includes/share-parcel.json
188
- - schema/schemas/includes/subsidiary-relationship-data.json
189
- - schema/schemas/includes/total-shares.json
190
- - schema/schemas/licence-schema.json
191
- - schema/schemas/primary-data-schema.json
192
- - schema/schemas/share-parcel-schema.json
193
- - schema/schemas/simple-licence-schema.json
194
- - schema/schemas/subsidiary-relationship-schema.json
195
178
  - spec/helper/legacy_help.rb
196
179
  - spec/helper/pg_dump_restore_spec.rb
197
180
  - spec/schemas/dummy_schema.json
@@ -225,6 +208,26 @@ files:
225
208
  - templates/manifest.json
226
209
  - templates/python/scraper.py
227
210
  - templates/ruby/scraper.rb
211
+ - schema/schemas/company-schema.json
212
+ - schema/schemas/financial-payment-schema.json
213
+ - schema/schemas/includes/address.json
214
+ - schema/schemas/includes/alternative_name.json
215
+ - schema/schemas/includes/company.json
216
+ - schema/schemas/includes/filing.json
217
+ - schema/schemas/includes/financial-payment-data-object.json
218
+ - schema/schemas/includes/industry_code.json
219
+ - schema/schemas/includes/licence-data-object.json
220
+ - schema/schemas/includes/officer.json
221
+ - schema/schemas/includes/previous_name.json
222
+ - schema/schemas/includes/share-parcel-data.json
223
+ - schema/schemas/includes/share-parcel.json
224
+ - schema/schemas/includes/subsidiary-relationship-data.json
225
+ - schema/schemas/includes/total-shares.json
226
+ - schema/schemas/licence-schema.json
227
+ - schema/schemas/primary-data-schema.json
228
+ - schema/schemas/share-parcel-schema.json
229
+ - schema/schemas/simple-licence-schema.json
230
+ - schema/schemas/subsidiary-relationship-schema.json
228
231
  homepage: http://turbot.com/
229
232
  licenses:
230
233
  - MIT
@@ -235,19 +238,18 @@ require_paths:
235
238
  - lib
236
239
  required_ruby_version: !ruby/object:Gem::Requirement
237
240
  requirements:
238
- - - ! '>='
241
+ - - '>='
239
242
  - !ruby/object:Gem::Version
240
243
  version: 1.9.2
241
244
  required_rubygems_version: !ruby/object:Gem::Requirement
242
245
  requirements:
243
- - - ! '>='
246
+ - - '>='
244
247
  - !ruby/object:Gem::Version
245
248
  version: '0'
246
249
  requirements: []
247
250
  rubyforge_project:
248
- rubygems_version: 2.2.2
251
+ rubygems_version: 2.0.14
249
252
  signing_key:
250
253
  specification_version: 4
251
254
  summary: Client library and CLI to deploy apps on Turbot.
252
255
  test_files: []
253
- has_rdoc:
@@ -1,27 +0,0 @@
1
- {
2
- "name": "Base statement",
3
- "description": "A base statement which must be extended by a schema to be used in OpenCorporates",
4
- "type": "object",
5
- "properties": {
6
- "source_url": {
7
- "description": "Place where this fact can be verified",
8
- "type": "string"
9
- },
10
- "source_jurisdiction": {
11
- "description": "Jurisdiction of the source of the data",
12
- "type": "string"
13
- },
14
- "sample_date": {
15
- "description": "Date on which this fact was known to be true",
16
- "type": "string"
17
- },
18
- "company": {
19
- "$ref" : "../includes/company.json"
20
- },
21
- "data": {
22
- "type": "array",
23
- "additionalItems": false
24
- }
25
- },
26
- "required": ["source_url", "data", "sample_date", "company"]
27
- }