Skip to content

Commit 7364e5e

Browse files
committed
Add new rails application
1 parent 9524e1c commit 7364e5e

Some content is hidden

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

80 files changed

+1210
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ typings/
5959

6060
# next.js build output
6161
.next
62+
63+
# Ignore master key for decrypting credentials and more.
64+
/config/master.key

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-2.5.1

Gemfile

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '2.5.1'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7+
gem 'rails', '~> 5.2.1'
8+
# Use sqlite3 as the database for Active Record
9+
gem 'sqlite3'
10+
# Use Puma as the app server
11+
gem 'puma', '~> 3.11'
12+
# Use SCSS for stylesheets
13+
gem 'sass-rails', '~> 5.0'
14+
# Use Uglifier as compressor for JavaScript assets
15+
gem 'uglifier', '>= 1.3.0'
16+
# See https://github.com/rails/execjs#readme for more supported runtimes
17+
# gem 'mini_racer', platforms: :ruby
18+
19+
# Use CoffeeScript for .coffee assets and views
20+
gem 'coffee-rails', '~> 4.2'
21+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
22+
gem 'turbolinks', '~> 5'
23+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
24+
gem 'jbuilder', '~> 2.5'
25+
# Use Redis adapter to run Action Cable in production
26+
# gem 'redis', '~> 4.0'
27+
# Use ActiveModel has_secure_password
28+
# gem 'bcrypt', '~> 3.1.7'
29+
30+
# Use ActiveStorage variant
31+
# gem 'mini_magick', '~> 4.8'
32+
33+
# Use Capistrano for deployment
34+
# gem 'capistrano-rails', group: :development
35+
36+
# Reduces boot times through caching; required in config/boot.rb
37+
gem 'bootsnap', '>= 1.1.0', require: false
38+
39+
group :development, :test do
40+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
41+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
42+
end
43+
44+
group :development do
45+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
46+
gem 'web-console', '>= 3.3.0'
47+
gem 'listen', '>= 3.0.5', '< 3.2'
48+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
49+
gem 'spring'
50+
gem 'spring-watcher-listen', '~> 2.0.0'
51+
end
52+
53+
group :test do
54+
# Adds support for Capybara system testing and selenium driver
55+
gem 'capybara', '>= 2.15'
56+
gem 'selenium-webdriver'
57+
# Easy installation and use of chromedriver to run system tests with Chrome
58+
gem 'chromedriver-helper'
59+
end
60+
61+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
62+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (5.2.1)
5+
actionpack (= 5.2.1)
6+
nio4r (~> 2.0)
7+
websocket-driver (>= 0.6.1)
8+
actionmailer (5.2.1)
9+
actionpack (= 5.2.1)
10+
actionview (= 5.2.1)
11+
activejob (= 5.2.1)
12+
mail (~> 2.5, >= 2.5.4)
13+
rails-dom-testing (~> 2.0)
14+
actionpack (5.2.1)
15+
actionview (= 5.2.1)
16+
activesupport (= 5.2.1)
17+
rack (~> 2.0)
18+
rack-test (>= 0.6.3)
19+
rails-dom-testing (~> 2.0)
20+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
21+
actionview (5.2.1)
22+
activesupport (= 5.2.1)
23+
builder (~> 3.1)
24+
erubi (~> 1.4)
25+
rails-dom-testing (~> 2.0)
26+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
27+
activejob (5.2.1)
28+
activesupport (= 5.2.1)
29+
globalid (>= 0.3.6)
30+
activemodel (5.2.1)
31+
activesupport (= 5.2.1)
32+
activerecord (5.2.1)
33+
activemodel (= 5.2.1)
34+
activesupport (= 5.2.1)
35+
arel (>= 9.0)
36+
activestorage (5.2.1)
37+
actionpack (= 5.2.1)
38+
activerecord (= 5.2.1)
39+
marcel (~> 0.3.1)
40+
activesupport (5.2.1)
41+
concurrent-ruby (~> 1.0, >= 1.0.2)
42+
i18n (>= 0.7, < 2)
43+
minitest (~> 5.1)
44+
tzinfo (~> 1.1)
45+
addressable (2.5.2)
46+
public_suffix (>= 2.0.2, < 4.0)
47+
archive-zip (0.11.0)
48+
io-like (~> 0.3.0)
49+
arel (9.0.0)
50+
bindex (0.5.0)
51+
bootsnap (1.3.2)
52+
msgpack (~> 1.0)
53+
builder (3.2.3)
54+
byebug (10.0.2)
55+
capybara (3.10.1)
56+
addressable
57+
mini_mime (>= 0.1.3)
58+
nokogiri (~> 1.8)
59+
rack (>= 1.6.0)
60+
rack-test (>= 0.6.3)
61+
regexp_parser (~> 1.2)
62+
xpath (~> 3.2)
63+
childprocess (0.9.0)
64+
ffi (~> 1.0, >= 1.0.11)
65+
chromedriver-helper (2.1.0)
66+
archive-zip (~> 0.10)
67+
nokogiri (~> 1.8)
68+
coffee-rails (4.2.2)
69+
coffee-script (>= 2.2.0)
70+
railties (>= 4.0.0)
71+
coffee-script (2.4.1)
72+
coffee-script-source
73+
execjs
74+
coffee-script-source (1.12.2)
75+
concurrent-ruby (1.1.3)
76+
crass (1.0.4)
77+
erubi (1.7.1)
78+
execjs (2.7.0)
79+
ffi (1.9.25)
80+
globalid (0.4.1)
81+
activesupport (>= 4.2.0)
82+
i18n (1.1.1)
83+
concurrent-ruby (~> 1.0)
84+
io-like (0.3.0)
85+
jbuilder (2.8.0)
86+
activesupport (>= 4.2.0)
87+
multi_json (>= 1.2)
88+
listen (3.1.5)
89+
rb-fsevent (~> 0.9, >= 0.9.4)
90+
rb-inotify (~> 0.9, >= 0.9.7)
91+
ruby_dep (~> 1.2)
92+
loofah (2.2.3)
93+
crass (~> 1.0.2)
94+
nokogiri (>= 1.5.9)
95+
mail (2.7.1)
96+
mini_mime (>= 0.1.1)
97+
marcel (0.3.3)
98+
mimemagic (~> 0.3.2)
99+
method_source (0.9.1)
100+
mimemagic (0.3.2)
101+
mini_mime (1.0.1)
102+
mini_portile2 (2.3.0)
103+
minitest (5.11.3)
104+
msgpack (1.2.4)
105+
multi_json (1.13.1)
106+
nio4r (2.3.1)
107+
nokogiri (1.8.5)
108+
mini_portile2 (~> 2.3.0)
109+
public_suffix (3.0.3)
110+
puma (3.12.0)
111+
rack (2.0.6)
112+
rack-test (1.1.0)
113+
rack (>= 1.0, < 3)
114+
rails (5.2.1)
115+
actioncable (= 5.2.1)
116+
actionmailer (= 5.2.1)
117+
actionpack (= 5.2.1)
118+
actionview (= 5.2.1)
119+
activejob (= 5.2.1)
120+
activemodel (= 5.2.1)
121+
activerecord (= 5.2.1)
122+
activestorage (= 5.2.1)
123+
activesupport (= 5.2.1)
124+
bundler (>= 1.3.0)
125+
railties (= 5.2.1)
126+
sprockets-rails (>= 2.0.0)
127+
rails-dom-testing (2.0.3)
128+
activesupport (>= 4.2.0)
129+
nokogiri (>= 1.6)
130+
rails-html-sanitizer (1.0.4)
131+
loofah (~> 2.2, >= 2.2.2)
132+
railties (5.2.1)
133+
actionpack (= 5.2.1)
134+
activesupport (= 5.2.1)
135+
method_source
136+
rake (>= 0.8.7)
137+
thor (>= 0.19.0, < 2.0)
138+
rake (12.3.1)
139+
rb-fsevent (0.10.3)
140+
rb-inotify (0.9.10)
141+
ffi (>= 0.5.0, < 2)
142+
regexp_parser (1.2.0)
143+
ruby_dep (1.5.0)
144+
rubyzip (1.2.2)
145+
sass (3.7.2)
146+
sass-listen (~> 4.0.0)
147+
sass-listen (4.0.0)
148+
rb-fsevent (~> 0.9, >= 0.9.4)
149+
rb-inotify (~> 0.9, >= 0.9.7)
150+
sass-rails (5.0.7)
151+
railties (>= 4.0.0, < 6)
152+
sass (~> 3.1)
153+
sprockets (>= 2.8, < 4.0)
154+
sprockets-rails (>= 2.0, < 4.0)
155+
tilt (>= 1.1, < 3)
156+
selenium-webdriver (3.141.0)
157+
childprocess (~> 0.5)
158+
rubyzip (~> 1.2, >= 1.2.2)
159+
spring (2.0.2)
160+
activesupport (>= 4.2)
161+
spring-watcher-listen (2.0.1)
162+
listen (>= 2.7, < 4.0)
163+
spring (>= 1.2, < 3.0)
164+
sprockets (3.7.2)
165+
concurrent-ruby (~> 1.0)
166+
rack (> 1, < 3)
167+
sprockets-rails (3.2.1)
168+
actionpack (>= 4.0)
169+
activesupport (>= 4.0)
170+
sprockets (>= 3.0.0)
171+
sqlite3 (1.3.13)
172+
thor (0.20.0)
173+
thread_safe (0.3.6)
174+
tilt (2.0.8)
175+
turbolinks (5.2.0)
176+
turbolinks-source (~> 5.2)
177+
turbolinks-source (5.2.0)
178+
tzinfo (1.2.5)
179+
thread_safe (~> 0.1)
180+
uglifier (4.1.19)
181+
execjs (>= 0.3.0, < 3)
182+
web-console (3.7.0)
183+
actionview (>= 5.0)
184+
activemodel (>= 5.0)
185+
bindex (>= 0.4.0)
186+
railties (>= 5.0)
187+
websocket-driver (0.7.0)
188+
websocket-extensions (>= 0.1.0)
189+
websocket-extensions (0.1.3)
190+
xpath (3.2.0)
191+
nokogiri (~> 1.8)
192+
193+
PLATFORMS
194+
ruby
195+
196+
DEPENDENCIES
197+
bootsnap (>= 1.1.0)
198+
byebug
199+
capybara (>= 2.15)
200+
chromedriver-helper
201+
coffee-rails (~> 4.2)
202+
jbuilder (~> 2.5)
203+
listen (>= 3.0.5, < 3.2)
204+
puma (~> 3.11)
205+
rails (~> 5.2.1)
206+
sass-rails (~> 5.0)
207+
selenium-webdriver
208+
spring
209+
spring-watcher-listen (~> 2.0.0)
210+
sqlite3
211+
turbolinks (~> 5)
212+
tzinfo-data
213+
uglifier (>= 1.3.0)
214+
web-console (>= 3.3.0)
215+
216+
RUBY VERSION
217+
ruby 2.5.1p57
218+
219+
BUNDLED WITH
220+
1.16.5

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

