dbee 1.0.0.pre.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +8 -0
- data/.gitignore +6 -0
- data/.rubocop.yml +23 -0
- data/.ruby-version +1 -0
- data/.travis.yml +26 -0
- data/CHANGELOG.md +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +5 -0
- data/Guardfile +16 -0
- data/LICENSE +7 -0
- data/README.md +368 -0
- data/Rakefile +15 -0
- data/bin/console +18 -0
- data/dbee.gemspec +33 -0
- data/lib/dbee/base.rb +109 -0
- data/lib/dbee/model/constraints/base.rb +36 -0
- data/lib/dbee/model/constraints/reference.rb +42 -0
- data/lib/dbee/model/constraints/static.rb +40 -0
- data/lib/dbee/model/constraints.rb +26 -0
- data/lib/dbee/model.rb +79 -0
- data/lib/dbee/providers/null_provider.rb +21 -0
- data/lib/dbee/providers.rb +10 -0
- data/lib/dbee/query/field.rb +41 -0
- data/lib/dbee/query/filters/base.rb +39 -0
- data/lib/dbee/query/filters/contains.rb +19 -0
- data/lib/dbee/query/filters/equals.rb +19 -0
- data/lib/dbee/query/filters/greater_than.rb +19 -0
- data/lib/dbee/query/filters/greater_than_or_equal_to.rb +19 -0
- data/lib/dbee/query/filters/less_than.rb +19 -0
- data/lib/dbee/query/filters/less_than_or_equal_to.rb +19 -0
- data/lib/dbee/query/filters/not_contain.rb +19 -0
- data/lib/dbee/query/filters/not_equals.rb +19 -0
- data/lib/dbee/query/filters/not_start_with.rb +19 -0
- data/lib/dbee/query/filters/starts_with.rb +19 -0
- data/lib/dbee/query/filters.rb +40 -0
- data/lib/dbee/query/key_path.rb +54 -0
- data/lib/dbee/query/sorter.rb +53 -0
- data/lib/dbee/query.rb +45 -0
- data/lib/dbee/version.rb +12 -0
- data/lib/dbee.rb +28 -0
- data/spec/dbee/base_spec.rb +35 -0
- data/spec/dbee/model/constraints/base_spec.rb +42 -0
- data/spec/dbee/model/constraints/reference_spec.rb +37 -0
- data/spec/dbee/model/constraints/static_spec.rb +29 -0
- data/spec/dbee/model/constraints_spec.rb +25 -0
- data/spec/dbee/model_spec.rb +113 -0
- data/spec/dbee/providers/null_provider_spec.rb +22 -0
- data/spec/dbee/query/field_spec.rb +42 -0
- data/spec/dbee/query/filters/base_spec.rb +42 -0
- data/spec/dbee/query/filters_spec.rb +33 -0
- data/spec/dbee/query/key_path_spec.rb +35 -0
- data/spec/dbee/query/sorter_spec.rb +72 -0
- data/spec/dbee/query_spec.rb +94 -0
- data/spec/dbee_spec.rb +60 -0
- data/spec/fixtures/models.rb +115 -0
- data/spec/fixtures/models.yaml +101 -0
- data/spec/spec_helper.rb +52 -0
- metadata +239 -0
metadata
ADDED
@@ -0,0 +1,239 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dbee
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.pre.alpha
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matthew Ruggio
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-08-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: acts_as_hashable
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.1.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.1.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: guard-rspec
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '4.7'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '4.7'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: pry
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '12'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '12'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rspec
|
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'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: rubocop
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 0.63.1
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 0.63.1
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: simplecov
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.16.1
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 0.16.1
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: simplecov-console
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 0.4.2
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 0.4.2
|
131
|
+
description: " Dbee provides a simple-to-use data modeling and query API. The
|
132
|
+
query API can produce SQL using other ORMs, such as Arel/ActiveRecord. The targeted
|
133
|
+
use-case for Dbee is ad-hoc reporting, so the total SQL feature-set that Dbee supports
|
134
|
+
is rather limited.\n"
|
135
|
+
email:
|
136
|
+
- mruggio@bluemarblepayroll.com
|
137
|
+
executables:
|
138
|
+
- console
|
139
|
+
extensions: []
|
140
|
+
extra_rdoc_files: []
|
141
|
+
files:
|
142
|
+
- ".editorconfig"
|
143
|
+
- ".gitignore"
|
144
|
+
- ".rubocop.yml"
|
145
|
+
- ".ruby-version"
|
146
|
+
- ".travis.yml"
|
147
|
+
- CHANGELOG.md
|
148
|
+
- CODE_OF_CONDUCT.md
|
149
|
+
- Gemfile
|
150
|
+
- Guardfile
|
151
|
+
- LICENSE
|
152
|
+
- README.md
|
153
|
+
- Rakefile
|
154
|
+
- bin/console
|
155
|
+
- dbee.gemspec
|
156
|
+
- lib/dbee.rb
|
157
|
+
- lib/dbee/base.rb
|
158
|
+
- lib/dbee/model.rb
|
159
|
+
- lib/dbee/model/constraints.rb
|
160
|
+
- lib/dbee/model/constraints/base.rb
|
161
|
+
- lib/dbee/model/constraints/reference.rb
|
162
|
+
- lib/dbee/model/constraints/static.rb
|
163
|
+
- lib/dbee/providers.rb
|
164
|
+
- lib/dbee/providers/null_provider.rb
|
165
|
+
- lib/dbee/query.rb
|
166
|
+
- lib/dbee/query/field.rb
|
167
|
+
- lib/dbee/query/filters.rb
|
168
|
+
- lib/dbee/query/filters/base.rb
|
169
|
+
- lib/dbee/query/filters/contains.rb
|
170
|
+
- lib/dbee/query/filters/equals.rb
|
171
|
+
- lib/dbee/query/filters/greater_than.rb
|
172
|
+
- lib/dbee/query/filters/greater_than_or_equal_to.rb
|
173
|
+
- lib/dbee/query/filters/less_than.rb
|
174
|
+
- lib/dbee/query/filters/less_than_or_equal_to.rb
|
175
|
+
- lib/dbee/query/filters/not_contain.rb
|
176
|
+
- lib/dbee/query/filters/not_equals.rb
|
177
|
+
- lib/dbee/query/filters/not_start_with.rb
|
178
|
+
- lib/dbee/query/filters/starts_with.rb
|
179
|
+
- lib/dbee/query/key_path.rb
|
180
|
+
- lib/dbee/query/sorter.rb
|
181
|
+
- lib/dbee/version.rb
|
182
|
+
- spec/dbee/base_spec.rb
|
183
|
+
- spec/dbee/model/constraints/base_spec.rb
|
184
|
+
- spec/dbee/model/constraints/reference_spec.rb
|
185
|
+
- spec/dbee/model/constraints/static_spec.rb
|
186
|
+
- spec/dbee/model/constraints_spec.rb
|
187
|
+
- spec/dbee/model_spec.rb
|
188
|
+
- spec/dbee/providers/null_provider_spec.rb
|
189
|
+
- spec/dbee/query/field_spec.rb
|
190
|
+
- spec/dbee/query/filters/base_spec.rb
|
191
|
+
- spec/dbee/query/filters_spec.rb
|
192
|
+
- spec/dbee/query/key_path_spec.rb
|
193
|
+
- spec/dbee/query/sorter_spec.rb
|
194
|
+
- spec/dbee/query_spec.rb
|
195
|
+
- spec/dbee_spec.rb
|
196
|
+
- spec/fixtures/models.rb
|
197
|
+
- spec/fixtures/models.yaml
|
198
|
+
- spec/spec_helper.rb
|
199
|
+
homepage: https://github.com/bluemarblepayroll/dbee
|
200
|
+
licenses:
|
201
|
+
- MIT
|
202
|
+
metadata: {}
|
203
|
+
post_install_message:
|
204
|
+
rdoc_options: []
|
205
|
+
require_paths:
|
206
|
+
- lib
|
207
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - ">="
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: 2.3.8
|
212
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
|
+
requirements:
|
214
|
+
- - ">"
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: 1.3.1
|
217
|
+
requirements: []
|
218
|
+
rubygems_version: 3.0.3
|
219
|
+
signing_key:
|
220
|
+
specification_version: 4
|
221
|
+
summary: Adhoc Reporting SQL Generator
|
222
|
+
test_files:
|
223
|
+
- spec/dbee/base_spec.rb
|
224
|
+
- spec/dbee/model/constraints/base_spec.rb
|
225
|
+
- spec/dbee/model/constraints/reference_spec.rb
|
226
|
+
- spec/dbee/model/constraints/static_spec.rb
|
227
|
+
- spec/dbee/model/constraints_spec.rb
|
228
|
+
- spec/dbee/model_spec.rb
|
229
|
+
- spec/dbee/providers/null_provider_spec.rb
|
230
|
+
- spec/dbee/query/field_spec.rb
|
231
|
+
- spec/dbee/query/filters/base_spec.rb
|
232
|
+
- spec/dbee/query/filters_spec.rb
|
233
|
+
- spec/dbee/query/key_path_spec.rb
|
234
|
+
- spec/dbee/query/sorter_spec.rb
|
235
|
+
- spec/dbee/query_spec.rb
|
236
|
+
- spec/dbee_spec.rb
|
237
|
+
- spec/fixtures/models.rb
|
238
|
+
- spec/fixtures/models.yaml
|
239
|
+
- spec/spec_helper.rb
|