sunspot_neo4j 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.rspec +2 -0
- data/Gemfile +22 -0
- data/LICENSE.txt +20 -0
- data/README.md +42 -0
- data/Rakefile +51 -0
- data/VERSION +1 -0
- data/lib/sunspot_neo4j.rb +3 -0
- data/lib/sunspot_neo4j/neo4j_adapter.rb +48 -0
- data/spec/dummy/Gemfile +34 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/models/recipe.rb +9 -0
- data/spec/dummy/app/views/layouts/application.html.erb +13 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +32 -0
- data/spec/dummy/config/boot.rb +3 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +38 -0
- data/spec/dummy/config/environments/production.rb +76 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +9 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config/sunspot.yml +11 -0
- data/spec/dummy/db/seeds.rb +7 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/lib/tasks/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/log/sunspot-solr-test.log +365 -0
- data/spec/dummy/log/test.log +54 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/robots.txt +5 -0
- data/spec/dummy/vendor/assets/stylesheets/.keep +0 -0
- data/spec/neo4j_adapter_spec.rb +44 -0
- data/spec/spec_helper.rb +104 -0
- data/sunspot_neo4j.gemspec +133 -0
- metadata +273 -0
@@ -0,0 +1,54 @@
|
|
1
|
+
[1m[32mSOLR Request (1.3ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
2
|
+
[1m[32mSOLR Request (1.2ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
3
|
+
[1m[32mSOLR Request (1.2ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
4
|
+
[1m[32mSOLR Request (0.9ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
5
|
+
[1m[32mSOLR Request (84.8ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
6
|
+
[1m[32mSOLR Request (11.9ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
7
|
+
[1m[32mSOLR Request (6.8ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
8
|
+
[1m[32mSOLR Request (22.8ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
9
|
+
[1m[32mSOLR Request (3.4ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
10
|
+
[1m[32mSOLR Request (61.2ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
11
|
+
[1m[32mSOLR Request (23.3ms)[0m [ path=[1m[1mselect[0m parameters={fq: [1m[1m["type:Recipe"][0m, q: [1m[1m"needle"[0m, fl: [1m[1m"* score"[0m, qf: [1m[1m"name_text"[0m, defType: [1m[1m"edismax"[0m, start: [1m[1m0[0m, rows: [1m[1m30[0m} ]
|
12
|
+
[1m[32mSOLR Request (83.2ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
13
|
+
[1m[32mSOLR Request (10.7ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
14
|
+
[1m[32mSOLR Request (7.1ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
15
|
+
[1m[32mSOLR Request (20.0ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
16
|
+
[1m[32mSOLR Request (3.4ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
17
|
+
[1m[32mSOLR Request (38.3ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
18
|
+
[1m[32mSOLR Request (20.2ms)[0m [ path=[1m[1mselect[0m parameters={fq: [1m[1m["type:Recipe"][0m, q: [1m[1m"needle"[0m, fl: [1m[1m"* score"[0m, qf: [1m[1m"name_text"[0m, defType: [1m[1m"edismax"[0m, start: [1m[1m0[0m, rows: [1m[1m30[0m} ]
|
19
|
+
[1m[32mSOLR Request (84.5ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
20
|
+
[1m[32mSOLR Request (12.2ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
21
|
+
[1m[32mSOLR Request (8.5ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
22
|
+
[1m[32mSOLR Request (63.3ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
23
|
+
[1m[32mSOLR Request (10.4ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
24
|
+
[1m[32mSOLR Request (7.1ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
25
|
+
[1m[32mSOLR Request (23.9ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
26
|
+
[1m[32mSOLR Request (3.5ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
27
|
+
[1m[32mSOLR Request (65.9ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
28
|
+
[1m[32mSOLR Request (24.5ms)[0m [ path=[1m[1mselect[0m parameters={fq: [1m[1m["type:Recipe"][0m, q: [1m[1m"needle"[0m, fl: [1m[1m"* score"[0m, qf: [1m[1m"name_text"[0m, defType: [1m[1m"edismax"[0m, start: [1m[1m0[0m, rows: [1m[1m30[0m} ]
|
29
|
+
[1m[32mSOLR Request (79.3ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
30
|
+
[1m[32mSOLR Request (10.8ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
31
|
+
[1m[32mSOLR Request (7.2ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
32
|
+
[1m[32mSOLR Request (62.8ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
33
|
+
[1m[32mSOLR Request (11.9ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
34
|
+
[1m[32mSOLR Request (7.0ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
35
|
+
[1m[32mSOLR Request (63.9ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
36
|
+
[1m[32mSOLR Request (13.5ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
37
|
+
[1m[32mSOLR Request (7.0ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
38
|
+
[1m[32mSOLR Request (67.3ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
39
|
+
[1m[32mSOLR Request (10.4ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
40
|
+
[1m[32mSOLR Request (7.0ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
41
|
+
[1m[32mSOLR Request (23.3ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
42
|
+
[1m[32mSOLR Request (3.4ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
43
|
+
[1m[32mSOLR Request (64.0ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
44
|
+
[1m[32mSOLR Request (22.4ms)[0m [ path=[1m[1mselect[0m parameters={fq: [1m[1m["type:Recipe"][0m, q: [1m[1m"needle"[0m, fl: [1m[1m"* score"[0m, qf: [1m[1m"name_text"[0m, defType: [1m[1m"edismax"[0m, start: [1m[1m0[0m, rows: [1m[1m30[0m} ]
|
45
|
+
[1m[32mSOLR Request (84.2ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
46
|
+
[1m[32mSOLR Request (11.3ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
47
|
+
[1m[32mSOLR Request (7.4ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
48
|
+
[1m[32mSOLR Request (26.4ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
49
|
+
[1m[32mSOLR Request (3.4ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
50
|
+
[1m[32mSOLR Request (33.0ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
51
|
+
[1m[32mSOLR Request (20.7ms)[0m [ path=[1m[1mselect[0m parameters={fq: [1m[1m["type:Recipe"][0m, q: [1m[1m"needle"[0m, fl: [1m[1m"* score"[0m, qf: [1m[1m"name_text"[0m, defType: [1m[1m"edismax"[0m, start: [1m[1m0[0m, rows: [1m[1m30[0m} ]
|
52
|
+
[1m[32mSOLR Request (83.8ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
53
|
+
[1m[32mSOLR Request (11.4ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
54
|
+
[1m[32mSOLR Request (8.1ms)[0m [ path=[1m[1mupdate[0m parameters={} ]
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
File without changes
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
#NOTE: The models found in this spec can be located in the associated dummy Rails app under "spec/dummy"
|
4
|
+
|
5
|
+
describe 'Sunspot' do
|
6
|
+
describe '::Neo4j', neo4j: true do
|
7
|
+
|
8
|
+
shared_examples 'a searchable Neo4j model' do
|
9
|
+
before(:each) do
|
10
|
+
Recipe.destroy_all
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'can create a Neo4j node' do
|
14
|
+
expect(Recipe.create(name: 'Test Recipe')).to_not be nil
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'can find a Neo4j node' do
|
18
|
+
r = Recipe.create(name: 'Needle')
|
19
|
+
Sunspot.commit
|
20
|
+
|
21
|
+
expect(Recipe.search { fulltext 'needle' }.results) == [r]
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
%w(community-2.2.0 community-2.0.4).each do |edition|
|
26
|
+
describe "version #{edition}" do
|
27
|
+
before(:all) do
|
28
|
+
Neo4jTestServer.edition = edition
|
29
|
+
end
|
30
|
+
|
31
|
+
after(:all) do
|
32
|
+
# Shutdown the server after each group of tests.
|
33
|
+
puts 'Shutting down the server'
|
34
|
+
Neo4jTestServer.server.stop
|
35
|
+
Neo4jTestServer.server = nil
|
36
|
+
puts 'Server is shut down'
|
37
|
+
end
|
38
|
+
|
39
|
+
it_behaves_like 'a searchable Neo4j model'
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
require 'sunspot/rails/spec_helper'
|
2
|
+
require 'sunspot_neo4j'
|
3
|
+
require 'sunspot_solr'
|
4
|
+
require 'sunspot_test'
|
5
|
+
require 'neo4j_test_server'
|
6
|
+
require 'neo4j_test_server/rspec'
|
7
|
+
require 'sunspot_test/rspec'
|
8
|
+
require 'rails'
|
9
|
+
|
10
|
+
ENV['RAILS_ENV'] ||= 'test'
|
11
|
+
require File.expand_path('../dummy/config/environment', __FILE__)
|
12
|
+
|
13
|
+
|
14
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
15
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
16
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
17
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
18
|
+
# files.
|
19
|
+
#
|
20
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
21
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
22
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
23
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
24
|
+
# a separate helper file that requires the additional dependencies and performs
|
25
|
+
# the additional setup, and require it from the spec files that actually need
|
26
|
+
# it.
|
27
|
+
#
|
28
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
29
|
+
# users commonly want.
|
30
|
+
#
|
31
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
32
|
+
RSpec.configure do |config|
|
33
|
+
# rspec-expectations config goes here. You can use an alternate
|
34
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
35
|
+
# assertions if you prefer.
|
36
|
+
config.expect_with :rspec do |expectations|
|
37
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
38
|
+
# and `failure_message` of custom matchers include text for helper methods
|
39
|
+
# defined using `chain`, e.g.:
|
40
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
41
|
+
# # => "be bigger than 2 and smaller than 4"
|
42
|
+
# ...rather than:
|
43
|
+
# # => "be bigger than 2"
|
44
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
45
|
+
end
|
46
|
+
|
47
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
48
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
49
|
+
config.mock_with :rspec do |mocks|
|
50
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
51
|
+
# a real object. This is generally recommended, and will default to
|
52
|
+
# `true` in RSpec 4.
|
53
|
+
mocks.verify_partial_doubles = true
|
54
|
+
end
|
55
|
+
|
56
|
+
# The settings below are suggested to provide a good initial experience
|
57
|
+
# with RSpec, but feel free to customize to your heart's content.
|
58
|
+
=begin
|
59
|
+
# These two settings work together to allow you to limit a spec run
|
60
|
+
# to individual examples or groups you care about by tagging them with
|
61
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
62
|
+
# get run.
|
63
|
+
config.filter_run :focus
|
64
|
+
config.run_all_when_everything_filtered = true
|
65
|
+
|
66
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
67
|
+
# recommended. For more details, see:
|
68
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
69
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
70
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
71
|
+
config.disable_monkey_patching!
|
72
|
+
|
73
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
74
|
+
# be too noisy due to issues in dependencies.
|
75
|
+
config.warnings = true
|
76
|
+
|
77
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
78
|
+
# file, and it's useful to allow more verbose output when running an
|
79
|
+
# individual spec file.
|
80
|
+
if config.files_to_run.one?
|
81
|
+
# Use the documentation formatter for detailed output,
|
82
|
+
# unless a formatter has already been configured
|
83
|
+
# (e.g. via a command-line flag).
|
84
|
+
config.default_formatter = 'doc'
|
85
|
+
end
|
86
|
+
|
87
|
+
# Print the 10 slowest examples and example groups at the
|
88
|
+
# end of the spec run, to help surface which specs are running
|
89
|
+
# particularly slow.
|
90
|
+
config.profile_examples = 10
|
91
|
+
|
92
|
+
# Run specs in random order to surface order dependencies. If you find an
|
93
|
+
# order dependency and want to debug it, you can fix the order by providing
|
94
|
+
# the seed, which is printed after each run.
|
95
|
+
# --seed 1234
|
96
|
+
config.order = :random
|
97
|
+
|
98
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
99
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
100
|
+
# test failures related to randomization by passing the same `--seed` value
|
101
|
+
# as the one that triggered the failure.
|
102
|
+
Kernel.srand config.seed
|
103
|
+
=end
|
104
|
+
end
|
@@ -0,0 +1,133 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: sunspot_neo4j 1.0.0 ruby lib
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "sunspot_neo4j"
|
9
|
+
s.version = "1.0.0"
|
10
|
+
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib"]
|
13
|
+
s.authors = ["Andy Schrage"]
|
14
|
+
s.date = "2015-04-22"
|
15
|
+
s.description = "A Sunspot wrapper for Neo4j that is like sunspot_rails."
|
16
|
+
s.email = "Swimminschrage@gmail.com"
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE.txt",
|
19
|
+
"README.md"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".document",
|
23
|
+
".rspec",
|
24
|
+
"Gemfile",
|
25
|
+
"LICENSE.txt",
|
26
|
+
"README.md",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"lib/sunspot_neo4j.rb",
|
30
|
+
"lib/sunspot_neo4j/neo4j_adapter.rb",
|
31
|
+
"spec/dummy/Gemfile",
|
32
|
+
"spec/dummy/README.rdoc",
|
33
|
+
"spec/dummy/Rakefile",
|
34
|
+
"spec/dummy/app/assets/images/.keep",
|
35
|
+
"spec/dummy/app/assets/stylesheets/application.css",
|
36
|
+
"spec/dummy/app/controllers/application_controller.rb",
|
37
|
+
"spec/dummy/app/controllers/concerns/.keep",
|
38
|
+
"spec/dummy/app/helpers/application_helper.rb",
|
39
|
+
"spec/dummy/app/mailers/.keep",
|
40
|
+
"spec/dummy/app/models/.keep",
|
41
|
+
"spec/dummy/app/models/concerns/.keep",
|
42
|
+
"spec/dummy/app/models/recipe.rb",
|
43
|
+
"spec/dummy/app/views/layouts/application.html.erb",
|
44
|
+
"spec/dummy/bin/bundle",
|
45
|
+
"spec/dummy/bin/rails",
|
46
|
+
"spec/dummy/bin/rake",
|
47
|
+
"spec/dummy/bin/setup",
|
48
|
+
"spec/dummy/config.ru",
|
49
|
+
"spec/dummy/config/application.rb",
|
50
|
+
"spec/dummy/config/boot.rb",
|
51
|
+
"spec/dummy/config/environment.rb",
|
52
|
+
"spec/dummy/config/environments/development.rb",
|
53
|
+
"spec/dummy/config/environments/production.rb",
|
54
|
+
"spec/dummy/config/environments/test.rb",
|
55
|
+
"spec/dummy/config/initializers/assets.rb",
|
56
|
+
"spec/dummy/config/initializers/backtrace_silencers.rb",
|
57
|
+
"spec/dummy/config/initializers/cookies_serializer.rb",
|
58
|
+
"spec/dummy/config/initializers/filter_parameter_logging.rb",
|
59
|
+
"spec/dummy/config/initializers/inflections.rb",
|
60
|
+
"spec/dummy/config/initializers/mime_types.rb",
|
61
|
+
"spec/dummy/config/initializers/session_store.rb",
|
62
|
+
"spec/dummy/config/initializers/wrap_parameters.rb",
|
63
|
+
"spec/dummy/config/locales/en.yml",
|
64
|
+
"spec/dummy/config/routes.rb",
|
65
|
+
"spec/dummy/config/secrets.yml",
|
66
|
+
"spec/dummy/config/sunspot.yml",
|
67
|
+
"spec/dummy/db/seeds.rb",
|
68
|
+
"spec/dummy/lib/assets/.keep",
|
69
|
+
"spec/dummy/lib/tasks/.keep",
|
70
|
+
"spec/dummy/log/.keep",
|
71
|
+
"spec/dummy/log/sunspot-solr-test.log",
|
72
|
+
"spec/dummy/log/test.log",
|
73
|
+
"spec/dummy/public/404.html",
|
74
|
+
"spec/dummy/public/422.html",
|
75
|
+
"spec/dummy/public/500.html",
|
76
|
+
"spec/dummy/public/favicon.ico",
|
77
|
+
"spec/dummy/public/robots.txt",
|
78
|
+
"spec/dummy/vendor/assets/stylesheets/.keep",
|
79
|
+
"spec/neo4j_adapter_spec.rb",
|
80
|
+
"spec/spec_helper.rb",
|
81
|
+
"sunspot_neo4j.gemspec"
|
82
|
+
]
|
83
|
+
s.homepage = "http://github.com/Swimminschrage/sunspot_neo4j"
|
84
|
+
s.licenses = ["MIT"]
|
85
|
+
s.rubygems_version = "2.2.2"
|
86
|
+
s.summary = "A Sunspot wrapper for Neo4j"
|
87
|
+
|
88
|
+
if s.respond_to? :specification_version then
|
89
|
+
s.specification_version = 4
|
90
|
+
|
91
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
92
|
+
s.add_runtime_dependency(%q<neo4j>, ["~> 4.1.1"])
|
93
|
+
s.add_runtime_dependency(%q<sunspot>, [">= 1.1.0"])
|
94
|
+
s.add_runtime_dependency(%q<sunspot_rails>, [">= 1.1.0"])
|
95
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
96
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
97
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
98
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
99
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
100
|
+
s.add_development_dependency(%q<rspec-rails>, [">= 0"])
|
101
|
+
s.add_development_dependency(%q<sunspot_solr>, [">= 1.1.0"])
|
102
|
+
s.add_development_dependency(%q<sunspot_test>, [">= 0"])
|
103
|
+
s.add_development_dependency(%q<neo4j_test_server>, ["= 1.1.1"])
|
104
|
+
else
|
105
|
+
s.add_dependency(%q<neo4j>, ["~> 4.1.1"])
|
106
|
+
s.add_dependency(%q<sunspot>, [">= 1.1.0"])
|
107
|
+
s.add_dependency(%q<sunspot_rails>, [">= 1.1.0"])
|
108
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
109
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
110
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
111
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
112
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
113
|
+
s.add_dependency(%q<rspec-rails>, [">= 0"])
|
114
|
+
s.add_dependency(%q<sunspot_solr>, [">= 1.1.0"])
|
115
|
+
s.add_dependency(%q<sunspot_test>, [">= 0"])
|
116
|
+
s.add_dependency(%q<neo4j_test_server>, ["= 1.1.1"])
|
117
|
+
end
|
118
|
+
else
|
119
|
+
s.add_dependency(%q<neo4j>, ["~> 4.1.1"])
|
120
|
+
s.add_dependency(%q<sunspot>, [">= 1.1.0"])
|
121
|
+
s.add_dependency(%q<sunspot_rails>, [">= 1.1.0"])
|
122
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
123
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
124
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
125
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
126
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
127
|
+
s.add_dependency(%q<rspec-rails>, [">= 0"])
|
128
|
+
s.add_dependency(%q<sunspot_solr>, [">= 1.1.0"])
|
129
|
+
s.add_dependency(%q<sunspot_test>, [">= 0"])
|
130
|
+
s.add_dependency(%q<neo4j_test_server>, ["= 1.1.1"])
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|