turbot 0.1.7 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Turbot
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.9"
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,155 +1,126 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Turbot
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-12-16 00:00:00.000000000 Z
12
+ date: 2014-12-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: turbotlib
15
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &10099200 !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: 0.0.8
20
22
  type: :runtime
21
23
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ~>
25
- - !ruby/object:Gem::Version
26
- version: 0.0.8
24
+ version_requirements: *10099200
27
25
  - !ruby/object:Gem::Dependency
28
26
  name: netrc
29
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &10098660 !ruby/object:Gem::Requirement
28
+ none: false
30
29
  requirements:
31
30
  - - ~>
32
31
  - !ruby/object:Gem::Version
33
32
  version: 0.7.7
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ~>
39
- - !ruby/object:Gem::Version
40
- version: 0.7.7
35
+ version_requirements: *10098660
41
36
  - !ruby/object:Gem::Dependency
42
37
  name: rest-client
43
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &10098180 !ruby/object:Gem::Requirement
39
+ none: false
44
40
  requirements:
45
41
  - - ~>
46
42
  - !ruby/object:Gem::Version
47
43
  version: 1.6.1
48
44
  type: :runtime
49
45
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 1.6.1
46
+ version_requirements: *10098180
55
47
  - !ruby/object:Gem::Dependency
56
48
  name: launchy
57
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &10097620 !ruby/object:Gem::Requirement
50
+ none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: 0.3.2
62
55
  type: :runtime
63
56
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ! '>='
67
- - !ruby/object:Gem::Version
68
- version: 0.3.2
57
+ version_requirements: *10097620
69
58
  - !ruby/object:Gem::Dependency
70
59
  name: rubyzip
71
- requirement: !ruby/object:Gem::Requirement
60
+ requirement: &10097160 !ruby/object:Gem::Requirement
61
+ none: false
72
62
  requirements:
73
63
  - - ! '>='
74
64
  - !ruby/object:Gem::Version
75
65
  version: 1.0.0
76
66
  type: :runtime
77
67
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ! '>='
81
- - !ruby/object:Gem::Version
82
- version: 1.0.0
68
+ version_requirements: *10097160
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: json-schema
85
- requirement: !ruby/object:Gem::Requirement
71
+ requirement: &10096760 !ruby/object:Gem::Requirement
72
+ none: false
86
73
  requirements:
87
74
  - - ! '>='
88
75
  - !ruby/object:Gem::Version
89
76
  version: '0'
90
77
  type: :runtime
91
78
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ! '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
79
+ version_requirements: *10096760
97
80
  - !ruby/object:Gem::Dependency
98
81
  name: activesupport
99
- requirement: !ruby/object:Gem::Requirement
82
+ requirement: &10096140 !ruby/object:Gem::Requirement
83
+ none: false
100
84
  requirements:
101
- - - '='
85
+ - - =
102
86
  - !ruby/object:Gem::Version
103
87
  version: 4.1.4
104
88
  type: :runtime
105
89
  prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '='
109
- - !ruby/object:Gem::Version
110
- version: 4.1.4
90
+ version_requirements: *10096140
111
91
  - !ruby/object:Gem::Dependency
112
92
  name: turbot-api
113
- requirement: !ruby/object:Gem::Requirement
93
+ requirement: &10095560 !ruby/object:Gem::Requirement
94
+ none: false
114
95
  requirements:
115
- - - '='
96
+ - - =
116
97
  - !ruby/object:Gem::Version
117
98
  version: 0.0.14
118
99
  type: :runtime
119
100
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '='
123
- - !ruby/object:Gem::Version
124
- version: 0.0.14
101
+ version_requirements: *10095560
125
102
  - !ruby/object:Gem::Dependency
126
103
  name: turbot-runner
127
- requirement: !ruby/object:Gem::Requirement
104
+ requirement: &10095060 !ruby/object:Gem::Requirement
105
+ none: false
128
106
  requirements:
129
- - - '='
107
+ - - =
130
108
  - !ruby/object:Gem::Version
131
109
  version: 0.1.14
132
110
  type: :runtime
133
111
  prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - '='
137
- - !ruby/object:Gem::Version
138
- version: 0.1.14
112
+ version_requirements: *10095060
139
113
  - !ruby/object:Gem::Dependency
140
114
  name: excon
141
- requirement: !ruby/object:Gem::Requirement
115
+ requirement: &10094660 !ruby/object:Gem::Requirement
116
+ none: false
142
117
  requirements:
143
118
  - - ! '>='
144
119
  - !ruby/object:Gem::Version
145
120
  version: '0'
146
121
  type: :runtime
147
122
  prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ! '>='
151
- - !ruby/object:Gem::Version
152
- version: '0'
123
+ version_requirements: *10094660
153
124
  description: Client library and command-line tool to deploy and manage apps on Turbot.
154
125
  email: support@turbot.com
155
126
  executables:
@@ -189,28 +160,6 @@ files:
189
160
  - lib/turbot/updater.rb
190
161
  - lib/turbot/version.rb
191
162
  - lib/vendor/turbot/okjson.rb
