Skip to content

Commit 2813221

Browse files
committed
init
1 parent 593fde0 commit 2813221

Some content is hidden

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

76 files changed

+1194
-0
lines changed

hello_app/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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-journal
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*
16+
/tmp/*
17+
!/log/.keep
18+
!/tmp/.keep
19+
20+
/node_modules
21+
/yarn-error.log
22+
23+
.byebug_history

hello_app/Gemfile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
source 'https://rubygems.org'
2+
3+
git_source(:github) do |repo_name|
4+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
5+
"https://github.com/#{repo_name}.git"
6+
end
7+
8+
9+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
10+
gem 'rails', '~> 5.1.6'
11+
# Use sqlite3 as the database for Active Record
12+
gem 'sqlite3'
13+
# Use Puma as the app server
14+
gem 'puma', '~> 3.7'
15+
# Use SCSS for stylesheets
16+
gem 'sass-rails', '~> 5.0'
17+
# Use Uglifier as compressor for JavaScript assets
18+
gem 'uglifier', '>= 1.3.0'
19+
# See https://github.com/rails/execjs#readme for more supported runtimes
20+
# gem 'therubyracer', platforms: :ruby
21+
22+
# Use CoffeeScript for .coffee assets and views
23+
gem 'coffee-rails', '~> 4.2'
24+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
25+
gem 'turbolinks', '~> 5'
26+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
27+
gem 'jbuilder', '~> 2.5'
28+
# Use Redis adapter to run Action Cable in production
29+
# gem 'redis', '~> 4.0'
30+
# Use ActiveModel has_secure_password
31+
# gem 'bcrypt', '~> 3.1.7'
32+
33+
# Use Capistrano for deployment
34+
# gem 'capistrano-rails', group: :development
35+
36+
group :development, :test do
37+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
38+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
39+
# Adds support for Capybara system testing and selenium driver
40+
gem 'capybara', '~> 2.13'
41+
gem 'selenium-webdriver'
42+
end
43+
44+
group :development do
45+
# Access an IRB console on exception pages or by using <%= 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+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
54+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

hello_app/Gemfile.lock

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (5.1.7)
5+
actionpack (= 5.1.7)
6+
nio4r (~> 2.0)
7+
websocket-driver (~> 0.6.1)
8+
actionmailer (5.1.7)
9+
actionpack (= 5.1.7)
10+
actionview (= 5.1.7)
11+
activejob (= 5.1.7)
12+
mail (~> 2.5, >= 2.5.4)
13+
rails-dom-testing (~> 2.0)
14+
actionpack (5.1.7)
15+
actionview (= 5.1.7)
16+
activesupport (= 5.1.7)
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.1.7)
22+
activesupport (= 5.1.7)
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.1.7)
28+
activesupport (= 5.1.7)
29+
globalid (>= 0.3.6)
30+
activemodel (5.1.7)
31+
activesupport (= 5.1.7)
32+
activerecord (5.1.7)
33+
activemodel (= 5.1.7)
34+
activesupport (= 5.1.7)
35+
arel (~> 8.0)
36+
activesupport (5.1.7)
37+
concurrent-ruby (~> 1.0, >= 1.0.2)
38+
i18n (>= 0.7, < 2)
39+
minitest (~> 5.1)
40+
tzinfo (~> 1.1)
41+
addressable (2.7.0)
42+
public_suffix (>= 2.0.2, < 5.0)
43+
arel (8.0.0)
44+
bindex (0.8.1)
45+
builder (3.2.4)
46+
byebug (11.0.1)
47+
capybara (2.18.0)
48+
addressable
49+
mini_mime (>= 0.1.3)
50+
nokogiri (>= 1.3.3)
51+
rack (>= 1.0.0)
52+
rack-test (>= 0.5.4)
53+
xpath (>= 2.0, < 4.0)
54+
childprocess (3.0.0)
55+
coffee-rails (4.2.2)
56+
coffee-script (>= 2.2.0)
57+
railties (>= 4.0.0)
58+
coffee-script (2.4.1)
59+
coffee-script-source
60+
execjs
61+
coffee-script-source (1.12.2)
62+
concurrent-ruby (1.1.5)
63+
crass (1.0.5)
64+
erubi (1.9.0)
65+
execjs (2.7.0)
66+
ffi (1.11.3)
67+
globalid (0.4.2)
68+
activesupport (>= 4.2.0)
69+
i18n (1.7.0)
70+
concurrent-ruby (~> 1.0)
71+
jbuilder (2.9.1)
72+
activesupport (>= 4.2.0)
73+
listen (3.1.5)
74+
rb-fsevent (~> 0.9, >= 0.9.4)
75+
rb-inotify (~> 0.9, >= 0.9.7)
76+
ruby_dep (~> 1.2)
77+
loofah (2.4.0)
78+
crass (~> 1.0.2)
79+
nokogiri (>= 1.5.9)
80+
mail (2.7.1)
81+
mini_mime (>= 0.1.1)
82+
method_source (0.9.2)
83+
mini_mime (1.0.2)
84+
mini_portile2 (2.4.0)
85+
minitest (5.13.0)
86+
nio4r (2.5.2)
87+
nokogiri (1.10.7)
88+
mini_portile2 (~> 2.4.0)
89+
public_suffix (4.0.1)
90+
puma (3.12.2)
91+
rack (2.0.7)
92+
rack-test (1.1.0)
93+
rack (>= 1.0, < 3)
94+
rails (5.1.7)
95+
actioncable (= 5.1.7)
96+
actionmailer (= 5.1.7)
97+
actionpack (= 5.1.7)
98+
actionview (= 5.1.7)
99+
activejob (= 5.1.7)
100+
activemodel (= 5.1.7)
101+
activerecord (= 5.1.7)
102+
activesupport (= 5.1.7)
103+
bundler (>= 1.3.0)
104+
railties (= 5.1.7)
105+
sprockets-rails (>= 2.0.0)
106+
rails-dom-testing (2.0.3)
107+
activesupport (>= 4.2.0)
108+
nokogiri (>= 1.6)
109+
rails-html-sanitizer (1.3.0)
110+
loofah (~> 2.3)
111+
railties (5.1.7)
112+
actionpack (= 5.1.7)
113+
activesupport (= 5.1.7)
114+
method_source
115+
rake (>= 0.8.7)
116+
thor (>= 0.18.1, < 2.0)
117+
rake (13.0.1)
118+
rb-fsevent (0.10.3)
119+
rb-inotify (0.10.0)
120+
ffi (~> 1.0)
121+
ruby_dep (1.5.0)
122+
rubyzip (2.0.0)
123+
sass (3.7.4)
124+
sass-listen (~> 4.0.0)
125+
sass-listen (4.0.0)
126+
rb-fsevent (~> 0.9, >= 0.9.4)
127+
rb-inotify (~> 0.9, >= 0.9.7)
128+
sass-rails (5.0.7)
129+
railties (>= 4.0.0, < 6)
130+
sass (~> 3.1)
131+
sprockets (>= 2.8, < 4.0)
132+
sprockets-rails (>= 2.0, < 4.0)
133+
tilt (>= 1.1, < 3)
134+
selenium-webdriver (3.142.6)
135+
childprocess (>= 0.5, < 4.0)
136+
rubyzip (>= 1.2.2)
137+
spring (2.1.0)
138+
spring-watcher-listen (2.0.1)
139+
listen (>= 2.7, < 4.0)
140+
spring (>= 1.2, < 3.0)
141+
sprockets (3.7.2)
142+
concurrent-ruby (~> 1.0)
143+
rack (> 1, < 3)
144+
sprockets-rails (3.2.1)
145+
actionpack (>= 4.0)
146+
activesupport (>= 4.0)
147+
sprockets (>= 3.0.0)
148+
sqlite3 (1.4.1)
149+
thor (1.0.0)
150+
thread_safe (0.3.6)
151+
tilt (2.0.10)
152+
turbolinks (5.2.1)
153+
turbolinks-source (~> 5.2)
154+
turbolinks-source (5.2.0)
155+
tzinfo (1.2.5)
156+
thread_safe (~> 0.1)
157+
uglifier (4.2.0)
158+
execjs (>= 0.3.0, < 3)
159+
web-console (3.7.0)
160+
actionview (>= 5.0)
161+
activemodel (>= 5.0)
162+
bindex (>= 0.4.0)
163+
railties (>= 5.0)
164+
websocket-driver (0.6.5)
165+
websocket-extensions (>= 0.1.0)
166+
websocket-extensions (0.1.4)
167+
xpath (3.2.0)
168+
nokogiri (~> 1.8)
169+
170+
PLATFORMS
171+
ruby
172+
173+
DEPENDENCIES
174+
byebug
175+
capybara (~> 2.13)
176+
coffee-rails (~> 4.2)
177+
jbuilder (~> 2.5)
178+
listen (>= 3.0.5, < 3.2)
179+
puma (~> 3.7)
180+
rails (~> 5.1.6)
181+
sass-rails (~> 5.0)
182+
selenium-webdriver
183+
spring
184+
spring-watcher-listen (~> 2.0.0)
185+
sqlite3
186+
turbolinks (~> 5)
187+
tzinfo-data
188+
uglifier (>= 1.3.0)
189+
web-console (>= 3.3.0)
190+
191+
BUNDLED WITH
192+
2.0.2

hello_app/README.md

Lines changed: 24 additions & 0 deletions
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+
* ...

hello_app/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: 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

hello_app/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+
// 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 turbolinks
15+
//= require_tree .
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);

hello_app/app/assets/javascripts/channels/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)