dbee 2.1.0.pre.alpha → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +71 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +6 -17
- data/.tool-versions +1 -0
- data/CHANGELOG.md +21 -1
- data/README.md +154 -62
- data/dbee.gemspec +6 -10
- data/lib/dbee/base.rb +7 -49
- data/lib/dbee/dsl_schema_builder.rb +86 -0
- data/lib/dbee/key_chain.rb +11 -0
- data/lib/dbee/model/relationships/basic.rb +47 -0
- data/lib/dbee/model/relationships.rb +24 -0
- data/lib/dbee/model.rb +50 -38
- data/lib/dbee/query/field.rb +5 -6
- data/lib/dbee/query.rb +32 -20
- data/lib/dbee/schema.rb +66 -0
- data/lib/dbee/schema_creator.rb +107 -0
- data/lib/dbee/schema_from_tree_based_model.rb +47 -0
- data/lib/dbee/util/make_keyed_by.rb +50 -0
- data/lib/dbee/version.rb +1 -1
- data/lib/dbee.rb +9 -10
- data/spec/dbee/base_spec.rb +9 -72
- data/spec/dbee/constant_resolver_spec.rb +17 -12
- data/spec/dbee/dsl_schema_builder_spec.rb +106 -0
- data/spec/dbee/key_chain_spec.rb +24 -0
- data/spec/dbee/model/constraints_spec.rb +6 -7
- data/spec/dbee/model_spec.rb +62 -59
- data/spec/dbee/query/filters_spec.rb +16 -17
- data/spec/dbee/query_spec.rb +56 -62
- data/spec/dbee/schema_creator_spec.rb +163 -0
- data/spec/dbee/schema_from_tree_based_model_spec.rb +31 -0
- data/spec/dbee/schema_spec.rb +62 -0
- data/spec/dbee_spec.rb +17 -37
- data/spec/fixtures/models.yaml +254 -56
- data/spec/spec_helper.rb +7 -0
- metadata +86 -19
- data/.travis.yml +0 -24
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dbee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Ruggio
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acts_as_hashable
|
@@ -72,6 +72,20 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: pry-byebug
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
75
89
|
- !ruby/object:Gem::Dependency
|
76
90
|
name: rake
|
77
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,34 +114,76 @@ dependencies:
|
|
100
114
|
- - ">="
|
101
115
|
- !ruby/object:Gem::Version
|
102
116
|
version: '0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rspec_junit_formatter
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
103
131
|
- !ruby/object:Gem::Dependency
|
104
132
|
name: rubocop
|
105
133
|
requirement: !ruby/object:Gem::Requirement
|
106
134
|
requirements:
|
107
135
|
- - "~>"
|
108
136
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
137
|
+
version: '1'
|
110
138
|
type: :development
|
111
139
|
prerelease: false
|
112
140
|
version_requirements: !ruby/object:Gem::Requirement
|
113
141
|
requirements:
|
114
142
|
- - "~>"
|
115
143
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
144
|
+
version: '1'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: rubocop-rake
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: rubocop-rspec
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
117
173
|
- !ruby/object:Gem::Dependency
|
118
174
|
name: simplecov
|
119
175
|
requirement: !ruby/object:Gem::Requirement
|
120
176
|
requirements:
|
121
177
|
- - "~>"
|
122
178
|
- !ruby/object:Gem::Version
|
123
|
-
version: 0.
|
179
|
+
version: 0.19.0
|
124
180
|
type: :development
|
125
181
|
prerelease: false
|
126
182
|
version_requirements: !ruby/object:Gem::Requirement
|
127
183
|
requirements:
|
128
184
|
- - "~>"
|
129
185
|
- !ruby/object:Gem::Version
|
130
|
-
version: 0.
|
186
|
+
version: 0.19.0
|
131
187
|
- !ruby/object:Gem::Dependency
|
132
188
|
name: simplecov-console
|
133
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,11 +208,12 @@ executables: []
|
|
152
208
|
extensions: []
|
153
209
|
extra_rdoc_files: []
|
154
210
|
files:
|
211
|
+
- ".circleci/config.yml"
|
155
212
|
- ".editorconfig"
|
156
213
|
- ".gitignore"
|
157
214
|
- ".rubocop.yml"
|
158
215
|
- ".ruby-version"
|
159
|
-
- ".
|
216
|
+
- ".tool-versions"
|
160
217
|
- CHANGELOG.md
|
161
218
|
- CODE_OF_CONDUCT.md
|
162
219
|
- Gemfile
|
@@ -174,6 +231,7 @@ files:
|
|
174
231
|
- lib/dbee/dsl/association_builder.rb
|
175
232
|
- lib/dbee/dsl/methods.rb
|
176
233
|
- lib/dbee/dsl/reflectable.rb
|
234
|
+
- lib/dbee/dsl_schema_builder.rb
|
177
235
|
- lib/dbee/key_chain.rb
|
178
236
|
- lib/dbee/key_path.rb
|
179
237
|
- lib/dbee/model.rb
|
@@ -182,6 +240,8 @@ files:
|
|
182
240
|
- lib/dbee/model/constraints/reference.rb
|
183
241
|
- lib/dbee/model/constraints/static.rb
|
184
242
|
- lib/dbee/model/partitioner.rb
|
243
|
+
- lib/dbee/model/relationships.rb
|
244
|
+
- lib/dbee/model/relationships/basic.rb
|
185
245
|
- lib/dbee/providers.rb
|
186
246
|
- lib/dbee/providers/null_provider.rb
|
187
247
|
- lib/dbee/query.rb
|
@@ -202,9 +262,14 @@ files:
|
|
202
262
|
- lib/dbee/query/sorters/ascending.rb
|
203
263
|
- lib/dbee/query/sorters/base.rb
|
204
264
|
- lib/dbee/query/sorters/descending.rb
|
265
|
+
- lib/dbee/schema.rb
|
266
|
+
- lib/dbee/schema_creator.rb
|
267
|
+
- lib/dbee/schema_from_tree_based_model.rb
|
268
|
+
- lib/dbee/util/make_keyed_by.rb
|
205
269
|
- lib/dbee/version.rb
|
206
270
|
- spec/dbee/base_spec.rb
|
207
271
|
- spec/dbee/constant_resolver_spec.rb
|
272
|
+
- spec/dbee/dsl_schema_builder_spec.rb
|
208
273
|
- spec/dbee/key_chain_spec.rb
|
209
274
|
- spec/dbee/key_path_spec.rb
|
210
275
|
- spec/dbee/model/constraints/base_spec.rb
|
@@ -220,20 +285,18 @@ files:
|
|
220
285
|
- spec/dbee/query/sorters/base_spec.rb
|
221
286
|
- spec/dbee/query/sorters/descending_spec.rb
|
222
287
|
- spec/dbee/query_spec.rb
|
288
|
+
- spec/dbee/schema_creator_spec.rb
|
289
|
+
- spec/dbee/schema_from_tree_based_model_spec.rb
|
290
|
+
- spec/dbee/schema_spec.rb
|
223
291
|
- spec/dbee_spec.rb
|
224
292
|
- spec/fixtures/models.rb
|
225
293
|
- spec/fixtures/models.yaml
|
226
294
|
- spec/spec_helper.rb
|
227
|
-
homepage:
|
295
|
+
homepage:
|
228
296
|
licenses:
|
229
297
|
- MIT
|
230
|
-
metadata:
|
231
|
-
|
232
|
-
changelog_uri: https://github.com/bluemarblepayroll/dbee/blob/master/CHANGELOG.md
|
233
|
-
documentation_uri: https://www.rubydoc.info/gems/dbee
|
234
|
-
homepage_uri: https://github.com/bluemarblepayroll/dbee
|
235
|
-
source_code_uri: https://github.com/bluemarblepayroll/dbee
|
236
|
-
post_install_message:
|
298
|
+
metadata: {}
|
299
|
+
post_install_message:
|
237
300
|
rdoc_options: []
|
238
301
|
require_paths:
|
239
302
|
- lib
|
@@ -244,17 +307,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
244
307
|
version: '2.5'
|
245
308
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
246
309
|
requirements:
|
247
|
-
- - "
|
310
|
+
- - ">="
|
248
311
|
- !ruby/object:Gem::Version
|
249
|
-
version:
|
312
|
+
version: '0'
|
250
313
|
requirements: []
|
251
314
|
rubygems_version: 3.0.3
|
252
|
-
signing_key:
|
315
|
+
signing_key:
|
253
316
|
specification_version: 4
|
254
317
|
summary: Adhoc Reporting SQL Generator
|
255
318
|
test_files:
|
256
319
|
- spec/dbee/base_spec.rb
|
257
320
|
- spec/dbee/constant_resolver_spec.rb
|
321
|
+
- spec/dbee/dsl_schema_builder_spec.rb
|
258
322
|
- spec/dbee/key_chain_spec.rb
|
259
323
|
- spec/dbee/key_path_spec.rb
|
260
324
|
- spec/dbee/model/constraints/base_spec.rb
|
@@ -270,6 +334,9 @@ test_files:
|
|
270
334
|
- spec/dbee/query/sorters/base_spec.rb
|
271
335
|
- spec/dbee/query/sorters/descending_spec.rb
|
272
336
|
- spec/dbee/query_spec.rb
|
337
|
+
- spec/dbee/schema_creator_spec.rb
|
338
|
+
- spec/dbee/schema_from_tree_based_model_spec.rb
|
339
|
+
- spec/dbee/schema_spec.rb
|
273
340
|
- spec/dbee_spec.rb
|
274
341
|
- spec/fixtures/models.rb
|
275
342
|
- spec/fixtures/models.yaml
|
data/.travis.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
env:
|
2
|
-
global:
|
3
|
-
- CC_TEST_REPORTER_ID=e7db23dad7560a076e48357331b0362db3741b62dbdd537bc30de27fa9cab69b
|
4
|
-
language: ruby
|
5
|
-
rvm:
|
6
|
-
# Build on the latest stable of all supported Rubies (https://www.ruby-lang.org/en/downloads/):
|
7
|
-
- 2.5.8
|
8
|
-
- 2.6.6
|
9
|
-
- 2.7.1
|
10
|
-
cache: bundler
|
11
|
-
before_script:
|
12
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
13
|
-
- chmod +x ./cc-test-reporter
|
14
|
-
- ./cc-test-reporter before-build
|
15
|
-
script:
|
16
|
-
- bundle exec rubocop
|
17
|
-
- bundle exec rspec spec --format documentation
|
18
|
-
after_script:
|
19
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
20
|
-
addons:
|
21
|
-
# https://docs.travis-ci.com/user/uploading-artifacts/
|
22
|
-
artifacts:
|
23
|
-
paths:
|
24
|
-
- Gemfile.lock
|