Skip to content

Commit a6ba250

Browse files
committed
initial import
0 parents  commit a6ba250

Some content is hidden

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

66 files changed

+1068
-0
lines changed

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# See http://help.github.com/ignore-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/*.log
16+
/tmp

.rspec

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--color

Gemfile

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
source 'https://rubygems.org'
2+
3+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
4+
gem 'rails', '4.0.0'
5+
6+
# Use sqlite3 as the database for Active Record
7+
gem 'sqlite3'
8+
9+
# Use Slim for templating
10+
gem 'slim', '~> 2.0.1'
11+
12+
# Use SCSS for stylesheets
13+
gem 'sass-rails', '~> 4.0.0'
14+
15+
# Use Uglifier as compressor for JavaScript assets
16+
gem 'uglifier', '>= 1.3.0'
17+
18+
# Use CoffeeScript for .js.coffee assets and views
19+
gem 'coffee-rails', '~> 4.0.0'
20+
21+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
22+
# gem 'therubyracer', platforms: :ruby
23+
24+
# Use jquery as the JavaScript library
25+
gem 'jquery-rails'
26+
27+
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
28+
gem 'turbolinks'
29+
30+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
31+
gem 'jbuilder', '~> 1.2'
32+
33+
group :doc do
34+
# bundle exec rake doc:rails generates the API under doc/api.
35+
gem 'sdoc', require: false
36+
end
37+
38+
# Use ActiveModel has_secure_password
39+
# gem 'bcrypt-ruby', '~> 3.0.0'
40+
41+
# Use unicorn as the app server
42+
# gem 'unicorn'
43+
44+
# Use Capistrano for deployment
45+
# gem 'capistrano', group: :development
46+
47+
# Use debugger
48+
# gem 'debugger', group: [:development, :test]
49+
50+
gem 'pry-rails', group: [:development, :test]
51+
52+
gem 'rspec-rails', group: [:development, :test]
53+
54+
group :test do
55+
gem 'guard-rspec'
56+
gem 'factory_girl_rails'
57+
gem 'capybara'
58+
end

Gemfile.lock

