Permalink
Browse files

Initial generated version with minor setup changes

  • Loading branch information...
0 parents commit e50fde3b1d4464856f53a1ffe91b8fff1f8f12d9 @technomage committed Jun 16, 2012
Showing with 1,035 additions and 0 deletions.
  1. +12 −0 .gitignore
  2. +17 −0 Gemfile
  3. +97 −0 Gemfile.lock
  4. +20 −0 MIT-LICENSE
  5. +9 −0 README.rdoc
  6. +40 −0 Rakefile
  7. 0 app/assets/images/ember-devise-bootstrap/.gitkeep
  8. +15 −0 app/assets/javascripts/ember-devise-bootstrap/application.js
  9. +13 −0 app/assets/stylesheets/ember-devise-bootstrap/application.css
  10. +4 −0 app/controllers/ember-devise-bootstrap/application_controller.rb
  11. +4 −0 app/helpers/ember-devise-bootstrap/application_helper.rb
  12. +14 −0 app/views/layouts/ember-devise-bootstrap/application.html.erb
  13. +2 −0 config/routes.rb
  14. +24 −0 ember-devise-bootstrap.gemspec
  15. +4 −0 lib/ember-devise-bootstrap.rb
  16. +5 −0 lib/ember-devise-bootstrap/engine.rb
  17. +3 −0 lib/ember-devise-bootstrap/version.rb
  18. +4 −0 lib/tasks/ember-devise-bootstrap_tasks.rake
  19. +8 −0 script/rails
  20. +261 −0 test/dummy/README.rdoc
  21. +7 −0 test/dummy/Rakefile
  22. +15 −0 test/dummy/app/assets/javascripts/application.js
  23. +13 −0 test/dummy/app/assets/stylesheets/application.css
  24. +3 −0 test/dummy/app/controllers/application_controller.rb
  25. +2 −0 test/dummy/app/helpers/application_helper.rb
  26. 0 test/dummy/app/mailers/.gitkeep
  27. 0 test/dummy/app/models/.gitkeep
  28. +14 −0 test/dummy/app/views/layouts/application.html.erb
  29. +4 −0 test/dummy/config.ru
  30. +59 −0 test/dummy/config/application.rb
  31. +10 −0 test/dummy/config/boot.rb
  32. +25 −0 test/dummy/config/database.yml
  33. +5 −0 test/dummy/config/environment.rb
  34. +37 −0 test/dummy/config/environments/development.rb
  35. +67 −0 test/dummy/config/environments/production.rb
  36. +37 −0 test/dummy/config/environments/test.rb
  37. +7 −0 test/dummy/config/initializers/backtrace_silencers.rb
  38. +15 −0 test/dummy/config/initializers/inflections.rb
  39. +5 −0 test/dummy/config/initializers/mime_types.rb
  40. +7 −0 test/dummy/config/initializers/secret_token.rb
  41. +8 −0 test/dummy/config/initializers/session_store.rb
  42. +14 −0 test/dummy/config/initializers/wrap_parameters.rb
  43. +5 −0 test/dummy/config/locales/en.yml
  44. +4 −0 test/dummy/config/routes.rb
  45. 0 test/dummy/lib/assets/.gitkeep
  46. 0 test/dummy/log/.gitkeep
  47. +26 −0 test/dummy/public/404.html
  48. +26 −0 test/dummy/public/422.html
  49. +25 −0 test/dummy/public/500.html
  50. 0 test/dummy/public/favicon.ico
  51. +6 −0 test/dummy/script/rails
  52. +7 −0 test/ember-devise-bootstrap_test.rb
  53. +10 −0 test/integration/navigation_test.rb
  54. +15 −0 test/test_helper.rb
  55. +1 −0 version
