Skip to content
This repository was archived by the owner on Mar 10, 2023. It is now read-only.

Commit 2cb2974

Browse files
author
Ronan Pigott
committed
Added rails files
1 parent 1d5eda8 commit 2cb2974

Some content is hidden

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

73 files changed

+1057
-1
lines changed

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
# Ignore Byebug command history file.
21+
.byebug_history

Gemfile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
source 'https://rubygems.org'
2+
3+
4+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5+
gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
6+
# Use sqlite3 as the database for Active Record
7+
gem 'sqlite3'
8+
# Use Puma as the app server
9+
gem 'puma', '~> 3.0'
10+
# Use SCSS for stylesheets
11+
gem 'sass-rails', '~> 5.0'
12+
# Use Uglifier as compressor for JavaScript assets
13+
gem 'uglifier', '>= 1.3.0'
14+
# Use CoffeeScript for .coffee assets and views
15+
gem 'coffee-rails', '~> 4.2'
16+
# See https://github.com/rails/execjs#readme for more supported runtimes
17+
# gem 'therubyracer', platforms: :ruby
18+
19+
# Use jquery as the JavaScript library
20+
gem 'jquery-rails'
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', '~> 3.0'
27+
# Use ActiveModel has_secure_password
28+
# gem 'bcrypt', '~> 3.1.7'
29+
30+
# Use Capistrano for deployment
31+
# gem 'capistrano-rails', group: :development
32+
33+
group :development, :test do
34+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
35+
gem 'byebug', platform: :mri
36+
end
37+
38+
group :development do
39+
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
40+
gem 'web-console'
41+
end
42+
43+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
44+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (5.0.1)
5+
actionpack (= 5.0.1)
6+
nio4r (~> 1.2)
7+
websocket-driver (~> 0.6.1)
8+
actionmailer (5.0.1)
9+
actionpack (= 5.0.1)
10+
actionview (= 5.0.1)
11+
activejob (= 5.0.1)
12+
mail (~> 2.5, >= 2.5.4)
13+
rails-dom-testing (~> 2.0)
14+
actionpack (5.0.1)
15+
actionview (= 5.0.1)
16+
activesupport (= 5.0.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.0.1)
22+
activesupport (= 5.0.1)
23+
builder (~> 3.1)
24+
erubis (~> 2.7.0)
25+
rails-dom-testing (~> 2.0)
26+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
27+
activejob (5.0.1)
28+
activesupport (= 5.0.1)
29+
globalid (>= 0.3.6)
30+
activemodel (5.0.1)
31+
activesupport (= 5.0.1)
32+
activerecord (5.0.1)
33+
activemodel (= 5.0.1)
34+
activesupport (= 5.0.1)
35+
arel (~> 7.0)
36+
activesupport (5.0.1)
37+
concurrent-ruby (~> 1.0, >= 1.0.2)
38+
i18n (~> 0.7)
39+
minitest (~> 5.1)
40+
tzinfo (~> 1.1)
41+
arel (7.1.4)
42+
builder (3.2.3)
43+
coffee-rails (4.2.1)
44+
coffee-script (>= 2.2.0)
45+
railties (>= 4.0.0, < 5.2.x)
46+
coffee-script (2.4.1)
47+
coffee-script-source
48+
execjs
49+
coffee-script-source (1.12.2)
50+
concurrent-ruby (1.0.4)
51+
debug_inspector (0.0.2)
52+
erubis (2.7.0)
53+
execjs (2.7.0)
54+
globalid (0.3.7)
55+
activesupport (>= 4.1.0)
56+
i18n (0.7.0)
57+
jbuilder (2.6.1)
58+
activesupport (>= 3.0.0, < 5.1)
59+
multi_json (~> 1.2)
60+
jquery-rails (4.2.2)
61+
rails-dom-testing (>= 1, < 3)
62+
railties (>= 4.2.0)
63+
thor (>= 0.14, < 2.0)
64+
loofah (2.0.3)
65+
nokogiri (>= 1.5.9)
66+
mail (2.6.4)
67+
mime-types (>= 1.16, < 4)
68+
method_source (0.8.2)
69+
mime-types (3.1)
70+
mime-types-data (~> 3.2015)
71+
mime-types-data (3.2016.0521)
72+
mini_portile2 (2.1.0)
73+
minitest (5.10.1)
74+
multi_json (1.12.1)
75+
nio4r (1.2.1)
76+
nokogiri (1.7.0.1-x64-mingw32)
77+
mini_portile2 (~> 2.1.0)
78+
puma (3.6.2)
79+
rack (2.0.1)
80+
rack-test (0.6.3)
81+
rack (>= 1.0)
82+
rails (5.0.1)
83+
actioncable (= 5.0.1)
84+
actionmailer (= 5.0.1)
85+
actionpack (= 5.0.1)
86+
actionview (= 5.0.1)
87+
activejob (= 5.0.1)
88+
activemodel (= 5.0.1)
89+
activerecord (= 5.0.1)
90+
activesupport (= 5.0.1)
91+
bundler (>= 1.3.0, < 2.0)
92+
railties (= 5.0.1)
93+
sprockets-rails (>= 2.0.0)
94+
rails-dom-testing (2.0.2)
95+
activesupport (>= 4.2.0, < 6.0)
96+
nokogiri (~> 1.6)
97+
rails-html-sanitizer (1.0.3)
98+
loofah (~> 2.0)
99+
railties (5.0.1)
100+
actionpack (= 5.0.1)
101+
activesupport (= 5.0.1)
102+
method_source
103+
rake (>= 0.8.7)
104+
thor (>= 0.18.1, < 2.0)
105+
rake (12.0.0)
106+
sass (3.4.23)
107+
sass-rails (5.0.6)
108+
railties (>= 4.0.0, < 6)
109+
sass (~> 3.1)
110+
sprockets (>= 2.8, < 4.0)
111+
sprockets-rails (>= 2.0, < 4.0)
112+
tilt (>= 1.1, < 3)
113+
sprockets (3.7.1)
114+
concurrent-ruby (~> 1.0)
115+
rack (> 1, < 3)
116+
sprockets-rails (3.2.0)
117+
actionpack (>= 4.0)
118+
activesupport (>= 4.0)
119+
sprockets (>= 3.0.0)
120+
sqlite3 (1.3.13-x64-mingw32)
121+
thor (0.19.4)
122+
thread_safe (0.3.5)
123+
tilt (2.0.5)
124+
turbolinks (5.0.1)
125+
turbolinks-source (~> 5)
126+
turbolinks-source (5.0.0)
127+
tzinfo (1.2.2)
128+
thread_safe (~> 0.1)
129+
tzinfo-data (1.2016.10)
130+
tzinfo (>= 1.0.0)
131+
uglifier (3.0.4)
132+
execjs (>= 0.3.0, < 3)
133+
web-console (3.4.0)
134+
actionview (>= 5.0)
135+
activemodel (>= 5.0)
136+
debug_inspector
137+
railties (>= 5.0)
138+
websocket-driver (0.6.4)
139+
websocket-extensions (>= 0.1.0)
140+
websocket-extensions (0.1.2)
141+
142+
PLATFORMS
143+
x64-mingw32
144+
145+
DEPENDENCIES
146+
byebug
147+
coffee-rails (~> 4.2)
148+
jbuilder (~> 2.5)
149+
jquery-rails
150+
puma (~> 3.0)
151+
rails (~> 5.0.0, >= 5.0.0.1)
152+
sass-rails (~> 5.0)
153+
sqlite3
154+
turbolinks (~> 5)
155+
tzinfo-data
156+
uglifier (>= 1.3.0)
157+
web-console
158+
159+
BUNDLED WITH
160+
1.13.7

README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

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, vendor/assets/javascripts,
5+
// or any plugin's 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 jquery
14+
//= require jquery_ujs
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.

0 commit comments

Comments
 (0)