Skip to content

Commit eb3cf70

Browse files
committed
Initial Rails edge install
1 parent 8c1f236 commit eb3cf70

Some content is hidden

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

78 files changed

+1374
-0
lines changed

Diff for: .gitattributes

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See https://git-scm.com/docs/gitattributes for more about git attribute files.
2+
3+
# Mark the database schema as having been generated.
4+
db/schema.rb linguist-generated
5+
6+
7+
# Mark any vendored files as having been vendored.
8+
vendor/* linguist-vendored

Diff for: .gitignore

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore the default SQLite database.
11+
/db/*.sqlite3
12+
/db/*.sqlite3-*
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*
16+
/tmp/*
17+
!/log/.keep
18+
!/tmp/.keep
19+
20+
# Ignore pidfiles, but keep the directory.
21+
/tmp/pids/*
22+
!/tmp/pids/
23+
!/tmp/pids/.keep
24+
25+
# Ignore uploaded files in development.
26+
/storage/*
27+
!/storage/.keep
28+
29+
/public/assets
30+
.byebug_history
31+
32+
# Ignore master key for decrypting credentials and more.
33+
/config/master.key

Diff for: .ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-3.0.2

Diff for: Gemfile

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
source "https://rubygems.org"
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby "3.0.2"
5+
6+
gem 'rails', github: 'rails/rails'
7+
8+
# Use sqlite3 as the database for Active Record
9+
gem "sqlite3", "~> 1.4"
10+
# Use Puma as the app server
11+
gem "puma", "~> 5.0"
12+
# Manage modern JavaScript using ESM without transpiling or bundling
13+
gem "importmap-rails", ">= 0.3.4"
14+
# Hotwire's SPA-like page accelerator. Read more: https://turbo.hotwired.dev
15+
gem "turbo-rails", ">= 0.7.4"
16+
# Hotwire's modest JavaScript framework for the HTML you already have. Read more: https://stimulus.hotwired.dev
17+
gem "stimulus-rails", ">= 0.3.9"
18+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
19+
gem "jbuilder", "~> 2.7"
20+
# Use Redis adapter to run Action Cable in production
21+
# gem "redis", "~> 4.0"
22+
23+
# Use Sass to process CSS
24+
# gem "sassc-rails", "~> 2.1"
25+
26+
# Use Tailwind CSS. See: https://github.com/rails/tailwindcss-rails
27+
# gem "tailwindcss-rails", "~> 0.4.3"
28+
29+
# Use Active Model has_secure_password
30+
# gem "bcrypt", "~> 3.1.7"
31+
32+
# Use Active Storage variant
33+
# gem "image_processing", "~> 1.2"
34+
35+
group :development, :test do
36+
# Call "byebug" anywhere in the code to stop execution and get a debugger console
37+
gem "byebug", platforms: [:mri, :mingw, :x64_mingw]
38+
end
39+
40+
group :development do
41+
# Access an interactive console on exception pages or by calling "console" anywhere in the code.
42+
gem "web-console", github: "rails/web-console"
43+
# Display speed badge on every html page with SQL times and flame graphs.
44+
# Note: Interferes with etag cache testing. Can be configured to work on production: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
45+
# gem "rack-mini-profiler", "~> 2.0"
46+
# Speed up rails commands in dev on slow machines / big apps. See: https://github.com/rails/spring
47+
# gem "spring"
48+
end
49+
50+
group :test do
51+
# Adds support for Capybara system testing and selenium driver
52+
gem "capybara", ">= 3.26"
53+
gem "selenium-webdriver"
54+
# Easy installation and use of web drivers to run system tests with browsers
55+
gem "webdrivers"
56+
end
57+
58+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
59+
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Diff for: Gemfile.lock

+202
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
GIT
2+
remote: https://github.com/rails/rails.git
3+
revision: 0a4410dace9a29ab0aa480cf55fda6ce9ea80480
4+
specs:
5+
actioncable (7.0.0.alpha)
6+
actionpack (= 7.0.0.alpha)
7+
activesupport (= 7.0.0.alpha)
8+
nio4r (~> 2.0)
9+
websocket-driver (>= 0.6.1)
10+
actionmailbox (7.0.0.alpha)
11+
actionpack (= 7.0.0.alpha)
12+
activejob (= 7.0.0.alpha)
13+
activerecord (= 7.0.0.alpha)
14+
activestorage (= 7.0.0.alpha)
15+
activesupport (= 7.0.0.alpha)
16+
mail (>= 2.7.1)
17+
actionmailer (7.0.0.alpha)
18+
actionpack (= 7.0.0.alpha)
19+
actionview (= 7.0.0.alpha)
20+
activejob (= 7.0.0.alpha)
21+
activesupport (= 7.0.0.alpha)
22+
mail (~> 2.5, >= 2.5.4)
23+
rails-dom-testing (~> 2.0)
24+
actionpack (7.0.0.alpha)
25+
actionview (= 7.0.0.alpha)
26+
activesupport (= 7.0.0.alpha)
27+
rack (~> 2.0, >= 2.2.0)
28+
rack-test (>= 0.6.3)
29+
rails-dom-testing (~> 2.0)
30+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
31+
actiontext (7.0.0.alpha)
32+
actionpack (= 7.0.0.alpha)
33+
activerecord (= 7.0.0.alpha)
34+
activestorage (= 7.0.0.alpha)
35+
activesupport (= 7.0.0.alpha)
36+
nokogiri (>= 1.8.5)
37+
actionview (7.0.0.alpha)
38+
activesupport (= 7.0.0.alpha)
39+
builder (~> 3.1)
40+
erubi (~> 1.4)
41+
rails-dom-testing (~> 2.0)
42+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
43+
activejob (7.0.0.alpha)
44+
activesupport (= 7.0.0.alpha)
45+
globalid (>= 0.3.6)
46+
activemodel (7.0.0.alpha)
47+
activesupport (= 7.0.0.alpha)
48+
activerecord (7.0.0.alpha)
49+
activemodel (= 7.0.0.alpha)
50+
activesupport (= 7.0.0.alpha)
51+
activestorage (7.0.0.alpha)
52+
actionpack (= 7.0.0.alpha)
53+
activejob (= 7.0.0.alpha)
54+
activerecord (= 7.0.0.alpha)
55+
activesupport (= 7.0.0.alpha)
56+
marcel (~> 1.0.0)
57+
mini_mime (>= 1.1.0)
58+
activesupport (7.0.0.alpha)
59+
concurrent-ruby (~> 1.0, >= 1.0.2)
60+
i18n (>= 1.6, < 2)
61+
minitest (>= 5.1)
62+
tzinfo (~> 2.0)
63+
zeitwerk (~> 2.5.0.beta2)
64+
rails (7.0.0.alpha)
65+
actioncable (= 7.0.0.alpha)
66+
actionmailbox (= 7.0.0.alpha)
67+
actionmailer (= 7.0.0.alpha)
68+
actionpack (= 7.0.0.alpha)
69+
actiontext (= 7.0.0.alpha)
70+
actionview (= 7.0.0.alpha)
71+
activejob (= 7.0.0.alpha)
72+
activemodel (= 7.0.0.alpha)
73+
activerecord (= 7.0.0.alpha)
74+
activestorage (= 7.0.0.alpha)
75+
activesupport (= 7.0.0.alpha)
76+
bundler (>= 1.15.0)
77+
railties (= 7.0.0.alpha)
78+
sprockets-rails (>= 2.0.0)
79+
railties (7.0.0.alpha)
80+
actionpack (= 7.0.0.alpha)
81+
activesupport (= 7.0.0.alpha)
82+
method_source
83+
rake (>= 0.13)
84+
thor (~> 1.0)
85+
86+
GIT
87+
remote: https://github.com/rails/web-console.git
88+
revision: 91eed5a56ca20d34f176ddec2acfedece7eff8e1
89+
specs:
90+
web-console (4.1.0)
91+
actionview (>= 6.0.0)
92+
activemodel (>= 6.0.0)
93+
bindex (>= 0.4.0)
94+
railties (>= 6.0.0)
95+
96+
GEM
97+
remote: https://rubygems.org/
98+
specs:
99+
addressable (2.8.0)
100+
public_suffix (>= 2.0.2, < 5.0)
101+
bindex (0.8.1)
102+
builder (3.2.4)
103+
byebug (11.1.3)
104+
capybara (3.35.3)
105+
addressable
106+
mini_mime (>= 0.1.3)
107+
nokogiri (~> 1.8)
108+
rack (>= 1.6.0)
109+
rack-test (>= 0.6.3)
110+
regexp_parser (>= 1.5, < 3.0)
111+
xpath (~> 3.2)
112+
childprocess (3.0.0)
113+
concurrent-ruby (1.1.9)
114+
crass (1.0.6)
115+
erubi (1.10.0)
116+
globalid (0.5.2)
117+
activesupport (>= 5.0)
118+
i18n (1.8.10)
119+
concurrent-ruby (~> 1.0)
120+
importmap-rails (0.3.4)
121+
rails (>= 6.0.0)
122+
jbuilder (2.11.2)
123+
activesupport (>= 5.0.0)
124+
loofah (2.12.0)
125+
crass (~> 1.0.2)
126+
nokogiri (>= 1.5.9)
127+
mail (2.7.1)
128+
mini_mime (>= 0.1.1)
129+
marcel (1.0.1)
130+
method_source (1.0.0)
131+
mini_mime (1.1.1)
132+
minitest (5.14.4)
133+
nio4r (2.5.8)
134+
nokogiri (1.12.3-x86_64-darwin)
135+
racc (~> 1.4)
136+
public_suffix (4.0.6)
137+
puma (5.4.0)
138+
nio4r (~> 2.0)
139+
racc (1.5.2)
140+
rack (2.2.3)
141+
rack-test (1.1.0)
142+
rack (>= 1.0, < 3)
143+
rails-dom-testing (2.0.3)
144+
activesupport (>= 4.2.0)
145+
nokogiri (>= 1.6)
146+
rails-html-sanitizer (1.4.2)
147+
loofah (~> 2.3)
148+
rake (13.0.6)
149+
regexp_parser (2.1.1)
150+
rubyzip (2.3.2)
151+
selenium-webdriver (3.142.7)
152+
childprocess (>= 0.5, < 4.0)
153+
rubyzip (>= 1.2.2)
154+
sprockets (4.0.2)
155+
concurrent-ruby (~> 1.0)
156+
rack (> 1, < 3)
157+
sprockets-rails (3.2.2)
158+
actionpack (>= 4.0)
159+
activesupport (>= 4.0)
160+
sprockets (>= 3.0.0)
161+
sqlite3 (1.4.2)
162+
stimulus-rails (0.3.9)
163+
rails (>= 6.0.0)
164+
thor (1.1.0)
165+
turbo-rails (0.7.7)
166+
rails (>= 6.0.0)
167+
tzinfo (2.0.4)
168+
concurrent-ruby (~> 1.0)
169+
webdrivers (4.6.1)
170+
nokogiri (~> 1.6)
171+
rubyzip (>= 1.3.0)
172+
selenium-webdriver (>= 3.0, < 4.0)
173+
websocket-driver (0.7.5)
174+
websocket-extensions (>= 0.1.0)
175+
websocket-extensions (0.1.5)
176+
xpath (3.2.0)
177+
nokogiri (~> 1.8)
178+
zeitwerk (2.5.0.beta2)
179+
180+
PLATFORMS
181+
x86_64-darwin-19
182+
183+
DEPENDENCIES
184+
byebug
185+
capybara (>= 3.26)
186+
importmap-rails (>= 0.3.4)
187+
jbuilder (~> 2.7)
188+
puma (~> 5.0)
189+
rails!
190+
selenium-webdriver
191+
sqlite3 (~> 1.4)
192+
stimulus-rails (>= 0.3.9)
193+
turbo-rails (>= 0.7.4)
194+
tzinfo-data
195+
web-console!
196+
webdrivers
197+
198+
RUBY VERSION
199+
ruby 3.0.2p107
200+
201+
BUNDLED WITH
202+
2.2.22

Diff for: README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# README
2+
3+
This README would normally document whatever steps are necessary to get the
4+
application up and running.
5+
6+
Things you may want to cover:
7+
8+
* Ruby version
9+
10+
* System dependencies
11+
12+
* Configuration
13+
14+
* Database creation
15+
16+
* Database initialization
17+
18+
* How to run the test suite
19+
20+
* Services (job queues, cache servers, search engines, etc.)
21+
22+
* Deployment instructions
23+
24+
* ...

Diff for: Rakefile

+6
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

Diff for: app/assets/config/manifest.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//= link_tree ../images
2+
//= link_directory ../stylesheets .css
3+
//= link_tree ../../javascript .js

Diff for: app/assets/images/.keep

Whitespace-only changes.

Diff for: app/assets/stylesheets/application.css

+15
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, if configured) 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
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+
*/

