repo
string
commit
string
message
string
diff
string
ept/saas-template
f77e93bebc14ff0a1adeb479c2fb4e028b1cdb19
Fix more infinite redirect loop problems; improve code style
diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index 4af29bb..018051b 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -1,48 +1,53 @@ class CustomersController < ApplicationController before_filter :customer_login...
ept/saas-template
bf8cac6ed6423cbdb163184af5ca43f215b7c2ea
Tweaks to tests
diff --git a/features/customer-signup.feature b/features/customer-signup.feature index 0f176b4..605a151 100644 --- a/features/customer-signup.feature +++ b/features/customer-signup.feature @@ -1,82 +1,82 @@ Customers are good. They give us business. However, we also don't want too many customers at the same time, oth...
ept/saas-template
d2fb758a414239c8dc496f0c63b116299bb5a7cf
Refactor customer signup + invitation tokens
diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index 1024e59..4af29bb 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -1,51 +1,48 @@ class CustomersController < ApplicationController before_filter :customer_login...
ept/saas-template
4642ccd0bd5c273d4d45afe003c4a1d558c25a4e
Add CustomerAddress model (useful for billing)
diff --git a/app/models/customer.rb b/app/models/customer.rb index a0c971b..439cc92 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -1,27 +1,28 @@ class Customer < ActiveRecord::Base attr_accessor :first_user # Disallow some subdomains (our actual domain names must appear here too) def s...
ept/saas-template
3e88cf1736c019e7c31201ab51eed9bade12d7ba
Some useful general-purpose helpers
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 21f688f..5130b31 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,38 +1,93 @@ # Methods added to this helper will be available to all templates in the application. module ApplicationHel...
ept/saas-template
36f016e67b94bfcff6f2e4e930b75485ccf3ac0b
Outline for a jekyll blog
diff --git a/blog/_includes/author.html b/blog/_includes/author.html new file mode 100644 index 0000000..d020f03 --- /dev/null +++ b/blog/_includes/author.html @@ -0,0 +1,3 @@ +<div class="biography"> + This post was written by... +</div> \ No newline at end of file diff --git a/blog/_layouts/default.html b/blog/_la...
ept/saas-template
6f924b3ccfba4295cd421ed14a3e562a6e091e03
Fix handling of SSL & subdomains
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 28c5ac7..f9f84ab 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,55 +1,57 @@ # Filters added to this controller apply to all controllers in the applicati...
ept/saas-template
8d4ffae412c68c786b0d02f1bbdaacee67c0b643
Fixed an infinite redirect loop problem
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 0ae43ad..d49fc91 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -1,55 +1,59 @@ # This controller handles the login/logout function of the site. class SessionsContro...
ept/saas-template
893c9c607ebb025ee18432eb64e81e10889dfcf4
Fix some issues with redirect_back_or_default
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 7ddd790..0ae43ad 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -1,53 +1,55 @@ # This controller handles the login/logout function of the site. class SessionsContro...
ept/saas-template
947d97f9ffc6c7d2891a483b0e9077dde9d6ae5a
Allow users to opt in to marketing emails; nicer sign-up form
diff --git a/app/models/user.rb b/app/models/user.rb index 572f28c..3348b58 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,113 +1,113 @@ require 'digest/sha1' class User < ActiveRecord::Base class UserSuspended < StandardError; end has_many :customers, :through => :customer_users has_ma...
ept/saas-template
e8785573937c4aef381b5979b7ae89ffe58f70b4
Add missing spec updates for logging users in controller
diff --git a/spec/controllers/customers_controller_spec.rb b/spec/controllers/customers_controller_spec.rb index 65be963..0544952 100644 --- a/spec/controllers/customers_controller_spec.rb +++ b/spec/controllers/customers_controller_spec.rb @@ -1,102 +1,103 @@ require File.dirname(__FILE__) + '/../spec_helper' desc...
ept/saas-template
89a071cac0820c845198c00716f521d48c4275a0
Fix model validation issues on new user signup
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index c95407e..9948979 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,266 +1,274 @@ class UsersController < ApplicationController before_filter :customer_login_required, :except...
ept/saas-template
1393dfaa5315c1f37acedaa5ff5a4b9b99a146ca
Don't show the login form if logged in :)
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 262352f..7ddd790 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -1,52 +1,53 @@ # This controller handles the login/logout function of the site. class SessionsContro...
ept/saas-template
d47561b33bedfc24d194b394418f8eccfd8f9b03
Nicer handling of InvalidAuthenticityToken errors
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 317625a..28c5ac7 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,31 +1,55 @@ # Filters added to this controller apply to all controllers in the applicati...
ept/saas-template
64067bafd16df459e37550db9743b29bc7a92fbd
Don't log passwords; do log users.
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 4845643..317625a 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,22 +1,31 @@ # Filters added to this controller apply to all controllers in the applicati...
ept/saas-template
2c2553798fe4f51d684a940efdf2745f2143bfd0
exception_notification config
diff --git a/config/initializers/exception_notification.rb b/config/initializers/exception_notification.rb new file mode 100644 index 0000000..c9c9dd2 --- /dev/null +++ b/config/initializers/exception_notification.rb @@ -0,0 +1,5 @@ +# People to pester if an unhandled exception occurs. +# This really should go in confi...
ept/saas-template
cb11ae4e650484020a60915dc7d8baa5715f100f
Add exception_notification
diff --git a/.gitmodules b/.gitmodules index 456655c..c4186b7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,12 +1,15 @@ [submodule "vendor/plugins/rspec"] path = vendor/plugins/rspec url = git://github.com/dchelimsky/rspec.git [submodule "vendor/plugins/rspec_rails"] path = vendor/plugins/rspec_rails url =...
ept/saas-template
7efced6cdd0a2c7a6f1682e8d0aadbf7177e3699
reserving 'example' causes specs to break
diff --git a/app/models/customer.rb b/app/models/customer.rb index 241c9cc..eeec38f 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -1,27 +1,27 @@ class Customer < ActiveRecord::Base attr_accessor :first_user # Disallow some subdomains (our actual domain names must appear here too) def s...
ept/saas-template
746ff18d506383bc21f97b2051c055fd4693bc39
Tweaks to login/signup user flow, make more SSL-friendly
diff --git a/README.md b/README.md index a7aefac..988b40d 100644 --- a/README.md +++ b/README.md @@ -1,170 +1,182 @@ Software-as-a-Service (SaaS) Rails template =========================================== Using this template in your application: $ rails --database mysql myapp $ cd myapp $ rm -r RE...
ept/saas-template
9b750746cc875a46d21b336715f41269c96c0d20
Move email field to second page of signup
diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index b71eb40..7379d15 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -1,50 +1,50 @@ class CustomersController < ApplicationController before_filter :customer_login...
ept/saas-template
40113ac2105142052bc9aec04a59be7b84e1b64b
Split responsibilities between Token::Invitation and Token::BetaInvitation
diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index 0699801..b71eb40 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -1,46 +1,50 @@ class CustomersController < ApplicationController before_filter :customer_login...
ept/saas-template
2849dad26d53dad9edd381970d83fc14f924106f
Generalise tokens and URL keywords to be the same thing
diff --git a/app/controllers/tokens_controller.rb b/app/controllers/tokens_controller.rb new file mode 100644 index 0000000..70d6d88 --- /dev/null +++ b/app/controllers/tokens_controller.rb @@ -0,0 +1,24 @@ +class TokensController < ApplicationController + + def show + @token = Token::Base.find_by_code(params[:code...
ept/saas-template
ad468e9900d51b1d47e1787bf67a738bc1cfeb2e
Added tests for emails sent by UserMailer
diff --git a/spec/models/mailing_observer_spec.rb b/spec/models/mailing_observer_spec.rb new file mode 100644 index 0000000..022cc70 --- /dev/null +++ b/spec/models/mailing_observer_spec.rb @@ -0,0 +1,89 @@ +require File.dirname(__FILE__) + '/../spec_helper' + +describe MailingObserver do + + before(:each) do + Act...
ept/saas-template
c8f8f9cc69e687701174c6185ecb677dc9d65bcb
Fixed a few things I really didn't like in the Token::Base implementation
diff --git a/app/models/token/base.rb b/app/models/token/base.rb index 4c10802..d468b37 100644 --- a/app/models/token/base.rb +++ b/app/models/token/base.rb @@ -1,86 +1,84 @@ class Token::Base < ActiveRecord::Base + extend Authentication::ModelClassMethods # provides make_token method + set_table_name :tokens ...
ept/saas-template
6cdebef5ce0ff91880f97091c3364911264444ed
Remove users.activation_code column (replaced by Token::EmailValidation)
diff --git a/app/models/user.rb b/app/models/user.rb index 8660ee7..3366934 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,115 +1,110 @@ require 'digest/sha1' class User < ActiveRecord::Base class UserSuspended < StandardError; end has_many :customers, :through => :customer_users has_ma...
ept/saas-template
1399273e4142d113ab60e4fb218aacc7a7b8166d
Removed restful_authentication as plugin
diff --git a/.gitmodules b/.gitmodules index 261925a..456655c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,15 +1,12 @@ [submodule "vendor/plugins/rspec"] path = vendor/plugins/rspec url = git://github.com/dchelimsky/rspec.git [submodule "vendor/plugins/rspec_rails"] path = vendor/plugins/rspec_rails url =...
ept/saas-template
bf65fb9bf556c317d7bad783e7a54f93d686e2b8
Fix issue in new user signup
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 5ed0b07..c94eef9 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,272 +1,276 @@ class UsersController < ApplicationController before_filter :customer_login_required, :except...
ept/saas-template
79c751e844ca342d1393efffc01084346c4f35c2
Add a per-user timezone setting
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8897309..0099c7f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,25 +1,21 @@ # Filters added to this controller apply to all controllers in the applicati...
ept/saas-template
1982fcc6f7383f380f277a3855452632d954277a
Allow redirect_to for all customer/choose paths
diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index b2b599a..0699801 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -1,44 +1,46 @@ class CustomersController < ApplicationController before_filter :customer_login...
ept/saas-template
763c931da0697ede2fc6f78b1788035f130ffc5c
Generalise redirect_back_or_default with extra options
diff --git a/lib/authenticated_system.rb b/lib/authenticated_system.rb index ab4fcf2..b4ea4f3 100644 --- a/lib/authenticated_system.rb +++ b/lib/authenticated_system.rb @@ -1,198 +1,200 @@ module AuthenticatedSystem protected # Returns true or false if the user is logged in. # Preloads @current_user with ...
ept/saas-template
73684aefef12c2e1c01979ad67b9a67c59d1a2b7
Change cucumber feature to match new return_to redirection
diff --git a/features/sessions.feature b/features/sessions.feature index e06258a..f2cb611 100644 --- a/features/sessions.feature +++ b/features/sessions.feature @@ -1,80 +1,80 @@ Users want to know that nobody can masquerade as them. We want to extend trust only to visitors who present the appropriate credentials. ...
ept/saas-template
d5b7fa7d479c71b521d5657938a82e883de7f83d
Remember URL in return_to param when asked to log in
diff --git a/lib/authenticated_system.rb b/lib/authenticated_system.rb index 0dbbe48..ab4fcf2 100644 --- a/lib/authenticated_system.rb +++ b/lib/authenticated_system.rb @@ -1,189 +1,198 @@ module AuthenticatedSystem protected # Returns true or false if the user is logged in. # Preloads @current_user with ...
ept/saas-template
045f6039b9c05fe21a1f4838229892dc6c0fd4b5
Change spec to match new login return_to behaviour
diff --git a/spec/controllers/access_control_spec.rb b/spec/controllers/access_control_spec.rb index f8254cf..ec9a7d9 100644 --- a/spec/controllers/access_control_spec.rb +++ b/spec/controllers/access_control_spec.rb @@ -1,90 +1,92 @@ require File.dirname(__FILE__) + '/../spec_helper' # Be sure to include Authentic...
ept/saas-template
334d0c86a65c2df237b98ab8ac626d4114e7d364
Remove reference to Project (not applicable)
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 53de17d..c079eeb 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,274 +1,273 @@ class UsersController < ApplicationController before_filter :customer_login_required, :except...
ept/saas-template
64796755a886e083a7c4a034c9c87e0c92978e81
Set hostname in cucumber environment
diff --git a/config/environments/cucumber.rb b/config/environments/cucumber.rb index 57680ea..d51e107 100644 --- a/config/environments/cucumber.rb +++ b/config/environments/cucumber.rb @@ -1,26 +1,27 @@ config.cache_classes = true # This must be true for Cucumber to operate correctly! # Log error messages when you ...
ept/saas-template
f67ebd9836eb0c99d9f814a759e8722a0b96761c
Global domain name config and user mailer
diff --git a/README.md b/README.md index 681e3f9..b0a7f3a 100644 --- a/README.md +++ b/README.md @@ -1,145 +1,160 @@ Software-as-a-Service (SaaS) Rails template =========================================== Using this template in your application: $ rails --database mysql myapp $ cd myapp $ rm -r RE...
ept/saas-template
ce653353218ddd9ef76e9260cf12cc5ae8b0ec96
Remember requested URL in return_to URL parameter
diff --git a/README.md b/README.md index 11d6995..681e3f9 100644 --- a/README.md +++ b/README.md @@ -1,118 +1,145 @@ Software-as-a-Service (SaaS) Rails template =========================================== Using this template in your application: $ rails --database mysql myapp $ cd myapp $ rm -r RE...
ept/saas-template
3ab93a453a00c8e9ebfd42b2a10357864579086e
spacing
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 3fba230..d1ee972 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,281 +1,281 @@ class UsersController < ApplicationController outside_facing_actions = [:new, :forgotten_pass...
ept/saas-template
84930904e99bb4c42136cde720c1bacb73947c6b
Merging new emails from go-test.it
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 83b548d..8897309 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,25 +1,25 @@ # Filters added to this controller apply to all controllers in the applicati...
ept/saas-template
f879cac2992d3dcae85199d3cc7628aa0234ba20
Manually configure domain name, in only one place
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 74868f7..83b548d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,24 +1,25 @@ # Filters added to this controller apply to all controllers in the applicati...
ept/saas-template
282c5414c3f9a1a7fab934d651f254d9f0b7f0c0
Set global domain parameters from request
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8cca9e1..74868f7 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,12 +1,24 @@ # Filters added to this controller apply to all controllers in the applicati...
ept/saas-template
980ef616f76cffe7729125305e869b582abd61c3
Add password reset emails
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index e9e9910..44b12b4 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,245 +1,274 @@ class UsersController < ApplicationController - outside_facing_actions = [:new, :forgotten_pass...
ept/saas-template
a0d26841b0c9ec2071237b4419c366e9a91c2dda
Validation emails
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 43f4af4..e9e9910 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,208 +1,245 @@ class UsersController < ApplicationController - outside_facing_actions = [:new, :forgotten_pass...
ept/saas-template
3397276b9561f14e7f7beaff4fa2468c61b4ddef
Email on invitation
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 2bcf159..43f4af4 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,165 +1,208 @@ class UsersController < ApplicationController - before_filter :customer_login_required, :except...
ept/saas-template
285b5e8970aa95fc513fa6f60d87154bb3df0937
Transferring changes to go-test-it
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 4c6cdf8..2bcf159 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,163 +1,165 @@ class UsersController < ApplicationController before_filter :customer_login_required, :except...
ept/saas-template
9aa9cadb4b1bb7a6edccf8f6099f3e5be5eff5de
brackets-required?
diff --git a/lib/customer_domains.rb b/lib/customer_domains.rb index e138586..a0da660 100644 --- a/lib/customer_domains.rb +++ b/lib/customer_domains.rb @@ -1,41 +1,41 @@ module CustomerDomains protected # Inclusion hook to make #current_customer available as ActionView helper method. def self.included(base...
ept/saas-template
75eda55ceeac8959dcc8dcb7570b654d9e1fdaa3
customer_admin_required
diff --git a/lib/customer_domains.rb b/lib/customer_domains.rb index d132899..e138586 100644 --- a/lib/customer_domains.rb +++ b/lib/customer_domains.rb @@ -1,32 +1,41 @@ module CustomerDomains protected # Inclusion hook to make #current_customer available as ActionView helper method. def self.included(base...
ept/saas-template
aa2cb9420e247bb84a84aaa38ed50b9d808b9aad
Add the required request_routing plugin
diff --git a/vendor/plugins/request_routing/LICENSE b/vendor/plugins/request_routing/LICENSE new file mode 100644 index 0000000..11c883d --- /dev/null +++ b/vendor/plugins/request_routing/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2004 Dan Webb + +Permission is hereby granted, free of charge, to any person obtaining +a co...
ept/saas-template
648585b4467efdd3a84e59a6efb0f23b5c981dba
Admin roles for customer_users, granting and revoking
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index aa6bed8..4c6cdf8 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,149 +1,163 @@ class UsersController < ApplicationController before_filter :customer_login_required, :except...
ept/saas-template
e2a31bd4aad91827e55e7ca0406d7e0ecad25d2f
Inviting users to join customer; resetting forgotten passwords
diff --git a/README.md b/README.md index 143b79c..11d6995 100644 --- a/README.md +++ b/README.md @@ -1,116 +1,118 @@ Software-as-a-Service (SaaS) Rails template =========================================== Using this template in your application: $ rails --database mysql myapp $ cd myapp $ rm -r RE...
ept/saas-template
098f936a494e2946803e25398f6d164df68da417
Allow signup info to be preset via query params
diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index fd502ab..5846c8e 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -1,39 +1,44 @@ class CustomersController < ApplicationController before_filter :customer_login...
ept/saas-template
0bc430d62bbefc6fc07f2e646bec89a367acbb34
Updating user details/password; better handling of pending/suspended login
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index c0d3bad..deefa63 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -1,43 +1,52 @@ # This controller handles the login/logout function of the site. class SessionsContro...
ept/saas-template
d4ed1fb18d8c7c9755ee2d501e221d15f156f5a2
Don't require a customer to choose a customer
diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index b655a56..fd502ab 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -1,38 +1,39 @@ class CustomersController < ApplicationController - before_filter :customer_login...
ept/saas-template
6e628283158f55658b7923790bff3fe700528641
customer_login_required for customers controller
diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index 129e61c..b655a56 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -1,38 +1,38 @@ class CustomersController < ApplicationController - before_filter :login_required...
ept/saas-template
9cd81037dd74dad73f5b92b4b29a193393691d58
Propogate changes from go-test.it
diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index f6ddc47..129e61c 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -1,38 +1,38 @@ class CustomersController < ApplicationController before_filter :login_required...
ept/saas-template
bf3c37dd1f545b95101b0a3e9e6b67939c78e544
Added default application.html.erb
diff --git a/README.md b/README.md index 903e3db..143b79c 100644 --- a/README.md +++ b/README.md @@ -1,98 +1,116 @@ Software-as-a-Service (SaaS) Rails template =========================================== Using this template in your application: $ rails --database mysql myapp $ cd myapp $ rm -r REA...
ept/saas-template
8779dbf463fade50b9172b958eb5a911985f11ba
Token::Invitation not InvitationToken
diff --git a/app/models/customer_signup.rb b/app/models/customer_signup.rb index 16e4ac7..67433a1 100644 --- a/app/models/customer_signup.rb +++ b/app/models/customer_signup.rb @@ -1,36 +1,36 @@ class CustomerSignup < ActiveRecord::BaseWithoutTable column :subdomain, :string column :email, :string column :i...
ept/saas-template
d7f0fe0d651462869eb8e75ab4ca6a2003603a9d
More route & database config tweaks
diff --git a/README.md b/README.md index 8bdc53c..903e3db 100644 --- a/README.md +++ b/README.md @@ -1,92 +1,98 @@ Software-as-a-Service (SaaS) Rails template =========================================== Using this template in your application: $ rails --database mysql myapp $ cd myapp $ rm -r READ...
ept/saas-template
dea18ec76c00864e5fae75d33677914efc27d821
Add specs for token models
diff --git a/spec/models/token/base_spec.rb b/spec/models/token/base_spec.rb new file mode 100644 index 0000000..10a8219 --- /dev/null +++ b/spec/models/token/base_spec.rb @@ -0,0 +1,109 @@ +require File.dirname(__FILE__) + '/../../spec_helper' +describe Token::Base do + + class Token::Test < Token::Base + end + bef...
ept/saas-template
4f27e1b9f4cd6f7ffa1b002a679abee0f80c07ba
Environment settings
diff --git a/README.md b/README.md index 3d324d2..8bdc53c 100644 --- a/README.md +++ b/README.md @@ -1,82 +1,92 @@ Software-as-a-Service (SaaS) Rails template =========================================== Using this template in your application: $ rails --database mysql myapp $ cd myapp $ rm -r READ...
ept/saas-template
526e5418693791bdb42c267cc836238c74a0f0be
Add subdomain-fu plugin
diff --git a/vendor/plugins/subdomain-fu/CHANGELOG b/vendor/plugins/subdomain-fu/CHANGELOG new file mode 100644 index 0000000..8b42300 --- /dev/null +++ b/vendor/plugins/subdomain-fu/CHANGELOG @@ -0,0 +1,3 @@ +== 2008-06-25 + +* Removed stray puts \ No newline at end of file diff --git a/vendor/plugins/subdomain-fu/MIT...
ept/saas-template
986a4995811d236ae07df46fe33ef259626936e1
Regenerate fixtures with site key; add routes
diff --git a/README.md b/README.md index d6434aa..3d324d2 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,82 @@ Software-as-a-Service (SaaS) Rails template =========================================== Using this template in your application: $ rails --database mysql myapp $ cd myapp $ rm -r READ...
ept/saas-template
ce5847e593e01a33ec3a244d5fa6c38e73a5e55d
Add missing views
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..261925a --- /dev/null +++ b/.gitmodules @@ -0,0 +1,15 @@ +[submodule "vendor/plugins/rspec"] + path = vendor/plugins/rspec + url = git://github.com/dchelimsky/rspec.git +[submodule "vendor/plugins/rspec_rails"] + path = vendor/plugins/rspec_rail...
ept/saas-template
b6360b080b040fadf4187bdc0d117d42eb9b6182
Add database migrations
diff --git a/db/migrate/20090509194949_create_users.rb b/db/migrate/20090509194949_create_users.rb new file mode 100644 index 0000000..4c82314 --- /dev/null +++ b/db/migrate/20090509194949_create_users.rb @@ -0,0 +1,25 @@ +class CreateUsers < ActiveRecord::Migration + def self.up + create_table "users", :force => t...
ept/saas-template
fc27e1b80f74d81d0166ba28667ed71d3d59cb65
Pick files out of gotestit
diff --git a/.gitmodules b/.gitmodules index 367a5f1..261925a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,12 +1,15 @@ [submodule "vendor/plugins/rspec"] path = vendor/plugins/rspec url = git://github.com/dchelimsky/rspec.git [submodule "vendor/plugins/rspec_rails"] path = vendor/plugins/rspec_rails url =...
ept/saas-template
48319484d40d50654aaac6f9fbd680efdcf3f38f
Adding submodules
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..367a5f1 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,12 @@ +[submodule "vendor/plugins/rspec"] + path = vendor/plugins/rspec + url = git://github.com/dchelimsky/rspec.git +[submodule "vendor/plugins/rspec_rails"] + path = vendor/plugins/rspec_rail...
ept/saas-template
9e942d3209342ee1c6ddf6d026660eb4f6ee4d5b
Added README
diff --git a/README.md b/README.md new file mode 100644 index 0000000..8a8b482 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +Software-as-a-Service (SaaS) Rails template +===========================================
ept/saas-template
7235d9150e8beb80a819923a4c871ef4069c6759
add license
diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b2d8f02 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2009 rick olson + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the So...
ept/saas-template
1ab4f3435f1a22d2cafda2127b9a4bb1c3c4fe9b
exists? not exist
diff --git a/install.rb b/install.rb index 1207b57..5c935a2 100644 --- a/install.rb +++ b/install.rb @@ -1,5 +1,5 @@ -if File.exists(File.join(File.dirname(__FILE__), 'README')) +if File.exists?(File.join(File.dirname(__FILE__), 'README')) puts IO.read(File.join(File.dirname(__FILE__), 'README')) else puts IO.re...
ept/saas-template
7e11db69cac7053b622ed336883c1e90ea6ab1f7
trying a changed install.rb rather than adding a blank README
diff --git a/install.rb b/install.rb index a63be40..1207b57 100644 --- a/install.rb +++ b/install.rb @@ -1 +1,5 @@ -puts IO.read(File.join(File.dirname(__FILE__), 'README')) \ No newline at end of file +if File.exists(File.join(File.dirname(__FILE__), 'README')) + puts IO.read(File.join(File.dirname(__FILE__), 'README...
ept/saas-template
913f8c12033b7722284f7c1bdf35dcea96e7d6d3
Try adding README to see if the pluging not found errors go away
diff --git a/README b/README new file mode 100644 index 0000000..e69de29
ept/saas-template
4834fb74028d3c40991b622de30b1f550fec512d
downcase() the username when using a generated model's authenticate() class method. (usernames are stored downcase()d)
diff --git a/generators/authenticated/templates/model.rb b/generators/authenticated/templates/model.rb index fd36fed..8534846 100644 --- a/generators/authenticated/templates/model.rb +++ b/generators/authenticated/templates/model.rb @@ -1,83 +1,83 @@ require 'digest/sha1' class <%= class_name %> < ActiveRecord::Bas...
ept/saas-template
c8523cf17a07d288fea77a7df6b0efdf7188237c
Ruby 1.9 support
diff --git a/lib/authentication/by_cookie_token.rb b/lib/authentication/by_cookie_token.rb index 81eea97..cc39d1a 100644 --- a/lib/authentication/by_cookie_token.rb +++ b/lib/authentication/by_cookie_token.rb @@ -1,82 +1,82 @@ -# -*- coding: mule-utf-8 -*- +# -*- coding: utf-8 -*- module Authentication module ByCoo...
ept/saas-template
e0a96da19a77a7accf98bd6291c8ac4d3300aa24
Moved rest_auth_stories_helper to rest_auth_features_helper
diff --git a/generators/authenticated/authenticated_generator.rb b/generators/authenticated/authenticated_generator.rb index 7547cba..a46a318 100644 --- a/generators/authenticated/authenticated_generator.rb +++ b/generators/authenticated/authenticated_generator.rb @@ -1,478 +1,478 @@ require File.expand_path(File.dirn...
ept/saas-template
dada879ae7b4ff77d5f5825056e7d1ba7601a033
Reference Cucumber instead of RSpec in README
diff --git a/README.textile b/README.textile index f41801a..162e182 100644 --- a/README.textile +++ b/README.textile @@ -1,224 +1,224 @@ h1. "Restful Authentication Generator":http://github.com/technoweenie/restful-authentication This widely-used plugin provides a foundation for securely managing user authenticati...
ept/saas-template
2f7136a08fc6fb19fae7228074664e85f876e331
Moved stories over to features with minimal munging
diff --git a/generators/authenticated/authenticated_generator.rb b/generators/authenticated/authenticated_generator.rb index 6f7ff69..7547cba 100644 --- a/generators/authenticated/authenticated_generator.rb +++ b/generators/authenticated/authenticated_generator.rb @@ -1,478 +1,478 @@ require File.expand_path(File.dirn...
ept/saas-template
61f377d16c805ad608abef638e0fa29a024e846d
Generated AuthenticatedTestHelper#login_as now accepts both symbol for lookup in the fixture as well as an instance of the originating class.
diff --git a/generators/authenticated/templates/authenticated_test_helper.rb b/generators/authenticated/templates/authenticated_test_helper.rb index 9cd3e45..7398f2e 100644 --- a/generators/authenticated/templates/authenticated_test_helper.rb +++ b/generators/authenticated/templates/authenticated_test_helper.rb @@ -1,2...
ept/saas-template
61cd9b377c0b481384f123dc628a2f8cc5ea5fdf
incremented version in vain attempt to get github to acknowledge me
diff --git a/restful-authentication.gemspec b/restful-authentication.gemspec index 245b844..79db5e9 100644 --- a/restful-authentication.gemspec +++ b/restful-authentication.gemspec @@ -1,33 +1,33 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = %q{restful-authentication} - s.version = "1.1" +...
ept/saas-template
8cffaf6f8e99d263664ca7a402fb09dc39f606a7
Initial attempt at re-gemification
diff --git a/.gitignore b/.gitignore index 0523cb8..dfa2dfa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,20 +1,21 @@ +pkg Icon? .DS_Store TAGS REVISION *.tmproj .settings .project .tasks-cache .svn /log/*.log /tmp/**/* /config/database.yml actionmailer_config_DONOTVERSION.rb *DONOTVERSION* /vendor/src/...
ept/saas-template
b23f6ef47355ffe1882bef283d5dcf499b38111d
Fixing story for namespaced user & session models (fixes http://rails_security.lighthouseapp.com/projects/15332/tickets/13-namespaced-userssession-controllers-cause-rspec-stories-to-fail)
diff --git a/generators/authenticated/templates/stories/steps/ra_navigation_steps.rb b/generators/authenticated/templates/stories/steps/ra_navigation_steps.rb index 4ee361c..ac88d4c 100644 --- a/generators/authenticated/templates/stories/steps/ra_navigation_steps.rb +++ b/generators/authenticated/templates/stories/step...
ept/saas-template
2dc76e7cb2bef0d919f587b52f13f7a95ab7e82c
Added me as maintenance monkey
diff --git a/README.textile b/README.textile index 5cebed7..f41801a 100644 --- a/README.textile +++ b/README.textile @@ -1,220 +1,224 @@ h1. "Restful Authentication Generator":http://github.com/technoweenie/restful-authentication This widely-used plugin provides a foundation for securely managing user authenticati...
ept/saas-template
01a023e7c86875bb484705e528ff68a6d2a91663
need a basic action_name method for #protected?
diff --git a/generators/authenticated/templates/spec/controllers/authenticated_system_spec.rb b/generators/authenticated/templates/spec/controllers/authenticated_system_spec.rb index 2f34d6c..2713e8f 100644 --- a/generators/authenticated/templates/spec/controllers/authenticated_system_spec.rb +++ b/generators/authentic...
ept/saas-template
56a08783659431c103f3b10e1abfb5178b97dec5
fix spacing issue
diff --git a/generators/authenticated/templates/model_controller.rb b/generators/authenticated/templates/model_controller.rb index 56b3c9e..5f66d24 100644 --- a/generators/authenticated/templates/model_controller.rb +++ b/generators/authenticated/templates/model_controller.rb @@ -1,86 +1,85 @@ class <%= model_controll...
ept/saas-template
11c705ffd256e2104e02b79d3eed318ea358a474
fix authorized? signature
diff --git a/generators/authenticated/templates/authenticated_system.rb b/generators/authenticated/templates/authenticated_system.rb index 0138c76..6678613 100644 --- a/generators/authenticated/templates/authenticated_system.rb +++ b/generators/authenticated/templates/authenticated_system.rb @@ -1,188 +1,188 @@ module...
ept/saas-template
49aa1b4587a17fb7e9777fd737680f60e678be5d
make format.any(:json, :xml) the default, fix some style prefs
diff --git a/generators/authenticated/templates/authenticated_system.rb b/generators/authenticated/templates/authenticated_system.rb index baa285b..0138c76 100644 --- a/generators/authenticated/templates/authenticated_system.rb +++ b/generators/authenticated/templates/authenticated_system.rb @@ -1,187 +1,188 @@ module...
ept/saas-template
20881213f76c8c8e817e18a7b276555922bb69f5
change Authentication constants to mattr_accessors to allow them to be customized in apps. also, force logins and emails to be downcased (be nice to your db)
diff --git a/generators/authenticated/templates/model.rb b/generators/authenticated/templates/model.rb index 7b8a37e..fd36fed 100644 --- a/generators/authenticated/templates/model.rb +++ b/generators/authenticated/templates/model.rb @@ -1,74 +1,83 @@ require 'digest/sha1' class <%= class_name %> < ActiveRecord::Bas...
ept/saas-template
d98878e221c1a6e97e3d086330508ac420bf4ebf
whitespace changes
diff --git a/lib/authentication.rb b/lib/authentication.rb index 83820b1..cb3dcfb 100644 --- a/lib/authentication.rb +++ b/lib/authentication.rb @@ -1,43 +1,43 @@ module Authentication unless defined? CONSTANTS_DEFINED # Uncomment to suit RE_LOGIN_OK = /\A\w[\w\.\-_@]+\z/ # ASCII, ...
ept/saas-template
f47198e29c5b072a03d766134d241a6fa7eb9b05
urp. rake from main dir saw the scaffold_rest_auth_example.rake, ruining Xmas. Moved all its tasks into an appropriately disclamatory namespace
diff --git a/tasks/scaffold_rest_auth_example.rake b/tasks/scaffold_rest_auth_example.rake index d5b3ffe..dcdbfd9 100755 --- a/tasks/scaffold_rest_auth_example.rake +++ b/tasks/scaffold_rest_auth_example.rake @@ -1,94 +1,97 @@ #!/usr/bin/env ruby require 'rubygems' require 'fileutils'; include FileUtils::Verbose ...
ept/saas-template
bbd9015b01da2de063444ed04cc241f07ab18a3d
rake tasks to railsify, setup, generate, migrate and test an example restful_authentication app
diff --git a/tasks/scaffold_rest_auth_example.rake b/tasks/scaffold_rest_auth_example.rake new file mode 100755 index 0000000..d5b3ffe --- /dev/null +++ b/tasks/scaffold_rest_auth_example.rake @@ -0,0 +1,94 @@ +#!/usr/bin/env ruby +require 'rubygems' +require 'fileutils'; include FileUtils::Verbose + +APP_BASE_DIR ...
ept/saas-template
6d397cfa008944503cfad9724b531c3f2f039610
Corrected the code which still refers to the old method name abbr_tag_with_IP.
diff --git a/generators/authenticated/templates/_model_partial.html.erb b/generators/authenticated/templates/_model_partial.html.erb index 0685494..39406bd 100644 --- a/generators/authenticated/templates/_model_partial.html.erb +++ b/generators/authenticated/templates/_model_partial.html.erb @@ -1,8 +1,8 @@ <%% if log...
ept/saas-template
d73fbe6a63ba67f68e7e372b3b7eaa535cd7eb03
Fix for a change in action_mailer that dislikes .html.erb on the (non-html) email template:
diff --git a/generators/authenticated/authenticated_generator.rb b/generators/authenticated/authenticated_generator.rb index 9920798..6f7ff69 100644 --- a/generators/authenticated/authenticated_generator.rb +++ b/generators/authenticated/authenticated_generator.rb @@ -1,478 +1,478 @@ require File.expand_path(File.dirn...
ept/saas-template
88d80a670941bb0e538b1752610f498a849db442
Fixed incorrectly implemented spec test
diff --git a/generators/authenticated/templates/spec/models/user_spec.rb b/generators/authenticated/templates/spec/models/user_spec.rb index 9c2a11b..c2085c5 100644 --- a/generators/authenticated/templates/spec/models/user_spec.rb +++ b/generators/authenticated/templates/spec/models/user_spec.rb @@ -1,290 +1,290 @@ # ...
ept/saas-template
08c2bbb1916ea673d8769389b33a2372ece546d8
.edu are people too
diff --git a/lib/authentication.rb b/lib/authentication.rb index 83820b1..a4cc6b1 100644 --- a/lib/authentication.rb +++ b/lib/authentication.rb @@ -1,43 +1,43 @@ module Authentication unless defined? CONSTANTS_DEFINED # Uncomment to suit RE_LOGIN_OK = /\A\w[\w\.\-_@]+\z/ # ASCII, ...
ept/saas-template
7a74819a10ff510629e0e5cab591f3f1c662691f
add rake task for site key generation
diff --git a/tasks/auth.rake b/tasks/auth.rake new file mode 100644 index 0000000..5fe7221 --- /dev/null +++ b/tasks/auth.rake @@ -0,0 +1,33 @@ +require 'digest/sha1' +require 'erb' + +def site_keys_file + File.join("config", "initializers", "site_keys.rb") +end + +def secure_digest(*args) + Digest::SHA1.hexdigest(ar...
ept/saas-template
58c8bc1d544cf90e25c4beb3267ff35a1a7fcf25
Fixed typo in tradeoffs readme
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0523cb8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +Icon? +.DS_Store +TAGS +REVISION +*.tmproj +.settings +.project +.tasks-cache +.svn +/log/*.log +/tmp/**/* +/config/database.yml +actionmailer_config_DONOTVERSION.rb +*DONOTVERSION* +/vendor...
ept/saas-template
2d24dae056f4d2b68c69429ed4395cdd8b02efb2
Add in support for AASM
diff --git a/README b/README index 748670e..5fb33b4 100644 --- a/README +++ b/README @@ -1,174 +1,176 @@ h1. Restful Authentication Generator This widely-used plugin provides a foundation for securely managing user authentication: * Login / logout * Secure password handling * Account activation by validating em...
ept/saas-template
cff7cbca33d3d1c10f219a7628539712e62bda93
fixed the routing issues maybe? * model_controller_routing_path means nest/users * controller_routing_path means nest/session * model_controller_routing_name = users, (used for users_path etc and must be singularized for things like new_user_path) * controller_routing_name = session (used for session_path, new_se...
diff --git a/generators/authenticated/authenticated_generator.rb b/generators/authenticated/authenticated_generator.rb index f4234fb..89a1f57 100644 --- a/generators/authenticated/authenticated_generator.rb +++ b/generators/authenticated/authenticated_generator.rb @@ -1,380 +1,472 @@ require File.expand_path(File.dirn...
ept/saas-template
26f4cbfd75f6bfaf6edc44ed9d7d6666ff7bafe5
looks like it's plural routes
diff --git a/generators/authenticated/authenticated_generator.rb b/generators/authenticated/authenticated_generator.rb index 11d5264..f4234fb 100644 --- a/generators/authenticated/authenticated_generator.rb +++ b/generators/authenticated/authenticated_generator.rb @@ -1,380 +1,380 @@ require File.expand_path(File.dirn...
ept/saas-template
5e292e7ac802bf0373d355bdfab29c98b3c2a2e1
fixed hardcoding of controller names (my bad)
diff --git a/generators/authenticated/authenticated_generator.rb b/generators/authenticated/authenticated_generator.rb index 5c6bd74..11d5264 100644 --- a/generators/authenticated/authenticated_generator.rb +++ b/generators/authenticated/authenticated_generator.rb @@ -1,380 +1,380 @@ require File.expand_path(File.dirn...
ept/saas-template
d36c27a388dec9a0a35de6f745efb8a5ca8114d8
added support for creating named routes, added named routes to generator
diff --git a/generators/authenticated/authenticated_generator.rb b/generators/authenticated/authenticated_generator.rb index 9ce813d..5c6bd74 100644 --- a/generators/authenticated/authenticated_generator.rb +++ b/generators/authenticated/authenticated_generator.rb @@ -1,376 +1,380 @@ require File.expand_path(File.dirn...