Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 1dd32aaea6d70359f297b89c1590151a164da90c @kagemusha committed Feb 3, 2013
Showing with 1,717 additions and 0 deletions.
  1. +1 −0 .rspec
  2. +48 −0 .rvmrc
  3. +29 −0 Gemfile
  4. +223 −0 Gemfile.lock
  5. +19 −0 README
  6. +80 −0 README.textile
  7. +7 −0 Rakefile
  8. +16 −0 app/assets/javascripts/application.js
  9. +25 −0 app/assets/stylesheets/application.css.scss
  10. +3 −0 app/assets/stylesheets/bootstrap_and_overrides.css.scss
  11. +8 −0 app/controllers/application_controller.rb
  12. +2 −0 app/helpers/application_helper.rb
  13. 0 app/mailers/.gitkeep
  14. 0 app/models/.gitkeep
  15. +28 −0 app/models/ability.rb
  16. +6 −0 app/models/role.rb
  17. +12 −0 app/models/user.rb
  18. +31 −0 app/views/devise/registrations/edit.html.haml
  19. +21 −0 app/views/devise/registrations/new.html.haml
  20. +19 −0 app/views/devise/shared/_links.html.haml
  21. +5 −0 app/views/layouts/_messages.html.haml
  22. +17 −0 app/views/layouts/_navigation.html.haml
  23. +25 −0 app/views/layouts/application.html.haml
  24. +4 −0 config.ru
  25. +82 −0 config/application.rb
  26. +6 −0 config/boot.rb
  27. +25 −0 config/database.yml
  28. +5 −0 config/environment.rb
  29. +37 −0 config/environments/development.rb
  30. +67 −0 config/environments/production.rb
  31. +37 −0 config/environments/test.rb
  32. +7 −0 config/initializers/backtrace_silencers.rb
  33. +240 −0 config/initializers/devise.rb
  34. +2 −0 config/initializers/generators.rb
  35. +15 −0 config/initializers/inflections.rb
  36. +5 −0 config/initializers/mime_types.rb
  37. +8 −0 config/initializers/rolify.rb
  38. +7 −0 config/initializers/secret_token.rb
  39. +8 −0 config/initializers/session_store.rb
  40. +14 −0 config/initializers/wrap_parameters.rb
  41. +59 −0 config/locales/devise.en.yml
  42. +5 −0 config/locales/en.yml
  43. +3 −0 config/routes.rb
  44. +46 −0 db/migrate/20130203231007_devise_create_users.rb
  45. +5 −0 db/migrate/20130203231012_add_name_to_users.rb
  46. +19 −0 db/migrate/20130203231022_rolify_create_roles.rb
  47. +7 −0 db/seeds.rb
  48. +206 −0 features/step_definitions/email_steps.rb
  49. 0 lib/assets/.gitkeep
  50. 0 lib/tasks/.gitkeep
  51. 0 log/.gitkeep
  52. +26 −0 public/404.html
  53. +26 −0 public/422.html
  54. +25 −0 public/500.html
  55. 0 public/favicon.ico
  56. +20 −0 public/humans.txt
  57. +5 −0 public/robots.txt
  58. +6 −0 script/rails
  59. +6 −0 spec/factories/users.rb
  60. +5 −0 spec/models/user_spec.rb
  61. +51 −0 spec/spec_helper.rb
  62. +3 −0 spec/support/devise.rb
  63. 0 vendor/assets/javascripts/.gitkeep
  64. 0 vendor/assets/stylesheets/.gitkeep
  65. 0 vendor/plugins/.gitkeep