@@ -0,0 +1,12 @@
+.bundle/
+log/*.log
+pkg/
+test/dummy/db/*.sqlite3
+test/dummy/log/*.log
+test/dummy/tmp/
+test/dummy/.sass-cache
+.DS_Store
+.idea/
+tmp/
+.rvmrc
+db/*.sqlite3
@@ -0,0 +1,17 @@
+source "http://rubygems.org"
+
+# Declare your gem's dependencies in ember-devise-bootstrap.gemspec.
+# Bundler will treat runtime dependencies like base dependencies, and
+# development dependencies will be added by default to the :development group.
+gemspec
+
+# jquery-rails is used by the dummy application
+gem "jquery-rails"
+
+# Declare any dependencies that are still in development here instead of in
+# your gemspec. These might include edge Rails or gems from your path or
+# Git. Remember to move these dependencies to your gemspec before releasing
+# your gem to rubygems.org.
+
+# To use debugger
+# gem 'debugger'
@@ -0,0 +1,97 @@
+PATH
+ remote: .
+ specs:
+ ember-devise-bootstrap (0.0.1)
+ rails (~> 3.2.6)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (3.2.6)
+ actionpack (= 3.2.6)
+ mail (~> 2.4.4)
+ actionpack (3.2.6)
+ activemodel (= 3.2.6)
+ activesupport (= 3.2.6)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.1)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.1.3)
+ activemodel (3.2.6)
+ activesupport (= 3.2.6)
+ builder (~> 3.0.0)
+ activerecord (3.2.6)
+ activemodel (= 3.2.6)
+ activesupport (= 3.2.6)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.6)
+ activemodel (= 3.2.6)
+ activesupport (= 3.2.6)
+ activesupport (3.2.6)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ arel (3.0.2)
+ builder (3.0.0)
+ erubis (2.7.0)
+ hike (1.2.1)
+ i18n (0.6.0)
+ journey (1.0.4)
+ jquery-rails (2.0.2)
+ railties (>= 3.2.0, < 5.0)
+ thor (~> 0.14)
+ json (1.7.3)
+ mail (2.4.4)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.18)
+ multi_json (1.3.6)
+ polyglot (0.3.3)
+ rack (1.4.1)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.2.6)
+ actionmailer (= 3.2.6)
+ actionpack (= 3.2.6)
+ activerecord (= 3.2.6)
+ activeresource (= 3.2.6)
+ activesupport (= 3.2.6)
+ bundler (~> 1.0)
+ railties (= 3.2.6)
+ railties (3.2.6)
+ actionpack (= 3.2.6)
+ activesupport (= 3.2.6)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (>= 0.14.6, < 2.0)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ sprockets (2.1.3)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.6)
+ thor (0.15.2)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.33)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ ember-devise-bootstrap!
+ jquery-rails
+ sqlite3
@@ -0,0 +1,20 @@
+Copyright 2012 YOURNAME
+
+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 Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,9 @@
+= EmberDeviseBootstrap
+This project provides a login UI uising Ember.js and Twitter Bootstrap that
+is compatible with Devise.
+
+The first step is to extract this from an existing project and get it working in that
+context. This will work for the User resource, then it will be generalized for more
+resources.
+
+This project is released under the MIT-LICENSE.
@@ -0,0 +1,40 @@
+#!/usr/bin/env rake
+begin
+ require 'bundler/setup'
+rescue LoadError
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
+end
+begin
+ require 'rdoc/task'
+rescue LoadError
+ require 'rdoc/rdoc'
+ require 'rake/rdoctask'
+ RDoc::Task = Rake::RDocTask
+end
+
+RDoc::Task.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'EmberDeviseBootstrap'
+ rdoc.options << '--line-numbers'
+ rdoc.rdoc_files.include('README.rdoc')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
+APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
+load 'rails/tasks/engine.rake'
+
+
+
+Bundler::GemHelper.install_tasks
+
+require 'rake/testtask'
+
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ t.pattern = 'test/**/*_test.rb'
+ t.verbose = false
+end
+
+
+task :default => :test
@@ -0,0 +1,15 @@
+// This is a manifest file that'll be compiled into application.js, which will include all the files
+// listed below.
+//
+// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
+// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
+//
+// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
+// the compiled file.
+//
+// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
+// GO AFTER THE REQUIRES BELOW.
+//
+//= require jquery
+//= require jquery_ujs
+//= require_tree .
@@ -0,0 +1,13 @@
+/*
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
+ * listed below.
+ *
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
+ *
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
+ * compiled file, but it's generally better to create a new file per style scope.
+ *
+ *= require_self
+ *= require_tree .
+ */
@@ -0,0 +1,4 @@
+module EmberDeviseBootstrap
+ class ApplicationController < ActionController::Base
+ end
+end
@@ -0,0 +1,4 @@
+module EmberDeviseBootstrap
+ module ApplicationHelper
+ end
+end
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>EmberDeviseBootstrap</title>
+ <%= stylesheet_link_tag "ember-devise-bootstrap/application", :media => "all" %>
+ <%= javascript_include_tag "ember-devise-bootstrap/application" %>
+ <%= csrf_meta_tags %>
+</head>
+<body>
+
+<%= yield %>
+
+</body>
+</html>
@@ -0,0 +1,2 @@
+EmberDeviseBootstrap::Engine.routes.draw do
+end
@@ -0,0 +1,24 @@
+$:.push File.expand_path("../lib", __FILE__)
+
+# Maintain your gem's version:
+require "ember-devise-bootstrap/version"
+
+# Describe your gem and declare its dependencies:
+Gem::Specification.new do |s|
+ s.name = "ember-devise-bootstrap"
+ s.version = EmberDeviseBootstrap::VERSION
+ s.authors = ["Michael Latta"]
+ s.email = ["mlatta@technomage.com"]
+ s.homepage = "http://www.technomage.com"
+ s.summary = "An Ember and Twitter Bootstrap based login UI for Devise."
+ s.description = "An Ember and Twitter Bootstrap based login UI for Devise."
+
+ s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
+ s.test_files = Dir["test/**/*"]
+
+ s.add_dependency "rails", ">= 3.2.6"
+ s.add_dependency "ember-rails"
+ s.add_dependency "twitter-bootstrap-rails"
+
+ s.add_development_dependency "sqlite3"
+end
@@ -0,0 +1,4 @@
+require "ember-devise-bootstrap/engine"
+
+module EmberDeviseBootstrap
+end
@@ -0,0 +1,5 @@
+module EmberDeviseBootstrap
+ class Engine < ::Rails::Engine
+ isolate_namespace EmberDeviseBootstrap
+ end
+end
@@ -0,0 +1,3 @@
+module EmberDeviseBootstrap
+ VERSION = "0.0.1"
+end
@@ -0,0 +1,4 @@
+# desc "Explaining what the task does"
+# task :ember-devise-bootstrap do
+# # Task goes here
+# end
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
+
+ENGINE_ROOT = File.expand_path('../..', __FILE__)
+ENGINE_PATH = File.expand_path('../../lib/ember-devise-bootstrap/engine', __FILE__)
+
+require 'rails/all'
+require 'rails/engine/commands'
Oops, something went wrong.

0 comments on commit e50fde3

Please sign in to comment.