ashikawa-core 0.6.0 → 0.7.0
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.
- data/.rspec +0 -1
- data/.travis.yml +2 -0
- data/CONTRIBUTING.md +14 -29
- data/Gemfile.devtools +9 -10
- data/README.md +30 -9
- data/Rakefile +1 -1
- data/ashikawa-core.gemspec +9 -8
- data/config/flay.yml +2 -2
- data/config/flog.yml +1 -1
- data/config/roodi.yml +4 -5
- data/config/site.reek +40 -16
- data/config/yardstick.yml +1 -1
- data/lib/ashikawa-core/collection.rb +109 -22
- data/lib/ashikawa-core/connection.rb +42 -110
- data/lib/ashikawa-core/cursor.rb +13 -6
- data/lib/ashikawa-core/database.rb +67 -17
- data/lib/ashikawa-core/document.rb +41 -10
- data/lib/ashikawa-core/edge.rb +50 -0
- data/lib/ashikawa-core/exceptions/client_error/bad_syntax.rb +24 -0
- data/lib/ashikawa-core/exceptions/{collection_not_found.rb → client_error/resource_not_found/collection_not_found.rb} +3 -1
- data/lib/ashikawa-core/exceptions/{document_not_found.rb → client_error/resource_not_found/document_not_found.rb} +3 -1
- data/lib/ashikawa-core/exceptions/{index_not_found.rb → client_error/resource_not_found/index_not_found.rb} +3 -1
- data/lib/ashikawa-core/exceptions/client_error/resource_not_found.rb +25 -0
- data/lib/ashikawa-core/exceptions/client_error.rb +23 -0
- data/lib/ashikawa-core/exceptions/server_error/json_error.rb +25 -0
- data/lib/ashikawa-core/exceptions/server_error.rb +23 -0
- data/lib/ashikawa-core/figure.rb +59 -2
- data/lib/ashikawa-core/index.rb +23 -7
- data/lib/ashikawa-core/query.rb +10 -10
- data/lib/ashikawa-core/request_preprocessor.rb +49 -0
- data/lib/ashikawa-core/response_preprocessor.rb +111 -0
- data/lib/ashikawa-core/version.rb +1 -1
- data/lib/ashikawa-core.rb +0 -1
- data/spec/acceptance/basic_spec.rb +61 -22
- data/spec/acceptance/index_spec.rb +11 -4
- data/spec/acceptance/query_spec.rb +4 -1
- data/spec/acceptance/spec_helper.rb +0 -2
- data/spec/acceptance_auth/spec_helper.rb +0 -2
- data/spec/fixtures/collections/60768679-count.json +13 -0
- data/spec/fixtures/collections/60768679-figures.json +35 -0
- data/spec/fixtures/collections/60768679-properties-volatile.json +12 -0
- data/spec/fixtures/collections/60768679-properties.json +12 -0
- data/spec/fixtures/collections/{4588.json → 60768679.json} +2 -2
- data/spec/fixtures/collections/all.json +5 -5
- data/spec/fixtures/cursor/26011191-2.json +1 -1
- data/spec/fixtures/cursor/26011191.json +1 -1
- data/spec/fixtures/documents/example_1-137249191.json +6 -0
- data/spec/fixtures/documents/new-example_1-137249191.json +6 -0
- data/spec/setup/arangodb.sh +1 -1
- data/spec/unit/collection_spec.rb +117 -42
- data/spec/unit/connection_spec.rb +161 -61
- data/spec/unit/cursor_spec.rb +39 -12
- data/spec/unit/database_spec.rb +119 -19
- data/spec/unit/document_spec.rb +4 -2
- data/spec/unit/edge_spec.rb +54 -0
- data/spec/unit/exception_spec.rb +36 -8
- data/spec/unit/figure_spec.rb +37 -11
- data/spec/unit/index_spec.rb +1 -1
- data/spec/unit/query_spec.rb +18 -18
- data/spec/unit/spec_helper.rb +4 -13
- data/tasks/adjustments.rake +3 -2
- metadata +59 -32
- data/lib/ashikawa-core/exceptions/unknown_path.rb +0 -15
- data/spec/fixtures/collections/4590-properties.json +0 -9
- data/spec/fixtures/collections/4590.json +0 -8
- data/spec/fixtures/collections/73482-figures.json +0 -23
- data/spec/fixtures/documents/4590-333.json +0 -5
- data/spec/fixtures/documents/new-4590-333.json +0 -5
data/spec/unit/index_spec.rb
CHANGED
@@ -20,6 +20,7 @@ describe Ashikawa::Core::Index do
|
|
20
20
|
|
21
21
|
it "should initialize an Index" do
|
22
22
|
index = subject.new collection, raw_data
|
23
|
+
index.id.should == "167137465/168054969"
|
23
24
|
index.type.should == :hash
|
24
25
|
index.on.should == [:something]
|
25
26
|
index.unique.should == true
|
@@ -31,7 +32,6 @@ describe Ashikawa::Core::Index do
|
|
31
32
|
it "should be deletable" do
|
32
33
|
collection.should_receive(:send_request).with("index/167137465/168054969",
|
33
34
|
:delete => {})
|
34
|
-
collection.should_receive(:id).and_return(167137465)
|
35
35
|
|
36
36
|
subject.delete
|
37
37
|
end
|
data/spec/unit/query_spec.rb
CHANGED
@@ -16,7 +16,7 @@ describe Ashikawa::Core::Query do
|
|
16
16
|
describe "get all" do
|
17
17
|
it "should list all documents" do
|
18
18
|
collection.stub(:send_request).and_return { server_response('simple-queries/all') }
|
19
|
-
collection.should_receive(:send_request).with("
|
19
|
+
collection.should_receive(:send_request).with("simple/all", :put => {"collection" => "example_1"})
|
20
20
|
|
21
21
|
Ashikawa::Core::Cursor.should_receive(:new)
|
22
22
|
|
@@ -25,7 +25,7 @@ describe Ashikawa::Core::Query do
|
|
25
25
|
|
26
26
|
it "should be able to limit the number of documents" do
|
27
27
|
collection.stub(:send_request).and_return { server_response('simple-queries/all_skip') }
|
28
|
-
collection.should_receive(:send_request).with("
|
28
|
+
collection.should_receive(:send_request).with("simple/all", :put => {"collection" => "example_1", "limit" => 1})
|
29
29
|
|
30
30
|
Ashikawa::Core::Cursor.should_receive(:new)
|
31
31
|
|
@@ -34,7 +34,7 @@ describe Ashikawa::Core::Query do
|
|
34
34
|
|
35
35
|
it "should be able to skip documents" do
|
36
36
|
collection.stub(:send_request).and_return { server_response('simple-queries/all_limit') }
|
37
|
-
collection.should_receive(:send_request).with("
|
37
|
+
collection.should_receive(:send_request).with("simple/all", :put => {"collection" => "example_1", "skip" => 1})
|
38
38
|
|
39
39
|
Ashikawa::Core::Cursor.should_receive(:new)
|
40
40
|
|
@@ -49,7 +49,7 @@ describe Ashikawa::Core::Query do
|
|
49
49
|
collection.stub(:database).and_return { double }
|
50
50
|
|
51
51
|
collection.stub(:send_request).and_return { server_response('simple-queries/example') }
|
52
|
-
collection.should_receive(:send_request).with("
|
52
|
+
collection.should_receive(:send_request).with("simple/first-example", :put =>
|
53
53
|
{"collection" => "example_1", "example" => { :hello => "world"}})
|
54
54
|
|
55
55
|
Ashikawa::Core::Document.should_receive(:new)
|
@@ -63,7 +63,7 @@ describe Ashikawa::Core::Query do
|
|
63
63
|
|
64
64
|
it "should find all fitting documents" do
|
65
65
|
collection.stub(:send_request).and_return { server_response('simple-queries/example') }
|
66
|
-
collection.should_receive(:send_request).with("
|
66
|
+
collection.should_receive(:send_request).with("simple/by-example", :put =>
|
67
67
|
{"collection" => "example_1", "example" => { :hello => "world"}})
|
68
68
|
|
69
69
|
Ashikawa::Core::Cursor.should_receive(:new)
|
@@ -73,7 +73,7 @@ describe Ashikawa::Core::Query do
|
|
73
73
|
|
74
74
|
it "should be able to limit the number of documents" do
|
75
75
|
collection.stub(:send_request).and_return { server_response('simple-queries/example') }
|
76
|
-
collection.should_receive(:send_request).with("
|
76
|
+
collection.should_receive(:send_request).with("simple/by-example", :put => {"collection" => "example_1", "limit" => 2, "example" => { :hello => "world"}})
|
77
77
|
|
78
78
|
Ashikawa::Core::Cursor.should_receive(:new)
|
79
79
|
|
@@ -82,7 +82,7 @@ describe Ashikawa::Core::Query do
|
|
82
82
|
|
83
83
|
it "should be able to skip documents" do
|
84
84
|
collection.stub(:send_request).and_return { server_response('simple-queries/example') }
|
85
|
-
collection.should_receive(:send_request).with("
|
85
|
+
collection.should_receive(:send_request).with("simple/by-example", :put =>
|
86
86
|
{"collection" => "example_1", "skip" => 1, "example" => { :hello => "world"}})
|
87
87
|
|
88
88
|
Ashikawa::Core::Cursor.should_receive(:new)
|
@@ -94,7 +94,7 @@ describe Ashikawa::Core::Query do
|
|
94
94
|
describe "near a geolocation" do
|
95
95
|
it "should find documents based on latitude/longitude" do
|
96
96
|
collection.stub(:send_request).and_return { server_response('simple-queries/near') }
|
97
|
-
collection.should_receive(:send_request).with("
|
97
|
+
collection.should_receive(:send_request).with("simple/near", :put => { "collection" => "example_1", "latitude" => 0, "longitude" => 0 })
|
98
98
|
|
99
99
|
Ashikawa::Core::Cursor.should_receive(:new)
|
100
100
|
|
@@ -105,7 +105,7 @@ describe Ashikawa::Core::Query do
|
|
105
105
|
describe "within a radious of a geolocation" do
|
106
106
|
it "should look for documents based on latidude/longitude" do
|
107
107
|
collection.stub(:send_request).and_return { server_response('simple-queries/within') }
|
108
|
-
collection.should_receive(:send_request).with("
|
108
|
+
collection.should_receive(:send_request).with("simple/within" , :put => { "collection" => "example_1", "latitude" => 0, "longitude" => 0, "radius" => 2 })
|
109
109
|
|
110
110
|
Ashikawa::Core::Cursor.should_receive(:new)
|
111
111
|
|
@@ -117,7 +117,7 @@ describe Ashikawa::Core::Query do
|
|
117
117
|
it "should look for documents with an attribute in that range" do
|
118
118
|
arguments = { "collection" => "example_1", "attribute" => "age", "left" => 50, "right" => 60, "closed" => false}
|
119
119
|
collection.stub(:send_request).and_return { server_response('simple-queries/range') }
|
120
|
-
collection.should_receive(:send_request).with("
|
120
|
+
collection.should_receive(:send_request).with("simple/range" , :put => arguments)
|
121
121
|
|
122
122
|
Ashikawa::Core::Cursor.should_receive(:new)
|
123
123
|
|
@@ -129,7 +129,7 @@ describe Ashikawa::Core::Query do
|
|
129
129
|
it "should be able to execute it" do
|
130
130
|
collection.stub(:database).and_return double
|
131
131
|
collection.stub(:send_request).and_return { server_response("cursor/query") }
|
132
|
-
collection.should_receive(:send_request).with("
|
132
|
+
collection.should_receive(:send_request).with("cursor", :post => {
|
133
133
|
"query" => "FOR u IN users LIMIT 2 RETURN u",
|
134
134
|
"count" => true,
|
135
135
|
"batchSize" => 2
|
@@ -143,7 +143,7 @@ describe Ashikawa::Core::Query do
|
|
143
143
|
query = "FOR u IN users LIMIT 2 RETURN u"
|
144
144
|
|
145
145
|
collection.stub(:send_request).and_return { server_response("query/valid") }
|
146
|
-
collection.should_receive(:send_request).with("
|
146
|
+
collection.should_receive(:send_request).with("query", :post => {
|
147
147
|
"query" => query
|
148
148
|
})
|
149
149
|
|
@@ -154,9 +154,9 @@ describe Ashikawa::Core::Query do
|
|
154
154
|
query = "FOR u IN users LIMIT 2"
|
155
155
|
|
156
156
|
collection.stub(:send_request) do
|
157
|
-
raise
|
157
|
+
raise Ashikawa::Core::BadSyntax
|
158
158
|
end
|
159
|
-
collection.should_receive(:send_request).with("
|
159
|
+
collection.should_receive(:send_request).with("query", :post => {
|
160
160
|
"query" => query
|
161
161
|
})
|
162
162
|
|
@@ -177,7 +177,7 @@ describe Ashikawa::Core::Query do
|
|
177
177
|
describe "with an AQL query" do
|
178
178
|
it "should be able to execute it" do
|
179
179
|
database.stub(:send_request).and_return { server_response("cursor/query") }
|
180
|
-
database.should_receive(:send_request).with("
|
180
|
+
database.should_receive(:send_request).with("cursor", :post => {
|
181
181
|
"query" => "FOR u IN users LIMIT 2 RETURN u",
|
182
182
|
"count" => true,
|
183
183
|
"batchSize" => 2
|
@@ -191,7 +191,7 @@ describe Ashikawa::Core::Query do
|
|
191
191
|
query = "FOR u IN users LIMIT 2 RETURN u"
|
192
192
|
|
193
193
|
database.stub(:send_request).and_return { server_response("query/valid") }
|
194
|
-
database.should_receive(:send_request).with("
|
194
|
+
database.should_receive(:send_request).with("query", :post => {
|
195
195
|
"query" => query
|
196
196
|
})
|
197
197
|
|
@@ -202,9 +202,9 @@ describe Ashikawa::Core::Query do
|
|
202
202
|
query = "FOR u IN users LIMIT 2"
|
203
203
|
|
204
204
|
database.stub(:send_request) do
|
205
|
-
raise
|
205
|
+
raise Ashikawa::Core::BadSyntax
|
206
206
|
end
|
207
|
-
database.should_receive(:send_request).with("
|
207
|
+
database.should_receive(:send_request).with("query", :post => {
|
208
208
|
"query" => query
|
209
209
|
})
|
210
210
|
|
data/spec/unit/spec_helper.rb
CHANGED
@@ -1,19 +1,10 @@
|
|
1
1
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
2
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
|
3
3
|
|
4
|
-
if defined? version and version != '1.8.7'
|
5
|
-
require 'simplecov'
|
6
|
-
SimpleCov.start do
|
7
|
-
add_filter "spec/"
|
8
|
-
end
|
9
|
-
SimpleCov.minimum_coverage 100
|
10
|
-
end
|
11
|
-
|
12
|
-
# For HTTP Testing
|
13
|
-
require 'webmock/rspec'
|
14
|
-
require 'json'
|
15
|
-
|
16
4
|
# Helper to simulate Server Responses. Parses the fixtures in the spec folder
|
5
|
+
require 'multi_json'
|
17
6
|
def server_response(path)
|
18
|
-
return
|
7
|
+
return MultiJson.load(File.readlines("spec/fixtures/#{path}.json").join)
|
19
8
|
end
|
9
|
+
|
10
|
+
ARANGO_HOST = "http://localhost:8529"
|
data/tasks/adjustments.rake
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Remove some tasks defined by devtools to redefine them
|
2
2
|
|
3
3
|
Rake::Task["spec"].clear
|
4
|
+
Rake::Task["spec:integration"].clear
|
4
5
|
Rake::Task["ci:metrics"].clear
|
5
6
|
Rake::Task["ci"].clear
|
6
7
|
|
@@ -38,9 +39,9 @@ end
|
|
38
39
|
# * On the CI, ArangoDB is already running so use the special acceptance task
|
39
40
|
|
40
41
|
namespace :ci do
|
41
|
-
desc 'Run metrics'
|
42
|
+
desc 'Run all metrics except mutant'
|
42
43
|
task :metrics => %w[ metrics:verify_measurements metrics:flog metrics:flay metrics:reek metrics:roodi ]
|
43
44
|
end
|
44
45
|
|
45
|
-
desc 'Run metrics
|
46
|
+
desc 'Run all metrics and specs'
|
46
47
|
task :ci => %w[ spec:unit spec:acceptance_with_running_arangodb ci:metrics ]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ashikawa-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,16 +10,16 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-02
|
13
|
+
date: 2013-03-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: faraday
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 0.8.6
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,15 +27,15 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ~>
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
30
|
+
version: 0.8.6
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
|
-
name:
|
32
|
+
name: multi_json
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
34
34
|
none: false
|
35
35
|
requirements:
|
36
36
|
- - ~>
|
37
37
|
- !ruby/object:Gem::Version
|
38
|
-
version: 1.
|
38
|
+
version: 1.6.1
|
39
39
|
type: :runtime
|
40
40
|
prerelease: false
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,25 +43,41 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - ~>
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 1.
|
46
|
+
version: 1.6.1
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: null_logger
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
55
|
-
type: :
|
54
|
+
version: 0.0.1
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.0.1
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: backports
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 2.8.2
|
71
|
+
type: :runtime
|
56
72
|
prerelease: false
|
57
73
|
version_requirements: !ruby/object:Gem::Requirement
|
58
74
|
none: false
|
59
75
|
requirements:
|
60
76
|
- - ~>
|
61
77
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
78
|
+
version: 2.8.2
|
63
79
|
description: Ashikawa Core is a wrapper around the ArangoDB REST API. It provides
|
64
|
-
low level access and will be used in different ArangoDB ODMs.
|
80
|
+
low level access and will be used in different ArangoDB ODMs and other tools.
|
65
81
|
email:
|
66
82
|
- me@moonglum.net
|
67
83
|
- tobias.eilert@me.com
|
@@ -93,14 +109,21 @@ files:
|
|
93
109
|
- lib/ashikawa-core/cursor.rb
|
94
110
|
- lib/ashikawa-core/database.rb
|
95
111
|
- lib/ashikawa-core/document.rb
|
96
|
-
- lib/ashikawa-core/
|
97
|
-
- lib/ashikawa-core/exceptions/
|
98
|
-
- lib/ashikawa-core/exceptions/
|
112
|
+
- lib/ashikawa-core/edge.rb
|
113
|
+
- lib/ashikawa-core/exceptions/client_error.rb
|
114
|
+
- lib/ashikawa-core/exceptions/client_error/bad_syntax.rb
|
115
|
+
- lib/ashikawa-core/exceptions/client_error/resource_not_found.rb
|
116
|
+
- lib/ashikawa-core/exceptions/client_error/resource_not_found/collection_not_found.rb
|
117
|
+
- lib/ashikawa-core/exceptions/client_error/resource_not_found/document_not_found.rb
|
118
|
+
- lib/ashikawa-core/exceptions/client_error/resource_not_found/index_not_found.rb
|
99
119
|
- lib/ashikawa-core/exceptions/no_collection_provided.rb
|
100
|
-
- lib/ashikawa-core/exceptions/
|
120
|
+
- lib/ashikawa-core/exceptions/server_error.rb
|
121
|
+
- lib/ashikawa-core/exceptions/server_error/json_error.rb
|
101
122
|
- lib/ashikawa-core/figure.rb
|
102
123
|
- lib/ashikawa-core/index.rb
|
103
124
|
- lib/ashikawa-core/query.rb
|
125
|
+
- lib/ashikawa-core/request_preprocessor.rb
|
126
|
+
- lib/ashikawa-core/response_preprocessor.rb
|
104
127
|
- lib/ashikawa-core/status.rb
|
105
128
|
- lib/ashikawa-core/version.rb
|
106
129
|
- spec/acceptance/arango_helper.rb
|
@@ -111,18 +134,19 @@ files:
|
|
111
134
|
- spec/acceptance_auth/arango_helper.rb
|
112
135
|
- spec/acceptance_auth/auth_spec.rb
|
113
136
|
- spec/acceptance_auth/spec_helper.rb
|
114
|
-
- spec/fixtures/collections/
|
115
|
-
- spec/fixtures/collections/
|
116
|
-
- spec/fixtures/collections/
|
117
|
-
- spec/fixtures/collections/
|
137
|
+
- spec/fixtures/collections/60768679-count.json
|
138
|
+
- spec/fixtures/collections/60768679-figures.json
|
139
|
+
- spec/fixtures/collections/60768679-properties-volatile.json
|
140
|
+
- spec/fixtures/collections/60768679-properties.json
|
141
|
+
- spec/fixtures/collections/60768679.json
|
118
142
|
- spec/fixtures/collections/all.json
|
119
143
|
- spec/fixtures/collections/not_found.json
|
120
144
|
- spec/fixtures/cursor/26011191-2.json
|
121
145
|
- spec/fixtures/cursor/26011191-3.json
|
122
146
|
- spec/fixtures/cursor/26011191.json
|
123
147
|
- spec/fixtures/cursor/query.json
|
124
|
-
- spec/fixtures/documents/
|
125
|
-
- spec/fixtures/documents/new-
|
148
|
+
- spec/fixtures/documents/example_1-137249191.json
|
149
|
+
- spec/fixtures/documents/new-example_1-137249191.json
|
126
150
|
- spec/fixtures/indices/all.json
|
127
151
|
- spec/fixtures/indices/hash-index.json
|
128
152
|
- spec/fixtures/indices/new-hash-index.json
|
@@ -141,6 +165,7 @@ files:
|
|
141
165
|
- spec/unit/cursor_spec.rb
|
142
166
|
- spec/unit/database_spec.rb
|
143
167
|
- spec/unit/document_spec.rb
|
168
|
+
- spec/unit/edge_spec.rb
|
144
169
|
- spec/unit/exception_spec.rb
|
145
170
|
- spec/unit/figure_spec.rb
|
146
171
|
- spec/unit/index_spec.rb
|
@@ -159,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
159
184
|
requirements:
|
160
185
|
- - ! '>='
|
161
186
|
- !ruby/object:Gem::Version
|
162
|
-
version: 1.
|
187
|
+
version: 1.8.7
|
163
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
189
|
none: false
|
165
190
|
requirements:
|
@@ -168,9 +193,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
193
|
version: '0'
|
169
194
|
segments:
|
170
195
|
- 0
|
171
|
-
hash:
|
196
|
+
hash: 4417308042617954753
|
172
197
|
requirements:
|
173
|
-
- ArangoDB, v1.
|
198
|
+
- ArangoDB, v1.2
|
174
199
|
rubyforge_project: ashikawa-core
|
175
200
|
rubygems_version: 1.8.25
|
176
201
|
signing_key:
|
@@ -185,18 +210,19 @@ test_files:
|
|
185
210
|
- spec/acceptance_auth/arango_helper.rb
|
186
211
|
- spec/acceptance_auth/auth_spec.rb
|
187
212
|
- spec/acceptance_auth/spec_helper.rb
|
188
|
-
- spec/fixtures/collections/
|
189
|
-
- spec/fixtures/collections/
|
190
|
-
- spec/fixtures/collections/
|
191
|
-
- spec/fixtures/collections/
|
213
|
+
- spec/fixtures/collections/60768679-count.json
|
214
|
+
- spec/fixtures/collections/60768679-figures.json
|
215
|
+
- spec/fixtures/collections/60768679-properties-volatile.json
|
216
|
+
- spec/fixtures/collections/60768679-properties.json
|
217
|
+
- spec/fixtures/collections/60768679.json
|
192
218
|
- spec/fixtures/collections/all.json
|
193
219
|
- spec/fixtures/collections/not_found.json
|
194
220
|
- spec/fixtures/cursor/26011191-2.json
|
195
221
|
- spec/fixtures/cursor/26011191-3.json
|
196
222
|
- spec/fixtures/cursor/26011191.json
|
197
223
|
- spec/fixtures/cursor/query.json
|
198
|
-
- spec/fixtures/documents/
|
199
|
-
- spec/fixtures/documents/new-
|
224
|
+
- spec/fixtures/documents/example_1-137249191.json
|
225
|
+
- spec/fixtures/documents/new-example_1-137249191.json
|
200
226
|
- spec/fixtures/indices/all.json
|
201
227
|
- spec/fixtures/indices/hash-index.json
|
202
228
|
- spec/fixtures/indices/new-hash-index.json
|
@@ -215,6 +241,7 @@ test_files:
|
|
215
241
|
- spec/unit/cursor_spec.rb
|
216
242
|
- spec/unit/database_spec.rb
|
217
243
|
- spec/unit/document_spec.rb
|
244
|
+
- spec/unit/edge_spec.rb
|
218
245
|
- spec/unit/exception_spec.rb
|
219
246
|
- spec/unit/figure_spec.rb
|
220
247
|
- spec/unit/index_spec.rb
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Ashikawa
|
2
|
-
module Core
|
3
|
-
# This Exception is thrown when you request
|
4
|
-
# a path from the server which is not known
|
5
|
-
class UnknownPath < RuntimeError
|
6
|
-
# String representation of the exception
|
7
|
-
#
|
8
|
-
# @return String
|
9
|
-
# @api private
|
10
|
-
def to_s
|
11
|
-
"The path is unknown"
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|