whos_got_dirt 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/.rspec +2 -0
- data/.travis.yml +20 -0
- data/.yardopts +3 -0
- data/Gemfile +7 -0
- data/LICENSE +20 -0
- data/README.md +61 -0
- data/Rakefile +69 -0
- data/lib/whos_got_dirt/renderer.rb +66 -0
- data/lib/whos_got_dirt/request.rb +218 -0
- data/lib/whos_got_dirt/requests/entity/corp_watch.rb +123 -0
- data/lib/whos_got_dirt/requests/entity/little_sis.rb +52 -0
- data/lib/whos_got_dirt/requests/entity/open_corporates.rb +104 -0
- data/lib/whos_got_dirt/requests/entity/open_duka.rb +33 -0
- data/lib/whos_got_dirt/requests/entity/poderopedia.rb +48 -0
- data/lib/whos_got_dirt/requests/entity.rb +54 -0
- data/lib/whos_got_dirt/requests/list/little_sis.rb +37 -0
- data/lib/whos_got_dirt/requests/list/open_corporates.rb +36 -0
- data/lib/whos_got_dirt/requests/list.rb +16 -0
- data/lib/whos_got_dirt/requests/relation/open_corporates.rb +72 -0
- data/lib/whos_got_dirt/requests/relation/open_oil.rb +49 -0
- data/lib/whos_got_dirt/requests/relation.rb +51 -0
- data/lib/whos_got_dirt/response.rb +79 -0
- data/lib/whos_got_dirt/responses/entity/corp_watch.rb +72 -0
- data/lib/whos_got_dirt/responses/entity/little_sis.rb +66 -0
- data/lib/whos_got_dirt/responses/entity/open_corporates.rb +61 -0
- data/lib/whos_got_dirt/responses/entity/open_duka.rb +42 -0
- data/lib/whos_got_dirt/responses/entity/poderopedia.rb +44 -0
- data/lib/whos_got_dirt/responses/entity.rb +7 -0
- data/lib/whos_got_dirt/responses/helpers/little_sis.rb +34 -0
- data/lib/whos_got_dirt/responses/helpers/open_corporates.rb +28 -0
- data/lib/whos_got_dirt/responses/list/little_sis.rb +42 -0
- data/lib/whos_got_dirt/responses/list/open_corporates.rb +34 -0
- data/lib/whos_got_dirt/responses/list.rb +7 -0
- data/lib/whos_got_dirt/responses/relation/open_corporates.rb +66 -0
- data/lib/whos_got_dirt/responses/relation/open_oil.rb +70 -0
- data/lib/whos_got_dirt/responses/relation.rb +7 -0
- data/lib/whos_got_dirt/result.rb +106 -0
- data/lib/whos_got_dirt/validator.rb +52 -0
- data/lib/whos_got_dirt/version.rb +3 -0
- data/lib/whos_got_dirt.rb +43 -0
- data/schemas/popolo.json +1619 -0
- data/spec/cassettes/corp_watch_entity.yml +35 -0
- data/spec/cassettes/little_sis_entity.yml +98 -0
- data/spec/cassettes/little_sis_list.yml +159 -0
- data/spec/cassettes/open_corporates_entity.yml +137 -0
- data/spec/cassettes/open_corporates_list.yml +60 -0
- data/spec/cassettes/open_corporates_relation.yml +121 -0
- data/spec/cassettes/open_duka_entity.yml +1149 -0
- data/spec/cassettes/open_oil_relation.yml +640 -0
- data/spec/cassettes/poderopedia_entity.yml +43 -0
- data/spec/renderer_spec.rb +48 -0
- data/spec/request_spec.rb +205 -0
- data/spec/requests/entity/corp_watch_spec.rb +99 -0
- data/spec/requests/entity/little_sis_spec.rb +33 -0
- data/spec/requests/entity/open_corporates_spec.rb +81 -0
- data/spec/requests/entity/open_duka_spec.rb +21 -0
- data/spec/requests/entity/poderopedia_spec.rb +21 -0
- data/spec/requests/list/little_sis_spec.rb +25 -0
- data/spec/requests/list/open_corporates_spec.rb +33 -0
- data/spec/requests/relation/open_corporates_spec.rb +53 -0
- data/spec/requests/relation/open_oil_spec.rb +37 -0
- data/spec/response_spec.rb +119 -0
- data/spec/responses/entity/corp_watch_spec.rb +31 -0
- data/spec/responses/entity/little_sis_spec.rb +31 -0
- data/spec/responses/entity/open_corporates_spec.rb +31 -0
- data/spec/responses/entity/open_duka_spec.rb +25 -0
- data/spec/responses/entity/poderopedia_spec.rb +25 -0
- data/spec/responses/list/little_sis_spec.rb +31 -0
- data/spec/responses/list/open_corporates_spec.rb +31 -0
- data/spec/responses/relation/open_corporates_spec.rb +31 -0
- data/spec/responses/relation/open_oil_spec.rb +31 -0
- data/spec/result_spec.rb +90 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/support/shared_examples_for_requests.rb +155 -0
- data/spec/validator_spec.rb +43 -0
- data/whos_got_dirt.gemspec +28 -0
- metadata +281 -0
@@ -0,0 +1,155 @@
|
|
1
|
+
def input(variable, options)
|
2
|
+
if options && options.key?(:scope)
|
3
|
+
{options[:scope] => [variable]}
|
4
|
+
else
|
5
|
+
variable
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
def transform(value, options)
|
10
|
+
if options && options.key?(:transformed)
|
11
|
+
options[:transformed]
|
12
|
+
else
|
13
|
+
value
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
RSpec.shared_examples 'equal' do |target,source,value,options|
|
18
|
+
it 'should return a criterion' do
|
19
|
+
expect(described_class.new(input({source => value}, options)).convert).to eq(target => transform(value, options))
|
20
|
+
end
|
21
|
+
|
22
|
+
if options && options.key?(:valid)
|
23
|
+
it 'should accept valid values' do
|
24
|
+
options[:valid].each do |value|
|
25
|
+
expect(described_class.new(input({source => value}, options)).convert).to eq(target => transform(value, options))
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'should ignore invalid values' do
|
30
|
+
expect(described_class.new(input({source => 'invalid'}, options)).convert).to eq({})
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
RSpec.shared_examples 'match' do |target,source,values,options|
|
36
|
+
let :fuzzy do
|
37
|
+
{"#{source}~=" => values.first}
|
38
|
+
end
|
39
|
+
|
40
|
+
let :exact do
|
41
|
+
fuzzy.merge(source => values.last)
|
42
|
+
end
|
43
|
+
|
44
|
+
it 'should return a criterion' do
|
45
|
+
expect(described_class.new(input(fuzzy, options)).convert).to eq(target => transform(values.first, options))
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'should prioritize exact value' do
|
49
|
+
expect(described_class.new(input(exact, options)).convert).to eq(target => transform(values.last, options))
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
RSpec.shared_examples 'one_of' do |target,source,values,or_separator,options|
|
54
|
+
let :many do
|
55
|
+
{"#{source}|=" => values}
|
56
|
+
end
|
57
|
+
|
58
|
+
let :one do
|
59
|
+
many.merge(source => values.first)
|
60
|
+
end
|
61
|
+
|
62
|
+
it 'should return a criterion' do
|
63
|
+
expect(described_class.new(input(many, options)).convert).to eq(target => transform(values, options).join(or_separator))
|
64
|
+
end
|
65
|
+
|
66
|
+
it 'should prioritize exact match' do
|
67
|
+
expect(described_class.new(input(one, options)).convert).to eq(target => transform(values, options).first)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
RSpec.shared_examples 'all_of' do |target,source,values,or_separator,options|
|
72
|
+
let :many do
|
73
|
+
{}.tap do |hash|
|
74
|
+
values.each_with_index do |value,index|
|
75
|
+
h["#{(97 + index).chr}:#{source}"] = value
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
let :one do
|
81
|
+
many.merge(source => values.first)
|
82
|
+
end
|
83
|
+
|
84
|
+
it 'should return a criterion' do
|
85
|
+
expect(described_class.new(input(many, options)).convert).to eq(target => transform(values, options).join(and_separator))
|
86
|
+
end
|
87
|
+
|
88
|
+
it 'should prioritize exact match' do
|
89
|
+
expect(described_class.new(input(one, options)).convert).to eq(target => transform(values, options).first)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
RSpec.shared_examples 'date_range' do |target,source,options|
|
94
|
+
let :strict do
|
95
|
+
{
|
96
|
+
"#{source}>" => '2010-01-02',
|
97
|
+
"#{source}<" => '2010-01-05',
|
98
|
+
}
|
99
|
+
end
|
100
|
+
|
101
|
+
let :nonstrict do
|
102
|
+
strict.merge({
|
103
|
+
"#{source}>=" => '2010-01-03',
|
104
|
+
"#{source}<=" => '2010-01-04',
|
105
|
+
})
|
106
|
+
end
|
107
|
+
|
108
|
+
let :exact do
|
109
|
+
nonstrict.merge({
|
110
|
+
source => '2010-01-01',
|
111
|
+
})
|
112
|
+
end
|
113
|
+
|
114
|
+
it 'should return a criterion' do
|
115
|
+
expect(described_class.new(input(strict, options)).convert).to eq(target => '2010-01-02:2010-01-05')
|
116
|
+
end
|
117
|
+
|
118
|
+
it 'should prioritize or-equal dates' do
|
119
|
+
expect(described_class.new(input(nonstrict, options)).convert).to eq(target => '2010-01-03:2010-01-04')
|
120
|
+
end
|
121
|
+
|
122
|
+
it 'should prioritize exact date' do
|
123
|
+
expect(described_class.new(input(exact, options)).convert).to eq(target => '2010-01-01:2010-01-01')
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
RSpec.shared_examples 'contact_details' do |target,source,values,options|
|
128
|
+
let :fuzzy do
|
129
|
+
[
|
130
|
+
{'type' => 'voice', 'value' => '+1-555-555-0100'},
|
131
|
+
{'type' => source, 'value~=' => values.first},
|
132
|
+
]
|
133
|
+
end
|
134
|
+
|
135
|
+
let :exact do
|
136
|
+
fuzzy << {'type' => source, 'value' => values.last}
|
137
|
+
end
|
138
|
+
|
139
|
+
it 'should return a criterion' do
|
140
|
+
expect(described_class.new(input({'contact_details' => fuzzy}, options)).convert).to eq(target => values.first)
|
141
|
+
end
|
142
|
+
|
143
|
+
it 'should prioritize exact value' do
|
144
|
+
expect(described_class.new(input({'contact_details' => exact}, options)).convert).to eq(target => values.last)
|
145
|
+
end
|
146
|
+
|
147
|
+
it 'should not return a criterion' do
|
148
|
+
[ [{'invalid' => source, 'value' => values.first}],
|
149
|
+
[{'type' => 'invalid', 'value' => values.first}],
|
150
|
+
[{'type' => source, 'invalid' => values.first}],
|
151
|
+
].each do |contact_details|
|
152
|
+
expect(described_class.new(input({'contact_details' => contact_details}, options)).convert).to eq({})
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
module WhosGotDirt
|
4
|
+
RSpec.describe Validator do
|
5
|
+
let :invalid do
|
6
|
+
{
|
7
|
+
'id' => 123,
|
8
|
+
'name' => 'John Smith',
|
9
|
+
'identifiers' => [{
|
10
|
+
'scheme' => 'ACME',
|
11
|
+
}, {
|
12
|
+
'identifier' => 'john-smith',
|
13
|
+
}, {
|
14
|
+
'scheme' => 'ACME',
|
15
|
+
}],
|
16
|
+
}
|
17
|
+
end
|
18
|
+
|
19
|
+
let :valid do
|
20
|
+
{
|
21
|
+
'id' => '123',
|
22
|
+
'name' => 'John Smith',
|
23
|
+
'identifiers' => [{
|
24
|
+
'identifier' => 'john-smith',
|
25
|
+
}],
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
describe '.validate' do
|
30
|
+
it 'should return errors for invalid data' do
|
31
|
+
expect(Validator.validate(invalid, 'person').map{|error| [error[:fragment], error[:failed_attribute]]}).to eq([
|
32
|
+
['#/id', 'Type'],
|
33
|
+
['#/identifiers/0', 'Properties'],
|
34
|
+
['#/identifiers/2', 'Properties'],
|
35
|
+
])
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'should not return errors for valid data' do
|
39
|
+
expect(Validator.validate(valid, 'person')).to eq([])
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/whos_got_dirt/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "whos_got_dirt"
|
6
|
+
s.version = WhosGotDirt::VERSION
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
s.authors = ["James McKinney"]
|
9
|
+
s.homepage = "https://github.com/influencemapping/whos_got_dirt"
|
10
|
+
s.summary = %q{A federated search API for entities and relations}
|
11
|
+
s.license = 'MIT'
|
12
|
+
|
13
|
+
s.files = `git ls-files`.split("\n")
|
14
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
15
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
16
|
+
s.require_paths = ["lib"]
|
17
|
+
|
18
|
+
s.add_runtime_dependency('activesupport', '~> 4.2.0')
|
19
|
+
s.add_runtime_dependency('json-pointer')
|
20
|
+
s.add_runtime_dependency('json-schema', '~> 2.3')
|
21
|
+
s.add_runtime_dependency('nokogiri')
|
22
|
+
s.add_runtime_dependency('nori')
|
23
|
+
|
24
|
+
s.add_development_dependency('coveralls')
|
25
|
+
s.add_development_dependency('faraday')
|
26
|
+
s.add_development_dependency('rake')
|
27
|
+
s.add_development_dependency('rspec', '~> 3.1')
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,281 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: whos_got_dirt
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- James McKinney
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: json-pointer
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: json-schema
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.3'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: nokogiri
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: nori
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: coveralls
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: faraday
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '3.1'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '3.1'
|
139
|
+
description:
|
140
|
+
email:
|
141
|
+
executables: []
|
142
|
+
extensions: []
|
143
|
+
extra_rdoc_files: []
|
144
|
+
files:
|
145
|
+
- ".gitignore"
|
146
|
+
- ".rspec"
|
147
|
+
- ".travis.yml"
|
148
|
+
- ".yardopts"
|
149
|
+
- Gemfile
|
150
|
+
- LICENSE
|
151
|
+
- README.md
|
152
|
+
- Rakefile
|
153
|
+
- lib/whos_got_dirt.rb
|
154
|
+
- lib/whos_got_dirt/renderer.rb
|
155
|
+
- lib/whos_got_dirt/request.rb
|
156
|
+
- lib/whos_got_dirt/requests/entity.rb
|
157
|
+
- lib/whos_got_dirt/requests/entity/corp_watch.rb
|
158
|
+
- lib/whos_got_dirt/requests/entity/little_sis.rb
|
159
|
+
- lib/whos_got_dirt/requests/entity/open_corporates.rb
|
160
|
+
- lib/whos_got_dirt/requests/entity/open_duka.rb
|
161
|
+
- lib/whos_got_dirt/requests/entity/poderopedia.rb
|
162
|
+
- lib/whos_got_dirt/requests/list.rb
|
163
|
+
- lib/whos_got_dirt/requests/list/little_sis.rb
|
164
|
+
- lib/whos_got_dirt/requests/list/open_corporates.rb
|
165
|
+
- lib/whos_got_dirt/requests/relation.rb
|
166
|
+
- lib/whos_got_dirt/requests/relation/open_corporates.rb
|
167
|
+
- lib/whos_got_dirt/requests/relation/open_oil.rb
|
168
|
+
- lib/whos_got_dirt/response.rb
|
169
|
+
- lib/whos_got_dirt/responses/entity.rb
|
170
|
+
- lib/whos_got_dirt/responses/entity/corp_watch.rb
|
171
|
+
- lib/whos_got_dirt/responses/entity/little_sis.rb
|
172
|
+
- lib/whos_got_dirt/responses/entity/open_corporates.rb
|
173
|
+
- lib/whos_got_dirt/responses/entity/open_duka.rb
|
174
|
+
- lib/whos_got_dirt/responses/entity/poderopedia.rb
|
175
|
+
- lib/whos_got_dirt/responses/helpers/little_sis.rb
|
176
|
+
- lib/whos_got_dirt/responses/helpers/open_corporates.rb
|
177
|
+
- lib/whos_got_dirt/responses/list.rb
|
178
|
+
- lib/whos_got_dirt/responses/list/little_sis.rb
|
179
|
+
- lib/whos_got_dirt/responses/list/open_corporates.rb
|
180
|
+
- lib/whos_got_dirt/responses/relation.rb
|
181
|
+
- lib/whos_got_dirt/responses/relation/open_corporates.rb
|
182
|
+
- lib/whos_got_dirt/responses/relation/open_oil.rb
|
183
|
+
- lib/whos_got_dirt/result.rb
|
184
|
+
- lib/whos_got_dirt/validator.rb
|
185
|
+
- lib/whos_got_dirt/version.rb
|
186
|
+
- schemas/popolo.json
|
187
|
+
- spec/cassettes/corp_watch_entity.yml
|
188
|
+
- spec/cassettes/little_sis_entity.yml
|
189
|
+
- spec/cassettes/little_sis_list.yml
|
190
|
+
- spec/cassettes/open_corporates_entity.yml
|
191
|
+
- spec/cassettes/open_corporates_list.yml
|
192
|
+
- spec/cassettes/open_corporates_relation.yml
|
193
|
+
- spec/cassettes/open_duka_entity.yml
|
194
|
+
- spec/cassettes/open_oil_relation.yml
|
195
|
+
- spec/cassettes/poderopedia_entity.yml
|
196
|
+
- spec/renderer_spec.rb
|
197
|
+
- spec/request_spec.rb
|
198
|
+
- spec/requests/entity/corp_watch_spec.rb
|
199
|
+
- spec/requests/entity/little_sis_spec.rb
|
200
|
+
- spec/requests/entity/open_corporates_spec.rb
|
201
|
+
- spec/requests/entity/open_duka_spec.rb
|
202
|
+
- spec/requests/entity/poderopedia_spec.rb
|
203
|
+
- spec/requests/list/little_sis_spec.rb
|
204
|
+
- spec/requests/list/open_corporates_spec.rb
|
205
|
+
- spec/requests/relation/open_corporates_spec.rb
|
206
|
+
- spec/requests/relation/open_oil_spec.rb
|
207
|
+
- spec/response_spec.rb
|
208
|
+
- spec/responses/entity/corp_watch_spec.rb
|
209
|
+
- spec/responses/entity/little_sis_spec.rb
|
210
|
+
- spec/responses/entity/open_corporates_spec.rb
|
211
|
+
- spec/responses/entity/open_duka_spec.rb
|
212
|
+
- spec/responses/entity/poderopedia_spec.rb
|
213
|
+
- spec/responses/list/little_sis_spec.rb
|
214
|
+
- spec/responses/list/open_corporates_spec.rb
|
215
|
+
- spec/responses/relation/open_corporates_spec.rb
|
216
|
+
- spec/responses/relation/open_oil_spec.rb
|
217
|
+
- spec/result_spec.rb
|
218
|
+
- spec/spec_helper.rb
|
219
|
+
- spec/support/shared_examples_for_requests.rb
|
220
|
+
- spec/validator_spec.rb
|
221
|
+
- whos_got_dirt.gemspec
|
222
|
+
homepage: https://github.com/influencemapping/whos_got_dirt
|
223
|
+
licenses:
|
224
|
+
- MIT
|
225
|
+
metadata: {}
|
226
|
+
post_install_message:
|
227
|
+
rdoc_options: []
|
228
|
+
require_paths:
|
229
|
+
- lib
|
230
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
231
|
+
requirements:
|
232
|
+
- - ">="
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
version: '0'
|
235
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
|
+
requirements:
|
237
|
+
- - ">="
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: '0'
|
240
|
+
requirements: []
|
241
|
+
rubyforge_project:
|
242
|
+
rubygems_version: 2.4.5
|
243
|
+
signing_key:
|
244
|
+
specification_version: 4
|
245
|
+
summary: A federated search API for entities and relations
|
246
|
+
test_files:
|
247
|
+
- spec/cassettes/corp_watch_entity.yml
|
248
|
+
- spec/cassettes/little_sis_entity.yml
|
249
|
+
- spec/cassettes/little_sis_list.yml
|
250
|
+
- spec/cassettes/open_corporates_entity.yml
|
251
|
+
- spec/cassettes/open_corporates_list.yml
|
252
|
+
- spec/cassettes/open_corporates_relation.yml
|
253
|
+
- spec/cassettes/open_duka_entity.yml
|
254
|
+
- spec/cassettes/open_oil_relation.yml
|
255
|
+
- spec/cassettes/poderopedia_entity.yml
|
256
|
+
- spec/renderer_spec.rb
|
257
|
+
- spec/request_spec.rb
|
258
|
+
- spec/requests/entity/corp_watch_spec.rb
|
259
|
+
- spec/requests/entity/little_sis_spec.rb
|
260
|
+
- spec/requests/entity/open_corporates_spec.rb
|
261
|
+
- spec/requests/entity/open_duka_spec.rb
|
262
|
+
- spec/requests/entity/poderopedia_spec.rb
|
263
|
+
- spec/requests/list/little_sis_spec.rb
|
264
|
+
- spec/requests/list/open_corporates_spec.rb
|
265
|
+
- spec/requests/relation/open_corporates_spec.rb
|
266
|
+
- spec/requests/relation/open_oil_spec.rb
|
267
|
+
- spec/response_spec.rb
|
268
|
+
- spec/responses/entity/corp_watch_spec.rb
|
269
|
+
- spec/responses/entity/little_sis_spec.rb
|
270
|
+
- spec/responses/entity/open_corporates_spec.rb
|
271
|
+
- spec/responses/entity/open_duka_spec.rb
|
272
|
+
- spec/responses/entity/poderopedia_spec.rb
|
273
|
+
- spec/responses/list/little_sis_spec.rb
|
274
|
+
- spec/responses/list/open_corporates_spec.rb
|
275
|
+
- spec/responses/relation/open_corporates_spec.rb
|
276
|
+
- spec/responses/relation/open_oil_spec.rb
|
277
|
+
- spec/result_spec.rb
|
278
|
+
- spec/spec_helper.rb
|
279
|
+
- spec/support/shared_examples_for_requests.rb
|
280
|
+
- spec/validator_spec.rb
|
281
|
+
has_rdoc:
|