turbot-runner 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module TurbotRunner
2
- VERSION = '0.0.19'
2
+ VERSION = '0.0.20'
3
3
  end
data/lib/turbot_runner.rb CHANGED
@@ -250,6 +250,9 @@ module TurbotRunner
250
250
  end
251
251
 
252
252
  def close
253
+ @stdin.close
254
+ @stdout.read # drain pipe
255
+ @stdout.close
253
256
  @wait_thread.kill
254
257
  end
255
258
  end
@@ -13,7 +13,7 @@
13
13
  "type": "boolean"},
14
14
  "percentage_controlled": {
15
15
  "description": "Percentage controlled, either directly or indirectly",
16
- "type": "number"},
16
+ "type": "string"},
17
17
  "significant": {
18
18
  "description": "Does the source define the control as somehow significant?",
19
19
  "type": "boolean"},
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "title": "Simple Subsidiary 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
+ "start_date": {
15
+ "description": "Earliest known date this was known to be a subsidiary",
16
+ "type": "string"
17
+ },
18
+ "end_date": {
19
+ "description": "Latest known date this was known to be a subsidiary",
20
+ "type": "string"
21
+ },
22
+ "confidence": {
23
+ "description": "Confidence in accuracy of data",
24
+ "type": "string",
25
+ "enum": ["HIGH", "MEDIUM", "LOW"]
26
+ },
27
+ "parent_name": {
28
+ "description": "Name of the controlling company",
29
+ "type": "string"
30
+ },
31
+ "parent_jurisdiction": {
32
+ "description": "Jurisdiction where controlling company is based",
33
+ "type": "string"
34
+ },
35
+ "parent_identifier": {
36
+ "description": "Any unique ID for the controlling company",
37
+ "type": "string"
38
+ },
39
+ "direct": {
40
+ "description": "Is the control relationship direct or indirect (if unknown, leave blank)?",
41
+ "type": "boolean"
42
+ },
43
+ "percentage_controlled": {
44
+ "description": "Percentage of the subsidiary that is controlled (if known), either directly or indirectly",
45
+ "type": "string",
46
+ "pattern": "^[0-9]{1,2}[.]?[0-9]{0,2}$"
47
+ },
48
+ "subsidiary_name": {
49
+ "description": "The name of the subsidiary",
50
+ "type": "string"
51
+ },
52
+ "subsidiary_jurisdiction": {
53
+ "description": "Jurisdiction of the subsidiary",
54
+ "type": "string"
55
+ },
56
+ "subsidiary_identifier": {
57
+ "description": "Any unique id for the subsidiary that might be provided in the source",
58
+ "type": "string"
59
+ }
60
+ },
61
+ "required": ["source_url", "sample_date", "parent_name", "parent_jurisdiction", "subsidiary_name", "subsidiary_jurisdiction"]
62
+ }
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbot-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - OpenCorporates
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-07-16 00:00:00.000000000 Z
12
+ date: 2014-07-22 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: json-schema
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - '='
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - '='
25
28
  - !ruby/object:Gem::Version
@@ -34,6 +37,13 @@ files:
34
37
  - lib/prerun.rb
35
38
  - lib/turbot_runner.rb
36
39
  - lib/turbot_runner/version.rb
40
+ - spec/dummy-bot-python/manifest.json
41
+ - spec/dummy-bot-python/scraper.py
42
+ - spec/dummy-bot-python/transformer.py
43
+ - spec/dummy-bot-ruby/manifest.json
44
+ - spec/dummy-bot-ruby/scraper.rb
45
+ - spec/dummy-bot-ruby/transformer.rb
46
+ - spec/turbot_runner_spec.rb
37
47
  - schema/schemas/company-schema.json
38
48
  - schema/schemas/financial-payment-schema.json
39
49
  - schema/schemas/includes/address.json
@@ -53,37 +63,31 @@ files:
53
63
  - schema/schemas/primary-data-schema.json
54
64
  - schema/schemas/share-parcel-schema.json
55
65
  - schema/schemas/simple-licence-schema.json
66
+ - schema/schemas/simple-subsidiary-schema.json
56
67
  - schema/schemas/subsidiary-relationship-schema.json
57
- - spec/dummy-bot-python/manifest.json
58
- - spec/dummy-bot-python/scraper.py
59
- - spec/dummy-bot-python/transformer.py
60
- - spec/dummy-bot-ruby/manifest.json
61
- - spec/dummy-bot-ruby/scraper.rb
62
- - spec/dummy-bot-ruby/transformer.rb
63
- - spec/turbot_runner_spec.rb
64
68
  homepage: http://turbot.opencorporates.com/
65
69
  licenses:
66
70
  - MIT
67
- metadata: {}
68
71
  post_install_message:
69
72
  rdoc_options: []
70
73
  require_paths:
71
74
  - lib
72
75
  required_ruby_version: !ruby/object:Gem::Requirement
76
+ none: false
73
77
  requirements:
74
78
  - - ! '>='
75
79
  - !ruby/object:Gem::Version
76
80
  version: 1.9.2
77
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
+ none: false
78
83
  requirements:
79
84
  - - ! '>='
80
85
  - !ruby/object:Gem::Version
81
86
  version: '0'
82
87
  requirements: []
83
88
  rubyforge_project:
84
- rubygems_version: 2.2.2
89
+ rubygems_version: 1.8.23
85
90
  signing_key:
86
- specification_version: 4
91
+ specification_version: 3
87
92
  summary: Utilities for running bots with Turbot
88
93
  test_files: []
89
- has_rdoc:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YTQzNzljYmVkY2U2YWYwNzRhMzZkNzc5OWU5NTVkMTRhMmZhYTFhMQ==
5
- data.tar.gz: !binary |-
6
- NThiODU4Nzc1MWNiOWM1Nzg4MjhjMDljOWM0NGMwZmRiOWU4Yjk4Mg==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- Mzk0ZDAxNDc1NGMyZTRiMTdmYzNjMTljNTliOWZjMWJlMDI0MTlkNTg3OGIw
10
- MmE0M2FjMTEwODUyZWZhNjdiYTVmN2M4ZDQ0ZTdlM2YyZGExMDI5NTMzZjNh
11
- MDA0ODU2YWEyMjMxZmRjNjQ0ZTdkNzI0NDNkYjQ1NjNiYTBkYjQ=
12
- data.tar.gz: !binary |-
13
- YTlkMzVjZDYyNmE1ODFjNGViNzg2Y2U0YTcwMGZkMTVkZjYzNWMyMDg3ZjMx
14
- YjNlYzIxM2JjYWIyYTkwMjMzZjQ4ODA5MmUxNzRiOTIyZTgyN2MxMGMwNGNi
15
- Y2RjYzEzYWY2ZDExZjNkNDNhOWFjNTk3ZDE5Yzc3YjUwMTcyY2Y=