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.
@@ -2,17 +2,17 @@
2
2
  require 'ashikawa-core/figure'
3
3
 
4
4
  describe Ashikawa::Core::Figure do
5
- let(:alive_size) { double }
6
- let(:alive_count) { double }
7
- let(:dead_size) { double }
8
- let(:dead_count) { double }
9
- let(:dead_deletion) { double }
10
- let(:datafiles_count) { double }
11
- let(:datafiles_file_size) { double }
12
- let(:journals_count) { double }
13
- let(:journals_file_size) { double }
14
- let(:shapes_count) { double }
15
- let(:attributes_count) { double }
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
  {
@@ -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) { double }
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) { double }
11
- let(:type) { double(to_sym: type_as_sym) }
12
- let(:field_as_sym) { double }
13
- let(:field) { double(to_sym: field_as_sym) }
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) { double }
7
- let(:offset) { double }
8
- let(:increment) { double }
9
- let(:allow_user_keys) { double }
10
- let(:raw_key_options) do
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
- describe 'initialized key options' do
20
- subject { Ashikawa::Core::KeyOptions.new(raw_key_options) }
21
-
22
- its(:type) { should eq(type) }
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
@@ -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(:collection) { double }
7
- let(:database) { double }
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
- describe 'initialized with collection' do
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' => name })
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' => name, 'limit' => limit })
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: 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' => name, 'skip' => skip })
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: 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(double)
49
+ .and_return(database)
57
50
  expect(collection).to receive(:send_request)
58
- .with('simple/first-example', put: { 'collection' => name, 'example' => example_document })
59
- .and_return(response)
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: { 'collection' => name, 'example' => example_document })
75
- .and_return(response)
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: { 'collection' => name, 'limit' => limit, 'example' => example_document })
84
- .and_return(response)
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: 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: { 'collection' => name, 'skip' => skip, 'example' => example_document })
93
- .and_return(response)
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: 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) { double }
102
- let(:longitude) { double }
102
+ let(:latitude) { 37.332095 }
103
+ let(:longitude) { -122.030757 }
103
104
  let(:arguments) do
104
105
  {
105
- 'collection' => name,
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) { double }
124
- let(:longitude) { double }
125
- let(:radius) { double }
124
+ let(:latitude) { 37.332095 }
125
+ let(:longitude) { -122.030757 }
126
+ let(:radius) { 50 }
126
127
  let(:arguments) do
127
128
  {
128
- 'collection' => name,
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) { double }
148
- let(:left) { double }
149
- let(:right) { double }
150
- let(:closed) { double }
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) { double }
174
- let(:count) { double }
175
- let(:batch_size) { double }
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(double)
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(double)
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
- describe 'initialized with database' do
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) { double }
237
- let(:count) { double }
238
- let(:batch_size) { double }
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,
@@ -14,6 +14,7 @@ RSpec.configure do |config|
14
14
 
15
15
  config.mock_with :rspec do |c|
16
16
  c.syntax = :expect
17
+ c.verify_doubled_constant_names = true
17
18
  end
18
19
  end
19
20
 
@@ -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) { double }
7
- let(:action) { double }
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 send with wait for sync set to the value provided by the user' do
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: wait_for_sync) })
120
- subject.wait_for_sync = 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: lock_timeout) })
133
- subject.lock_timeout = 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: action_params) })
140
- subject.execute(action_params)
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.11.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-05-11 00:00:00.000000000 Z
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: json
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.1
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.1
54
+ version: 0.0.8
69
55
  - !ruby/object:Gem::Dependency
70
- name: equalizer
56
+ name: rake
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: 0.0.8
76
- type: :runtime
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: 0.0.8
68
+ version: 10.3.2
83
69
  - !ruby/object:Gem::Dependency
84
- name: rake
70
+ name: json
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: 10.3.1
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: 10.3.1
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.beta2
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.beta2
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: yard
126
+ name: logging
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: 0.8.7.4
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: 0.8.7.4
138
+ version: 1.8.1
153
139
  - !ruby/object:Gem::Dependency
154
- name: inch
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.5
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.5
152
+ version: 0.8.7.4
167
153
  - !ruby/object:Gem::Dependency
168
- name: reek
154
+ name: inch
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
157
  - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: 1.3.7
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: 1.3.7
166
+ version: 0.4.6
181
167
  - !ruby/object:Gem::Dependency
182
- name: mutant
168
+ name: reek
183
169
  requirement: !ruby/object:Gem::Requirement
184
170
  requirements:
185
171
  - - "~>"
186
172
  - !ruby/object:Gem::Version
187
- version: 0.5.12
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: 0.5.12
180
+ version: 1.3.7
195
181
  - !ruby/object:Gem::Dependency
196
- name: mutant-rspec
182
+ name: pry
197
183
  requirement: !ruby/object:Gem::Requirement
198
184
  requirements:
199
185
  - - "~>"
200
186
  - !ruby/object:Gem::Version
201
- version: 0.5.3
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.5.3
194
+ version: 0.9.12.6
209
195
  - !ruby/object:Gem::Dependency
210
- name: pry
196
+ name: guard
211
197
  requirement: !ruby/object:Gem::Requirement
212
198
  requirements:
213
199
  - - "~>"
214
200
  - !ruby/object:Gem::Version
215
- version: 0.9.12.6
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: 0.9.12.6
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.6.1
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.6.1
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.0
356
+ - ArangoDB, v2.1
367
357
  rubyforge_project: ashikawa-core
368
- rubygems_version: 2.2.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