app/assets/config/manifest.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//= link_tree ../images
2+
//= link_directory ../javascripts .js
3+
//= link_directory ../stylesheets .css

app/assets/images/.keep

Whitespace-only changes.

app/assets/javascripts/application.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
5+
// vendor/assets/javascripts directory can be referenced here using a relative path.
6+
//
7+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
9+
//
10+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11+
// about supported directives.
12+
//
13+
//= require rails-ujs
14+
//= require activestorage
15+
//= require turbolinks
16+
//= require_tree .

app/assets/javascripts/cable.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Action Cable provides the framework to deal with WebSockets in Rails.
2+
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
3+
//
4+
//= require action_cable
5+
//= require_self
6+
//= require_tree ./channels
7+
8+
(function() {
9+
this.App || (this.App = {});
10+
11+
App.cable = ActionCable.createConsumer();
12+
13+
}).call(this);

app/assets/javascripts/channels/.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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class ApplicationController < ActionController::Base
2+
end

app/controllers/concerns/.keep

Whitespace-only changes.

app/helpers/application_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module ApplicationHelper
2+
end

app/jobs/application_job.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class ApplicationJob < ActiveJob::Base
2+
end

app/mailers/application_mailer.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class ApplicationMailer < ActionMailer::Base
2+
default from: '[email protected]'
3+
layout 'mailer'
4+
end

app/models/application_record.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationRecord < ActiveRecord::Base
2+
self.abstract_class = true
3+
end

app/models/concerns/.keep

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Ffn</title>
5+
<%= csrf_meta_tags %>
6+
<%= csp_meta_tag %>
7+
8+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
9+
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
10+
</head>
11+
12+
<body>
13+
<%= yield %>
14+
</body>
15+
</html>

0 commit comments

Comments
 (0)