Skip to content

Commit 08c9c4c

Browse files
committed
Add dummy Rails 6.0 application for testing purposes
1 parent 3e1249c commit 08c9c4c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+800
-0
lines changed

test/dummy/Gemfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '2.6.3'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7+
gem 'rails', '~> 6.0.3', '>= 6.0.3.3'
8+
# Use Puma as the app server
9+
gem 'puma', '~> 4.1'
10+
# Use SCSS for stylesheets
11+
gem "sass-rails"
12+
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
13+
gem 'webpacker', '~> 4.0'
14+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
15+
gem 'jbuilder', '~> 2.7'
16+
# Use Redis adapter to run Action Cable in production
17+
# gem 'redis', '~> 4.0'
18+
# Use Active Model has_secure_password
19+
# gem 'bcrypt', '~> 3.1.7'
20+
21+
# Use Active Storage variant
22+
# gem 'image_processing', '~> 1.2'
23+
24+
# Reduces boot times through caching; required in config/boot.rb
25+
gem 'bootsnap', '>= 1.4.2', require: false
26+
27+
group :development, :test do
28+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
29+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
30+
end
31+
32+
group :development do
33+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
34+
gem 'web-console', '>= 3.3.0'
35+
gem 'listen', '~> 3.2'
36+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
37+
gem 'spring'
38+
gem 'spring-watcher-listen', '~> 2.0.0'
39+
end
40+
41+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
42+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

test/dummy/Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require_relative 'config/application'
5+
6+
Rails.application.load_tasks
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//= link_tree ../images
2+
//= link_directory ../stylesheets .css

test/dummy/app/assets/images/.keep

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
6+
* vendor/assets/stylesheets directory can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
9+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10+
* files in this directory. Styles in this file should be added after the last require_* statement.
11+
* It is generally better to create a new file per style scope.
12+
*
13+
*= require_tree .
14+
*= require_self
15+
*/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module ApplicationCable
2+
class Channel < ActionCable::Channel::Base
3+
end
4+
end
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module ApplicationCable
2+
class Connection < ActionCable::Connection::Base
3+
end
4+
end
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationController < ActionController::Base
2+
include Pagy::Backend
3+
end

test/dummy/app/controllers/concerns/.keep

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module ApplicationHelper
2+
include Pagy::Frontend
3+
end

0 commit comments

Comments
 (0)