turbot 0.0.36 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/turbot/command/bots.rb +5 -0
- data/lib/turbot/version.rb +1 -1
- data/schema/schemas/simple-licence-schema.json +50 -0
- metadata +30 -28
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NTkwMjE0MDBiZTcxMjBlOTU1OGVkZmNjNjdhMWI0MjYzZTMyOTYwNw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MmU5N2MwZWQ4ZWE2NjI5OGFlNWJmZTY0NmI1Mzc0NzI4MzM4OTk3NA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MjQ4YjM1NmIxOWI5ZDk1MjU3MDZjNzExYWM3ZTlkMzNhY2FjMDE5YTA0YzI5
|
10
|
+
MGIwNDgzYTU0ODY4NGZiZDg1NWJlZGJmMzAzMTdlMWQwYjI5ZTZmYjRjMjlk
|
11
|
+
YWQ5YTM5OTAyNzhiYWU2YTdlYzhhNGUyYmRkM2Y4YTM2MDFkOTM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZDkwNTE2MmExMGZmOGMyNzBmYTFmNTg0ZWZjMmNmMzA4OTU4ZmNhN2IwYzIz
|
14
|
+
MDI0M2E1YmRiM2FmMmUwM2U1MWFjNzhhNmI3NTU1NGUxOGVjNmFiMGFhYzky
|
15
|
+
ZjhhNGRiNWQxNTJlOWEyYjcyMWRkNWZkNWQwOTYyOWEzYzhkZWQ=
|
data/lib/turbot/command/bots.rb
CHANGED
@@ -142,6 +142,11 @@ class Turbot::Command::Bots < Turbot::Command::Base
|
|
142
142
|
# Registered my_amazing_bot!
|
143
143
|
|
144
144
|
def register
|
145
|
+
response = api.show_bot(bot)
|
146
|
+
if response.is_a? Turbot::API::SuccessResponse
|
147
|
+
error("There's already a bot called #{bot} registered with Turbot. Bot names must be unique.")
|
148
|
+
end
|
149
|
+
|
145
150
|
working_dir = Dir.pwd
|
146
151
|
manifest = parsed_manifest(working_dir)
|
147
152
|
response = api.create_bot(bot, manifest)
|
data/lib/turbot/version.rb
CHANGED
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "Simple Licence Schema",
|
4
|
+
"type": "object",
|
5
|
+
"properties": {
|
6
|
+
"source_url": {
|
7
|
+
"description": "Place where this fact can be verified",
|
8
|
+
"type": "string"
|
9
|
+
},
|
10
|
+
"sample_date": {
|
11
|
+
"description": "Date on which this fact was known to be true",
|
12
|
+
"type": "string"
|
13
|
+
},
|
14
|
+
"confidence": {
|
15
|
+
"description": "Confidence in accuracy of data",
|
16
|
+
"type": "string",
|
17
|
+
"enum": ["HIGH", "MEDIUM", "LOW"]
|
18
|
+
},
|
19
|
+
"company_name": {
|
20
|
+
"description": "Name of the company holding the licence",
|
21
|
+
"type": "string"
|
22
|
+
},
|
23
|
+
"company_jurisdiction": {
|
24
|
+
"description": "Jurisdiction where company is based",
|
25
|
+
"type": "string"
|
26
|
+
},
|
27
|
+
"licence_number": {
|
28
|
+
"description": "Licence number or code",
|
29
|
+
"type": "string"
|
30
|
+
},
|
31
|
+
"jurisdiction_classification": {
|
32
|
+
"description": "Description of how regulator classifies licence",
|
33
|
+
"type": "string"
|
34
|
+
},
|
35
|
+
"regulator": {
|
36
|
+
"description": "The regulating body that issued the licence",
|
37
|
+
"type": "string"
|
38
|
+
},
|
39
|
+
"licence_jurisdiction": {
|
40
|
+
"description": "Jurisdiction where licence is issued",
|
41
|
+
"type": "string"
|
42
|
+
},
|
43
|
+
"category": {
|
44
|
+
"description": "Category of licence",
|
45
|
+
"type": "string",
|
46
|
+
"enum": ["Financial"]
|
47
|
+
}
|
48
|
+
},
|
49
|
+
"required": ["source_url", "sample_date", "company_name", "company_jurisdiction"]
|
50
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Turbot
|
@@ -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
|
@@ -126,14 +126,14 @@ dependencies:
|
|
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,6 +175,23 @@ 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/license-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
|
178
195
|
- spec/helper/legacy_help.rb
|
179
196
|
- spec/helper/pg_dump_restore_spec.rb
|
180
197
|
- spec/schemas/dummy_schema.json
|
@@ -208,22 +225,6 @@ files:
|
|
208
225
|
- templates/manifest.json
|
209
226
|
- templates/python/scraper.py
|
210
227
|
- templates/ruby/scraper.rb
|
211
|
-
- schema/schemas/company-schema.json
|
212
|
-
- schema/schemas/includes/address.json
|
213
|
-
- schema/schemas/includes/base-statement.json
|
214
|
-
- schema/schemas/includes/company.json
|
215
|
-
- schema/schemas/includes/filing.json
|
216
|
-
- schema/schemas/includes/license-data.json
|
217
|
-
- schema/schemas/includes/officer.json
|
218
|
-
- schema/schemas/includes/previous_name.json
|
219
|
-
- schema/schemas/includes/share-parcel-data.json
|
220
|
-
- schema/schemas/includes/share-parcel.json
|
221
|
-
- schema/schemas/includes/subsidiary-relationship-data.json
|
222
|
-
- schema/schemas/includes/total-shares.json
|
223
|
-
- schema/schemas/licence-schema.json
|
224
|
-
- schema/schemas/primary-data-schema.json
|
225
|
-
- schema/schemas/share-parcel-schema.json
|
226
|
-
- schema/schemas/subsidiary-relationship-schema.json
|
227
228
|
homepage: http://turbot.com/
|
228
229
|
licenses:
|
229
230
|
- MIT
|
@@ -234,18 +235,19 @@ require_paths:
|
|
234
235
|
- lib
|
235
236
|
required_ruby_version: !ruby/object:Gem::Requirement
|
236
237
|
requirements:
|
237
|
-
- - '>='
|
238
|
+
- - ! '>='
|
238
239
|
- !ruby/object:Gem::Version
|
239
240
|
version: 1.9.2
|
240
241
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
241
242
|
requirements:
|
242
|
-
- - '>='
|
243
|
+
- - ! '>='
|
243
244
|
- !ruby/object:Gem::Version
|
244
245
|
version: '0'
|
245
246
|
requirements: []
|
246
247
|
rubyforge_project:
|
247
|
-
rubygems_version: 2.
|
248
|
+
rubygems_version: 2.2.2
|
248
249
|
signing_key:
|
249
250
|
specification_version: 4
|
250
251
|
summary: Client library and CLI to deploy apps on Turbot.
|
251
252
|
test_files: []
|
253
|
+
has_rdoc:
|