guacamole 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +3 -0
- data/{config/reek.yml → .reek.yml} +5 -0
- data/.travis.yml +3 -0
- data/CHANGELOG.md +19 -0
- data/GOALS.md +20 -0
- data/Gemfile +1 -11
- data/Guardfile +0 -4
- data/README.md +147 -11
- data/Rakefile +33 -3
- data/guacamole.gemspec +12 -1
- data/lib/guacamole.rb +1 -0
- data/lib/guacamole/callbacks.rb +259 -0
- data/lib/guacamole/collection.rb +50 -32
- data/lib/guacamole/configuration.rb +92 -15
- data/lib/guacamole/model.rb +39 -1
- data/lib/guacamole/railtie.rb +9 -3
- data/lib/guacamole/version.rb +1 -1
- data/lib/rails/generators/guacamole/callbacks/callbacks_generator.rb +26 -0
- data/lib/rails/generators/guacamole/callbacks/templates/callbacks.rb.tt +13 -0
- data/lib/rails/generators/rspec/callbacks/callbacks_generator.rb +14 -0
- data/lib/rails/generators/rspec/callbacks/templates/callbacks_spec.rb.tt +7 -0
- data/lib/rails/generators/test_unit/callbacks/callbacks_generator.rb +13 -0
- data/lib/rails/generators/test_unit/callbacks/templates/callbacks_test.rb.tt +9 -0
- data/lib/rails/generators/test_unit/collection/collection_generator.rb +13 -0
- data/lib/rails/generators/test_unit/collection/templates/collection_test.rb.tt +10 -0
- data/spec/acceptance/aql_spec.rb +0 -12
- data/spec/acceptance/basic_spec.rb +16 -25
- data/spec/acceptance/callbacks_spec.rb +181 -0
- data/spec/acceptance/config/guacamole.yml +1 -1
- data/spec/acceptance/spec_helper.rb +24 -6
- data/spec/fabricators/article.rb +12 -0
- data/spec/fabricators/comment.rb +7 -0
- data/spec/fabricators/pony.rb +6 -4
- data/spec/fabricators/pony_fabricator.rb +7 -0
- data/spec/spec_helper.rb +5 -4
- data/spec/support/guacamole.yml.erb +5 -0
- data/spec/unit/callbacks_spec.rb +139 -0
- data/spec/unit/collection_spec.rb +85 -66
- data/spec/unit/configuration_spec.rb +165 -21
- data/spec/unit/identiy_map_spec.rb +2 -2
- data/spec/unit/model_spec.rb +36 -3
- metadata +181 -12
- data/Gemfile.devtools +0 -67
- data/config/devtools.yml +0 -4
- data/config/flay.yml +0 -3
- data/config/flog.yml +0 -2
- data/config/mutant.yml +0 -3
- data/config/yardstick.yml +0 -2
- data/tasks/adjustments.rake +0 -34
data/config/devtools.yml
DELETED
data/config/flay.yml
DELETED
data/config/flog.yml
DELETED
data/config/mutant.yml
DELETED
data/config/yardstick.yml
DELETED
data/tasks/adjustments.rake
DELETED
@@ -1,34 +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
|
18
|
-
|
19
|
-
## CI Task
|
20
|
-
# Differences to Devtools:
|
21
|
-
# * Only run specific tasks
|
22
|
-
|
23
|
-
Rake::Task['ci'].clear
|
24
|
-
|
25
|
-
desc 'Run all metrics and specs'
|
26
|
-
task ci: %w[
|
27
|
-
spec
|
28
|
-
metrics:coverage
|
29
|
-
metrics:reek
|
30
|
-
metrics:yardstick:verify
|
31
|
-
]
|
32
|
-
|
33
|
-
## Default Task
|
34
|
-
task default: :ci
|