Diff for: app/channels/application_cable/channel.rb

+4
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

Diff for: app/channels/application_cable/connection.rb

+4
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

Diff for: app/controllers/application_controller.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class ApplicationController < ActionController::Base
2+
end

Diff for: app/controllers/concerns/.keep

Whitespace-only changes.

Diff for: app/helpers/application_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module ApplicationHelper
2+
end

Diff for: app/javascript/application.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Configure your import map in config/importmap.rb
2+
3+
// import "@rails/actioncable"
4+
// import "@rails/activestorage"
5+
import "@hotwired/turbo-rails"
6+
7+
import "@hotwired/stimulus-importmap-autoloader"

Diff for: app/javascript/controllers/hello_controller.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Controller } from "@hotwired/stimulus"
2+
3+
export default class extends Controller {
4+
connect() {
5+
this.element.textContent = "Hello World!"
6+
}
7+
}

Diff for: app/jobs/application_job.rb

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class ApplicationJob < ActiveJob::Base
2+
# Automatically retry jobs that encountered a deadlock
3+
# retry_on ActiveRecord::Deadlocked
4+
5+
# Most jobs are safe to ignore if the underlying records are no longer available
6+
# discard_on ActiveJob::DeserializationError
7+
end

0 commit comments

Comments
 (0)