Skip to content

Commit 1e7c0a5

Browse files
committed
Initial Commit
1 parent 16fcf77 commit 1e7c0a5

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

+1147
-0
lines changed

Gemfile

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
gem 'rails', github: 'rails/rails'
9+
gem 'arel', github: "rails/arel"
10+
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', github: 'rails/coffee-rails'
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', '~> 3.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.0'
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', github: 'rails/web-console'
47+
gem 'listen', '>= 3.0.5', '< 3.2'
48+
end
49+
50+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
51+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
GIT
2+
remote: https://github.com/rails/arel.git
3+
revision: 437aa3a4bb8ad4f3f4eba299dbb1112852f9c7ac
4+
specs:
5+
arel (8.0.0)
6+
7+
GIT
8+
remote: https://github.com/rails/coffee-rails.git
9+
revision: 608c708298afdc62c9de45d96b28b7db558aebee
10+
specs:
11+
coffee-rails (4.2.1)
12+
coffee-script (>= 2.2.0)
13+
railties (>= 4.0.0, < 6.0.x)
14+
15+
GIT
16+
remote: https://github.com/rails/rails.git
17+
revision: 269e11598ce09a61a9ccbb0ec81eed9424610283
18+
specs:
19+
actioncable (5.2.0.alpha)
20+
actionpack (= 5.2.0.alpha)
21+
nio4r (~> 2.0)
22+
websocket-driver (~> 0.6.1)
23+
actionmailer (5.2.0.alpha)
24+
actionpack (= 5.2.0.alpha)
25+
actionview (= 5.2.0.alpha)
26+
activejob (= 5.2.0.alpha)
27+
mail (~> 2.5, >= 2.5.4)
28+
rails-dom-testing (~> 2.0)
29+
actionpack (5.2.0.alpha)
30+
actionview (= 5.2.0.alpha)
31+
activesupport (= 5.2.0.alpha)
32+
rack (~> 2.0)
33+
rack-test (~> 0.6.3)
34+
rails-dom-testing (~> 2.0)
35+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
36+
actionview (5.2.0.alpha)
37+
activesupport (= 5.2.0.alpha)
38+
builder (~> 3.1)
39+
erubi (~> 1.4)
40+
rails-dom-testing (~> 2.0)
41+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
42+
activejob (5.2.0.alpha)
43+
activesupport (= 5.2.0.alpha)
44+
globalid (>= 0.3.6)
45+
activemodel (5.2.0.alpha)
46+
activesupport (= 5.2.0.alpha)
47+
activerecord (5.2.0.alpha)
48+
activemodel (= 5.2.0.alpha)
49+
activesupport (= 5.2.0.alpha)
50+
arel (~> 8.0)
51+
activesupport (5.2.0.alpha)
52+
concurrent-ruby (~> 1.0, >= 1.0.2)
53+
i18n (~> 0.7)
54+
minitest (~> 5.1)
55+
tzinfo (~> 1.1)
56+
rails (5.2.0.alpha)
57+
actioncable (= 5.2.0.alpha)
58+
actionmailer (= 5.2.0.alpha)
59+
actionpack (= 5.2.0.alpha)
60+
actionview (= 5.2.0.alpha)
61+
activejob (= 5.2.0.alpha)
62+
activemodel (= 5.2.0.alpha)
63+
activerecord (= 5.2.0.alpha)
64+
activesupport (= 5.2.0.alpha)
65+
bundler (>= 1.3.0, < 2.0)
66+
railties (= 5.2.0.alpha)
67+
sprockets-rails (>= 2.0.0)
68+
railties (5.2.0.alpha)
69+
actionpack (= 5.2.0.alpha)
70+
activesupport (= 5.2.0.alpha)
71+
method_source
72+
rake (>= 0.8.7)
73+
thor (>= 0.18.1, < 2.0)
74+
75+
GIT
76+
remote: https://github.com/rails/web-console.git
77+
revision: 0b5c19ccfeef921316c0fcbe08900e123e264372
78+
specs:
79+
web-console (3.5.0)
80+
actionview (>= 5.0)
81+
activemodel (>= 5.0)
82+
bindex (>= 0.4.0)
83+
railties (>= 5.0)
84+
85+
GEM
86+
remote: https://rubygems.org/
87+
specs:
88+
addressable (2.5.1)
89+
public_suffix (~> 2.0, >= 2.0.2)
90+
bindex (0.5.0)
91+
builder (3.2.3)
92+
byebug (9.0.6)
93+
capybara (2.13.0)
94+
addressable
95+
mime-types (>= 1.16)
96+
nokogiri (>= 1.3.3)
97+
rack (>= 1.0.0)
98+
rack-test (>= 0.5.4)
99+
xpath (~> 2.0)
100+
childprocess (0.6.3)
101+
ffi (~> 1.0, >= 1.0.11)
102+
coffee-script (2.4.1)
103+
coffee-script-source
104+
execjs
105+
coffee-script-source (1.12.2)
106+
concurrent-ruby (1.0.5)
107+
erubi (1.6.0)
108+
execjs (2.7.0)
109+
ffi (1.9.18)
110+
globalid (0.4.0)
111+
activesupport (>= 4.2.0)
112+
i18n (0.8.1)
113+
jbuilder (2.6.3)
114+
activesupport (>= 3.0.0, < 5.2)
115+
multi_json (~> 1.2)
116+
listen (3.1.5)
117+
rb-fsevent (~> 0.9, >= 0.9.4)
118+
rb-inotify (~> 0.9, >= 0.9.7)
119+
ruby_dep (~> 1.2)
120+
loofah (2.0.3)
121+
nokogiri (>= 1.5.9)
122+
mail (2.6.4)
123+
mime-types (>= 1.16, < 4)
124+
method_source (0.8.2)
125+
mime-types (3.1)
126+
mime-types-data (~> 3.2015)
127+
mime-types-data (3.2016.0521)
128+
mini_portile2 (2.1.0)
129+
minitest (5.10.1)
130+
multi_json (1.12.1)
131+
nio4r (2.0.0)
132+
nokogiri (1.7.1)
133+
mini_portile2 (~> 2.1.0)
134+
public_suffix (2.0.5)
135+
puma (3.8.2)
136+
rack (2.0.1)
137+
rack-test (0.6.3)
138+
rack (>= 1.0)
139+
rails-dom-testing (2.0.2)
140+
activesupport (>= 4.2.0, < 6.0)
141+
nokogiri (~> 1.6)
142+
rails-html-sanitizer (1.0.3)
143+
loofah (~> 2.0)
144+
rake (12.0.0)
145+
rb-fsevent (0.9.8)
146+
rb-inotify (0.9.8)
147+
ffi (>= 0.5.0)
148+
ruby_dep (1.5.0)
149+
rubyzip (1.2.1)
150+
sass (3.4.23)
151+
sass-rails (5.0.6)
152+
railties (>= 4.0.0, < 6)
153+
sass (~> 3.1)
154+
sprockets (>= 2.8, < 4.0)
155+
sprockets-rails (>= 2.0, < 4.0)
156+
tilt (>= 1.1, < 3)
157+
selenium-webdriver (3.4.0)
158+
childprocess (~> 0.5)
159+
rubyzip (~> 1.0)
160+
websocket (~> 1.0)
161+
sprockets (3.7.1)
162+
concurrent-ruby (~> 1.0)
163+
rack (> 1, < 3)
164+
sprockets-rails (3.2.0)
165+
actionpack (>= 4.0)
166+
activesupport (>= 4.0)
167+
sprockets (>= 3.0.0)
168+
sqlite3 (1.3.13)
169+
thor (0.19.4)
170+
thread_safe (0.3.6)
171+
tilt (2.0.7)
172+
turbolinks (5.0.1)
173+
turbolinks-source (~> 5)
174+
turbolinks-source (5.0.0)
175+
tzinfo (1.2.3)
176+
thread_safe (~> 0.1)
177+
uglifier (3.2.0)
178+
execjs (>= 0.3.0, < 3)
179+
websocket (1.2.4)
180+
websocket-driver (0.6.5)
181+
websocket-extensions (>= 0.1.0)
182+
websocket-extensions (0.1.2)
183+
xpath (2.0.0)
184+
nokogiri (~> 1.3)
185+
186+
PLATFORMS
187+
ruby
188+
189+
DEPENDENCIES
190+
arel!
191+
byebug
192+
capybara (~> 2.13.0)
193+
coffee-rails!
194+
jbuilder (~> 2.5)
195+
listen (>= 3.0.5, < 3.2)
196+
puma (~> 3.7)
197+
rails!
198+
sass-rails (~> 5.0)
199+
selenium-webdriver
200+
sqlite3
201+
turbolinks (~> 5)
202+
tzinfo-data
203+
uglifier (>= 1.3.0)
204+
web-console!
205+
206+
BUNDLED WITH
207+
1.11.2

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

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: 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 .

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: 3 additions & 0 deletions
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

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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>ExpenseTracker</title>
5+
<%= csrf_meta_tags %>
6+
7+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
8+
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
9+
</head>
10+
11+
<body>
12+
<%= yield %>
13+
</body>
14+
</html>

app/views/layouts/mailer.html.erb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<style>
6+
/* Email styles need to be inline */
7+
</style>
8+
</head>
9+
10+
<body>
11+
<%= yield %>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)