Skip to content

Commit f7265e9

Browse files
committed
Initial commit with dependencies and dev tools setup along with a devise User model
Signed-off-by: Akash Manohar J <akash@akash.im>
0 parents  commit f7265e9

Some content is hidden

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

45 files changed

+1072
-0
lines changed

.gitignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
13+
# Ignore all logfiles and tempfiles.
14+
/log/*.log
15+
/tmp

.rspec

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--colour
2+
--format documentation

Gemfile

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'rails', '3.2.2'
4+
5+
# Bundle edge Rails instead:
6+
# gem 'rails', :git => 'git://github.com/rails/rails.git'
7+
8+
gem 'sqlite3'
9+
gem 'devise'
10+
gem 'devise_bushido_authenticatable'
11+
gem 'bushido'
12+
13+
# Gems used only for assets and not required
14+
# in production environments by default.
15+
group :assets do
16+
gem 'sass-rails', '~> 3.2.3'
17+
gem 'coffee-rails', '~> 3.2.1'
18+
19+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
20+
gem 'therubyracer'
21+
22+
gem 'uglifier', '>= 1.0.3'
23+
end
24+
25+
gem 'jquery-rails'
26+
27+
group :test do
28+
gem 'rspec-rails'
29+
gem 'factory_girl_rails'
30+
gem 'capybara'
31+
gem 'jasmine', :git => "https://github.com/pivotal/jasmine-gem.git", :branch => "1.2.rc1"
32+
end
33+
34+
# To use ActiveModel has_secure_password
35+
# gem 'bcrypt-ruby', '~> 3.0.0'
36+
37+
# To use Jbuilder templates for JSON
38+
# gem 'jbuilder'
39+
40+
# Use unicorn as the app server
41+
# gem 'unicorn'
42+
43+
# Deploy with Capistrano
44+
# gem 'capistrano'
45+
46+
# To use debugger
47+
# gem 'ruby-debug19', :require => 'ruby-debug'

Gemfile.lock

+193
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
GIT
2+
remote: https://github.com/pivotal/jasmine-gem.git
3+
revision: 5a7524ae9eaea4fe106a7aaa90ccfb1bc137abe7
4+
branch: 1.2.rc1
5+
specs:
6+
jasmine (1.2.0.rc1)
7+
jasmine-core (>= 1.2.0.rc1)
8+
rack (>= 1.1)
9+
rspec (>= 1.3.1)
10+
selenium-webdriver (>= 0.1.3)
11+
12+
GEM
13+
remote: https://rubygems.org/
14+
specs:
15+
actionmailer (3.2.2)
16+
actionpack (= 3.2.2)
17+
mail (~> 2.4.0)
18+
actionpack (3.2.2)
19+
activemodel (= 3.2.2)
20+
activesupport (= 3.2.2)
21+
builder (~> 3.0.0)
22+
erubis (~> 2.7.0)
23+
journey (~> 1.0.1)
24+
rack (~> 1.4.0)
25+
rack-cache (~> 1.1)
26+
rack-test (~> 0.6.1)
27+
sprockets (~> 2.1.2)
28+
activemodel (3.2.2)
29+
activesupport (= 3.2.2)
30+
builder (~> 3.0.0)
31+
activerecord (3.2.2)
32+
activemodel (= 3.2.2)
33+
activesupport (= 3.2.2)
34+
arel (~> 3.0.2)
35+
tzinfo (~> 0.3.29)
36+
activeresource (3.2.2)
37+
activemodel (= 3.2.2)
38+
activesupport (= 3.2.2)
39+
activesupport (3.2.2)
40+
i18n (~> 0.6)
41+
multi_json (~> 1.0)
42+
arel (3.0.2)
43+
bcrypt-ruby (3.0.1)
44+
builder (3.0.0)
45+
bushido (0.0.36)
46+
highline (>= 1.6.1)
47+
json (>= 1.4.6)
48+
orm_adapter (~> 0.0.3)
49+
rest-client (>= 1.6.1)
50+
capybara (1.1.2)
51+
mime-types (>= 1.16)
52+
nokogiri (>= 1.3.3)
53+
rack (>= 1.0.0)
54+
rack-test (>= 0.5.4)
55+
selenium-webdriver (~> 2.0)
56+
xpath (~> 0.1.4)
57+
childprocess (0.3.1)
58+
ffi (~> 1.0.6)
59+
coffee-rails (3.2.2)
60+
coffee-script (>= 2.2.0)
61+
railties (~> 3.2.0)
62+
coffee-script (2.2.0)
63+
coffee-script-source
64+
execjs
65+
coffee-script-source (1.2.0)
66+
devise (1.5.3)
67+
bcrypt-ruby (~> 3.0)
68+
orm_adapter (~> 0.0.3)
69+
warden (~> 1.1)
70+
devise_bushido_authenticatable (1.0.3)
71+
devise (= 1.5.3)
72+
rubycas-client (>= 2.2.1)
73+
diff-lcs (1.1.3)
74+
erubis (2.7.0)
75+
execjs (1.3.0)
76+
multi_json (~> 1.0)
77+
factory_girl (2.6.1)
78+
activesupport (>= 2.3.9)
79+
factory_girl_rails (1.7.0)
80+
factory_girl (~> 2.6.0)
81+
railties (>= 3.0.0)
82+
ffi (1.0.11)
83+
highline (1.6.11)
84+
hike (1.2.1)
85+
i18n (0.6.0)
86+
jasmine-core (1.2.0.rc1)
87+
journey (1.0.3)
88+
jquery-rails (2.0.1)
89+
railties (>= 3.2.0, < 5.0)
90+
thor (~> 0.14)
91+
json (1.6.5)
92+
libv8 (3.3.10.4)
93+
mail (2.4.3)
94+
i18n (>= 0.4.0)
95+
mime-types (~> 1.16)
96+
treetop (~> 1.4.8)
97+
mime-types (1.17.2)
98+
multi_json (1.1.0)
99+
nokogiri (1.5.0)
100+
orm_adapter (0.0.6)
101+
polyglot (0.3.3)
102+
rack (1.4.1)
103+
rack-cache (1.2)
104+
rack (>= 0.4)
105+
rack-ssl (1.3.2)
106+
rack
107+
rack-test (0.6.1)
108+
rack (>= 1.0)
109+
rails (3.2.2)
110+
actionmailer (= 3.2.2)
111+
actionpack (= 3.2.2)
112+
activerecord (= 3.2.2)
113+
activeresource (= 3.2.2)
114+
activesupport (= 3.2.2)
115+
bundler (~> 1.0)
116+
railties (= 3.2.2)
117+
railties (3.2.2)
118+
actionpack (= 3.2.2)
119+
activesupport (= 3.2.2)
120+
rack-ssl (~> 1.3.2)
121+
rake (>= 0.8.7)
122+
rdoc (~> 3.4)
123+
thor (~> 0.14.6)
124+
rake (0.9.2.2)
125+
rdoc (3.12)
126+
json (~> 1.4)
127+
rest-client (1.6.7)
128+
mime-types (>= 1.16)
129+
rspec (2.8.0)
130+
rspec-core (~> 2.8.0)
131+
rspec-expectations (~> 2.8.0)
132+
rspec-mocks (~> 2.8.0)
133+
rspec-core (2.8.0)
134+
rspec-expectations (2.8.0)
135+
diff-lcs (~> 1.1.2)
136+
rspec-mocks (2.8.0)
137+
rspec-rails (2.8.1)
138+
actionpack (>= 3.0)
139+
activesupport (>= 3.0)
140+
railties (>= 3.0)
141+
rspec (~> 2.8.0)
142+
rubycas-client (2.3.8)
143+
activesupport
144+
rubyzip (0.9.6.1)
145+
sass (3.1.15)
146+
sass-rails (3.2.4)
147+
railties (~> 3.2.0)
148+
sass (>= 3.1.10)
149+
tilt (~> 1.3)
150+
selenium-webdriver (2.20.0)
151+
childprocess (>= 0.2.5)
152+
ffi (~> 1.0)
153+
multi_json (~> 1.0)
154+
rubyzip
155+
sprockets (2.1.2)
156+
hike (~> 1.2)
157+
rack (~> 1.0)
158+
tilt (~> 1.1, != 1.3.0)
159+
sqlite3 (1.3.5)
160+
therubyracer (0.9.10)
161+
libv8 (~> 3.3.10)
162+
thor (0.14.6)
163+
tilt (1.3.3)
164+
treetop (1.4.10)
165+
polyglot
166+
polyglot (>= 0.3.1)
167+
tzinfo (0.3.32)
168+
uglifier (1.2.3)
169+
execjs (>= 0.3.0)
170+
multi_json (>= 1.0.2)
171+
warden (1.1.1)
172+
rack (>= 1.0)
173+
xpath (0.1.4)
174+
nokogiri (~> 1.3)
175+
176+
PLATFORMS
177+
ruby
178+
179+
DEPENDENCIES
180+
bushido
181+
capybara
182+
coffee-rails (~> 3.2.1)
183+
devise
184+
devise_bushido_authenticatable
185+
factory_girl_rails
186+
jasmine!
187+
jquery-rails
188+
rails (= 3.2.2)
189+
rspec-rails
190+
sass-rails (~> 3.2.3)
191+
sqlite3
192+
therubyracer
193+
uglifier (>= 1.0.3)

Rakefile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env rake
2+
# Add your own tasks in files placed in lib/tasks ending in .rake,
3+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4+
5+
require File.expand_path('../config/application', __FILE__)
6+
7+
Kandan::Application.load_tasks

app/assets/images/rails.png

6.49 KB
Loading

app/assets/javascripts/application.js

+15
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, 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+
// the compiled file.
9+
//
10+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11+
// GO AFTER THE REQUIRES BELOW.
12+
//
13+
//= require jquery
14+
//= require jquery_ujs
15+
//= require_tree .
+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+
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationController < ActionController::Base
2+
protect_from_forgery
3+
end

app/helpers/application_helper.rb

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

app/mailers/.gitkeep

Whitespace-only changes.

app/models/.gitkeep

Whitespace-only changes.

app/models/user.rb

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class User < ActiveRecord::Base
2+
# Include default devise modules. Others available are:
3+
# :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
4+
devise :database_authenticatable, :registerable, :token_authenticatable,
5+
:recoverable, :rememberable, :trackable, :validatable
6+
7+
# Setup accessible (or protected) attributes for your model
8+
attr_accessible :email, :password, :password_confirmation, :remember_me, :ido_id, :first_name, :last_name, :locale
9+
end
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Kandan</title>
5+
<%= stylesheet_link_tag "application", :media => "all" %>
6+
<%= javascript_include_tag "application" %>
7+
<%= csrf_meta_tags %>
8+
</head>
9+
<body>
10+
11+
<%= yield %>
12+
13+
</body>
14+
</html>

config.ru

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This file is used by Rack-based servers to start the application.
2+
3+
require ::File.expand_path('../config/environment', __FILE__)
4+
run Kandan::Application

0 commit comments

Comments
 (0)