guacamole 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/.travis.yml +18 -0
- data/CONTRIBUTING.md +26 -0
- data/Gemfile +16 -0
- data/Gemfile.devtools +55 -0
- data/Guardfile +13 -0
- data/LICENSE +202 -0
- data/README.md +130 -0
- data/Rakefile +7 -0
- data/config/devtools.yml +4 -0
- data/config/flay.yml +3 -0
- data/config/flog.yml +2 -0
- data/config/mutant.yml +3 -0
- data/config/reek.yml +104 -0
- data/config/rubocop.yml +68 -0
- data/config/yardstick.yml +2 -0
- data/guacamole.gemspec +28 -0
- data/lib/guacamole.rb +19 -0
- data/lib/guacamole/collection.rb +246 -0
- data/lib/guacamole/configuration.rb +123 -0
- data/lib/guacamole/document_model_mapper.rb +95 -0
- data/lib/guacamole/model.rb +210 -0
- data/lib/guacamole/query.rb +72 -0
- data/lib/guacamole/railtie.rb +27 -0
- data/lib/guacamole/railtie/database.rake +5 -0
- data/lib/guacamole/version.rb +5 -0
- data/log/.gitkeep +0 -0
- data/spec/acceptance/.gitkeep +0 -0
- data/spec/acceptance/basic_spec.rb +112 -0
- data/spec/acceptance/config/guacamole.yml +11 -0
- data/spec/acceptance/spec_helper.rb +61 -0
- data/spec/fabricators/article_fabricator.rb +10 -0
- data/spec/fabricators/comment_fabricator.rb +5 -0
- data/spec/setup/arangodb.sh +65 -0
- data/spec/spec_helper.rb +19 -0
- data/spec/unit/.gitkeep +0 -0
- data/spec/unit/collection_spec.rb +380 -0
- data/spec/unit/configuration_spec.rb +119 -0
- data/spec/unit/document_model_mapper_spec.rb +120 -0
- data/spec/unit/example_spec.rb +8 -0
- data/spec/unit/model_spec.rb +116 -0
- data/spec/unit/query_spec.rb +140 -0
- data/tasks/adjustments.rake +35 -0
- metadata +191 -0
@@ -0,0 +1,35 @@
|
|
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:rubocop
|
31
|
+
metrics:yardstick:verify
|
32
|
+
]
|
33
|
+
|
34
|
+
## Default Task
|
35
|
+
task default: :ci
|
metadata
ADDED
@@ -0,0 +1,191 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: guacamole
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Lucas Dohmen
|
8
|
+
- Dirk Breuer
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-11-09 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: ashikawa-core
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ~>
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 0.9.0
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 0.9.0
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: virtus
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 1.0.0.rc2
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ~>
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 1.0.0.rc2
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: activesupport
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 4.0.0
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 4.0.0
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: activemodel
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 4.0.0
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 4.0.0
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: fabrication
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.8.1
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ~>
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 2.8.1
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: logging
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ~>
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 1.8.1
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ~>
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 1.8.1
|
98
|
+
description: ODM for ArangoDB
|
99
|
+
email:
|
100
|
+
- moonglum@moonbeamlabs.com
|
101
|
+
- dirk.breuer@gmail.com
|
102
|
+
executables: []
|
103
|
+
extensions: []
|
104
|
+
extra_rdoc_files: []
|
105
|
+
files:
|
106
|
+
- .gitignore
|
107
|
+
- .rspec
|
108
|
+
- .ruby-version
|
109
|
+
- .travis.yml
|
110
|
+
- CONTRIBUTING.md
|
111
|
+
- Gemfile
|
112
|
+
- Gemfile.devtools
|
113
|
+
- Guardfile
|
114
|
+
- LICENSE
|
115
|
+
- README.md
|
116
|
+
- Rakefile
|
117
|
+
- config/devtools.yml
|
118
|
+
- config/flay.yml
|
119
|
+
- config/flog.yml
|
120
|
+
- config/mutant.yml
|
121
|
+
- config/reek.yml
|
122
|
+
- config/rubocop.yml
|
123
|
+
- config/yardstick.yml
|
124
|
+
- guacamole.gemspec
|
125
|
+
- lib/guacamole.rb
|
126
|
+
- lib/guacamole/collection.rb
|
127
|
+
- lib/guacamole/configuration.rb
|
128
|
+
- lib/guacamole/document_model_mapper.rb
|
129
|
+
- lib/guacamole/model.rb
|
130
|
+
- lib/guacamole/query.rb
|
131
|
+
- lib/guacamole/railtie.rb
|
132
|
+
- lib/guacamole/railtie/database.rake
|
133
|
+
- lib/guacamole/version.rb
|
134
|
+
- log/.gitkeep
|
135
|
+
- spec/acceptance/.gitkeep
|
136
|
+
- spec/acceptance/basic_spec.rb
|
137
|
+
- spec/acceptance/config/guacamole.yml
|
138
|
+
- spec/acceptance/spec_helper.rb
|
139
|
+
- spec/fabricators/article_fabricator.rb
|
140
|
+
- spec/fabricators/comment_fabricator.rb
|
141
|
+
- spec/setup/arangodb.sh
|
142
|
+
- spec/spec_helper.rb
|
143
|
+
- spec/unit/.gitkeep
|
144
|
+
- spec/unit/collection_spec.rb
|
145
|
+
- spec/unit/configuration_spec.rb
|
146
|
+
- spec/unit/document_model_mapper_spec.rb
|
147
|
+
- spec/unit/example_spec.rb
|
148
|
+
- spec/unit/model_spec.rb
|
149
|
+
- spec/unit/query_spec.rb
|
150
|
+
- tasks/adjustments.rake
|
151
|
+
homepage: https://github.com/triAGENS/guacamole
|
152
|
+
licenses:
|
153
|
+
- Apache License 2.0
|
154
|
+
metadata: {}
|
155
|
+
post_install_message:
|
156
|
+
rdoc_options: []
|
157
|
+
require_paths:
|
158
|
+
- lib
|
159
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - '>='
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '0'
|
164
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - '>='
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
requirements: []
|
170
|
+
rubyforge_project:
|
171
|
+
rubygems_version: 2.1.9
|
172
|
+
signing_key:
|
173
|
+
specification_version: 4
|
174
|
+
summary: An ODM for ArangoDB that uses the DataMapper pattern.
|
175
|
+
test_files:
|
176
|
+
- spec/acceptance/.gitkeep
|
177
|
+
- spec/acceptance/basic_spec.rb
|
178
|
+
- spec/acceptance/config/guacamole.yml
|
179
|
+
- spec/acceptance/spec_helper.rb
|
180
|
+
- spec/fabricators/article_fabricator.rb
|
181
|
+
- spec/fabricators/comment_fabricator.rb
|
182
|
+
- spec/setup/arangodb.sh
|
183
|
+
- spec/spec_helper.rb
|
184
|
+
- spec/unit/.gitkeep
|
185
|
+
- spec/unit/collection_spec.rb
|
186
|
+
- spec/unit/configuration_spec.rb
|
187
|
+
- spec/unit/document_model_mapper_spec.rb
|
188
|
+
- spec/unit/example_spec.rb
|
189
|
+
- spec/unit/model_spec.rb
|
190
|
+
- spec/unit/query_spec.rb
|
191
|
+
has_rdoc:
|