openc_bot 0.0.16 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. data/.gitmodules +3 -0
  2. data/.travis.yml +2 -1
  3. data/examples/basic/lib/basic.rb +3 -2
  4. data/lib/openc_bot/helpers/register_methods.rb +2 -1
  5. data/lib/openc_bot/templates/lib/simple_bot.rb +3 -2
  6. data/lib/openc_bot/version.rb +1 -1
  7. data/lib/simple_openc_bot.rb +2 -2
  8. data/openc_bot.gemspec +13 -0
  9. data/publish.sh +12 -0
  10. data/schemas/.gitignore +13 -0
  11. data/schemas/.travis.yml +5 -0
  12. data/schemas/Gemfile +9 -0
  13. data/schemas/Gemfile.lock +34 -0
  14. data/schemas/README.md +2 -0
  15. data/schemas/Rakefile +46 -0
  16. data/schemas/lib/base-statement.json +22 -0
  17. data/schemas/lib/snippets/financial-payment-base.json +4 -0
  18. data/schemas/lib/snippets/licence-base.json +4 -0
  19. data/schemas/{company-schema.json → schemas/company-schema.json} +0 -0
  20. data/schemas/schemas/financial-payment-schema.json +27 -0
  21. data/schemas/{includes → schemas/includes}/address.json +0 -0
  22. data/schemas/{includes → schemas/includes}/alternative_name.json +1 -1
  23. data/schemas/{includes → schemas/includes}/company.json +2 -0
  24. data/schemas/{includes → schemas/includes}/filing.json +0 -0
  25. data/schemas/schemas/includes/financial-payment-data-object.json +60 -0
  26. data/schemas/{includes → schemas/includes}/industry_code.json +0 -0
  27. data/schemas/{includes/license-data.json → schemas/includes/licence-data-object.json} +13 -4
  28. data/schemas/{includes → schemas/includes}/officer.json +0 -0
  29. data/schemas/{includes → schemas/includes}/previous_name.json +0 -0
  30. data/schemas/{includes → schemas/includes}/share-parcel-data.json +0 -0
  31. data/schemas/{includes → schemas/includes}/share-parcel.json +0 -0
  32. data/schemas/{includes → schemas/includes}/subsidiary-relationship-data.json +4 -9
  33. data/schemas/{includes → schemas/includes}/total-shares.json +0 -0
  34. data/schemas/schemas/licence-schema.json +27 -0
  35. data/schemas/schemas/primary-data-schema.json +17 -0
  36. data/schemas/{share-parcel-schema.json → schemas/share-parcel-schema.json} +0 -0
  37. data/schemas/schemas/simple-financial-payment-schema.json +85 -0
  38. data/schemas/schemas/simple-licence-schema.json +54 -0
  39. data/schemas/schemas/simple-subsidiary-schema.json +62 -0
  40. data/schemas/schemas/subsidiary-relationship-schema.json +27 -0
  41. data/schemas/spec/sample-data/invalid/company-01.json +4 -0
  42. data/schemas/spec/sample-data/invalid/company-02.json +5 -0
  43. data/schemas/spec/sample-data/invalid/company-03.json +5 -0
  44. data/schemas/spec/sample-data/invalid/company-04.json +5 -0
  45. data/schemas/spec/sample-data/invalid/company-05.json +5 -0
  46. data/schemas/spec/sample-data/invalid/company-06.json +6 -0
  47. data/schemas/spec/sample-data/invalid/company-07.json +8 -0
  48. data/schemas/spec/sample-data/invalid/company-08.json +7 -0
  49. data/schemas/spec/sample-data/invalid/company-09.json +9 -0
  50. data/schemas/spec/sample-data/invalid/company-10.json +7 -0
  51. data/schemas/spec/sample-data/invalid/company-11.json +9 -0
  52. data/schemas/spec/sample-data/invalid/company-12.json +11 -0
  53. data/schemas/spec/sample-data/invalid/company-13.json +11 -0
  54. data/schemas/spec/sample-data/invalid/company-14.json +7 -0
  55. data/schemas/spec/sample-data/invalid/company-15.json +7 -0
  56. data/schemas/spec/sample-data/invalid/company-16.json +7 -0
  57. data/schemas/spec/sample-data/invalid/company-17.json +9 -0
  58. data/schemas/spec/sample-data/invalid/company-18.json +9 -0
  59. data/schemas/spec/sample-data/invalid/company-19.json +9 -0
  60. data/schemas/spec/sample-data/invalid/company-20.json +9 -0
  61. data/schemas/spec/sample-data/invalid/company-21.json +11 -0
  62. data/schemas/spec/sample-data/invalid/company-22.json +11 -0
  63. data/schemas/spec/sample-data/invalid/company-23.json +7 -0
  64. data/schemas/spec/sample-data/invalid/company-24.json +12 -0
  65. data/schemas/spec/sample-data/invalid/company-25.json +9 -0
  66. data/schemas/spec/sample-data/invalid/company-26.json +11 -0
  67. data/schemas/spec/sample-data/invalid/company-27.json +7 -0
  68. data/schemas/spec/sample-data/invalid/company-28.json +9 -0
  69. data/schemas/spec/sample-data/invalid/company-29.json +12 -0
  70. data/schemas/spec/sample-data/invalid/company-30.json +16 -0
  71. data/schemas/spec/sample-data/invalid/company-31.json +14 -0
  72. data/schemas/spec/sample-data/invalid/company-32.json +11 -0
  73. data/schemas/spec/sample-data/invalid/company-33.json +7 -0
  74. data/schemas/spec/sample-data/invalid/company-34.json +9 -0
  75. data/schemas/spec/sample-data/invalid/company-35.json +9 -0
  76. data/schemas/spec/sample-data/invalid/company-36.json +10 -0
  77. data/schemas/spec/sample-data/invalid/company-37.json +7 -0
  78. data/schemas/spec/sample-data/invalid/company-38.json +9 -0
  79. data/schemas/spec/sample-data/invalid/company-39.json +11 -0
  80. data/schemas/spec/sample-data/invalid/company-40.json +12 -0
  81. data/schemas/spec/sample-data/invalid/company-41.json +12 -0
  82. data/schemas/spec/sample-data/invalid/company-42.json +7 -0
  83. data/schemas/spec/sample-data/invalid/company-43.json +9 -0
  84. data/schemas/spec/sample-data/invalid/company-44.json +11 -0
  85. data/schemas/spec/sample-data/invalid/company-45.json +11 -0
  86. data/schemas/spec/sample-data/invalid/company-46.json +7 -0
  87. data/schemas/spec/sample-data/invalid/company-47.json +9 -0
  88. data/schemas/spec/sample-data/invalid/company-48.json +9 -0
  89. data/schemas/spec/sample-data/invalid/company-49.json +9 -0
  90. data/schemas/spec/sample-data/invalid/company-50.json +9 -0
  91. data/schemas/spec/sample-data/invalid/company-51.json +9 -0
  92. data/schemas/spec/sample-data/invalid/company-52.json +9 -0
  93. data/schemas/spec/sample-data/invalid/company-53.json +10 -0
  94. data/schemas/spec/sample-data/invalid/company-54.json +9 -0
  95. data/schemas/spec/sample-data/invalid/company-55.json +9 -0
  96. data/schemas/spec/sample-data/invalid/financial-payment-01.json +24 -0
  97. data/schemas/spec/sample-data/invalid/licence-01.json +18 -0
  98. data/schemas/spec/sample-data/invalid/licence-02.json +18 -0
  99. data/schemas/spec/sample-data/invalid/licence-03.json +12 -0
  100. data/schemas/spec/sample-data/invalid/licence-04.json +18 -0
  101. data/schemas/spec/sample-data/invalid/licence-05.json +18 -0
  102. data/schemas/spec/sample-data/invalid/licence-06.json +18 -0
  103. data/schemas/spec/sample-data/invalid/licence-07.json +20 -0
  104. data/schemas/spec/sample-data/invalid/licence-08.json +21 -0
  105. data/schemas/spec/sample-data/invalid/primary-data-01.json +4 -0
  106. data/schemas/spec/sample-data/invalid/primary-data-02.json +4 -0
  107. data/schemas/spec/sample-data/invalid/simple-licence-01.json +9 -0
  108. data/schemas/spec/sample-data/invalid/simple-licence-02.json +8 -0
  109. data/schemas/spec/sample-data/invalid/simple-licence-03.json +9 -0
  110. data/schemas/spec/sample-data/invalid/simple-subsidiary-01.json +13 -0
  111. data/schemas/{licence-schema.json → spec/sample-data/licence-schema.json.old} +1 -1
  112. data/schemas/spec/sample-data/valid/company-01.json +6 -0
  113. data/schemas/spec/sample-data/valid/company-02.json +7 -0
  114. data/schemas/spec/sample-data/valid/company-03.json +8 -0
  115. data/schemas/spec/sample-data/valid/company-04.json +7 -0
  116. data/schemas/spec/sample-data/valid/company-05.json +7 -0
  117. data/schemas/spec/sample-data/valid/company-06.json +12 -0
  118. data/schemas/spec/sample-data/valid/company-07.json +9 -0
  119. data/schemas/spec/sample-data/valid/company-08.json +9 -0
  120. data/schemas/spec/sample-data/valid/company-09.json +20 -0
  121. data/schemas/spec/sample-data/valid/company-10.json +9 -0
  122. data/schemas/spec/sample-data/valid/company-11.json +7 -0
  123. data/schemas/spec/sample-data/valid/company-12.json +7 -0
  124. data/schemas/spec/sample-data/valid/company-13.json +7 -0
  125. data/schemas/spec/sample-data/valid/company-14.json +15 -0
  126. data/schemas/spec/sample-data/valid/company-15.json +8 -0
  127. data/schemas/spec/sample-data/valid/company-16.json +9 -0
  128. data/schemas/spec/sample-data/valid/company-17.json +9 -0
  129. data/schemas/spec/sample-data/valid/company-18.json +9 -0
  130. data/schemas/spec/sample-data/valid/company-19.json +26 -0
  131. data/schemas/spec/sample-data/valid/company-20.json +9 -0
  132. data/schemas/spec/sample-data/valid/company-21.json +26 -0
  133. data/schemas/spec/sample-data/valid/company-22.json +20 -0
  134. data/schemas/spec/sample-data/valid/company-23.json +9 -0
  135. data/schemas/spec/sample-data/valid/company-24.json +12 -0
  136. data/schemas/spec/sample-data/valid/company-25.json +12 -0
  137. data/schemas/spec/sample-data/valid/company-26.json +12 -0
  138. data/schemas/spec/sample-data/valid/company-27.json +28 -0
  139. data/schemas/spec/sample-data/valid/company-28.json +9 -0
  140. data/schemas/spec/sample-data/valid/company-29.json +10 -0
  141. data/schemas/spec/sample-data/valid/company-30.json +9 -0
  142. data/schemas/spec/sample-data/valid/company-31.json +17 -0
  143. data/schemas/spec/sample-data/valid/company-32.json +9 -0
  144. data/schemas/spec/sample-data/valid/company-33.json +24 -0
  145. data/schemas/spec/sample-data/valid/company-34.json +9 -0
  146. data/schemas/spec/sample-data/valid/company-35.json +9 -0
  147. data/schemas/spec/sample-data/valid/company-36.json +9 -0
  148. data/schemas/spec/sample-data/valid/company-37.json +9 -0
  149. data/schemas/spec/sample-data/valid/company-38.json +9 -0
  150. data/schemas/spec/sample-data/valid/company-39.json +9 -0
  151. data/schemas/spec/sample-data/valid/company-40.json +9 -0
  152. data/schemas/spec/sample-data/valid/company-41.json +9 -0
  153. data/schemas/spec/sample-data/valid/company-42.json +10 -0
  154. data/schemas/spec/sample-data/valid/financial-payment-01.json +25 -0
  155. data/schemas/spec/sample-data/valid/financial-payment-02.json +29 -0
  156. data/schemas/spec/sample-data/valid/licence-01.json +19 -0
  157. data/schemas/spec/sample-data/valid/licence-02.json +21 -0
  158. data/schemas/spec/sample-data/valid/licence-03.json +21 -0
  159. data/schemas/spec/sample-data/valid/licence-04.json +26 -0
  160. data/schemas/spec/sample-data/valid/primary-data-01.json +4 -0
  161. data/schemas/spec/sample-data/valid/primary-data-02.json +5 -0
  162. data/schemas/spec/sample-data/valid/simple-licence-01.json +10 -0
  163. data/schemas/spec/sample-data/valid/simple-licence-02.json +10 -0
  164. data/schemas/spec/sample-data/valid/simple-licence-03.json +12 -0
  165. data/schemas/spec/sample-data/valid/simple-subsidiary-01.json +13 -0
  166. data/schemas/spec/sample-data/valid/simple-subsidiary-02.json +13 -0
  167. data/schemas/spec/sample-data/valid/subsidiary-relationship-01.json +23 -0
  168. data/schemas/spec/spec_helper.rb +78 -0
  169. data/schemas/spec/validation_spec.rb +39 -0
  170. data/spec/lib/helpers/register_methods_spec.rb +1 -1
  171. data/spec/schemas/company-schema_spec.rb +4 -3
  172. data/spec/simple_openc_bot_spec.rb +9 -8
  173. metadata +164 -19
  174. data/schemas/includes/base-statement.json +0 -27
  175. data/schemas/subsidiary-relationship-schema.json +0 -19
