Skip to content

Commit d364909

Browse files
committed
setup basic gems needed for the quiz app
0 parents  commit d364909

Some content is hidden

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

84 files changed

+2040
-0
lines changed

.env

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export DB_UNAME="maynardcabalitan"
2+
export DB_PASS=""

.gitignore

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

.rspec

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--require spec_helper

Gemfile

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) do |repo_name|
3+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4+
"https://github.com/#{repo_name}.git"
5+
end
6+
7+
gem 'rails', '~> 5.1.6'
8+
gem 'puma', '~> 3.7'
9+
gem 'sass-rails', '~> 5.0'
10+
gem 'uglifier', '>= 1.3.0'
11+
gem 'coffee-rails', '~> 4.2'
12+
gem 'turbolinks', '~> 5'
13+
gem 'jbuilder', '~> 2.5'
14+
15+
#additional gems
16+
gem 'haml', '~> 5.0'
17+
gem 'bootstrap-sass', '~> 3.3'
18+
gem 'sass-rails', '~> 5.0'
19+
gem 'pg'
20+
gem 'dotenv-rails'
21+
gem 'cocoon'
22+
gem 'simple_form'
23+
24+
group :development, :test do
25+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
26+
gem 'capybara', '~> 2.13'
27+
gem 'rspec-rails'
28+
gem 'selenium-webdriver'
29+
end
30+
31+
group :development do
32+
gem 'web-console', '>= 3.3.0'
33+
gem 'listen', '>= 3.0.5', '< 3.2'
34+
gem 'spring'
35+
gem 'spring-watcher-listen', '~> 2.0.0'
36+
end
37+
38+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

