ashikawa-core 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -1
- data/CHANGELOG.md +18 -0
- data/Gemfile +1 -3
- data/README.md +7 -3
- data/Rakefile +1 -0
- data/ashikawa-core.gemspec +9 -11
- data/config/reek.yml +5 -5
- data/lib/ashikawa-core/collection.rb +4 -0
- data/lib/ashikawa-core/configuration.rb +13 -1
- data/lib/ashikawa-core/connection.rb +34 -52
- data/lib/ashikawa-core/database.rb +9 -5
- data/lib/ashikawa-core/document.rb +6 -6
- data/lib/ashikawa-core/faraday_factory.rb +89 -0
- data/lib/ashikawa-core/minimal_logger.rb +64 -0
- data/lib/ashikawa-core/version.rb +1 -1
- data/log/.gitkeep +0 -0
- data/spec/acceptance/basic_spec.rb +2 -2
- data/spec/acceptance/index_spec.rb +5 -0
- data/spec/acceptance/spec_helper.rb +37 -22
- data/spec/unit/collection_spec.rb +34 -33
- data/spec/unit/configuration_spec.rb +8 -8
- data/spec/unit/connection_spec.rb +28 -48
- data/spec/unit/cursor_spec.rb +5 -4
- data/spec/unit/database_spec.rb +8 -16
- data/spec/unit/document_spec.rb +11 -10
- data/spec/unit/edge_spec.rb +12 -11
- data/spec/unit/exception_spec.rb +2 -2
- data/spec/unit/faraday_factory_spec.rb +51 -0
- data/spec/unit/figure_spec.rb +11 -11
- data/spec/unit/index_spec.rb +7 -6
- data/spec/unit/key_options_spec.rb +12 -15
- data/spec/unit/minimal_logger_spec.rb +55 -0
- data/spec/unit/query_spec.rb +53 -53
- data/spec/unit/spec_helper.rb +1 -0
- data/spec/unit/transaction_spec.rb +12 -14
- metadata +44 -53
- data/spec/fixtures/collections/60768679-figures.json +0 -35
data/spec/unit/figure_spec.rb
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
require 'ashikawa-core/figure'
|
3
3
|
|
4
4
|
describe Ashikawa::Core::Figure do
|
5
|
-
let(:alive_size) {
|
6
|
-
let(:alive_count) {
|
7
|
-
let(:dead_size) {
|
8
|
-
let(:dead_count) {
|
9
|
-
let(:dead_deletion) {
|
10
|
-
let(:datafiles_count) {
|
11
|
-
let(:datafiles_file_size) {
|
12
|
-
let(:journals_count) {
|
13
|
-
let(:journals_file_size) {
|
14
|
-
let(:shapes_count) {
|
15
|
-
let(:attributes_count) {
|
5
|
+
let(:alive_size) { 0 }
|
6
|
+
let(:alive_count) { 0 }
|
7
|
+
let(:dead_size) { 2384 }
|
8
|
+
let(:dead_count) { 149 }
|
9
|
+
let(:dead_deletion) { 0 }
|
10
|
+
let(:datafiles_count) { 1 }
|
11
|
+
let(:datafiles_file_size) { 0 }
|
12
|
+
let(:journals_count) { 1 }
|
13
|
+
let(:journals_file_size) { 33_554_432 }
|
14
|
+
let(:shapes_count) { 6 }
|
15
|
+
let(:attributes_count) { 0 }
|
16
16
|
|
17
17
|
let(:raw_figures) do
|
18
18
|
{
|
data/spec/unit/index_spec.rb
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
require 'unit/spec_helper'
|
3
3
|
require 'ashikawa-core/index'
|
4
|
+
require 'ashikawa-core/collection'
|
4
5
|
|
5
6
|
describe Ashikawa::Core::Index do
|
6
|
-
let(:collection) {
|
7
|
+
let(:collection) { instance_double('Ashikawa::Core::Collection') }
|
7
8
|
let(:id) { '167137465/168054969' }
|
8
9
|
let(:path) { 'index/167137465/168054969' }
|
9
10
|
let(:delete_payload) { { delete: {} } }
|
10
|
-
let(:type_as_sym) {
|
11
|
-
let(:type) {
|
12
|
-
let(:field_as_sym) {
|
13
|
-
let(:field) {
|
14
|
-
let(:unique) { double }
|
11
|
+
let(:type_as_sym) { :skiplist }
|
12
|
+
let(:type) { 'skiplist' }
|
13
|
+
let(:field_as_sym) { :name }
|
14
|
+
let(:field) { 'name' }
|
15
|
+
let(:unique) { double('Boolean') }
|
15
16
|
let(:raw_data) do
|
16
17
|
{
|
17
18
|
'code' => 201,
|
@@ -3,25 +3,22 @@ require 'unit/spec_helper'
|
|
3
3
|
require 'ashikawa-core/key_options'
|
4
4
|
|
5
5
|
describe Ashikawa::Core::KeyOptions do
|
6
|
-
let(:type) {
|
7
|
-
let(:offset) {
|
8
|
-
let(:increment) {
|
9
|
-
let(:allow_user_keys) { double }
|
10
|
-
|
11
|
-
|
6
|
+
let(:type) { :autoincrement }
|
7
|
+
let(:offset) { 12 }
|
8
|
+
let(:increment) { 2 }
|
9
|
+
let(:allow_user_keys) { double('Boolean') }
|
10
|
+
|
11
|
+
subject do
|
12
|
+
Ashikawa::Core::KeyOptions.new(
|
12
13
|
'type' => type,
|
13
14
|
'offset' => offset,
|
14
15
|
'increment' => increment,
|
15
16
|
'allowUserKeys' => allow_user_keys
|
16
|
-
|
17
|
+
)
|
17
18
|
end
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
its(:offset) { should eq(offset) }
|
24
|
-
its(:increment) { should eq(increment) }
|
25
|
-
its(:allow_user_keys) { should eq(allow_user_keys) }
|
26
|
-
end
|
20
|
+
its(:type) { should eq(type) }
|
21
|
+
its(:offset) { should eq(offset) }
|
22
|
+
its(:increment) { should eq(increment) }
|
23
|
+
its(:allow_user_keys) { should eq(allow_user_keys) }
|
27
24
|
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
|
3
|
+
require 'unit/spec_helper'
|
4
|
+
require 'ashikawa-core/minimal_logger'
|
5
|
+
|
6
|
+
class FakeLogger
|
7
|
+
attr_reader :output
|
8
|
+
|
9
|
+
def debug(progname = nil, &block)
|
10
|
+
@output = block.call
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe Ashikawa::Core::MinimalLogger do
|
15
|
+
let(:app) { double('App') }
|
16
|
+
let(:logger) { FakeLogger.new }
|
17
|
+
let(:env) { double('Env', method: 'get', url: 'http://localhost/_db/test', status: 200, request_headers: {}, response_headers: {}) }
|
18
|
+
|
19
|
+
subject { Ashikawa::Core::MinimalLogger.new(app, logger) }
|
20
|
+
|
21
|
+
before do
|
22
|
+
allow(app).to receive(:call).and_return(app)
|
23
|
+
allow(app).to receive(:on_complete)
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'should log the request upon call' do
|
27
|
+
subject.call env
|
28
|
+
|
29
|
+
expect(logger.output).to eq 'GET http://localhost/_db/test'
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'should log the response on complete' do
|
33
|
+
subject.on_complete env
|
34
|
+
|
35
|
+
expect(logger.output).to eq 'GET http://localhost/_db/test 200'
|
36
|
+
end
|
37
|
+
|
38
|
+
context 'with debug_headers' do
|
39
|
+
subject { Ashikawa::Core::MinimalLogger.new(app, logger, debug_headers: true) }
|
40
|
+
|
41
|
+
it 'should log the request upon call with headers' do
|
42
|
+
allow(env).to receive(:request_headers).and_return(bar: 'foo')
|
43
|
+
subject.call env
|
44
|
+
|
45
|
+
expect(logger.output).to eq 'GET http://localhost/_db/test bar: "foo"'
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'should log the response on complete with headers' do
|
49
|
+
allow(env).to receive(:response_headers).and_return(bar: 'foo')
|
50
|
+
subject.on_complete env
|
51
|
+
|
52
|
+
expect(logger.output).to eq 'GET http://localhost/_db/test 200 bar: "foo"'
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
data/spec/unit/query_spec.rb
CHANGED
@@ -1,27 +1,20 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
require 'unit/spec_helper'
|
3
3
|
require 'ashikawa-core/query'
|
4
|
+
require 'ashikawa-core/database'
|
4
5
|
|
5
6
|
describe Ashikawa::Core::Query do
|
6
|
-
let(:
|
7
|
-
let(:database) {
|
7
|
+
let(:collection_name) { 'my_collection' }
|
8
|
+
let(:database) { instance_double('Ashikawa::Core::Database') }
|
9
|
+
let(:collection) { instance_double('Ashikawa::Core::Collection', name: collection_name, database: database) }
|
8
10
|
|
9
|
-
|
11
|
+
context 'initialized with collection' do
|
10
12
|
subject { Ashikawa::Core::Query.new(collection) }
|
11
|
-
let(:name) { double }
|
12
|
-
|
13
|
-
before do
|
14
|
-
allow(collection).to receive(:name).and_return(name)
|
15
|
-
allow(collection).to receive(:database).and_return(double)
|
16
|
-
end
|
17
13
|
|
18
14
|
describe 'get all' do
|
19
|
-
let(:limit) { double }
|
20
|
-
let(:skip) { double }
|
21
|
-
|
22
15
|
it 'should list all documents' do
|
23
16
|
expect(collection).to receive(:send_request)
|
24
|
-
.with('simple/all', put: { 'collection' =>
|
17
|
+
.with('simple/all', put: { 'collection' => collection_name })
|
25
18
|
.and_return(server_response('simple-queries/all'))
|
26
19
|
expect(Ashikawa::Core::Cursor).to receive(:new)
|
27
20
|
|
@@ -30,33 +23,35 @@ describe Ashikawa::Core::Query do
|
|
30
23
|
|
31
24
|
it 'should be able to limit the number of documents' do
|
32
25
|
expect(collection).to receive(:send_request)
|
33
|
-
.with('simple/all', put: { 'collection' =>
|
26
|
+
.with('simple/all', put: { 'collection' => collection_name, 'limit' => 20 })
|
34
27
|
.and_return(server_response('simple-queries/all_skip'))
|
35
28
|
expect(Ashikawa::Core::Cursor).to receive(:new)
|
36
29
|
|
37
|
-
subject.all(limit:
|
30
|
+
subject.all(limit: 20)
|
38
31
|
end
|
39
32
|
|
40
33
|
it 'should be able to skip documents' do
|
41
34
|
expect(collection).to receive(:send_request)
|
42
|
-
.with('simple/all', put: { 'collection' =>
|
35
|
+
.with('simple/all', put: { 'collection' => collection_name, 'skip' => 5 })
|
43
36
|
.and_return(server_response('simple-queries/all_limit'))
|
44
37
|
expect(Ashikawa::Core::Cursor).to receive(:new)
|
45
38
|
|
46
|
-
subject.all(skip:
|
39
|
+
subject.all(skip: 5)
|
47
40
|
end
|
48
41
|
end
|
49
42
|
|
50
43
|
describe 'first by example' do
|
51
|
-
let(:example_document) { double }
|
44
|
+
let(:example_document) { double('ExampleDocument') }
|
52
45
|
let(:response) { server_response('simple-queries/example') }
|
53
46
|
|
54
47
|
it 'should find exactly one fitting document' do
|
55
48
|
allow(collection).to receive(:database)
|
56
|
-
.and_return(
|
49
|
+
.and_return(database)
|
57
50
|
expect(collection).to receive(:send_request)
|
58
|
-
.with('simple/first-example', put: {
|
59
|
-
|
51
|
+
.with('simple/first-example', put: {
|
52
|
+
'collection' => collection_name,
|
53
|
+
'example' => example_document
|
54
|
+
}).and_return(response)
|
60
55
|
expect(Ashikawa::Core::Document).to receive(:new)
|
61
56
|
|
62
57
|
subject.first_example(example_document)
|
@@ -66,13 +61,13 @@ describe Ashikawa::Core::Query do
|
|
66
61
|
describe 'all by example' do
|
67
62
|
let(:example_document) { { hello: 'world' } }
|
68
63
|
let(:response) { server_response('simple-queries/example') }
|
69
|
-
let(:limit) { double }
|
70
|
-
let(:skip) { double }
|
71
64
|
|
72
65
|
it 'should find all fitting documents' do
|
73
66
|
expect(collection).to receive(:send_request)
|
74
|
-
.with('simple/by-example', put: {
|
75
|
-
|
67
|
+
.with('simple/by-example', put: {
|
68
|
+
'collection' => collection_name,
|
69
|
+
'example' => example_document
|
70
|
+
}).and_return(response)
|
76
71
|
expect(Ashikawa::Core::Cursor).to receive(:new)
|
77
72
|
|
78
73
|
subject.by_example(example_document)
|
@@ -80,29 +75,35 @@ describe Ashikawa::Core::Query do
|
|
80
75
|
|
81
76
|
it 'should be able to limit the number of documents' do
|
82
77
|
expect(collection).to receive(:send_request)
|
83
|
-
.with('simple/by-example', put: {
|
84
|
-
|
78
|
+
.with('simple/by-example', put: {
|
79
|
+
'collection' => collection_name,
|
80
|
+
'limit' => 10,
|
81
|
+
'example' => example_document
|
82
|
+
}).and_return(response)
|
85
83
|
expect(Ashikawa::Core::Cursor).to receive(:new)
|
86
84
|
|
87
|
-
subject.by_example(example_document, limit:
|
85
|
+
subject.by_example(example_document, limit: 10)
|
88
86
|
end
|
89
87
|
|
90
88
|
it 'should be able to skip documents' do
|
91
89
|
expect(collection).to receive(:send_request)
|
92
|
-
.with('simple/by-example', put: {
|
93
|
-
|
90
|
+
.with('simple/by-example', put: {
|
91
|
+
'collection' => collection_name,
|
92
|
+
'skip' => 2,
|
93
|
+
'example' => example_document
|
94
|
+
}).and_return(response)
|
94
95
|
expect(Ashikawa::Core::Cursor).to receive(:new)
|
95
96
|
|
96
|
-
subject.by_example(example_document, skip:
|
97
|
+
subject.by_example(example_document, skip: 2)
|
97
98
|
end
|
98
99
|
end
|
99
100
|
|
100
101
|
describe 'near a geolocation' do
|
101
|
-
let(:latitude) {
|
102
|
-
let(:longitude) {
|
102
|
+
let(:latitude) { 37.332095 }
|
103
|
+
let(:longitude) { -122.030757 }
|
103
104
|
let(:arguments) do
|
104
105
|
{
|
105
|
-
'collection' =>
|
106
|
+
'collection' => collection_name,
|
106
107
|
'latitude' => latitude,
|
107
108
|
'longitude' => longitude
|
108
109
|
}
|
@@ -120,12 +121,12 @@ describe Ashikawa::Core::Query do
|
|
120
121
|
end
|
121
122
|
|
122
123
|
describe 'within a radius of a geolocation' do
|
123
|
-
let(:latitude) {
|
124
|
-
let(:longitude) {
|
125
|
-
let(:radius) {
|
124
|
+
let(:latitude) { 37.332095 }
|
125
|
+
let(:longitude) { -122.030757 }
|
126
|
+
let(:radius) { 50 }
|
126
127
|
let(:arguments) do
|
127
128
|
{
|
128
|
-
'collection' =>
|
129
|
+
'collection' => collection_name,
|
129
130
|
'latitude' => latitude,
|
130
131
|
'longitude' => longitude,
|
131
132
|
'radius' => radius
|
@@ -144,13 +145,12 @@ describe Ashikawa::Core::Query do
|
|
144
145
|
end
|
145
146
|
|
146
147
|
describe 'in a certain range' do
|
147
|
-
let(:attribute) {
|
148
|
-
let(:left) {
|
149
|
-
let(:right) {
|
150
|
-
let(:closed) {
|
148
|
+
let(:attribute) { 'age' }
|
149
|
+
let(:left) { 45 }
|
150
|
+
let(:right) { 50 }
|
151
|
+
let(:closed) { true }
|
151
152
|
let(:arguments) do
|
152
|
-
{
|
153
|
-
'collection' => name,
|
153
|
+
{ 'collection' => collection_name,
|
154
154
|
'attribute' => attribute,
|
155
155
|
'left' => left,
|
156
156
|
'right' => right,
|
@@ -170,9 +170,9 @@ describe Ashikawa::Core::Query do
|
|
170
170
|
end
|
171
171
|
|
172
172
|
describe 'with an AQL query' do
|
173
|
-
let(:query) {
|
174
|
-
let(:count) {
|
175
|
-
let(:batch_size) {
|
173
|
+
let(:query) { 'FOR human IN humans RETURN human' }
|
174
|
+
let(:count) { 5 }
|
175
|
+
let(:batch_size) { 200 }
|
176
176
|
let(:arguments) do
|
177
177
|
{
|
178
178
|
'query' => query,
|
@@ -184,7 +184,7 @@ describe Ashikawa::Core::Query do
|
|
184
184
|
|
185
185
|
it 'should be able to execute it' do
|
186
186
|
allow(collection).to receive(:database)
|
187
|
-
.and_return(
|
187
|
+
.and_return(database)
|
188
188
|
expect(collection).to receive(:send_request)
|
189
189
|
.with('cursor', post: arguments)
|
190
190
|
.and_return(response)
|
@@ -196,7 +196,7 @@ describe Ashikawa::Core::Query do
|
|
196
196
|
|
197
197
|
it 'passes bound variables to the server' do
|
198
198
|
allow(collection).to receive(:database)
|
199
|
-
.and_return(
|
199
|
+
.and_return(database)
|
200
200
|
expect(collection).to receive(:send_request)
|
201
201
|
.with('cursor', post: { 'bindVars' => { 'foo' => 'bar' }, 'query' => query })
|
202
202
|
.and_return(response)
|
@@ -223,7 +223,7 @@ describe Ashikawa::Core::Query do
|
|
223
223
|
end
|
224
224
|
end
|
225
225
|
|
226
|
-
|
226
|
+
context 'initialized with database' do
|
227
227
|
subject { Ashikawa::Core::Query.new(database) }
|
228
228
|
|
229
229
|
it 'should throw an exception when a simple query is executed' do
|
@@ -233,9 +233,9 @@ describe Ashikawa::Core::Query do
|
|
233
233
|
end
|
234
234
|
|
235
235
|
describe 'with an AQL query' do
|
236
|
-
let(:query) {
|
237
|
-
let(:count) {
|
238
|
-
let(:batch_size) {
|
236
|
+
let(:query) { 'FOR pony IN ponies RETURN pony' }
|
237
|
+
let(:count) { 5 }
|
238
|
+
let(:batch_size) { 2 }
|
239
239
|
let(:arguments) do
|
240
240
|
{
|
241
241
|
'query' => query,
|
data/spec/unit/spec_helper.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
require 'unit/spec_helper'
|
3
3
|
require 'ashikawa-core/transaction'
|
4
|
+
require 'ashikawa-core/database'
|
4
5
|
|
5
6
|
describe Ashikawa::Core::Transaction do
|
6
|
-
let(:db) {
|
7
|
-
let(:action) {
|
7
|
+
let(:db) { instance_double('Ashikawa::Core::Database') }
|
8
|
+
let(:action) { 'function () { return 5; }' }
|
8
9
|
|
9
10
|
describe 'creating a transaction' do
|
10
11
|
subject { Ashikawa::Core::Transaction }
|
@@ -55,11 +56,8 @@ describe Ashikawa::Core::Transaction do
|
|
55
56
|
end
|
56
57
|
|
57
58
|
describe 'execute' do
|
58
|
-
let(:response) { double }
|
59
|
-
let(:result) { double }
|
60
|
-
let(:wait_for_sync) { double }
|
61
|
-
let(:lock_timeout) { double }
|
62
|
-
let(:action_params) { double }
|
59
|
+
let(:response) { double('Response') }
|
60
|
+
let(:result) { double('Result') }
|
63
61
|
|
64
62
|
before do
|
65
63
|
allow(response).to receive(:[])
|
@@ -114,10 +112,10 @@ describe Ashikawa::Core::Transaction do
|
|
114
112
|
subject.execute
|
115
113
|
end
|
116
114
|
|
117
|
-
it 'should
|
115
|
+
it 'should allow to set wait for sync to true' do
|
118
116
|
expect(db).to receive(:send_request)
|
119
|
-
.with(anything, { post: hash_including(waitForSync:
|
120
|
-
subject.wait_for_sync =
|
117
|
+
.with(anything, { post: hash_including(waitForSync: true) })
|
118
|
+
subject.wait_for_sync = true
|
121
119
|
subject.execute
|
122
120
|
end
|
123
121
|
|
@@ -129,15 +127,15 @@ describe Ashikawa::Core::Transaction do
|
|
129
127
|
|
130
128
|
it 'should send the configured lock timeout' do
|
131
129
|
expect(db).to receive(:send_request)
|
132
|
-
.with(anything, { post: hash_including(lockTimeout:
|
133
|
-
subject.lock_timeout =
|
130
|
+
.with(anything, { post: hash_including(lockTimeout: 30) })
|
131
|
+
subject.lock_timeout = 30
|
134
132
|
subject.execute
|
135
133
|
end
|
136
134
|
|
137
135
|
it 'should send the arguments object if it was provided' do
|
138
136
|
expect(db).to receive(:send_request)
|
139
|
-
.with(anything, { post: hash_including(params:
|
140
|
-
subject.execute(
|
137
|
+
.with(anything, { post: hash_including(params: { a: 5 }) })
|
138
|
+
subject.execute(a: 5)
|
141
139
|
end
|
142
140
|
|
143
141
|
it 'should not send params by default' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ashikawa-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- moonglum
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -39,75 +39,61 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.9.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 1.8.1
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 1.8.1
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: null_logger
|
42
|
+
name: equalizer
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.0.
|
47
|
+
version: 0.0.8
|
62
48
|
type: :runtime
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.0.
|
54
|
+
version: 0.0.8
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
56
|
+
name: rake
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
59
|
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
76
|
-
type: :
|
61
|
+
version: 10.3.2
|
62
|
+
type: :development
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
68
|
+
version: 10.3.2
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
70
|
+
name: json
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
75
|
+
version: 1.8.1
|
90
76
|
type: :development
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
80
|
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
82
|
+
version: 1.8.1
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: rspec
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - "~>"
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: 3.0.0
|
89
|
+
version: 3.0.0
|
104
90
|
type: :development
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: 3.0.0
|
96
|
+
version: 3.0.0
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: rspec-its
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,103 +123,103 @@ dependencies:
|
|
137
123
|
- !ruby/object:Gem::Version
|
138
124
|
version: 0.3.0
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
126
|
+
name: logging
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
129
|
- - "~>"
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
131
|
+
version: 1.8.1
|
146
132
|
type: :development
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
136
|
- - "~>"
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
138
|
+
version: 1.8.1
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
140
|
+
name: yard
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
143
|
- - "~>"
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.4
|
145
|
+
version: 0.8.7.4
|
160
146
|
type: :development
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
150
|
- - "~>"
|
165
151
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.4
|
152
|
+
version: 0.8.7.4
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
154
|
+
name: inch
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
170
156
|
requirements:
|
171
157
|
- - "~>"
|
172
158
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
159
|
+
version: 0.4.6
|
174
160
|
type: :development
|
175
161
|
prerelease: false
|
176
162
|
version_requirements: !ruby/object:Gem::Requirement
|
177
163
|
requirements:
|
178
164
|
- - "~>"
|
179
165
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
166
|
+
version: 0.4.6
|
181
167
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
168
|
+
name: reek
|
183
169
|
requirement: !ruby/object:Gem::Requirement
|
184
170
|
requirements:
|
185
171
|
- - "~>"
|
186
172
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
173
|
+
version: 1.3.7
|
188
174
|
type: :development
|
189
175
|
prerelease: false
|
190
176
|
version_requirements: !ruby/object:Gem::Requirement
|
191
177
|
requirements:
|
192
178
|
- - "~>"
|
193
179
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
180
|
+
version: 1.3.7
|
195
181
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
182
|
+
name: pry
|
197
183
|
requirement: !ruby/object:Gem::Requirement
|
198
184
|
requirements:
|
199
185
|
- - "~>"
|
200
186
|
- !ruby/object:Gem::Version
|
201
|
-
version: 0.
|
187
|
+
version: 0.9.12.6
|
202
188
|
type: :development
|
203
189
|
prerelease: false
|
204
190
|
version_requirements: !ruby/object:Gem::Requirement
|
205
191
|
requirements:
|
206
192
|
- - "~>"
|
207
193
|
- !ruby/object:Gem::Version
|
208
|
-
version: 0.
|
194
|
+
version: 0.9.12.6
|
209
195
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
196
|
+
name: guard
|
211
197
|
requirement: !ruby/object:Gem::Requirement
|
212
198
|
requirements:
|
213
199
|
- - "~>"
|
214
200
|
- !ruby/object:Gem::Version
|
215
|
-
version:
|
201
|
+
version: 2.6.1
|
216
202
|
type: :development
|
217
203
|
prerelease: false
|
218
204
|
version_requirements: !ruby/object:Gem::Requirement
|
219
205
|
requirements:
|
220
206
|
- - "~>"
|
221
207
|
- !ruby/object:Gem::Version
|
222
|
-
version:
|
208
|
+
version: 2.6.1
|
223
209
|
- !ruby/object:Gem::Dependency
|
224
|
-
name: guard
|
210
|
+
name: guard-rspec
|
225
211
|
requirement: !ruby/object:Gem::Requirement
|
226
212
|
requirements:
|
227
213
|
- - "~>"
|
228
214
|
- !ruby/object:Gem::Version
|
229
|
-
version: 2.
|
215
|
+
version: 4.2.9
|
230
216
|
type: :development
|
231
217
|
prerelease: false
|
232
218
|
version_requirements: !ruby/object:Gem::Requirement
|
233
219
|
requirements:
|
234
220
|
- - "~>"
|
235
221
|
- !ruby/object:Gem::Version
|
236
|
-
version: 2.
|
222
|
+
version: 4.2.9
|
237
223
|
- !ruby/object:Gem::Dependency
|
238
224
|
name: guard-bundler
|
239
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -291,20 +277,22 @@ files:
|
|
291
277
|
- lib/ashikawa-core/exceptions/no_collection_provided.rb
|
292
278
|
- lib/ashikawa-core/exceptions/server_error.rb
|
293
279
|
- lib/ashikawa-core/exceptions/server_error/json_error.rb
|
280
|
+
- lib/ashikawa-core/faraday_factory.rb
|
294
281
|
- lib/ashikawa-core/figure.rb
|
295
282
|
- lib/ashikawa-core/index.rb
|
296
283
|
- lib/ashikawa-core/key_options.rb
|
284
|
+
- lib/ashikawa-core/minimal_logger.rb
|
297
285
|
- lib/ashikawa-core/query.rb
|
298
286
|
- lib/ashikawa-core/status.rb
|
299
287
|
- lib/ashikawa-core/transaction.rb
|
300
288
|
- lib/ashikawa-core/version.rb
|
289
|
+
- log/.gitkeep
|
301
290
|
- spec/acceptance/basic_spec.rb
|
302
291
|
- spec/acceptance/index_spec.rb
|
303
292
|
- spec/acceptance/query_spec.rb
|
304
293
|
- spec/acceptance/spec_helper.rb
|
305
294
|
- spec/acceptance/transactions_spec.rb
|
306
295
|
- spec/fixtures/collections/60768679-count.json
|
307
|
-
- spec/fixtures/collections/60768679-figures.json
|
308
296
|
- spec/fixtures/collections/60768679-properties-volatile.json
|
309
297
|
- spec/fixtures/collections/60768679-properties.json
|
310
298
|
- spec/fixtures/collections/60768679.json
|
@@ -337,9 +325,11 @@ files:
|
|
337
325
|
- spec/unit/document_spec.rb
|
338
326
|
- spec/unit/edge_spec.rb
|
339
327
|
- spec/unit/exception_spec.rb
|
328
|
+
- spec/unit/faraday_factory_spec.rb
|
340
329
|
- spec/unit/figure_spec.rb
|
341
330
|
- spec/unit/index_spec.rb
|
342
331
|
- spec/unit/key_options_spec.rb
|
332
|
+
- spec/unit/minimal_logger_spec.rb
|
343
333
|
- spec/unit/query_spec.rb
|
344
334
|
- spec/unit/spec_helper.rb
|
345
335
|
- spec/unit/status_spec.rb
|
@@ -363,9 +353,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
363
353
|
- !ruby/object:Gem::Version
|
364
354
|
version: '0'
|
365
355
|
requirements:
|
366
|
-
- ArangoDB, v2.
|
356
|
+
- ArangoDB, v2.1
|
367
357
|
rubyforge_project: ashikawa-core
|
368
|
-
rubygems_version: 2.
|
358
|
+
rubygems_version: 2.3.0
|
369
359
|
signing_key:
|
370
360
|
specification_version: 4
|
371
361
|
summary: Ashikawa Core is a wrapper around the ArangoDB REST API
|
@@ -376,7 +366,6 @@ test_files:
|
|
376
366
|
- spec/acceptance/spec_helper.rb
|
377
367
|
- spec/acceptance/transactions_spec.rb
|
378
368
|
- spec/fixtures/collections/60768679-count.json
|
379
|
-
- spec/fixtures/collections/60768679-figures.json
|
380
369
|
- spec/fixtures/collections/60768679-properties-volatile.json
|
381
370
|
- spec/fixtures/collections/60768679-properties.json
|
382
371
|
- spec/fixtures/collections/60768679.json
|
@@ -409,9 +398,11 @@ test_files:
|
|
409
398
|
- spec/unit/document_spec.rb
|
410
399
|
- spec/unit/edge_spec.rb
|
411
400
|
- spec/unit/exception_spec.rb
|
401
|
+
- spec/unit/faraday_factory_spec.rb
|
412
402
|
- spec/unit/figure_spec.rb
|
413
403
|
- spec/unit/index_spec.rb
|
414
404
|
- spec/unit/key_options_spec.rb
|
405
|
+
- spec/unit/minimal_logger_spec.rb
|
415
406
|
- spec/unit/query_spec.rb
|
416
407
|
- spec/unit/spec_helper.rb
|
417
408
|
- spec/unit/status_spec.rb
|