ashikawa-core 0.10.0 → 0.11.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/{config/rubocop.yml → .hound.yml} +17 -2
- data/.ruby-version +1 -1
- data/.travis.yml +6 -6
- data/CHANGELOG.md +22 -0
- data/Gemfile +3 -4
- data/Guardfile +3 -3
- data/README.md +12 -11
- data/Rakefile +52 -6
- data/ashikawa-core.gemspec +42 -19
- data/config/mutant.yml +1 -3
- data/config/reek.yml +3 -1
- data/lib/ashikawa-core/collection.rb +9 -7
- data/lib/ashikawa-core/configuration.rb +1 -1
- data/lib/ashikawa-core/connection.rb +43 -0
- data/lib/ashikawa-core/database.rb +61 -2
- data/lib/ashikawa-core/error_response.rb +14 -3
- data/lib/ashikawa-core/exceptions/client_error.rb +4 -4
- data/lib/ashikawa-core/exceptions/client_error/bad_syntax.rb +3 -2
- data/lib/ashikawa-core/exceptions/server_error.rb +4 -4
- data/lib/ashikawa-core/key_options.rb +3 -2
- data/lib/ashikawa-core/query.rb +33 -29
- data/lib/ashikawa-core/status.rb +9 -0
- data/lib/ashikawa-core/transaction.rb +3 -3
- data/lib/ashikawa-core/version.rb +1 -1
- data/spec/acceptance/basic_spec.rb +14 -8
- data/spec/acceptance/index_spec.rb +2 -2
- data/spec/acceptance/query_spec.rb +4 -4
- data/spec/acceptance/spec_helper.rb +24 -9
- data/spec/acceptance/transactions_spec.rb +2 -2
- data/spec/unit/collection_spec.rb +3 -3
- data/spec/unit/connection_spec.rb +38 -6
- data/spec/unit/database_spec.rb +58 -7
- data/spec/unit/document_spec.rb +3 -3
- data/spec/unit/exception_spec.rb +5 -1
- data/spec/unit/index_spec.rb +6 -1
- data/spec/unit/query_spec.rb +32 -22
- data/spec/unit/spec_helper.rb +5 -20
- data/spec/unit/status_spec.rb +25 -25
- data/spec/unit/transaction_spec.rb +4 -4
- metadata +192 -31
- data/.coveralls.yml +0 -1
- data/Gemfile.devtools +0 -71
- data/config/devtools.yml +0 -5
- data/config/flay.yml +0 -3
- data/config/flog.yml +0 -3
- data/config/yardstick.yml +0 -2
- data/tasks/adjustments.rake +0 -17
data/.coveralls.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
service_name: travis-ci
|
data/Gemfile.devtools
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
group :development do
|
4
|
-
gem 'rake', '~> 10.1.0'
|
5
|
-
gem 'rspec', '~> 2.14.1'
|
6
|
-
gem 'rspec-core', '~> 2.14.8'
|
7
|
-
gem 'yard', '~> 0.8.7'
|
8
|
-
|
9
|
-
platform :rbx do
|
10
|
-
gem 'rubysl-singleton', '~> 2.0.0'
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
group :yard do
|
15
|
-
gem 'kramdown', '~> 1.3.2'
|
16
|
-
end
|
17
|
-
|
18
|
-
group :guard do
|
19
|
-
gem 'guard', '~> 2.4.0'
|
20
|
-
gem 'guard-bundler', '~> 2.0.0'
|
21
|
-
gem 'guard-rspec', '~> 4.2.6'
|
22
|
-
gem 'guard-rubocop', '~> 1.0.2'
|
23
|
-
|
24
|
-
# file system change event handling
|
25
|
-
gem 'listen', '~> 2.5.0'
|
26
|
-
gem 'rb-fchange', '~> 0.0.6', require: false
|
27
|
-
gem 'rb-fsevent', '~> 0.9.3', require: false
|
28
|
-
gem 'rb-inotify', '~> 0.9.0', require: false
|
29
|
-
|
30
|
-
# notification handling
|
31
|
-
gem 'libnotify', '~> 0.8.0', require: false
|
32
|
-
gem 'rb-notifu', '~> 0.0.4', require: false
|
33
|
-
gem 'terminal-notifier-guard', '~> 1.5.3', require: false
|
34
|
-
end
|
35
|
-
|
36
|
-
group :metrics do
|
37
|
-
gem 'coveralls', '~> 0.7.0'
|
38
|
-
gem 'flay', '~> 2.4.0'
|
39
|
-
gem 'flog', '~> 4.2.0'
|
40
|
-
gem 'reek', '~> 1.3.2'
|
41
|
-
gem 'rubocop', '~> 0.18.1'
|
42
|
-
gem 'simplecov', '~> 0.8.2'
|
43
|
-
gem 'yardstick', '~> 0.9.9'
|
44
|
-
|
45
|
-
platforms :mri do
|
46
|
-
gem 'mutant', '~> 0.5.3'
|
47
|
-
gem 'mutant-rspec', '~> 0.5.3'
|
48
|
-
end
|
49
|
-
|
50
|
-
platforms :ruby_19, :ruby_20 do
|
51
|
-
gem 'yard-spellcheck', '~> 0.1.5'
|
52
|
-
end
|
53
|
-
|
54
|
-
platform :rbx do
|
55
|
-
gem 'json', '~> 1.8.1'
|
56
|
-
gem 'racc', '~> 1.4'
|
57
|
-
gem 'rubysl-logger', '~> 2.0.0'
|
58
|
-
gem 'rubysl-open-uri', '~> 2.0.0'
|
59
|
-
gem 'rubysl-prettyprint', '~> 2.0.2'
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
group :benchmarks do
|
64
|
-
gem 'rbench', '~> 0.2.3'
|
65
|
-
end
|
66
|
-
|
67
|
-
platform :jruby do
|
68
|
-
group :jruby do
|
69
|
-
gem 'jruby-openssl', '~> 0.8.5'
|
70
|
-
end
|
71
|
-
end
|
data/config/devtools.yml
DELETED
data/config/flay.yml
DELETED
data/config/flog.yml
DELETED
data/config/yardstick.yml
DELETED
data/tasks/adjustments.rake
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
## Specs
|
3
|
-
# Difference to Devtools:
|
4
|
-
# * Acceptance, no integration tests
|
5
|
-
|
6
|
-
Rake::Task['spec'].clear
|
7
|
-
Rake::Task['spec:integration'].clear
|
8
|
-
|
9
|
-
desc 'Run all specs'
|
10
|
-
task spec: %w[ spec:unit spec:acceptance ]
|
11
|
-
|
12
|
-
namespace :spec do
|
13
|
-
desc 'Run the acceptance tests. Requires ArangoDB to be running.'
|
14
|
-
RSpec::Core::RakeTask.new(:acceptance) do |spec|
|
15
|
-
spec.pattern = 'spec/acceptance/*_spec.rb'
|
16
|
-
end
|
17
|
-
end
|