+237
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (5.1.6)
5+
actionpack (= 5.1.6)
6+
nio4r (~> 2.0)
7+
websocket-driver (~> 0.6.1)
8+
actionmailer (5.1.6)
9+
actionpack (= 5.1.6)
10+
actionview (= 5.1.6)
11+
activejob (= 5.1.6)
12+
mail (~> 2.5, >= 2.5.4)
13+
rails-dom-testing (~> 2.0)
14+
actionpack (5.1.6)
15+
actionview (= 5.1.6)
16+
activesupport (= 5.1.6)
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.6)
22+
activesupport (= 5.1.6)
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.6)
28+
activesupport (= 5.1.6)
29+
globalid (>= 0.3.6)
30+
activemodel (5.1.6)
31+
activesupport (= 5.1.6)
32+
activerecord (5.1.6)
33+
activemodel (= 5.1.6)
34+
activesupport (= 5.1.6)
35+
arel (~> 8.0)
36+
activesupport (5.1.6)
37+
concurrent-ruby (~> 1.0, >= 1.0.2)
38+
i18n (>= 0.7, < 2)
39+
minitest (~> 5.1)
40+
tzinfo (~> 1.1)
41+
addressable (2.5.2)
42+
public_suffix (>= 2.0.2, < 4.0)
43+
arel (8.0.0)
44+
autoprefixer-rails (8.1.0.1)
45+
execjs
46+
bindex (0.5.0)
47+
bootstrap-sass (3.3.7)
48+
autoprefixer-rails (>= 5.2.1)
49+
sass (>= 3.3.4)
50+
builder (3.2.3)
51+
byebug (10.0.2)
52+
capybara (2.18.0)
53+
addressable
54+
mini_mime (>= 0.1.3)
55+
nokogiri (>= 1.3.3)
56+
rack (>= 1.0.0)
57+
rack-test (>= 0.5.4)
58+
xpath (>= 2.0, < 4.0)
59+
childprocess (0.9.0)
60+
ffi (~> 1.0, >= 1.0.11)
61+
cocoon (1.2.11)
62+
coffee-rails (4.2.2)
63+
coffee-script (>= 2.2.0)
64+
railties (>= 4.0.0)
65+
coffee-script (2.4.1)
66+
coffee-script-source
67+
execjs
68+
coffee-script-source (1.12.2)
69+
concurrent-ruby (1.0.5)
70+
crass (1.0.4)
71+
diff-lcs (1.3)
72+
dotenv (2.2.1)
73+
dotenv-rails (2.2.1)
74+
dotenv (= 2.2.1)
75+
railties (>= 3.2, < 5.2)
76+
erubi (1.7.1)
77+
execjs (2.7.0)
78+
ffi (1.9.25)
79+
globalid (0.4.1)
80+
activesupport (>= 4.2.0)
81+
haml (5.0.4)
82+
temple (>= 0.8.0)
83+
tilt
84+
i18n (1.0.1)
85+
concurrent-ruby (~> 1.0)
86+
jbuilder (2.7.0)
87+
activesupport (>= 4.2.0)
88+
multi_json (>= 1.2)
89+
listen (3.1.5)
90+
rb-fsevent (~> 0.9, >= 0.9.4)
91+
rb-inotify (~> 0.9, >= 0.9.7)
92+
ruby_dep (~> 1.2)
93+
loofah (2.2.2)
94+
crass (~> 1.0.2)
95+
nokogiri (>= 1.5.9)
96+
mail (2.7.0)
97+
mini_mime (>= 0.1.1)
98+
method_source (0.9.0)
99+
mini_mime (1.0.0)
100+
mini_portile2 (2.3.0)
101+
minitest (5.11.3)
102+
multi_json (1.13.1)
103+
nio4r (2.3.1)
104+
nokogiri (1.8.3)
105+
mini_portile2 (~> 2.3.0)
106+
pg (1.0.0)
107+
public_suffix (3.0.2)
108+
puma (3.11.4)
109+
rack (2.0.5)
110+
rack-test (1.0.0)
111+
rack (>= 1.0, < 3)
112+
rails (5.1.6)
113+
actioncable (= 5.1.6)
114+
actionmailer (= 5.1.6)
115+
actionpack (= 5.1.6)
116+
actionview (= 5.1.6)
117+
activejob (= 5.1.6)
118+
activemodel (= 5.1.6)
119+
activerecord (= 5.1.6)
120+
activesupport (= 5.1.6)
121+
bundler (>= 1.3.0)
122+
railties (= 5.1.6)
123+
sprockets-rails (>= 2.0.0)
124+
rails-dom-testing (2.0.3)
125+
activesupport (>= 4.2.0)
126+
nokogiri (>= 1.6)
127+
rails-html-sanitizer (1.0.4)
128+
loofah (~> 2.2, >= 2.2.2)
129+
railties (5.1.6)
130+
actionpack (= 5.1.6)
131+
activesupport (= 5.1.6)
132+
method_source
133+
rake (>= 0.8.7)
134+
thor (>= 0.18.1, < 2.0)
135+
rake (12.3.1)
136+
rb-fsevent (0.10.3)
137+
rb-inotify (0.9.10)
138+
ffi (>= 0.5.0, < 2)
139+
rspec-core (3.7.1)
140+
rspec-support (~> 3.7.0)
141+
rspec-expectations (3.7.0)
142+
diff-lcs (>= 1.2.0, < 2.0)
143+
rspec-support (~> 3.7.0)
144+
rspec-mocks (3.7.0)
145+
diff-lcs (>= 1.2.0, < 2.0)
146+
rspec-support (~> 3.7.0)
147+
rspec-rails (3.7.2)
148+
actionpack (>= 3.0)
149+
activesupport (>= 3.0)
150+
railties (>= 3.0)
151+
rspec-core (~> 3.7.0)
152+
rspec-expectations (~> 3.7.0)
153+
rspec-mocks (~> 3.7.0)
154+
rspec-support (~> 3.7.0)
155+
rspec-support (3.7.1)
156+
ruby_dep (1.5.0)
157+
rubyzip (1.2.1)
158+
sass (3.5.6)
159+
sass-listen (~> 4.0.0)
160+
sass-listen (4.0.0)
161+
rb-fsevent (~> 0.9, >= 0.9.4)
162+
rb-inotify (~> 0.9, >= 0.9.7)
163+
sass-rails (5.0.7)
164+
railties (>= 4.0.0, < 6)
165+
sass (~> 3.1)
166+
sprockets (>= 2.8, < 4.0)
167+
sprockets-rails (>= 2.0, < 4.0)
168+
tilt (>= 1.1, < 3)
169+
selenium-webdriver (3.13.0)
170+
childprocess (~> 0.5)
171+
rubyzip (~> 1.2)
172+
simple_form (4.0.1)
173+
actionpack (>= 5.0)
174+
activemodel (>= 5.0)
175+
spring (2.0.2)
176+
activesupport (>= 4.2)
177+
spring-watcher-listen (2.0.1)
178+
listen (>= 2.7, < 4.0)
179+
spring (>= 1.2, < 3.0)
180+
sprockets (3.7.2)
181+
concurrent-ruby (~> 1.0)
182+
rack (> 1, < 3)
183+
sprockets-rails (3.2.1)
184+
actionpack (>= 4.0)
185+
activesupport (>= 4.0)
186+
sprockets (>= 3.0.0)
187+
temple (0.8.0)
188+
thor (0.20.0)
189+
thread_safe (0.3.6)
190+
tilt (2.0.8)
191+
turbolinks (5.1.1)
192+
turbolinks-source (~> 5.1)
193+
turbolinks-source (5.1.0)
194+
tzinfo (1.2.5)
195+
thread_safe (~> 0.1)
196+
uglifier (4.1.12)
197+
execjs (>= 0.3.0, < 3)
198+
web-console (3.6.2)
199+
actionview (>= 5.0)
200+
activemodel (>= 5.0)
201+
bindex (>= 0.4.0)
202+
railties (>= 5.0)
203+
websocket-driver (0.6.5)
204+
websocket-extensions (>= 0.1.0)
205+
websocket-extensions (0.1.3)
206+
xpath (3.1.0)
207+
nokogiri (~> 1.8)
208+
209+
PLATFORMS
210+
ruby
211+
212+
DEPENDENCIES
213+
bootstrap-sass (~> 3.3)
214+
byebug
215+
capybara (~> 2.13)
216+
cocoon
217+
coffee-rails (~> 4.2)
218+
dotenv-rails
219+
haml (~> 5.0)
220+
jbuilder (~> 2.5)
221+
listen (>= 3.0.5, < 3.2)
222+
pg
223+
puma (~> 3.7)
224+
rails (~> 5.1.6)
225+
rspec-rails
226+
sass-rails (~> 5.0)
227+
selenium-webdriver
228+
simple_form
229+
spring
230+
spring-watcher-listen (~> 2.0.0)
231+
turbolinks (~> 5)
232+
tzinfo-data
233+
uglifier (>= 1.3.0)
234+
web-console (>= 3.3.0)
235+
236+
BUNDLED WITH
237+
1.15.3

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

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

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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 jquery
16+
//= require bootstrap-sprockets
17+
//= require cocoon
18+
//= require_tree .

app/assets/javascripts/cable.js

+13
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.
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//boostrap-sprockets
2+
@import "bootstrap-sprockets"
3+
@import "bootstrap"
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
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationController < ActionController::Base
2+
protect_from_forgery with: :exception
3+
end

app/controllers/concerns/.keep

Whitespace-only changes.

app/helpers/application_helper.rb

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

app/jobs/application_job.rb

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

0 commit comments

Comments
 (0)