@@ -6,7 +6,7 @@ end
6
6
 
7
7
  class LicenceRecord < SimpleOpencBot::BaseLicenceRecord
8
8
  JURISDICTION = "uk"
9
- store_fields :name, :type, :sample_date
9
+ store_fields :name, :type, :sample_date, :source_url, :confidence
10
10
  unique_fields :name
11
11
  schema :licence
12
12
 
@@ -22,14 +22,15 @@ class LicenceRecord < SimpleOpencBot::BaseLicenceRecord
22
22
 
23
23
  def to_pipeline
24
24
  {
25
- sample_date: "",
26
25
  company: {
27
26
  name: name,
28
27
  jurisdiction: JURISDICTION,
29
28
  },
30
- source_url: URL,
31
29
  data: [{
32
30
  data_type: :licence,
31
+ sample_date: "",
32
+ source_url: URL,
33
+ confidence: 'HIGH',
33
34
  properties: {
34
35
  category: 'Financial',
35
36
  jurisdiction_classification: [jurisdiction_classification],
@@ -138,7 +139,7 @@ describe SimpleOpencBot do
138
139
  end
139
140
 
140
141
 
141
- describe ".update_data" do
142
+ describe "#update_data" do
142
143
  before do
143
144
  @properties = [
144
145
  {:name => 'Company 1', :type => 'Bank'},
@@ -210,8 +211,8 @@ describe SimpleOpencBot do
210
211
  describe "export_data" do
211
212
  before do
212
213
  @properties = [
213
- {:name => 'Company 1', :type => 'Bank'},
214
- {:name => 'Company 2', :type => 'Insurer'}
214
+ {:name => 'Company 1', :type => 'Bank', :source_url => 'http://somereg.gov/banks',"sample_date" => "2014-06-01", :confidence => 'MEDIUM'},
215
+ {:name => 'Company 2', :type => 'Insurer', :source_url => 'http://somereg.gov/insurers',"sample_date" => "2013-01-22", :confidence => 'HIGH'}
215
216
  ]
216
217
  @bot = TestLicenceBot.new(@properties)
217
218
  @bot.update_data
@@ -250,8 +251,8 @@ describe SimpleOpencBot do
250
251
  describe "stored data" do
251
252
  before do
252
253
  @properties = [
253
- {:name => 'Company 1', :type => 'Bank'},
254
- {:name => 'Company 2', :type => 'Insurer'}
254
+ {:name => 'Company 1', :type => 'Bank', :source_url => 'http://somereg.gov/banks',:sample_date => "2014-06-01", :confidence => 'MEDIUM'},
255
+ {:name => 'Company 2', :type => 'Insurer', :source_url => 'http://somereg.gov/insurers',:sample_date => "2013-01-22", :confidence => 'HIGH'}
255
256
  ]
256
257
  @bot = TestLicenceBot.new(@properties)
257
258
  @bot.update_data
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openc_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.18
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-04 00:00:00.000000000 Z
12
+ date: 2014-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -197,6 +197,7 @@ extensions: []
197
197
  extra_rdoc_files: []
198
198
  files:
199
199
  - .gitignore
200
+ - .gitmodules
200
201
  - .travis.yml
201
202
  - CHANGELOG.md
202
203
  - Gemfile
@@ -251,23 +252,7 @@ files:
251
252
  - lib/openc_bot/version.rb
252
253
  - lib/simple_openc_bot.rb
253
254
  - openc_bot.gemspec
254
- - schemas/company-schema.json
255
- - schemas/includes/address.json
256
- - schemas/includes/alternative_name.json
257
- - schemas/includes/base-statement.json
258
- - schemas/includes/company.json
259
- - schemas/includes/filing.json
260
- - schemas/includes/industry_code.json
261
- - schemas/includes/license-data.json
262
- - schemas/includes/officer.json
263
- - schemas/includes/previous_name.json
264
- - schemas/includes/share-parcel-data.json
265
- - schemas/includes/share-parcel.json
266
- - schemas/includes/subsidiary-relationship-data.json
267
- - schemas/includes/total-shares.json
268
- - schemas/licence-schema.json
269
- - schemas/share-parcel-schema.json
270
- - schemas/subsidiary-relationship-schema.json
255
+ - publish.sh
271
256
  - spec/dummy_classes/foo_bot.rb
272
257
  - spec/lib/bot_data_validator_spec.rb
273
258
  - spec/lib/company_fetcher_bot_spec.rb
@@ -283,6 +268,166 @@ files:
283
268
  - spec/schemas/company-schema_spec.rb
284
269
  - spec/simple_openc_bot_spec.rb
285
270
  - spec/spec_helper.rb
271
+ - schemas/.gitignore
272
+ - schemas/.travis.yml
273
+ - schemas/Gemfile
274
+ - schemas/Gemfile.lock
275
+ - schemas/README.md
276
+ - schemas/Rakefile
277
+ - schemas/lib/base-statement.json
278
+ - schemas/lib/snippets/financial-payment-base.json
279
+ - schemas/lib/snippets/licence-base.json
280
+ - schemas/schemas/company-schema.json
281
+ - schemas/schemas/financial-payment-schema.json
282
+ - schemas/schemas/includes/address.json
283
+ - schemas/schemas/includes/alternative_name.json
284
+ - schemas/schemas/includes/company.json
285
+ - schemas/schemas/includes/filing.json
286
+ - schemas/schemas/includes/financial-payment-data-object.json
287
+ - schemas/schemas/includes/industry_code.json
288
+ - schemas/schemas/includes/licence-data-object.json
289
+ - schemas/schemas/includes/officer.json
290
+ - schemas/schemas/includes/previous_name.json
291
+ - schemas/schemas/includes/share-parcel-data.json
292
+ - schemas/schemas/includes/share-parcel.json
293
+ - schemas/schemas/includes/subsidiary-relationship-data.json
294
+ - schemas/schemas/includes/total-shares.json
295
+ - schemas/schemas/licence-schema.json
296
+ - schemas/schemas/primary-data-schema.json
297
+ - schemas/schemas/share-parcel-schema.json
298
+ - schemas/schemas/simple-financial-payment-schema.json
299
+ - schemas/schemas/simple-licence-schema.json
300
+ - schemas/schemas/simple-subsidiary-schema.json
301
+ - schemas/schemas/subsidiary-relationship-schema.json
302
+ - schemas/spec/sample-data/invalid/company-01.json
303
+ - schemas/spec/sample-data/invalid/company-02.json
304
+ - schemas/spec/sample-data/invalid/company-03.json
305
+ - schemas/spec/sample-data/invalid/company-04.json
306
+ - schemas/spec/sample-data/invalid/company-05.json
307
+ - schemas/spec/sample-data/invalid/company-06.json
308
+ - schemas/spec/sample-data/invalid/company-07.json
309
+ - schemas/spec/sample-data/invalid/company-08.json
310
+ - schemas/spec/sample-data/invalid/company-09.json
311
+ - schemas/spec/sample-data/invalid/company-10.json
312
+ - schemas/spec/sample-data/invalid/company-11.json
313
+ - schemas/spec/sample-data/invalid/company-12.json
314
+ - schemas/spec/sample-data/invalid/company-13.json
315
+ - schemas/spec/sample-data/invalid/company-14.json
316
+ - schemas/spec/sample-data/invalid/company-15.json
317
+ - schemas/spec/sample-data/invalid/company-16.json
318
+ - schemas/spec/sample-data/invalid/company-17.json
319
+ - schemas/spec/sample-data/invalid/company-18.json
320
+ - schemas/spec/sample-data/invalid/company-19.json
321
+ - schemas/spec/sample-data/invalid/company-20.json
322
+ - schemas/spec/sample-data/invalid/company-21.json
323
+ - schemas/spec/sample-data/invalid/company-22.json
324
+ - schemas/spec/sample-data/invalid/company-23.json
325
+ - schemas/spec/sample-data/invalid/company-24.json
326
+ - schemas/spec/sample-data/invalid/company-25.json
327
+ - schemas/spec/sample-data/invalid/company-26.json
328
+ - schemas/spec/sample-data/invalid/company-27.json
329
+ - schemas/spec/sample-data/invalid/company-28.json
330
+ - schemas/spec/sample-data/invalid/company-29.json
331
+ - schemas/spec/sample-data/invalid/company-30.json
332
+ - schemas/spec/sample-data/invalid/company-31.json
333
+ - schemas/spec/sample-data/invalid/company-32.json
334
+ - schemas/spec/sample-data/invalid/company-33.json
335
+ - schemas/spec/sample-data/invalid/company-34.json
336
+ - schemas/spec/sample-data/invalid/company-35.json
337
+ - schemas/spec/sample-data/invalid/company-36.json
338
+ - schemas/spec/sample-data/invalid/company-37.json
339
+ - schemas/spec/sample-data/invalid/company-38.json
340
+ - schemas/spec/sample-data/invalid/company-39.json
341
+ - schemas/spec/sample-data/invalid/company-40.json
342
+ - schemas/spec/sample-data/invalid/company-41.json
343
+ - schemas/spec/sample-data/invalid/company-42.json
344
+ - schemas/spec/sample-data/invalid/company-43.json
345
+ - schemas/spec/sample-data/invalid/company-44.json
346
+ - schemas/spec/sample-data/invalid/company-45.json
347
+ - schemas/spec/sample-data/invalid/company-46.json
348
+ - schemas/spec/sample-data/invalid/company-47.json
349
+ - schemas/spec/sample-data/invalid/company-48.json
350
+ - schemas/spec/sample-data/invalid/company-49.json
351
+ - schemas/spec/sample-data/invalid/company-50.json
352
+ - schemas/spec/sample-data/invalid/company-51.json
353
+ - schemas/spec/sample-data/invalid/company-52.json
354
+ - schemas/spec/sample-data/invalid/company-53.json
355
+ - schemas/spec/sample-data/invalid/company-54.json
356
+ - schemas/spec/sample-data/invalid/company-55.json
357
+ - schemas/spec/sample-data/invalid/financial-payment-01.json
358
+ - schemas/spec/sample-data/invalid/licence-01.json
359
+ - schemas/spec/sample-data/invalid/licence-02.json
360
+ - schemas/spec/sample-data/invalid/licence-03.json
361
+ - schemas/spec/sample-data/invalid/licence-04.json
362
+ - schemas/spec/sample-data/invalid/licence-05.json
363
+ - schemas/spec/sample-data/invalid/licence-06.json
364
+ - schemas/spec/sample-data/invalid/licence-07.json
365
+ - schemas/spec/sample-data/invalid/licence-08.json
366
+ - schemas/spec/sample-data/invalid/primary-data-01.json
367
+ - schemas/spec/sample-data/invalid/primary-data-02.json
368
+ - schemas/spec/sample-data/invalid/simple-licence-01.json
369
+ - schemas/spec/sample-data/invalid/simple-licence-02.json
370
+ - schemas/spec/sample-data/invalid/simple-licence-03.json
371
+ - schemas/spec/sample-data/invalid/simple-subsidiary-01.json
372
+ - schemas/spec/sample-data/licence-schema.json.old
373
+ - schemas/spec/sample-data/valid/company-01.json
374
+ - schemas/spec/sample-data/valid/company-02.json
375
+ - schemas/spec/sample-data/valid/company-03.json
376
+ - schemas/spec/sample-data/valid/company-04.json
377
+ - schemas/spec/sample-data/valid/company-05.json
378
+ - schemas/spec/sample-data/valid/company-06.json
379
+ - schemas/spec/sample-data/valid/company-07.json
380
+ - schemas/spec/sample-data/valid/company-08.json
381
+ - schemas/spec/sample-data/valid/company-09.json
382
+ - schemas/spec/sample-data/valid/company-10.json
383
+ - schemas/spec/sample-data/valid/company-11.json
384
+ - schemas/spec/sample-data/valid/company-12.json
385
+ - schemas/spec/sample-data/valid/company-13.json
386
+ - schemas/spec/sample-data/valid/company-14.json
387
+ - schemas/spec/sample-data/valid/company-15.json
388
+ - schemas/spec/sample-data/valid/company-16.json
389
+ - schemas/spec/sample-data/valid/company-17.json
390
+ - schemas/spec/sample-data/valid/company-18.json
391
+ - schemas/spec/sample-data/valid/company-19.json
392
+ - schemas/spec/sample-data/valid/company-20.json
393
+ - schemas/spec/sample-data/valid/company-21.json
394
+ - schemas/spec/sample-data/valid/company-22.json
395
+ - schemas/spec/sample-data/valid/company-23.json
396
+ - schemas/spec/sample-data/valid/company-24.json
397
+ - schemas/spec/sample-data/valid/company-25.json
398
+ - schemas/spec/sample-data/valid/company-26.json
399
+ - schemas/spec/sample-data/valid/company-27.json
400
+ - schemas/spec/sample-data/valid/company-28.json
401
+ - schemas/spec/sample-data/valid/company-29.json
402
+ - schemas/spec/sample-data/valid/company-30.json
403
+ - schemas/spec/sample-data/valid/company-31.json
404
+ - schemas/spec/sample-data/valid/company-32.json
405
+ - schemas/spec/sample-data/valid/company-33.json
406
+ - schemas/spec/sample-data/valid/company-34.json
407
+ - schemas/spec/sample-data/valid/company-35.json
408
+ - schemas/spec/sample-data/valid/company-36.json
409
+ - schemas/spec/sample-data/valid/company-37.json
410
+ - schemas/spec/sample-data/valid/company-38.json
411
+ - schemas/spec/sample-data/valid/company-39.json
412
+ - schemas/spec/sample-data/valid/company-40.json
413
+ - schemas/spec/sample-data/valid/company-41.json
414
+ - schemas/spec/sample-data/valid/company-42.json
415
+ - schemas/spec/sample-data/valid/financial-payment-01.json
416
+ - schemas/spec/sample-data/valid/financial-payment-02.json
417
+ - schemas/spec/sample-data/valid/licence-01.json
418
+ - schemas/spec/sample-data/valid/licence-02.json
419
+ - schemas/spec/sample-data/valid/licence-03.json
420
+ - schemas/spec/sample-data/valid/licence-04.json
421
+ - schemas/spec/sample-data/valid/primary-data-01.json
422
+ - schemas/spec/sample-data/valid/primary-data-02.json
423
+ - schemas/spec/sample-data/valid/simple-licence-01.json
424
+ - schemas/spec/sample-data/valid/simple-licence-02.json
425
+ - schemas/spec/sample-data/valid/simple-licence-03.json
426
+ - schemas/spec/sample-data/valid/simple-subsidiary-01.json
427
+ - schemas/spec/sample-data/valid/simple-subsidiary-02.json
428
+ - schemas/spec/sample-data/valid/subsidiary-relationship-01.json
429
+ - schemas/spec/spec_helper.rb
430
+ - schemas/spec/validation_spec.rb
286
431
  homepage: ''
287
432
  licenses: []
288
433
  post_install_message:
@@ -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
- }
@@ -1,19 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "title": "Subsidiary Relationship Schema",
4
- "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
- }
17
- }
18
- ]
19
- }