Skip to content

Commit e10a01d

Browse files
committed
new rails
0 parents  commit e10a01d

File tree

95 files changed

+8691
-0
lines changed

Some content is hidden

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

95 files changed

+8691
-0
lines changed

.browserslistrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
defaults

.gitattributes

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
# Mark the yarn lockfile as having been generated.
7+
yarn.lock linguist-generated
8+
9+
# Mark any vendored files as having been vendored.
10+
vendor/* linguist-vendored

.gitignore

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
26+
/public/assets
27+
.byebug_history
28+
29+
# Ignore master key for decrypting credentials and more.
30+
/config/master.key
31+
32+
/public/packs
33+
/public/packs-test
34+
/node_modules
35+
/yarn-error.log
36+
yarn-debug.log*
37+
.yarn-integrity

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.4

Gemfile

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '2.7.4'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
7+
gem 'rails', '~> 6.1.4', '>= 6.1.4.4'
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+
# Use SCSS for stylesheets
13+
gem 'sass-rails', '>= 6'
14+
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
15+
gem 'webpacker', '~> 5.0'
16+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
17+
gem 'turbolinks', '~> 5'
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+
# Use Active Model has_secure_password
23+
# gem 'bcrypt', '~> 3.1.7'
24+
25+
# Reduces boot times through caching; required in config/boot.rb
26+
gem 'bootsnap', '>= 1.4.4', require: false
27+
28+
group :development, :test do
29+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
30+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
31+
end
32+
33+
group :development do
34+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
35+
gem 'web-console', '>= 4.1.0'
36+
# Display performance information such as SQL time and flame graphs for each request in your browser.
37+
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
38+
gem 'rack-mini-profiler', '~> 2.0'
39+
gem 'listen', '~> 3.3'
40+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
41+
gem 'spring'
42+
end
43+
44+
group :test do
45+
# Adds support for Capybara system testing and selenium driver
46+
gem 'capybara', '>= 3.26'
47+
gem 'selenium-webdriver'
48+
# Easy installation and use of web drivers to run system tests with browsers
49+
gem 'webdrivers'
50+
end
51+
52+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
53+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

+230
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (6.1.4.4)
5+
actionpack (= 6.1.4.4)
6+
activesupport (= 6.1.4.4)
7+
nio4r (~> 2.0)
8+
websocket-driver (>= 0.6.1)
9+
actionmailbox (6.1.4.4)
10+
actionpack (= 6.1.4.4)
11+
activejob (= 6.1.4.4)
12+
activerecord (= 6.1.4.4)
13+
activestorage (= 6.1.4.4)
14+
activesupport (= 6.1.4.4)
15+
mail (>= 2.7.1)
16+
actionmailer (6.1.4.4)
17+
actionpack (= 6.1.4.4)
18+
actionview (= 6.1.4.4)
19+
activejob (= 6.1.4.4)
20+
activesupport (= 6.1.4.4)
21+
mail (~> 2.5, >= 2.5.4)
22+
rails-dom-testing (~> 2.0)
23+
actionpack (6.1.4.4)
24+
actionview (= 6.1.4.4)
25+
activesupport (= 6.1.4.4)
26+
rack (~> 2.0, >= 2.0.9)
27+
rack-test (>= 0.6.3)
28+
rails-dom-testing (~> 2.0)
29+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
30+
actiontext (6.1.4.4)
31+
actionpack (= 6.1.4.4)
32+
activerecord (= 6.1.4.4)
33+
activestorage (= 6.1.4.4)
34+
activesupport (= 6.1.4.4)
35+
nokogiri (>= 1.8.5)
36+
actionview (6.1.4.4)
37+
activesupport (= 6.1.4.4)
38+
builder (~> 3.1)
39+
erubi (~> 1.4)
40+
rails-dom-testing (~> 2.0)
41+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
42+
activejob (6.1.4.4)
43+
activesupport (= 6.1.4.4)
44+
globalid (>= 0.3.6)
45+
activemodel (6.1.4.4)
46+
activesupport (= 6.1.4.4)
47+
activerecord (6.1.4.4)
48+
activemodel (= 6.1.4.4)
49+
activesupport (= 6.1.4.4)
50+
activestorage (6.1.4.4)
51+
actionpack (= 6.1.4.4)
52+
activejob (= 6.1.4.4)
53+
activerecord (= 6.1.4.4)
54+
activesupport (= 6.1.4.4)
55+
marcel (~> 1.0.0)
56+
mini_mime (>= 1.1.0)
57+
activesupport (6.1.4.4)
58+
concurrent-ruby (~> 1.0, >= 1.0.2)
59+
i18n (>= 1.6, < 2)
60+
minitest (>= 5.1)
61+
tzinfo (~> 2.0)
62+
zeitwerk (~> 2.3)
63+
addressable (2.8.0)
64+
public_suffix (>= 2.0.2, < 5.0)
65+
bindex (0.8.1)
66+
bootsnap (1.9.4)
67+
msgpack (~> 1.0)
68+
builder (3.2.4)
69+
byebug (11.1.3)
70+
capybara (3.36.0)
71+
addressable
72+
matrix
73+
mini_mime (>= 0.1.3)
74+
nokogiri (~> 1.8)
75+
rack (>= 1.6.0)
76+
rack-test (>= 0.6.3)
77+
regexp_parser (>= 1.5, < 3.0)
78+
xpath (~> 3.2)
79+
childprocess (4.1.0)
80+
concurrent-ruby (1.1.9)
81+
crass (1.0.6)
82+
erubi (1.10.0)
83+
ffi (1.15.5)
84+
globalid (1.0.0)
85+
activesupport (>= 5.0)
86+
i18n (1.8.11)
87+
concurrent-ruby (~> 1.0)
88+
jbuilder (2.11.5)
89+
actionview (>= 5.0.0)
90+
activesupport (>= 5.0.0)
91+
listen (3.7.0)
92+
rb-fsevent (~> 0.10, >= 0.10.3)
93+
rb-inotify (~> 0.9, >= 0.9.10)
94+
loofah (2.13.0)
95+
crass (~> 1.0.2)
96+
nokogiri (>= 1.5.9)
97+
mail (2.7.1)
98+
mini_mime (>= 0.1.1)
99+
marcel (1.0.2)
100+
matrix (0.4.2)
101+
method_source (1.0.0)
102+
mini_mime (1.1.2)
103+
minitest (5.15.0)
104+
msgpack (1.4.2)
105+
nio4r (2.5.8)
106+
nokogiri (1.13.0-x86_64-linux)
107+
racc (~> 1.4)
108+
public_suffix (4.0.6)
109+
puma (5.5.2)
110+
nio4r (~> 2.0)
111+
racc (1.6.0)
112+
rack (2.2.3)
113+
rack-mini-profiler (2.3.3)
114+
rack (>= 1.2.0)
115+
rack-proxy (0.7.2)
116+
rack
117+
rack-test (1.1.0)
118+
rack (>= 1.0, < 3)
119+
rails (6.1.4.4)
120+
actioncable (= 6.1.4.4)
121+
actionmailbox (= 6.1.4.4)
122+
actionmailer (= 6.1.4.4)
123+
actionpack (= 6.1.4.4)
124+
actiontext (= 6.1.4.4)
125+
actionview (= 6.1.4.4)
126+
activejob (= 6.1.4.4)
127+
activemodel (= 6.1.4.4)
128+
activerecord (= 6.1.4.4)
129+
activestorage (= 6.1.4.4)
130+
activesupport (= 6.1.4.4)
131+
bundler (>= 1.15.0)
132+
railties (= 6.1.4.4)
133+
sprockets-rails (>= 2.0.0)
134+
rails-dom-testing (2.0.3)
135+
activesupport (>= 4.2.0)
136+
nokogiri (>= 1.6)
137+
rails-html-sanitizer (1.4.2)
138+
loofah (~> 2.3)
139+
railties (6.1.4.4)
140+
actionpack (= 6.1.4.4)
141+
activesupport (= 6.1.4.4)
142+
method_source
143+
rake (>= 0.13)
144+
thor (~> 1.0)
145+
rake (13.0.6)
146+
rb-fsevent (0.11.0)
147+
rb-inotify (0.10.1)
148+
ffi (~> 1.0)
149+
regexp_parser (2.2.0)
150+
rexml (3.2.5)
151+
rubyzip (2.3.2)
152+
sass-rails (6.0.0)
153+
sassc-rails (~> 2.1, >= 2.1.1)
154+
sassc (2.4.0)
155+
ffi (~> 1.9)
156+
sassc-rails (2.1.2)
157+
railties (>= 4.0.0)
158+
sassc (>= 2.0)
159+
sprockets (> 3.0)
160+
sprockets-rails
161+
tilt
162+
selenium-webdriver (4.1.0)
163+
childprocess (>= 0.5, < 5.0)
164+
rexml (~> 3.2, >= 3.2.5)
165+
rubyzip (>= 1.2.2)
166+
semantic_range (3.0.0)
167+
spring (4.0.0)
168+
sprockets (4.0.2)
169+
concurrent-ruby (~> 1.0)
170+
rack (> 1, < 3)
171+
sprockets-rails (3.4.2)
172+
actionpack (>= 5.2)
173+
activesupport (>= 5.2)
174+
sprockets (>= 3.0.0)
175+
sqlite3 (1.4.2)
176+
thor (1.2.1)
177+
tilt (2.0.10)
178+
turbolinks (5.2.1)
179+
turbolinks-source (~> 5.2)
180+
turbolinks-source (5.2.0)
181+
tzinfo (2.0.4)
182+
concurrent-ruby (~> 1.0)
183+
web-console (4.2.0)
184+
actionview (>= 6.0.0)
185+
activemodel (>= 6.0.0)
186+
bindex (>= 0.4.0)
187+
railties (>= 6.0.0)
188+
webdrivers (5.0.0)
189+
nokogiri (~> 1.6)
190+
rubyzip (>= 1.3.0)
191+
selenium-webdriver (~> 4.0)
192+
webpacker (5.4.3)
193+
activesupport (>= 5.2)
194+
rack-proxy (>= 0.6.1)
195+
railties (>= 5.2)
196+
semantic_range (>= 2.3.0)
197+
websocket-driver (0.7.5)
198+
websocket-extensions (>= 0.1.0)
199+
websocket-extensions (0.1.5)
200+
xpath (3.2.0)
201+
nokogiri (~> 1.8)
202+
zeitwerk (2.5.3)
203+
204+
PLATFORMS
205+
x86_64-linux
206+
207+
DEPENDENCIES
208+
bootsnap (>= 1.4.4)
209+
byebug
210+
capybara (>= 3.26)
211+
jbuilder (~> 2.7)
212+
listen (~> 3.3)
213+
puma (~> 5.0)
214+
rack-mini-profiler (~> 2.0)
215+
rails (~> 6.1.4, >= 6.1.4.4)
216+
sass-rails (>= 6)
217+
selenium-webdriver
218+
spring
219+
sqlite3 (~> 1.4)
220+
turbolinks (~> 5)
221+
tzinfo-data
222+
web-console (>= 4.1.0)
223+
webdrivers
224+
webpacker (~> 5.0)
225+
226+
RUBY VERSION
227+
ruby 2.7.4p191
228+
229+
BUNDLED WITH
230+
2.3.4

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+
* ...

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

app/assets/config/manifest.js

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

app/assets/images/.keep

Whitespace-only changes.
+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 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+
*/

app/assets/stylesheets/questions.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
background-color: gray;
3+
}
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

0 commit comments

Comments
 (0)