192
- - schema/schemas/company-schema.json
193
- - schema/schemas/financial-payment-schema.json
194
- - schema/schemas/includes/address.json
195
- - schema/schemas/includes/alternative_name.json
196
- - schema/schemas/includes/company.json
197
- - schema/schemas/includes/filing.json
198
- - schema/schemas/includes/financial-payment-data-object.json
199
- - schema/schemas/includes/industry_code.json
200
- - schema/schemas/includes/licence-data-object.json
201
- - schema/schemas/includes/officer.json
202
- - schema/schemas/includes/previous_name.json
203
- - schema/schemas/includes/share-parcel-data.json
204
- - schema/schemas/includes/share-parcel.json
205
- - schema/schemas/includes/subsidiary-relationship-data.json
206
- - schema/schemas/includes/total-shares.json
207
- - schema/schemas/licence-schema.json
208
- - schema/schemas/primary-data-schema.json
209
- - schema/schemas/share-parcel-schema.json
210
- - schema/schemas/simple-financial-payment-schema.json
211
- - schema/schemas/simple-licence-schema.json
212
- - schema/schemas/simple-subsidiary-schema.json
213
- - schema/schemas/subsidiary-relationship-schema.json
214
163
  - spec/helper/legacy_help.rb
215
164
  - spec/helper/pg_dump_restore_spec.rb
216
165
  - spec/schemas/dummy_schema.json
@@ -240,29 +189,58 @@ files:
240
189
  - templates/manifest.json
241
190
  - templates/python/scraper.py
242
191
  - templates/ruby/scraper.rb
192
+ - schema/schemas/company-schema.json
193
+ - schema/schemas/financial-payment-schema.json
194
+ - schema/schemas/includes/address.json
195
+ - schema/schemas/includes/alternative_name.json
196
+ - schema/schemas/includes/company.json
197
+ - schema/schemas/includes/filing.json
198
+ - schema/schemas/includes/financial-payment-data-object.json
199
+ - schema/schemas/includes/identifier.json
200
+ - schema/schemas/includes/industry_code.json
201
+ - schema/schemas/includes/licence-data-object.json
202
+ - schema/schemas/includes/officer.json
203
+ - schema/schemas/includes/organisation.json
204
+ - schema/schemas/includes/permission.json
205
+ - schema/schemas/includes/person.json
206
+ - schema/schemas/includes/person_name.json
207
+ - schema/schemas/includes/previous_name.json
208
+ - schema/schemas/includes/share-parcel-data.json
209
+ - schema/schemas/includes/share-parcel.json
210
+ - schema/schemas/includes/subsidiary-relationship-data.json
211
+ - schema/schemas/includes/total-shares.json
212
+ - schema/schemas/includes/unknown_entity_type.json
213
+ - schema/schemas/licence-schema.json
214
+ - schema/schemas/primary-data-schema.json
215
+ - schema/schemas/rich-licence-schema.json
216
+ - schema/schemas/share-parcel-schema.json
217
+ - schema/schemas/simple-financial-payment-schema.json
218
+ - schema/schemas/simple-licence-schema.json
219
+ - schema/schemas/simple-subsidiary-schema.json
220
+ - schema/schemas/subsidiary-relationship-schema.json
243
221
  homepage: http://turbot.com/
244
222
  licenses:
245
223
  - MIT
246
- metadata: {}
247
224
  post_install_message:
248
225
  rdoc_options: []
249
226
  require_paths:
250
227
  - lib
251
228
  required_ruby_version: !ruby/object:Gem::Requirement
229
+ none: false
252
230
  requirements:
253
231
  - - ! '>='
254
232
  - !ruby/object:Gem::Version
255
233
  version: 1.9.2
256
234
  required_rubygems_version: !ruby/object:Gem::Requirement
235
+ none: false
257
236
  requirements:
258
237
  - - ! '>='
259
238
  - !ruby/object:Gem::Version
260
239
  version: '0'
261
240
  requirements: []
262
241
  rubyforge_project:
263
- rubygems_version: 2.2.2
242
+ rubygems_version: 1.8.11
264
243
  signing_key:
265
- specification_version: 4
244
+ specification_version: 3
266
245
  summary: Client library and CLI to deploy apps on Turbot.
267
246
  test_files: []
268
- has_rdoc:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NTY2YmZmMGY0NGYzYTliMGM4MGFmYzMyMzY1NzZjZmUxMjliNjQxYw==
5
- data.tar.gz: !binary |-
6
- NWU3ZjdhZTEzNTcxMzYwOTUzYTgyNDcwNWJlMWNiZTk2MzA1NjI3Ng==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- M2Y3ZTFhOTk2NTQ5MWQ5NzU3ZjA0ZTM0MmI1NjhiZGRjMmNiNThkMWE2MjEw
10
- YTU4MTcyZmExZGFlNjkwNGI3YzE3NWQ2MjM5ZWU5Yzc2YjZlNDY4MzlmZDg2
11
- YjVhNDZjNjY3NGM4NWRlYWVmY2ZjODg3NjNmZTY1YWQ4MGIzMDE=
12
- data.tar.gz: !binary |-
13
- ZjRkNzJiY2ZjYTc3ZjlmOGNhZDUwZjNlY2RjZTg4M2FlYjYwOWFmMWMzYzc1
14
- ZDk1MjFmOWQwZTc4ZGFjNGMwODU2YzI1ODEzNTE4ZjlkYmUyYWZiZGQ2MjJl
15
- NThhYjU2MjBkNmM1OWZlMGQyOWUwNGVjZWU4ZGE1MjM3N2Y0Y2U=