+192
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actionmailer (4.0.0)
5+
actionpack (= 4.0.0)
6+
mail (~> 2.5.3)
7+
actionpack (4.0.0)
8+
activesupport (= 4.0.0)
9+
builder (~> 3.1.0)
10+
erubis (~> 2.7.0)
11+
rack (~> 1.5.2)
12+
rack-test (~> 0.6.2)
13+
activemodel (4.0.0)
14+
activesupport (= 4.0.0)
15+
builder (~> 3.1.0)
16+
activerecord (4.0.0)
17+
activemodel (= 4.0.0)
18+
activerecord-deprecated_finders (~> 1.0.2)
19+
activesupport (= 4.0.0)
20+
arel (~> 4.0.0)
21+
activerecord-deprecated_finders (1.0.3)
22+
activesupport (4.0.0)
23+
i18n (~> 0.6, >= 0.6.4)
24+
minitest (~> 4.2)
25+
multi_json (~> 1.3)
26+
thread_safe (~> 0.1)
27+
tzinfo (~> 0.3.37)
28+
arel (4.0.1)
29+
atomic (1.1.14)
30+
builder (3.1.4)
31+
capybara (2.1.0)
32+
mime-types (>= 1.16)
33+
nokogiri (>= 1.3.3)
34+
rack (>= 1.0.0)
35+
rack-test (>= 0.5.4)
36+
xpath (~> 2.0)
37+
celluloid (0.15.2)
38+
timers (~> 1.1.0)
39+
coderay (1.0.9)
40+
coffee-rails (4.0.1)
41+
coffee-script (>= 2.2.0)
42+
railties (>= 4.0.0, < 5.0)
43+
coffee-script (2.2.0)
44+
coffee-script-source
45+
execjs
46+
coffee-script-source (1.6.3)
47+
diff-lcs (1.2.4)
48+
erubis (2.7.0)
49+
execjs (2.0.2)
50+
factory_girl (4.2.0)
51+
activesupport (>= 3.0.0)
52+
factory_girl_rails (4.2.1)
53+
factory_girl (~> 4.2.0)
54+
railties (>= 3.0.0)
55+
ffi (1.9.0)
56+
formatador (0.2.4)
57+
guard (2.2.2)
58+
formatador (>= 0.2.4)
59+
listen (~> 2.1)
60+
lumberjack (~> 1.0)
61+
pry (>= 0.9.12)
62+
thor (>= 0.18.1)
63+
guard-rspec (4.0.3)
64+
guard (>= 2.1.1)
65+
rspec (~> 2.14)
66+
hike (1.2.3)
67+
i18n (0.6.5)
68+
jbuilder (1.5.2)
69+
activesupport (>= 3.0.0)
70+
multi_json (>= 1.2.0)
71+
jquery-rails (3.0.4)
72+
railties (>= 3.0, < 5.0)
73+
thor (>= 0.14, < 2.0)
74+
json (1.8.1)
75+
listen (2.1.1)
76+
celluloid (>= 0.15.2)
77+
rb-fsevent (>= 0.9.3)
78+
rb-inotify (>= 0.9)
79+
lumberjack (1.0.4)
80+
mail (2.5.4)
81+
mime-types (~> 1.16)
82+
treetop (~> 1.4.8)
83+
method_source (0.8.2)
84+
mime-types (1.25)
85+
mini_portile (0.5.1)
86+
minitest (4.7.5)
87+
multi_json (1.8.2)
88+
nokogiri (1.6.0)
89+
mini_portile (~> 0.5.0)
90+
polyglot (0.3.3)
91+
pry (0.9.12.2)
92+
coderay (~> 1.0.5)
93+
method_source (~> 0.8)
94+
slop (~> 3.4)
95+
pry-rails (0.3.2)
96+
pry (>= 0.9.10)
97+
rack (1.5.2)
98+
rack-test (0.6.2)
99+
rack (>= 1.0)
100+
rails (4.0.0)
101+
actionmailer (= 4.0.0)
102+
actionpack (= 4.0.0)
103+
activerecord (= 4.0.0)
104+
activesupport (= 4.0.0)
105+
bundler (>= 1.3.0, < 2.0)
106+
railties (= 4.0.0)
107+
sprockets-rails (~> 2.0.0)
108+
railties (4.0.0)
109+
actionpack (= 4.0.0)
110+
activesupport (= 4.0.0)
111+
rake (>= 0.8.7)
112+
thor (>= 0.18.1, < 2.0)
113+
rake (10.1.0)
114+
rb-fsevent (0.9.3)
115+
rb-inotify (0.9.2)
116+
ffi (>= 0.5.0)
117+
rdoc (3.12.2)
118+
json (~> 1.4)
119+
rspec (2.14.1)
120+
rspec-core (~> 2.14.0)
121+
rspec-expectations (~> 2.14.0)
122+
rspec-mocks (~> 2.14.0)
123+
rspec-core (2.14.6)
124+
rspec-expectations (2.14.3)
125+
diff-lcs (>= 1.1.3, < 2.0)
126+
rspec-mocks (2.14.4)
127+
rspec-rails (2.14.0)
128+
actionpack (>= 3.0)
129+
activesupport (>= 3.0)
130+
railties (>= 3.0)
131+
rspec-core (~> 2.14.0)
132+
rspec-expectations (~> 2.14.0)
133+
rspec-mocks (~> 2.14.0)
134+
sass (3.2.12)
135+
sass-rails (4.0.1)
136+
railties (>= 4.0.0, < 5.0)
137+
sass (>= 3.1.10)
138+
sprockets-rails (~> 2.0.0)
139+
sdoc (0.3.20)
140+
json (>= 1.1.3)
141+
rdoc (~> 3.10)
142+
slim (2.0.1)
143+
temple (~> 0.6.6)
144+
tilt (>= 1.3.3, < 2.1)
145+
slop (3.4.6)
146+
sprockets (2.10.0)
147+
hike (~> 1.2)
148+
multi_json (~> 1.0)
149+
rack (~> 1.0)
150+
tilt (~> 1.1, != 1.3.0)
151+
sprockets-rails (2.0.1)
152+
actionpack (>= 3.0)
153+
activesupport (>= 3.0)
154+
sprockets (~> 2.8)
155+
sqlite3 (1.3.8)
156+
temple (0.6.7)
157+
thor (0.18.1)
158+
thread_safe (0.1.3)
159+
atomic
160+
tilt (1.4.1)
161+
timers (1.1.0)
162+
treetop (1.4.15)
163+
polyglot
164+
polyglot (>= 0.3.1)
165+
turbolinks (1.3.0)
166+
coffee-rails
167+
tzinfo (0.3.38)
168+
uglifier (2.2.1)
169+
execjs (>= 0.3.0)
170+
multi_json (~> 1.0, >= 1.0.2)
171+
xpath (2.0.0)
172+
nokogiri (~> 1.3)
173+
174+
PLATFORMS
175+
ruby
176+
177+
DEPENDENCIES
178+
capybara
179+
coffee-rails (~> 4.0.0)
180+
factory_girl_rails
181+
guard-rspec
182+
jbuilder (~> 1.2)
183+
jquery-rails
184+
pry-rails
185+
rails (= 4.0.0)
186+
rspec-rails
187+
sass-rails (~> 4.0.0)
188+
sdoc
189+
slim (~> 2.0.1)
190+
sqlite3
191+
turbolinks
192+
uglifier (>= 1.3.0)

Guardfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# A sample Guardfile
2+
# More info at https://github.com/guard/guard#readme
3+
4+
guard :rspec do
5+
watch(%r{^spec/.+_spec\.rb$})
6+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
7+
watch('spec/spec_helper.rb') { "spec" }
8+
9+
# Rails example
10+
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
11+
watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
12+
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
13+
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
14+
watch('config/routes.rb') { "spec/routing" }
15+
watch('app/controllers/application_controller.rb') { "spec/controllers" }
16+
17+
# Capybara features specs
18+
watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
19+
20+
# Turnip features and steps
21+
watch(%r{^spec/acceptance/(.+)\.feature$})
22+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
23+
end
24+

README.rdoc

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
* ...
25+
26+
27+
Please feel free to use a different markup language if you do not plan to run
28+
<tt>rake doc:app</tt>.
29+
30+
31+
== Models
32+
33+
Users - Consumers, Providers
34+
Features

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 File.expand_path('../config/application', __FILE__)
5+
6+
Patronage::Application.load_tasks

app/assets/images/.keep

Whitespace-only changes.

app/assets/javascripts/application.js

+16
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 vendor/assets/javascripts of plugins, if any, 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.
9+
//
10+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11+
// about supported directives.
12+
//
13+
//= require jquery
14+
//= require jquery_ujs
15+
//= require turbolinks
16+
//= require_tree .
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Place all the behaviors and hooks related to the matching controller here.
2+
# All this logic will automatically be available in application.js.
3+
# You can use CoffeeScript in this file: http://coffeescript.org/
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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, vendor/assets/stylesheets,
6+
* or vendor/assets/stylesheets of plugins, if any, 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 top of the
9+
* compiled file, but it's generally better to create a new file per style scope.
10+
*
11+
*= require_self
12+
*= require_tree .
13+
*/

app/assets/stylesheets/users.css.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Place all the styles related to the users controller here.
2+
// They will automatically be included in application.css.
3+
// You can use Sass (SCSS) here: http://sass-lang.com/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class ApplicationController < ActionController::Base
2+
# Prevent CSRF attacks by raising an exception.
3+
# For APIs, you may want to use :null_session instead.
4+
protect_from_forgery with: :exception
5+
end

app/controllers/concerns/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)