openc_bot 0.0.18 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
data/spec/lib/exceptions_spec.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
require_relative '../spec_helper'
|
3
3
|
require 'openc_bot'
|
4
|
+
require 'json-schema'
|
4
5
|
|
5
6
|
describe 'OpencBot exceptions' do
|
6
7
|
|
@@ -12,14 +13,36 @@ describe 'OpencBot exceptions' do
|
|
12
13
|
end
|
13
14
|
|
14
15
|
describe OpencBot::RecordInvalid do
|
16
|
+
before do
|
17
|
+
@schema = File.join(File.dirname(__FILE__),'..','..','schemas','schemas','company-schema.json')
|
18
|
+
@record = {
|
19
|
+
:name => 'Foo Inc'
|
20
|
+
}
|
21
|
+
|
22
|
+
@validation_errors = JSON::Validator.fully_validate(@schema, @record.to_json, {:errors_as_objects => true})
|
23
|
+
|
24
|
+
@error = OpencBot::RecordInvalid.new(@validation_errors)
|
25
|
+
|
26
|
+
end
|
15
27
|
|
16
28
|
it 'should have OpencBotError as superclass' do
|
17
29
|
OpencBot::RecordInvalid.superclass.should == OpencBot::OpencBotError
|
18
30
|
end
|
19
31
|
|
20
32
|
it "should have set validation_errors accessor on instantiation" do
|
21
|
-
error
|
22
|
-
|
33
|
+
@error.validation_errors.should == @validation_errors
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'message' do
|
37
|
+
it 'should include validation_errors' do
|
38
|
+
@error.message.should match 'Validation failed'
|
39
|
+
@error.message.should match "did not contain a required property of 'company_number'"
|
40
|
+
@error.message.should match "did not contain a required property of 'jurisdiction_code'"
|
41
|
+
end
|
42
|
+
|
43
|
+
# context 'and given message when instantiated' do
|
44
|
+
# @error = OpencBot::RecordInvalid.new(@validation_errors, "some custom message").should match "some custom message"
|
45
|
+
# end
|
23
46
|
end
|
24
47
|
end
|
25
48
|
end
|
@@ -384,7 +384,7 @@ describe 'a module that includes IncrementalSearch' do
|
|
384
384
|
end
|
385
385
|
end
|
386
386
|
|
387
|
-
context 'and
|
387
|
+
context 'and highest_entry_uids in cache' do
|
388
388
|
before do
|
389
389
|
@cached_result = '765432'
|
390
390
|
ModuleThatIncludesIncrementalSearch.save_var('highest_entry_uids', @cached_result)
|
@@ -410,6 +410,18 @@ describe 'a module that includes IncrementalSearch' do
|
|
410
410
|
ModuleThatIncludesIncrementalSearch.highest_entry_uids
|
411
411
|
end
|
412
412
|
end
|
413
|
+
|
414
|
+
context 'and true passed in as argument' do
|
415
|
+
before do
|
416
|
+
ModuleThatIncludesIncrementalSearch.save_var('highest_entry_uids', ['H553311','P1234'])
|
417
|
+
end
|
418
|
+
|
419
|
+
it "should ignore cached value" do
|
420
|
+
ModuleThatIncludesIncrementalSearch.should_receive(:highest_entry_uid_result).with(:prefix => 'H').with(:prefix => 'P')
|
421
|
+
|
422
|
+
ModuleThatIncludesIncrementalSearch.highest_entry_uids(true)
|
423
|
+
end
|
424
|
+
end
|
413
425
|
end
|
414
426
|
|
415
427
|
end
|
@@ -230,6 +230,19 @@ describe 'a module that includes RegisterMethods' do
|
|
230
230
|
it "should return true" do
|
231
231
|
ModuleThatIncludesRegisterMethods.prepare_and_save_data(@params).should be_truthy
|
232
232
|
end
|
233
|
+
|
234
|
+
context 'and SQLite3::BusyException raised' do
|
235
|
+
it 'should retry up to 3 times' do
|
236
|
+
ModuleThatIncludesRegisterMethods.should_receive(:insert_or_update).exactly(4).times.and_raise(SQLite3::BusyException)
|
237
|
+
lambda { ModuleThatIncludesRegisterMethods.prepare_and_save_data(@params) }.should raise_error(SQLite3::BusyException)
|
238
|
+
end
|
239
|
+
it 'should not raise error if successful before limit' do
|
240
|
+
ModuleThatIncludesRegisterMethods.should_receive(:insert_or_update).exactly(3).times.ordered.and_raise(SQLite3::BusyException)
|
241
|
+
ModuleThatIncludesRegisterMethods.should_receive(:insert_or_update).ordered
|
242
|
+
lambda { ModuleThatIncludesRegisterMethods.prepare_and_save_data(@params) }.should_not raise_error
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
233
246
|
end
|
234
247
|
|
235
248
|
|
@@ -355,8 +368,24 @@ describe 'a module that includes RegisterMethods' do
|
|
355
368
|
end
|
356
369
|
|
357
370
|
it "should raise exception if true not passed as second argument" do
|
358
|
-
lambda { ModuleThatIncludesRegisterMethods.update_datum(@uid)}.should raise_error(
|
371
|
+
lambda { ModuleThatIncludesRegisterMethods.update_datum(@uid)}.should raise_error("something went wrong updating entry with uid: #{@uid}")
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
375
|
+
context 'and process_datum returns nil' do
|
376
|
+
before do
|
377
|
+
ModuleThatIncludesRegisterMethods.stub(:process_datum).and_return(nil)
|
378
|
+
end
|
379
|
+
|
380
|
+
it 'should return nil' do
|
381
|
+
ModuleThatIncludesRegisterMethods.update_datum(@uid)
|
359
382
|
end
|
383
|
+
|
384
|
+
it 'should not validate_datum' do
|
385
|
+
ModuleThatIncludesRegisterMethods.should_not_receive(:validate_datum)
|
386
|
+
ModuleThatIncludesRegisterMethods.update_datum(@uid)
|
387
|
+
end
|
388
|
+
|
360
389
|
end
|
361
390
|
end
|
362
391
|
end
|
@@ -402,7 +431,7 @@ describe 'a module that includes RegisterMethods' do
|
|
402
431
|
end
|
403
432
|
|
404
433
|
it "should check json version of datum against given schema" do
|
405
|
-
JSON::Validator.should_receive(:fully_validate).with(
|
434
|
+
JSON::Validator.should_receive(:fully_validate).with('company-schema.json', @valid_params.to_json, anything)
|
406
435
|
ModuleThatIncludesRegisterMethods.validate_datum(@valid_params)
|
407
436
|
end
|
408
437
|
|
@@ -332,35 +332,35 @@ describe 'company-schema' do
|
|
332
332
|
require_all_attributes_attribute_to_be_string_or_nil(:registered_agent_address)
|
333
333
|
end
|
334
334
|
|
335
|
-
it "should require number_of_employees to be
|
336
|
-
|
335
|
+
it "should require number_of_employees to be a positive" do
|
336
|
+
valid_params_1 =
|
337
337
|
{ :name => 'Foo Inc',
|
338
338
|
:company_number => '12345',
|
339
339
|
:jurisdiction_code => 'ie',
|
340
340
|
:all_attributes => {:number_of_employees => 42}
|
341
341
|
}
|
342
|
-
|
342
|
+
valid_params_2 =
|
343
343
|
{ :name => 'Foo Inc',
|
344
344
|
:company_number => '12345',
|
345
345
|
:jurisdiction_code => 'ie',
|
346
|
-
:all_attributes => {:number_of_employees => ''}
|
346
|
+
:all_attributes => {:number_of_employees => '1-5'}
|
347
347
|
}
|
348
|
-
|
348
|
+
invalid_params_1 =
|
349
349
|
{ :name => 'Foo Inc',
|
350
350
|
:company_number => '12345',
|
351
351
|
:jurisdiction_code => 'ie',
|
352
|
-
:all_attributes => {:number_of_employees => '
|
352
|
+
:all_attributes => {:number_of_employees => ''}
|
353
353
|
}
|
354
|
-
|
354
|
+
invalid_params_2 =
|
355
355
|
{ :name => 'Foo Inc',
|
356
356
|
:company_number => '12345',
|
357
357
|
:jurisdiction_code => 'ie',
|
358
358
|
:all_attributes => {:number_of_employees => -1}
|
359
359
|
}
|
360
|
-
validate_datum_and_return_errors(
|
360
|
+
validate_datum_and_return_errors(valid_params_1).should be_empty
|
361
|
+
validate_datum_and_return_errors(valid_params_2).should be_empty
|
361
362
|
validate_datum_and_return_errors(invalid_params_1).should_not be_empty
|
362
363
|
validate_datum_and_return_errors(invalid_params_2).should_not be_empty
|
363
|
-
validate_datum_and_return_errors(invalid_params_3).should_not be_empty
|
364
364
|
end
|
365
365
|
end
|
366
366
|
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openc_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.26
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Chris Taggart
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-02-06 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: activesupport
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - '='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - '='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: nokogiri
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ! '>='
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ! '>='
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: json
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ! '>='
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ! '>='
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: json-schema
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ! '>='
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ! '>='
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -94,7 +83,6 @@ dependencies:
|
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: httpclient
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - ! '>='
|
100
88
|
- !ruby/object:Gem::Version
|
@@ -102,7 +90,6 @@ dependencies:
|
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - ! '>='
|
108
95
|
- !ruby/object:Gem::Version
|
@@ -110,7 +97,6 @@ dependencies:
|
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: backports
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
101
|
- - ! '>='
|
116
102
|
- !ruby/object:Gem::Version
|
@@ -118,7 +104,6 @@ dependencies:
|
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
108
|
- - ! '>='
|
124
109
|
- !ruby/object:Gem::Version
|
@@ -126,7 +111,6 @@ dependencies:
|
|
126
111
|
- !ruby/object:Gem::Dependency
|
127
112
|
name: scraperwiki
|
128
113
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
114
|
requirements:
|
131
115
|
- - '='
|
132
116
|
- !ruby/object:Gem::Version
|
@@ -134,7 +118,6 @@ dependencies:
|
|
134
118
|
type: :runtime
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
121
|
requirements:
|
139
122
|
- - '='
|
140
123
|
- !ruby/object:Gem::Version
|
@@ -142,7 +125,6 @@ dependencies:
|
|
142
125
|
- !ruby/object:Gem::Dependency
|
143
126
|
name: perftools.rb
|
144
127
|
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
128
|
requirements:
|
147
129
|
- - ! '>='
|
148
130
|
- !ruby/object:Gem::Version
|
@@ -150,7 +132,6 @@ dependencies:
|
|
150
132
|
type: :development
|
151
133
|
prerelease: false
|
152
134
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
135
|
requirements:
|
155
136
|
- - ! '>='
|
156
137
|
- !ruby/object:Gem::Version
|
@@ -158,7 +139,6 @@ dependencies:
|
|
158
139
|
- !ruby/object:Gem::Dependency
|
159
140
|
name: debugger
|
160
141
|
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
142
|
requirements:
|
163
143
|
- - ! '>='
|
164
144
|
- !ruby/object:Gem::Version
|
@@ -166,7 +146,6 @@ dependencies:
|
|
166
146
|
type: :development
|
167
147
|
prerelease: false
|
168
148
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
149
|
requirements:
|
171
150
|
- - ! '>='
|
172
151
|
- !ruby/object:Gem::Version
|
@@ -174,7 +153,6 @@ dependencies:
|
|
174
153
|
- !ruby/object:Gem::Dependency
|
175
154
|
name: rspec
|
176
155
|
requirement: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
156
|
requirements:
|
179
157
|
- - ! '>='
|
180
158
|
- !ruby/object:Gem::Version
|
@@ -182,7 +160,6 @@ dependencies:
|
|
182
160
|
type: :development
|
183
161
|
prerelease: false
|
184
162
|
version_requirements: !ruby/object:Gem::Requirement
|
185
|
-
none: false
|
186
163
|
requirements:
|
187
164
|
- - ! '>='
|
188
165
|
- !ruby/object:Gem::Version
|
@@ -253,21 +230,6 @@ files:
|
|
253
230
|
- lib/simple_openc_bot.rb
|
254
231
|
- openc_bot.gemspec
|
255
232
|
- publish.sh
|
256
|
-
- spec/dummy_classes/foo_bot.rb
|
257
|
-
- spec/lib/bot_data_validator_spec.rb
|
258
|
-
- spec/lib/company_fetcher_bot_spec.rb
|
259
|
-
- spec/lib/exceptions_spec.rb
|
260
|
-
- spec/lib/helpers/alpha_search_spec.rb
|
261
|
-
- spec/lib/helpers/dates_spec.rb
|
262
|
-
- spec/lib/helpers/incremental_search_spec.rb
|
263
|
-
- spec/lib/helpers/register_methods_spec.rb
|
264
|
-
- spec/lib/helpers/text_spec.rb
|
265
|
-
- spec/lib/openc_bot/db/.gitkeep
|
266
|
-
- spec/lib/openc_bot/incrementers/common_spec.rb
|
267
|
-
- spec/lib/openc_bot_spec.rb
|
268
|
-
- spec/schemas/company-schema_spec.rb
|
269
|
-
- spec/simple_openc_bot_spec.rb
|
270
|
-
- spec/spec_helper.rb
|
271
233
|
- schemas/.gitignore
|
272
234
|
- schemas/.travis.yml
|
273
235
|
- schemas/Gemfile
|
@@ -354,6 +316,21 @@ files:
|
|
354
316
|
- schemas/spec/sample-data/invalid/company-53.json
|
355
317
|
- schemas/spec/sample-data/invalid/company-54.json
|
356
318
|
- schemas/spec/sample-data/invalid/company-55.json
|
319
|
+
- schemas/spec/sample-data/invalid/company-56.json
|
320
|
+
- schemas/spec/sample-data/invalid/company-57.json
|
321
|
+
- schemas/spec/sample-data/invalid/company-58.json
|
322
|
+
- schemas/spec/sample-data/invalid/company-59.json
|
323
|
+
- schemas/spec/sample-data/invalid/company-60.json
|
324
|
+
- schemas/spec/sample-data/invalid/company-61.json
|
325
|
+
- schemas/spec/sample-data/invalid/company-62.json
|
326
|
+
- schemas/spec/sample-data/invalid/company-63.json
|
327
|
+
- schemas/spec/sample-data/invalid/company-64.json
|
328
|
+
- schemas/spec/sample-data/invalid/company-65.json
|
329
|
+
- schemas/spec/sample-data/invalid/company-66.json
|
330
|
+
- schemas/spec/sample-data/invalid/company-67.json
|
331
|
+
- schemas/spec/sample-data/invalid/company-68.json
|
332
|
+
- schemas/spec/sample-data/invalid/company-69.json
|
333
|
+
- schemas/spec/sample-data/invalid/company-70.json
|
357
334
|
- schemas/spec/sample-data/invalid/financial-payment-01.json
|
358
335
|
- schemas/spec/sample-data/invalid/licence-01.json
|
359
336
|
- schemas/spec/sample-data/invalid/licence-02.json
|
@@ -368,7 +345,11 @@ files:
|
|
368
345
|
- schemas/spec/sample-data/invalid/simple-licence-01.json
|
369
346
|
- schemas/spec/sample-data/invalid/simple-licence-02.json
|
370
347
|
- schemas/spec/sample-data/invalid/simple-licence-03.json
|
348
|
+
- schemas/spec/sample-data/invalid/simple-licence-04.json
|
349
|
+
- schemas/spec/sample-data/invalid/simple-licence-05.json
|
350
|
+
- schemas/spec/sample-data/invalid/simple-licence-06.json
|
371
351
|
- schemas/spec/sample-data/invalid/simple-subsidiary-01.json
|
352
|
+
- schemas/spec/sample-data/invalid/simple-subsidiary-02.json
|
372
353
|
- schemas/spec/sample-data/licence-schema.json.old
|
373
354
|
- schemas/spec/sample-data/valid/company-01.json
|
374
355
|
- schemas/spec/sample-data/valid/company-02.json
|
@@ -412,6 +393,17 @@ files:
|
|
412
393
|
- schemas/spec/sample-data/valid/company-40.json
|
413
394
|
- schemas/spec/sample-data/valid/company-41.json
|
414
395
|
- schemas/spec/sample-data/valid/company-42.json
|
396
|
+
- schemas/spec/sample-data/valid/company-43.json
|
397
|
+
- schemas/spec/sample-data/valid/company-44.json
|
398
|
+
- schemas/spec/sample-data/valid/company-45.json
|
399
|
+
- schemas/spec/sample-data/valid/company-46.json
|
400
|
+
- schemas/spec/sample-data/valid/company-47.json
|
401
|
+
- schemas/spec/sample-data/valid/company-48.json
|
402
|
+
- schemas/spec/sample-data/valid/company-49.json
|
403
|
+
- schemas/spec/sample-data/valid/company-50.json
|
404
|
+
- schemas/spec/sample-data/valid/company-51.json
|
405
|
+
- schemas/spec/sample-data/valid/company-52.json
|
406
|
+
- schemas/spec/sample-data/valid/company-53.json
|
415
407
|
- schemas/spec/sample-data/valid/financial-payment-01.json
|
416
408
|
- schemas/spec/sample-data/valid/financial-payment-02.json
|
417
409
|
- schemas/spec/sample-data/valid/licence-01.json
|
@@ -428,30 +420,44 @@ files:
|
|
428
420
|
- schemas/spec/sample-data/valid/subsidiary-relationship-01.json
|
429
421
|
- schemas/spec/spec_helper.rb
|
430
422
|
- schemas/spec/validation_spec.rb
|
423
|
+
- spec/dummy_classes/foo_bot.rb
|
424
|
+
- spec/lib/bot_data_validator_spec.rb
|
425
|
+
- spec/lib/company_fetcher_bot_spec.rb
|
426
|
+
- spec/lib/exceptions_spec.rb
|
427
|
+
- spec/lib/helpers/alpha_search_spec.rb
|
428
|
+
- spec/lib/helpers/dates_spec.rb
|
429
|
+
- spec/lib/helpers/incremental_search_spec.rb
|
430
|
+
- spec/lib/helpers/register_methods_spec.rb
|
431
|
+
- spec/lib/helpers/text_spec.rb
|
432
|
+
- spec/lib/openc_bot/db/.gitkeep
|
433
|
+
- spec/lib/openc_bot/incrementers/common_spec.rb
|
434
|
+
- spec/lib/openc_bot_spec.rb
|
435
|
+
- spec/schemas/company-schema_spec.rb
|
436
|
+
- spec/simple_openc_bot_spec.rb
|
437
|
+
- spec/spec_helper.rb
|
431
438
|
homepage: ''
|
432
439
|
licenses: []
|
440
|
+
metadata: {}
|
433
441
|
post_install_message:
|
434
442
|
rdoc_options: []
|
435
443
|
require_paths:
|
436
444
|
- lib
|
437
445
|
- lib/openc_bot/helpers
|
438
446
|
required_ruby_version: !ruby/object:Gem::Requirement
|
439
|
-
none: false
|
440
447
|
requirements:
|
441
448
|
- - ! '>='
|
442
449
|
- !ruby/object:Gem::Version
|
443
450
|
version: '0'
|
444
451
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
445
|
-
none: false
|
446
452
|
requirements:
|
447
453
|
- - ! '>='
|
448
454
|
- !ruby/object:Gem::Version
|
449
455
|
version: '0'
|
450
456
|
requirements: []
|
451
457
|
rubyforge_project:
|
452
|
-
rubygems_version:
|
458
|
+
rubygems_version: 2.2.2
|
453
459
|
signing_key:
|
454
|
-
specification_version:
|
460
|
+
specification_version: 4
|
455
461
|
summary: Helper gem for writing external bots for OpenCorporates
|
456
462
|
test_files:
|
457
463
|
- spec/dummy_classes/foo_bot.rb
|
@@ -469,3 +475,4 @@ test_files:
|
|
469
475
|
- spec/schemas/company-schema_spec.rb
|
470
476
|
- spec/simple_openc_bot_spec.rb
|
471
477
|
- spec/spec_helper.rb
|
478
|
+
has_rdoc:
|