db_fuel 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 +9 -0
- data/.rubocop.yml +36 -0
- data/.ruby-version +1 -0
- data/.travis.yml +28 -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 +5 -0
- data/Rakefile +17 -0
- data/bin/console +18 -0
- data/db_fuel.gemspec +58 -0
- data/exe/.gitkeep +0 -0
- data/lib/db_fuel.rb +17 -0
- data/lib/db_fuel/library.rb +14 -0
- data/lib/db_fuel/library/dbee/base.rb +48 -0
- data/lib/db_fuel/library/dbee/query.rb +35 -0
- data/lib/db_fuel/library/dbee/range.rb +86 -0
- data/lib/db_fuel/version.rb +12 -0
- metadata +271 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c90c249149cb9a69ba04ba4fbd9932ced38651dd67fa52710f1f2baf55b965e0
|
4
|
+
data.tar.gz: 2cd95f53e9e16b90aa94aefa36ebe17c3f4ebcd9db308aa2d504327823394f62
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 02b7fa4938884bb81987105fa6be014490a7cbf2c01d58679d9185acae8ded68998b42f3bab854dbdeb9b8b565b9e9b596ad37ce91b0852e702e8ce46d98626d
|
7
|
+
data.tar.gz: ea64e9426e672b57f399d82e0fab173fdcf20319febbfcb6dcee9722d6cf7c645af3bc051d048a227b434b29294b19d2cd0876be9d06c50d0d357506bfc0544d
|
data/.editorconfig
ADDED
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.5
|
3
|
+
NewCops: enable
|
4
|
+
|
5
|
+
Layout/LineLength:
|
6
|
+
Max: 100
|
7
|
+
Exclude:
|
8
|
+
- db_fuel.gemspec
|
9
|
+
|
10
|
+
Metrics/BlockLength:
|
11
|
+
ExcludedMethods:
|
12
|
+
- let
|
13
|
+
- it
|
14
|
+
- describe
|
15
|
+
- context
|
16
|
+
- specify
|
17
|
+
- define
|
18
|
+
|
19
|
+
Metrics/MethodLength:
|
20
|
+
Max: 30
|
21
|
+
|
22
|
+
Metrics/AbcSize:
|
23
|
+
Max: 25
|
24
|
+
|
25
|
+
Metrics/ClassLength:
|
26
|
+
Max: 125
|
27
|
+
|
28
|
+
Metrics/ParameterLists:
|
29
|
+
CountKeywordArgs: false
|
30
|
+
|
31
|
+
Style/TrailingCommaInHashLiteral:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Style/TrailingCommaInArrayLiteral:
|
35
|
+
Enabled: false
|
36
|
+
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.6.6
|
data/.travis.yml
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
env:
|
2
|
+
global:
|
3
|
+
- CC_TEST_REPORTER_ID=2d57d597269e2cb04a63d0a7262927cf811abb7ab528da7de681943b212b4134
|
4
|
+
jobs:
|
5
|
+
- AR_VERSION=5
|
6
|
+
- AR_VERSION=6
|
7
|
+
language: ruby
|
8
|
+
rvm:
|
9
|
+
# Build on the latest stable of all supported Rubies (https://www.ruby-lang.org/en/downloads/):
|
10
|
+
- 2.5.8
|
11
|
+
- 2.6.6
|
12
|
+
- 2.7.1
|
13
|
+
cache: bundler
|
14
|
+
before_script:
|
15
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
16
|
+
- chmod +x ./cc-test-reporter
|
17
|
+
- ./cc-test-reporter before-build
|
18
|
+
- cp spec/config/database.yaml.ci spec/config/database.yaml
|
19
|
+
script:
|
20
|
+
- bundle exec rubocop
|
21
|
+
- bundle exec rspec spec --format documentation
|
22
|
+
after_script:
|
23
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
24
|
+
addons:
|
25
|
+
# https://docs.travis-ci.com/user/uploading-artifacts/
|
26
|
+
artifacts:
|
27
|
+
paths:
|
28
|
+
- Gemfile.lock
|
data/CHANGELOG.md
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at oss@bluemarblepayroll.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
guard :rspec, cmd: 'DISABLE_SIMPLECOV=true bundle exec rspec --format=documentation' do
|
4
|
+
require 'guard/rspec/dsl'
|
5
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
6
|
+
|
7
|
+
# RSpec files
|
8
|
+
rspec = dsl.rspec
|
9
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
10
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
11
|
+
watch(rspec.spec_files)
|
12
|
+
|
13
|
+
# Ruby files
|
14
|
+
ruby = dsl.ruby
|
15
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
16
|
+
end
|
data/LICENSE
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
Copyright 2020 Blue Marble Payroll, LLC
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#
|
4
|
+
# Copyright (c) 2020-present, Blue Marble Payroll, LLC
|
5
|
+
#
|
6
|
+
# This source code is licensed under the MIT license found in the
|
7
|
+
# LICENSE file in the root directory of this source tree.
|
8
|
+
#
|
9
|
+
|
10
|
+
require 'bundler/gem_tasks'
|
11
|
+
require 'rspec/core/rake_task'
|
12
|
+
require 'rubocop/rake_task'
|
13
|
+
|
14
|
+
RSpec::Core::RakeTask.new(:spec)
|
15
|
+
RuboCop::RakeTask.new
|
16
|
+
|
17
|
+
task default: %i[rubocop spec]
|
data/bin/console
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# Copyright (c) 2020-present, Blue Marble Payroll, LLC
|
6
|
+
#
|
7
|
+
# This source code is licensed under the MIT license found in the
|
8
|
+
# LICENSE file in the root directory of this source tree.
|
9
|
+
#
|
10
|
+
|
11
|
+
require 'bundler/setup'
|
12
|
+
require 'db_fuel'
|
13
|
+
|
14
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
15
|
+
# with your gem easier. You can also use a different console, if you like.
|
16
|
+
|
17
|
+
require 'pry'
|
18
|
+
Pry.start
|
data/db_fuel.gemspec
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require './lib/db_fuel/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = 'db_fuel'
|
7
|
+
s.version = DbFuel::VERSION
|
8
|
+
s.summary = 'TBD'
|
9
|
+
|
10
|
+
s.description = <<-DESCRIPTION
|
11
|
+
TBD
|
12
|
+
DESCRIPTION
|
13
|
+
|
14
|
+
s.authors = ['Matthew Ruggio']
|
15
|
+
s.email = ['mruggio@bluemarblepayroll.com']
|
16
|
+
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
s.bindir = 'exe'
|
18
|
+
s.executables = %w[]
|
19
|
+
s.homepage = 'https://github.com/bluemarblepayroll/db_fuel'
|
20
|
+
s.license = 'MIT'
|
21
|
+
s.metadata = {
|
22
|
+
'bug_tracker_uri' => 'https://github.com/bluemarblepayroll/db_fuel/issues',
|
23
|
+
'changelog_uri' => 'https://github.com/bluemarblepayroll/db_fuel/blob/master/CHANGELOG.md',
|
24
|
+
'documentation_uri' => 'https://www.rubydoc.info/gems/db_fuel',
|
25
|
+
'homepage_uri' => s.homepage,
|
26
|
+
'source_code_uri' => s.homepage
|
27
|
+
}
|
28
|
+
|
29
|
+
s.required_ruby_version = '>= 2.5'
|
30
|
+
|
31
|
+
ar_version = ENV['AR_VERSION'] || ''
|
32
|
+
|
33
|
+
activerecord_version =
|
34
|
+
case ar_version
|
35
|
+
when '6'
|
36
|
+
['>=6.0.0', '<7']
|
37
|
+
when '5'
|
38
|
+
['>=5.2.1', '<6']
|
39
|
+
else
|
40
|
+
['>=5.2.1', '<7']
|
41
|
+
end
|
42
|
+
|
43
|
+
s.add_dependency('activerecord', activerecord_version)
|
44
|
+
s.add_dependency('acts_as_hashable', '~>1.2')
|
45
|
+
s.add_dependency('burner', '~>1.0')
|
46
|
+
s.add_dependency('dbee', '~>2.1')
|
47
|
+
s.add_dependency('dbee-active_record', '~>2.1')
|
48
|
+
s.add_dependency('objectable', '~>1.0')
|
49
|
+
|
50
|
+
s.add_development_dependency('guard-rspec', '~>4.7')
|
51
|
+
s.add_development_dependency('pry', '~>0')
|
52
|
+
s.add_development_dependency('rake', '~> 13')
|
53
|
+
s.add_development_dependency('rspec', '~> 3.8')
|
54
|
+
s.add_development_dependency('rubocop', '~>0.90.0')
|
55
|
+
s.add_development_dependency('simplecov', '~>0.18.5')
|
56
|
+
s.add_development_dependency('simplecov-console', '~>0.7.0')
|
57
|
+
s.add_development_dependency('sqlite3', '~>1')
|
58
|
+
end
|
data/exe/.gitkeep
ADDED
File without changes
|
data/lib/db_fuel.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#
|
4
|
+
# Copyright (c) 2020-present, Blue Marble Payroll, LLC
|
5
|
+
#
|
6
|
+
# This source code is licensed under the MIT license found in the
|
7
|
+
# LICENSE file in the root directory of this source tree.
|
8
|
+
#
|
9
|
+
|
10
|
+
require 'active_record'
|
11
|
+
require 'acts_as_hashable'
|
12
|
+
require 'burner'
|
13
|
+
require 'dbee'
|
14
|
+
require 'dbee/providers/active_record_provider'
|
15
|
+
require 'objectable'
|
16
|
+
|
17
|
+
require_relative 'db_fuel/library'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#
|
4
|
+
# Copyright (c) 2020-present, Blue Marble Payroll, LLC
|
5
|
+
#
|
6
|
+
# This source code is licensed under the MIT license found in the
|
7
|
+
# LICENSE file in the root directory of this source tree.
|
8
|
+
#
|
9
|
+
|
10
|
+
require_relative 'library/dbee/query'
|
11
|
+
require_relative 'library/dbee/range'
|
12
|
+
|
13
|
+
Burner::Jobs.register('db_fuel/dbee/query', DbFuel::Library::Dbee::Query)
|
14
|
+
Burner::Jobs.register('db_fuel/dbee/range', DbFuel::Library::Dbee::Range)
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#
|
4
|
+
# Copyright (c) 2020-present, Blue Marble Payroll, LLC
|
5
|
+
#
|
6
|
+
# This source code is licensed under the MIT license found in the
|
7
|
+
# LICENSE file in the root directory of this source tree.
|
8
|
+
#
|
9
|
+
|
10
|
+
module DbFuel
|
11
|
+
module Library
|
12
|
+
module Dbee
|
13
|
+
# Common code shared between all Dbee subclasses.
|
14
|
+
class Base < Burner::JobWithRegister
|
15
|
+
attr_reader :model,
|
16
|
+
:provider,
|
17
|
+
:query
|
18
|
+
|
19
|
+
def initialize(
|
20
|
+
name:,
|
21
|
+
model: {},
|
22
|
+
query: {},
|
23
|
+
register: Burner::DEFAULT_REGISTER
|
24
|
+
)
|
25
|
+
super(name: name, register: register)
|
26
|
+
|
27
|
+
@model = ::Dbee::Model.make(model)
|
28
|
+
@provider = ::Dbee::Providers::ActiveRecordProvider.new
|
29
|
+
@query = ::Dbee::Query.make(query)
|
30
|
+
|
31
|
+
freeze
|
32
|
+
end
|
33
|
+
|
34
|
+
protected
|
35
|
+
|
36
|
+
def execute(sql)
|
37
|
+
::ActiveRecord::Base.connection.exec_query(sql).to_a
|
38
|
+
end
|
39
|
+
|
40
|
+
def load_register(records, output, payload)
|
41
|
+
output.detail("Loading #{records.length} record(s) into #{register}")
|
42
|
+
|
43
|
+
payload[register] = records
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#
|
4
|
+
# Copyright (c) 2020-present, Blue Marble Payroll, LLC
|
5
|
+
#
|
6
|
+
# This source code is licensed under the MIT license found in the
|
7
|
+
# LICENSE file in the root directory of this source tree.
|
8
|
+
#
|
9
|
+
|
10
|
+
require_relative 'base'
|
11
|
+
|
12
|
+
module DbFuel
|
13
|
+
module Library
|
14
|
+
module Dbee
|
15
|
+
# Execute a Dbee Query against a Dbee Model and store the resulting records in the designated
|
16
|
+
# payload register.
|
17
|
+
#
|
18
|
+
# Expected Payload[register] input: nothing
|
19
|
+
# Payload[register] output: array of objects.
|
20
|
+
class Query < Base
|
21
|
+
def perform(output, payload)
|
22
|
+
records = execute(sql)
|
23
|
+
|
24
|
+
load_register(records, output, payload)
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def sql
|
30
|
+
::Dbee.sql(model, query, provider)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#
|
4
|
+
# Copyright (c) 2020-present, Blue Marble Payroll, LLC
|
5
|
+
#
|
6
|
+
# This source code is licensed under the MIT license found in the
|
7
|
+
# LICENSE file in the root directory of this source tree.
|
8
|
+
#
|
9
|
+
|
10
|
+
require_relative 'base'
|
11
|
+
|
12
|
+
module DbFuel
|
13
|
+
module Library
|
14
|
+
module Dbee
|
15
|
+
# This Burner Job does the same data query and loading as the Query Job with the addition
|
16
|
+
# of the ability to dynamically add an IN filter for a range of values. The values are
|
17
|
+
# retrieved from the register's array of records using the defined key.
|
18
|
+
#
|
19
|
+
# Expected Payload[register] input: array of objects.
|
20
|
+
# Payload[register] output: array of objects.
|
21
|
+
class Range < Base
|
22
|
+
attr_reader :key,
|
23
|
+
:key_path,
|
24
|
+
:resolver
|
25
|
+
|
26
|
+
def initialize(
|
27
|
+
name:,
|
28
|
+
key:,
|
29
|
+
key_path: '',
|
30
|
+
model: {},
|
31
|
+
query: {},
|
32
|
+
register: Burner::DEFAULT_REGISTER,
|
33
|
+
separator: ''
|
34
|
+
)
|
35
|
+
raise ArgumentError, 'key is required' if key.to_s.empty?
|
36
|
+
|
37
|
+
@key = key.to_s
|
38
|
+
@key_path = key_path.to_s.empty? ? @key : key_path.to_s
|
39
|
+
@resolver = Objectable.resolver(separator: separator)
|
40
|
+
|
41
|
+
super(
|
42
|
+
model: model,
|
43
|
+
name: name,
|
44
|
+
query: query,
|
45
|
+
register: register
|
46
|
+
)
|
47
|
+
end
|
48
|
+
|
49
|
+
def perform(output, payload)
|
50
|
+
records = execute(sql(payload))
|
51
|
+
|
52
|
+
load_register(records, output, payload)
|
53
|
+
end
|
54
|
+
|
55
|
+
private
|
56
|
+
|
57
|
+
def map_values(payload)
|
58
|
+
array(payload[register]).map { |o| resolver.get(o, key) }.compact
|
59
|
+
end
|
60
|
+
|
61
|
+
def dynamic_filter(payload)
|
62
|
+
values = map_values(payload)
|
63
|
+
|
64
|
+
{
|
65
|
+
type: :equals,
|
66
|
+
key_path: key_path,
|
67
|
+
value: values,
|
68
|
+
}
|
69
|
+
end
|
70
|
+
|
71
|
+
def compile_dbee_query(payload)
|
72
|
+
::Dbee::Query.make(
|
73
|
+
fields: query.fields,
|
74
|
+
filters: query.filters + [dynamic_filter(payload)],
|
75
|
+
limit: query.limit,
|
76
|
+
sorters: query.sorters
|
77
|
+
)
|
78
|
+
end
|
79
|
+
|
80
|
+
def sql(payload)
|
81
|
+
::Dbee.sql(model, compile_dbee_query(payload), provider)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#
|
4
|
+
# Copyright (c) 2020-present, Blue Marble Payroll, LLC
|
5
|
+
#
|
6
|
+
# This source code is licensed under the MIT license found in the
|
7
|
+
# LICENSE file in the root directory of this source tree.
|
8
|
+
#
|
9
|
+
|
10
|
+
module DbFuel
|
11
|
+
VERSION = '1.0.0-alpha'
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,271 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: db_fuel
|
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: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-11-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activerecord
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 5.2.1
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '7'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 5.2.1
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '7'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: acts_as_hashable
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.2'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.2'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: burner
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '1.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: dbee
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '2.1'
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '2.1'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: dbee-active_record
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '2.1'
|
82
|
+
type: :runtime
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '2.1'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: objectable
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '1.0'
|
96
|
+
type: :runtime
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '1.0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: guard-rspec
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '4.7'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '4.7'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: pry
|
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'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: rake
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '13'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '13'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: rspec
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '3.8'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '3.8'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: rubocop
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: 0.90.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.90.0
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: simplecov
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: 0.18.5
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - "~>"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 0.18.5
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: simplecov-console
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: 0.7.0
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - "~>"
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: 0.7.0
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: sqlite3
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - "~>"
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '1'
|
208
|
+
type: :development
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - "~>"
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: '1'
|
215
|
+
description: " TBD\n"
|
216
|
+
email:
|
217
|
+
- mruggio@bluemarblepayroll.com
|
218
|
+
executables: []
|
219
|
+
extensions: []
|
220
|
+
extra_rdoc_files: []
|
221
|
+
files:
|
222
|
+
- ".editorconfig"
|
223
|
+
- ".gitignore"
|
224
|
+
- ".rubocop.yml"
|
225
|
+
- ".ruby-version"
|
226
|
+
- ".travis.yml"
|
227
|
+
- CHANGELOG.md
|
228
|
+
- CODE_OF_CONDUCT.md
|
229
|
+
- Gemfile
|
230
|
+
- Guardfile
|
231
|
+
- LICENSE
|
232
|
+
- README.md
|
233
|
+
- Rakefile
|
234
|
+
- bin/console
|
235
|
+
- db_fuel.gemspec
|
236
|
+
- exe/.gitkeep
|
237
|
+
- lib/db_fuel.rb
|
238
|
+
- lib/db_fuel/library.rb
|
239
|
+
- lib/db_fuel/library/dbee/base.rb
|
240
|
+
- lib/db_fuel/library/dbee/query.rb
|
241
|
+
- lib/db_fuel/library/dbee/range.rb
|
242
|
+
- lib/db_fuel/version.rb
|
243
|
+
homepage: https://github.com/bluemarblepayroll/db_fuel
|
244
|
+
licenses:
|
245
|
+
- MIT
|
246
|
+
metadata:
|
247
|
+
bug_tracker_uri: https://github.com/bluemarblepayroll/db_fuel/issues
|
248
|
+
changelog_uri: https://github.com/bluemarblepayroll/db_fuel/blob/master/CHANGELOG.md
|
249
|
+
documentation_uri: https://www.rubydoc.info/gems/db_fuel
|
250
|
+
homepage_uri: https://github.com/bluemarblepayroll/db_fuel
|
251
|
+
source_code_uri: https://github.com/bluemarblepayroll/db_fuel
|
252
|
+
post_install_message:
|
253
|
+
rdoc_options: []
|
254
|
+
require_paths:
|
255
|
+
- lib
|
256
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
257
|
+
requirements:
|
258
|
+
- - ">="
|
259
|
+
- !ruby/object:Gem::Version
|
260
|
+
version: '2.5'
|
261
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
262
|
+
requirements:
|
263
|
+
- - ">"
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
version: 1.3.1
|
266
|
+
requirements: []
|
267
|
+
rubygems_version: 3.0.3
|
268
|
+
signing_key:
|
269
|
+
specification_version: 4
|
270
|
+
summary: TBD
|
271
|
+
test_files: []
|