1 .rspec
@@ -0,0 +1 @@
+--color
48 .rvmrc
@@ -0,0 +1,48 @@
+#!/usr/bin/env bash
+
+# This is an RVM Project .rvmrc file, used to automatically load the ruby
+# development environment upon cd'ing into the directory
+
+# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
+# Only full ruby name is supported here, for short names use:
+# echo "rvm use 1.9.3" > .rvmrc
+environment_id="ruby-1.9.3@ember-rails-devise"
+
+# Uncomment the following lines if you want to verify rvm version per project
+# rvmrc_rvm_version="1.14.2 (latest)" # 1.10.1 seams as a safe start
+# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
+# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
+# return 1
+# }
+
+# First we attempt to load the desired environment directly from the environment
+# file. This is very fast and efficient compared to running through the entire
+# CLI and selector. If you want feedback on which environment was used then
+# insert the word 'use' after --create as this triggers verbose mode.
+if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
+ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
+then
+ \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
+ [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] &&
+ \. "${rvm_path:-$HOME/.rvm}/hooks/after_use" || true
+else
+ # If the environment file has not yet been created, use the RVM CLI to select.
+ rvm --create "$environment_id" || {
+ echo "Failed to create RVM environment '${environment_id}'."
+ return 1
+ }
+fi
+
+# If you use bundler, this might be useful to you:
+# if [[ -s Gemfile ]] && {
+# ! builtin command -v bundle >/dev/null ||
+# builtin command -v bundle | GREP_OPTIONS= \grep $rvm_path/bin/bundle >/dev/null
+# }
+# then
+# printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
+# gem install bundler
+# fi
+# if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
+# then
+# bundle install | GREP_OPTIONS= \grep -vE '^Using|Your bundle is complete'
+# fi
29 Gemfile
@@ -0,0 +1,29 @@
+source 'https://rubygems.org'
+gem 'rails', '3.2.11'
+gem 'sqlite3'
+group :assets do
+ gem 'sass-rails', '~> 3.2.3'
+ gem 'coffee-rails', '~> 3.2.1'
+ gem 'uglifier', '>= 1.0.3'
+end
+gem 'jquery-rails'
+gem "thin", ">= 1.5.0", :group => [:development, :test]
+gem "haml", ">= 3.1.7"
+gem "haml-rails", ">= 0.3.5", :group => :development
+gem "hpricot", ">= 0.8.6", :group => :development
+gem "ruby_parser", ">= 3.1.1", :group => :development
+gem "rspec-rails", ">= 2.12.2", :group => [:development, :test]
+gem "capybara", ">= 2.0.2", :group => :test
+gem "database_cleaner", ">= 0.9.1", :group => :test
+gem "email_spec", ">= 1.4.0", :group => :test
+gem "factory_girl_rails", ">= 4.2.0", :group => [:development, :test]
+gem "bootstrap-sass", ">= 2.2.2.0"
+gem "devise", ">= 2.2.3"
+gem "cancan", ">= 1.6.8"
+gem "rolify", ">= 3.2.0"
+gem "active_model_serializers"
+gem "ember-rails"
+gem "quiet_assets", ">= 1.0.1", :group => :development
+gem "figaro", ">= 0.5.3"
+gem "better_errors", ">= 0.3.2", :group => :development
+gem "binding_of_caller", ">= 0.6.8", :group => :development
@@ -0,0 +1,223 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ actionmailer (3.2.11)
+ actionpack (= 3.2.11)
+ mail (~> 2.4.4)
+ actionpack (3.2.11)
+ activemodel (= 3.2.11)
+ activesupport (= 3.2.11)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.4)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.2.1)
+ active_model_serializers (0.6.0)
+ activemodel (>= 3.0)
+ activemodel (3.2.11)
+ activesupport (= 3.2.11)
+ builder (~> 3.0.0)
+ activerecord (3.2.11)
+ activemodel (= 3.2.11)
+ activesupport (= 3.2.11)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.11)
+ activemodel (= 3.2.11)
+ activesupport (= 3.2.11)
+ activesupport (3.2.11)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ addressable (2.3.2)
+ arel (3.0.2)
+ barber (0.2.0)
+ execjs
+ bcrypt-ruby (3.0.1)
+ better_errors (0.3.2)
+ coderay (>= 1.0.0)
+ erubis (>= 2.7.0)
+ binding_of_caller (0.6.8)
+ bootstrap-sass (2.2.2.0)
+ sass (~> 3.2)
+ builder (3.0.4)
+ cancan (1.6.8)
+ capybara (2.0.2)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (~> 2.0)
+ xpath (~> 1.0.0)
+ childprocess (0.3.7)
+ ffi (~> 1.0, >= 1.0.6)
+ coderay (1.0.8)
+ coffee-rails (3.2.2)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.2.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.4.0)
+ daemons (1.1.9)
+ database_cleaner (0.9.1)
+ devise (2.2.3)
+ bcrypt-ruby (~> 3.0)
+ orm_adapter (~> 0.1)
+ railties (~> 3.1)
+ warden (~> 1.2.1)
+ diff-lcs (1.1.3)
+ email_spec (1.4.0)
+ launchy (~> 2.1)
+ mail (~> 2.2)
+ ember-rails (0.9.2)
+ active_model_serializers
+ barber
+ execjs (>= 1.2)
+ railties (>= 3.1)
+ erubis (2.7.0)
+ eventmachine (1.0.0)
+ execjs (1.4.0)
+ multi_json (~> 1.0)
+ factory_girl (4.2.0)
+ activesupport (>= 3.0.0)
+ factory_girl_rails (4.2.0)
+ factory_girl (~> 4.2.0)
+ railties (>= 3.0.0)
+ ffi (1.3.1)
+ figaro (0.5.3)
+ rails (~> 3.0)
+ haml (3.1.7)
+ haml-rails (0.3.5)
+ actionpack (>= 3.1, < 4.1)
+ activesupport (>= 3.1, < 4.1)
+ haml (~> 3.1)
+ railties (>= 3.1, < 4.1)
+ hike (1.2.1)
+ hpricot (0.8.6)
+ i18n (0.6.1)
+ journey (1.0.4)
+ jquery-rails (2.2.0)
+ railties (>= 3.0, < 5.0)
+ thor (>= 0.14, < 2.0)
+ json (1.7.6)
+ launchy (2.1.2)
+ addressable (~> 2.3)
+ mail (2.4.4)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.19)
+ multi_json (1.5.0)
+ nokogiri (1.5.6)
+ orm_adapter (0.4.0)
+ polyglot (0.3.3)
+ quiet_assets (1.0.1)
+ railties (~> 3.1)
+ rack (1.4.4)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-ssl (1.3.3)
+ rack
+ rack-test (0.6.2)
+ rack (>= 1.0)
+ rails (3.2.11)
+ actionmailer (= 3.2.11)
+ actionpack (= 3.2.11)
+ activerecord (= 3.2.11)
+ activeresource (= 3.2.11)
+ activesupport (= 3.2.11)
+ bundler (~> 1.0)
+ railties (= 3.2.11)
+ railties (3.2.11)
+ actionpack (= 3.2.11)
+ activesupport (= 3.2.11)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (>= 0.14.6, < 2.0)
+ rake (10.0.3)
+ rdoc (3.12)
+ json (~> 1.4)
+ rolify (3.2.0)
+ rspec-core (2.12.2)
+ rspec-expectations (2.12.1)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.12.2)
+ rspec-rails (2.12.2)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec-core (~> 2.12.0)
+ rspec-expectations (~> 2.12.0)
+ rspec-mocks (~> 2.12.0)
+ ruby_parser (3.1.1)
+ sexp_processor (~> 4.1)
+ rubyzip (0.9.9)
+ sass (3.2.5)
+ sass-rails (3.2.6)
+ railties (~> 3.2.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ selenium-webdriver (2.29.0)
+ childprocess (>= 0.2.5)
+ multi_json (~> 1.0)
+ rubyzip
+ websocket (~> 1.0.4)
+ sexp_processor (4.1.4)
+ sprockets (2.2.2)
+ hike (~> 1.2)
+ multi_json (~> 1.0)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.7)
+ thin (1.5.0)
+ daemons (>= 1.0.9)
+ eventmachine (>= 0.12.6)
+ rack (>= 1.0.0)
+ thor (0.17.0)
+ tilt (1.3.3)
+ treetop (1.4.12)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.35)
+ uglifier (1.3.0)
+ execjs (>= 0.3.0)
+ multi_json (~> 1.0, >= 1.0.2)
+ warden (1.2.1)
+ rack (>= 1.0)
+ websocket (1.0.7)
+ xpath (1.0.0)
+ nokogiri (~> 1.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ active_model_serializers
+ better_errors (>= 0.3.2)
+ binding_of_caller (>= 0.6.8)
+ bootstrap-sass (>= 2.2.2.0)
+ cancan (>= 1.6.8)
+ capybara (>= 2.0.2)
+ coffee-rails (~> 3.2.1)
+ database_cleaner (>= 0.9.1)
+ devise (>= 2.2.3)
+ email_spec (>= 1.4.0)
+ ember-rails
+ factory_girl_rails (>= 4.2.0)
+ figaro (>= 0.5.3)
+ haml (>= 3.1.7)
+ haml-rails (>= 0.3.5)
+ hpricot (>= 0.8.6)
+ jquery-rails
+ quiet_assets (>= 1.0.1)
+ rails (= 3.2.11)
+ rolify (>= 3.2.0)
+ rspec-rails (>= 2.12.2)
+ ruby_parser (>= 3.1.1)
+ sass-rails (~> 3.2.3)
+ sqlite3
+ thin (>= 1.5.0)
+ uglifier (>= 1.0.3)
19 README
@@ -0,0 +1,19 @@
+Ember Rails Devise
+========================
+
+This application was generated with the rails_apps_composer gem:
+https://github.com/RailsApps/rails_apps_composer
+provided by the RailsApps Project:
+http://railsapps.github.com/
+
+________________________
+
+Recipes:
+["controllers", "email", "extras", "frontend", "gems", "models", "readme", "routes", "setup", "testing", "views"]
+
+Preferences:
+{:dev_webserver=>"thin", :prod_webserver=>nil, :database=>"sqlite", :templates=>"haml", :unit_test=>"rspec", :integration=>"rspec-capybara", :fixtures=>"factory_girl", :frontend=>"bootstrap", :bootstrap=>"sass", :form_builder=>"none", :email=>"none", :authentication=>"devise", :devise_modules=>"default", :authorization=>"cancan", :quiet_assets=>true, :local_env_file=>true, :better_errors=>true, :ban_spiders=>true, :rvmrc=>true, :github=>false, :starter_app=>"none"}
+
+________________________
+
+License
Oops, something went wrong.

0 comments on commit 1dd32aa

Please sign in to comment.