-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
475 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.bundle | ||
db/*.sqlite3 | ||
log/*.log | ||
tmp/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'sqlite3', '~> 1.7' | ||
gem 'rails', '=7.2.1' | ||
gem 'rspec' | ||
gem 'rspec-rails' | ||
gem 'database_cleaner' | ||
gem 'query_diet', :path => '../..' | ||
gem 'capybara' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,236 @@ | ||
PATH | ||
remote: ../.. | ||
specs: | ||
query_diet (0.7.2) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
actioncable (7.2.1) | ||
actionpack (= 7.2.1) | ||
activesupport (= 7.2.1) | ||
nio4r (~> 2.0) | ||
websocket-driver (>= 0.6.1) | ||
zeitwerk (~> 2.6) | ||
actionmailbox (7.2.1) | ||
actionpack (= 7.2.1) | ||
activejob (= 7.2.1) | ||
activerecord (= 7.2.1) | ||
activestorage (= 7.2.1) | ||
activesupport (= 7.2.1) | ||
mail (>= 2.8.0) | ||
actionmailer (7.2.1) | ||
actionpack (= 7.2.1) | ||
actionview (= 7.2.1) | ||
activejob (= 7.2.1) | ||
activesupport (= 7.2.1) | ||
mail (>= 2.8.0) | ||
rails-dom-testing (~> 2.2) | ||
actionpack (7.2.1) | ||
actionview (= 7.2.1) | ||
activesupport (= 7.2.1) | ||
nokogiri (>= 1.8.5) | ||
racc | ||
rack (>= 2.2.4, < 3.2) | ||
rack-session (>= 1.0.1) | ||
rack-test (>= 0.6.3) | ||
rails-dom-testing (~> 2.2) | ||
rails-html-sanitizer (~> 1.6) | ||
useragent (~> 0.16) | ||
actiontext (7.2.1) | ||
actionpack (= 7.2.1) | ||
activerecord (= 7.2.1) | ||
activestorage (= 7.2.1) | ||
activesupport (= 7.2.1) | ||
globalid (>= 0.6.0) | ||
nokogiri (>= 1.8.5) | ||
actionview (7.2.1) | ||
activesupport (= 7.2.1) | ||
builder (~> 3.1) | ||
erubi (~> 1.11) | ||
rails-dom-testing (~> 2.2) | ||
rails-html-sanitizer (~> 1.6) | ||
activejob (7.2.1) | ||
activesupport (= 7.2.1) | ||
globalid (>= 0.3.6) | ||
activemodel (7.2.1) | ||
activesupport (= 7.2.1) | ||
activerecord (7.2.1) | ||
activemodel (= 7.2.1) | ||
activesupport (= 7.2.1) | ||
timeout (>= 0.4.0) | ||
activestorage (7.2.1) | ||
actionpack (= 7.2.1) | ||
activejob (= 7.2.1) | ||
activerecord (= 7.2.1) | ||
activesupport (= 7.2.1) | ||
marcel (~> 1.0) | ||
activesupport (7.2.1) | ||
base64 | ||
bigdecimal | ||
concurrent-ruby (~> 1.0, >= 1.3.1) | ||
connection_pool (>= 2.2.5) | ||
drb | ||
i18n (>= 1.6, < 2) | ||
logger (>= 1.4.2) | ||
minitest (>= 5.1) | ||
securerandom (>= 0.3) | ||
tzinfo (~> 2.0, >= 2.0.5) | ||
addressable (2.8.7) | ||
public_suffix (>= 2.0.2, < 7.0) | ||
base64 (0.2.0) | ||
bigdecimal (3.1.8) | ||
builder (3.3.0) | ||
capybara (3.40.0) | ||
addressable | ||
matrix | ||
mini_mime (>= 0.1.3) | ||
nokogiri (~> 1.11) | ||
rack (>= 1.6.0) | ||
rack-test (>= 0.6.3) | ||
regexp_parser (>= 1.5, < 3.0) | ||
xpath (~> 3.2) | ||
concurrent-ruby (1.3.4) | ||
connection_pool (2.4.1) | ||
crass (1.0.6) | ||
database_cleaner (2.0.2) | ||
database_cleaner-active_record (>= 2, < 3) | ||
database_cleaner-active_record (2.2.0) | ||
activerecord (>= 5.a) | ||
database_cleaner-core (~> 2.0.0) | ||
database_cleaner-core (2.0.1) | ||
date (3.3.4) | ||
diff-lcs (1.5.1) | ||
drb (2.2.1) | ||
erubi (1.13.0) | ||
globalid (1.2.1) | ||
activesupport (>= 6.1) | ||
i18n (1.14.5) | ||
concurrent-ruby (~> 1.0) | ||
io-console (0.7.2) | ||
irb (1.14.0) | ||
rdoc (>= 4.0.0) | ||
reline (>= 0.4.2) | ||
logger (1.6.1) | ||
loofah (2.22.0) | ||
crass (~> 1.0.2) | ||
nokogiri (>= 1.12.0) | ||
mail (2.8.1) | ||
mini_mime (>= 0.1.1) | ||
net-imap | ||
net-pop | ||
net-smtp | ||
marcel (1.0.4) | ||
matrix (0.4.2) | ||
mini_mime (1.1.5) | ||
minitest (5.25.1) | ||
net-imap (0.4.15) | ||
date | ||
net-protocol | ||
net-pop (0.1.2) | ||
net-protocol | ||
net-protocol (0.2.2) | ||
timeout | ||
net-smtp (0.5.0) | ||
net-protocol | ||
nio4r (2.7.3) | ||
nokogiri (1.16.7-x86_64-linux) | ||
racc (~> 1.4) | ||
psych (5.1.2) | ||
stringio | ||
public_suffix (6.0.1) | ||
racc (1.8.1) | ||
rack (3.1.7) | ||
rack-session (2.0.0) | ||
rack (>= 3.0.0) | ||
rack-test (2.1.0) | ||
rack (>= 1.3) | ||
rackup (2.1.0) | ||
rack (>= 3) | ||
webrick (~> 1.8) | ||
rails (7.2.1) | ||
actioncable (= 7.2.1) | ||
actionmailbox (= 7.2.1) | ||
actionmailer (= 7.2.1) | ||
actionpack (= 7.2.1) | ||
actiontext (= 7.2.1) | ||
actionview (= 7.2.1) | ||
activejob (= 7.2.1) | ||
activemodel (= 7.2.1) | ||
activerecord (= 7.2.1) | ||
activestorage (= 7.2.1) | ||
activesupport (= 7.2.1) | ||
bundler (>= 1.15.0) | ||
railties (= 7.2.1) | ||
rails-dom-testing (2.2.0) | ||
activesupport (>= 5.0.0) | ||
minitest | ||
nokogiri (>= 1.6) | ||
rails-html-sanitizer (1.6.0) | ||
loofah (~> 2.21) | ||
nokogiri (~> 1.14) | ||
railties (7.2.1) | ||
actionpack (= 7.2.1) | ||
activesupport (= 7.2.1) | ||
irb (~> 1.13) | ||
rackup (>= 1.0.0) | ||
rake (>= 12.2) | ||
thor (~> 1.0, >= 1.2.2) | ||
zeitwerk (~> 2.6) | ||
rake (13.2.1) | ||
rdoc (6.7.0) | ||
psych (>= 4.0.0) | ||
regexp_parser (2.9.2) | ||
reline (0.5.9) | ||
io-console (~> 0.5) | ||
rspec (3.13.0) | ||
rspec-core (~> 3.13.0) | ||
rspec-expectations (~> 3.13.0) | ||
rspec-mocks (~> 3.13.0) | ||
rspec-core (3.13.1) | ||
rspec-support (~> 3.13.0) | ||
rspec-expectations (3.13.2) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.13.0) | ||
rspec-mocks (3.13.1) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.13.0) | ||
rspec-rails (7.0.1) | ||
actionpack (>= 7.0) | ||
activesupport (>= 7.0) | ||
railties (>= 7.0) | ||
rspec-core (~> 3.13) | ||
rspec-expectations (~> 3.13) | ||
rspec-mocks (~> 3.13) | ||
rspec-support (~> 3.13) | ||
rspec-support (3.13.1) | ||
securerandom (0.3.1) | ||
sqlite3 (1.7.3-x86_64-linux) | ||
stringio (3.1.1) | ||
thor (1.3.2) | ||
timeout (0.4.1) | ||
tzinfo (2.0.6) | ||
concurrent-ruby (~> 1.0) | ||
useragent (0.16.10) | ||
webrick (1.8.1) | ||
websocket-driver (0.7.6) | ||
websocket-extensions (>= 0.1.0) | ||
websocket-extensions (0.1.5) | ||
xpath (3.2.0) | ||
nokogiri (~> 1.8) | ||
zeitwerk (2.6.18) | ||
|
||
PLATFORMS | ||
x86_64-linux | ||
|
||
DEPENDENCIES | ||
capybara | ||
database_cleaner | ||
query_diet! | ||
rails (= 7.2.1) | ||
rspec | ||
rspec-rails | ||
sqlite3 (~> 1.7) | ||
|
||
BUNDLED WITH | ||
2.5.15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'rake' | ||
require 'rspec/core/rake_task' | ||
|
||
desc 'Default: Run all specs for a specific rails version.' | ||
task :default => :spec | ||
|
||
desc "Run all specs for a specific rails version" | ||
RSpec::Core::RakeTask.new(:spec) do |t| | ||
t.pattern = defined?(SPEC) ? SPEC : ['../shared/spec/**/*_spec.rb'] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../shared/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
require File.expand_path('../boot', __FILE__) | ||
|
||
require 'rails' | ||
# Pick the frameworks you want: | ||
require 'active_model/railtie' | ||
require 'active_job/railtie' | ||
require 'active_record/railtie' | ||
# require 'active_storage/engine' | ||
require 'action_controller/railtie' | ||
require 'action_mailer/railtie' | ||
# require 'action_mailbox/engine' | ||
# require 'action_text/engine' | ||
require 'action_view/railtie' | ||
# require 'action_cable/engine' | ||
# require 'sprockets/railtie' | ||
require 'rails/test_unit/railtie' | ||
|
||
# If you have a Gemfile, require the gems listed there, including any gems | ||
# you've limited to :test, :development, or :production. | ||
Bundler.require(:default, Rails.env) if defined?(Bundler) | ||
|
||
|
||
module QueryDietSpecApp | ||
class Application < Rails::Application | ||
# Initialize configuration defaults for originally generated Rails version. | ||
config.load_defaults 7.2 | ||
|
||
# Please, add to the `ignore` list any other `lib` subdirectories that do | ||
# not contain `.rb` files, or that should not be reloaded or eager loaded. | ||
# Common ones are `templates`, `generators`, or `middleware`, for example. | ||
config.autoload_lib(ignore: %w(assets tasks)) | ||
|
||
config.encoding = "utf-8" | ||
config.root = File.expand_path('../..', __FILE__) | ||
|
||
# railties.plugins << Rails::Plugin.new(File.expand_path('../../../../..', __FILE__)) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require 'rubygems' | ||
|
||
# Set up gems listed in the Gemfile. | ||
gemfile = File.expand_path('../../Gemfile', __FILE__) | ||
begin | ||
ENV['BUNDLE_GEMFILE'] = gemfile | ||
require 'bundler' | ||
Bundler.setup | ||
rescue Bundler::GemNotFound => e | ||
STDERR.puts e.message | ||
STDERR.puts "Try running `bundle install`." | ||
exit! | ||
end if File.exist?(gemfile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
test: | ||
adapter: sqlite3 | ||
database: db/query_diet_test.db | ||
verbosity: quiet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Load the rails application | ||
require File.expand_path('../application', __FILE__) | ||
|
||
# Initialize the rails application | ||
QueryDietSpecApp::Application.initialize! |
Oops, something went wrong.