Permalink
Browse files

adding rails 3 app to gem to test it

  • Loading branch information...
1 parent 6dbb65f commit 28590bf6cb215705a701a288c1795c10bfe00863 @NoamB committed Dec 24, 2010
Showing with 10,523 additions and 3 deletions.
  1. +4 −0 Gemfile
  2. +127 −0 Gemfile.lock
  3. +19 −3 Rakefile
  4. +35 −0 spec/rails3/Gemfile
  5. +110 −0 spec/rails3/Gemfile.lock
  6. +10 −0 spec/rails3/Rakefile
  7. +4 −0 spec/rails3/app_root/.gitignore
  8. +256 −0 spec/rails3/app_root/README
  9. +7 −0 spec/rails3/app_root/Rakefile.unused
  10. +3 −0 spec/rails3/app_root/app/controllers/application_controller.rb
  11. +2 −0 spec/rails3/app_root/app/helpers/application_helper.rb
  12. +14 −0 spec/rails3/app_root/app/views/layouts/application.html.erb
  13. +4 −0 spec/rails3/app_root/config.ru
  14. +48 −0 spec/rails3/app_root/config/application.rb
  15. +13 −0 spec/rails3/app_root/config/boot.rb
  16. +27 −0 spec/rails3/app_root/config/database.yml
  17. +5 −0 spec/rails3/app_root/config/environment.rb
  18. +26 −0 spec/rails3/app_root/config/environments/development.rb
  19. 0 spec/rails3/app_root/config/environments/in_memory.rb
  20. +49 −0 spec/rails3/app_root/config/environments/production.rb
  21. +35 −0 spec/rails3/app_root/config/environments/test.rb
  22. +7 −0 spec/rails3/app_root/config/initializers/backtrace_silencers.rb
  23. +10 −0 spec/rails3/app_root/config/initializers/inflections.rb
  24. +5 −0 spec/rails3/app_root/config/initializers/mime_types.rb
  25. +7 −0 spec/rails3/app_root/config/initializers/secret_token.rb
  26. +8 −0 spec/rails3/app_root/config/initializers/session_store.rb
  27. +5 −0 spec/rails3/app_root/config/locales/en.yml
  28. +58 −0 spec/rails3/app_root/config/routes.rb
  29. +7 −0 spec/rails3/app_root/db/seeds.rb
  30. 0 spec/rails3/app_root/lib/tasks/.gitkeep
  31. +26 −0 spec/rails3/app_root/public/404.html
  32. +26 −0 spec/rails3/app_root/public/422.html
  33. +26 −0 spec/rails3/app_root/public/500.html
  34. 0 spec/rails3/app_root/public/favicon.ico
  35. BIN spec/rails3/app_root/public/images/rails.png
  36. +239 −0 spec/rails3/app_root/public/index.html
  37. +2 −0 spec/rails3/app_root/public/javascripts/application.js
  38. +965 −0 spec/rails3/app_root/public/javascripts/controls.js
  39. +974 −0 spec/rails3/app_root/public/javascripts/dragdrop.js
  40. +1,123 −0 spec/rails3/app_root/public/javascripts/effects.js
  41. +6,001 −0 spec/rails3/app_root/public/javascripts/prototype.js
  42. +175 −0 spec/rails3/app_root/public/javascripts/rails.js
  43. +5 −0 spec/rails3/app_root/public/robots.txt
  44. 0 spec/rails3/app_root/public/stylesheets/.gitkeep
  45. +6 −0 spec/rails3/app_root/script/rails
  46. +9 −0 spec/rails3/app_root/test/performance/browsing_test.rb
  47. +13 −0 spec/rails3/app_root/test/test_helper.rb
  48. 0 spec/rails3/app_root/vendor/plugins/.gitkeep
  49. +7 −0 spec/rails3/rails3_spec.rb
  50. +21 −0 spec/rails3/spec_helper.rb
View
@@ -6,7 +6,11 @@ source "http://rubygems.org"
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
+ gem "rails", "3.0.3"
gem "rspec", "~> 2.3.0"
+ gem 'rspec-rails'
+ gem 'ruby-debug19'
+ gem 'sqlite3-ruby', :require => 'sqlite3'
gem "yard", "~> 0.6.0"
gem "cucumber", ">= 0"
gem "bundler", "~> 1.0.0"
View
@@ -0,0 +1,127 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ abstract (1.0.0)
+ actionmailer (3.0.3)
+ actionpack (= 3.0.3)
+ mail (~> 2.2.9)
+ actionpack (3.0.3)
+ activemodel (= 3.0.3)
+ activesupport (= 3.0.3)
+ builder (~> 2.1.2)
+ erubis (~> 2.6.6)
+ i18n (~> 0.4)
+ rack (~> 1.2.1)
+ rack-mount (~> 0.6.13)
+ rack-test (~> 0.5.6)
+ tzinfo (~> 0.3.23)
+ activemodel (3.0.3)
+ activesupport (= 3.0.3)
+ builder (~> 2.1.2)
+ i18n (~> 0.4)
+ activerecord (3.0.3)
+ activemodel (= 3.0.3)
+ activesupport (= 3.0.3)
+ arel (~> 2.0.2)
+ tzinfo (~> 0.3.23)
+ activeresource (3.0.3)
+ activemodel (= 3.0.3)
+ activesupport (= 3.0.3)
+ activesupport (3.0.3)
+ archive-tar-minitar (0.5.2)
+ arel (2.0.6)
+ builder (2.1.2)
+ columnize (0.3.2)
+ cucumber (0.10.0)
+ builder (>= 2.1.2)
+ diff-lcs (~> 1.1.2)
+ gherkin (~> 2.3.2)
+ json (~> 1.4.6)
+ term-ansicolor (~> 1.0.5)
+ diff-lcs (1.1.2)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ gherkin (2.3.2)
+ json (~> 1.4.6)
+ term-ansicolor (~> 1.0.5)
+ git (1.2.5)
+ i18n (0.5.0)
+ jeweler (1.5.2)
+ bundler (~> 1.0.0)
+ git (>= 1.2.5)
+ rake
+ json (1.4.6)
+ linecache19 (0.5.11)
+ ruby_core_source (>= 0.1.4)
+ mail (2.2.13)
+ activesupport (>= 2.3.6)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.16)
+ polyglot (0.3.1)
+ rack (1.2.1)
+ rack-mount (0.6.13)
+ rack (>= 1.0.0)
+ rack-test (0.5.6)
+ rack (>= 1.0)
+ rails (3.0.3)
+ actionmailer (= 3.0.3)
+ actionpack (= 3.0.3)
+ activerecord (= 3.0.3)
+ activeresource (= 3.0.3)
+ activesupport (= 3.0.3)
+ bundler (~> 1.0)
+ railties (= 3.0.3)
+ railties (3.0.3)
+ actionpack (= 3.0.3)
+ activesupport (= 3.0.3)
+ rake (>= 0.8.7)
+ thor (~> 0.14.4)
+ rake (0.8.7)
+ rcov (0.9.9)
+ rspec (2.3.0)
+ rspec-core (~> 2.3.0)
+ rspec-expectations (~> 2.3.0)
+ rspec-mocks (~> 2.3.0)
+ rspec-core (2.3.1)
+ rspec-expectations (2.3.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.3.0)
+ rspec-rails (2.3.1)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ railties (~> 3.0)
+ rspec (~> 2.3.0)
+ ruby-debug-base19 (0.11.24)
+ columnize (>= 0.3.1)
+ linecache19 (>= 0.5.11)
+ ruby_core_source (>= 0.1.4)
+ ruby-debug19 (0.11.6)
+ columnize (>= 0.3.1)
+ linecache19 (>= 0.5.11)
+ ruby-debug-base19 (>= 0.11.19)
+ ruby_core_source (0.1.4)
+ archive-tar-minitar (>= 0.5.2)
+ sqlite3-ruby (1.3.2)
+ term-ansicolor (1.0.5)
+ thor (0.14.6)
+ treetop (1.4.9)
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.23)
+ yard (0.6.4)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ bundler (~> 1.0.0)
+ cucumber
+ jeweler (~> 1.5.2)
+ rails (= 3.0.3)
+ rcov
+ rspec (~> 2.3.0)
+ rspec-rails
+ ruby-debug19
+ sqlite3-ruby
+ yard (~> 0.6.0)
View
@@ -15,8 +15,8 @@ Jeweler::Tasks.new do |gem|
gem.name = "simple_auth"
gem.homepage = "http://github.com/NoamB/simple_auth"
gem.license = "MIT"
- gem.summary = %Q{TODO: one-line summary of your gem}
- gem.description = %Q{TODO: longer description of your gem}
+ gem.summary = "Simple authentication for Rails 3 applications"
+ gem.description = "Provides common authentication needs such as signing in/out, activating by email, resetting password and deleting accounts."
gem.email = "nbenari@gmail.com"
gem.authors = ["Noam"]
# Include your dependencies below. Runtime dependencies are required when using your gem,
@@ -40,7 +40,23 @@ end
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features)
-task :default => :spec
+
require 'yard'
YARD::Rake::YardocTask.new
+
+
+#task :default => :spec
+desc 'Default: Run all specs.'
+task :default => :all_specs
+
+desc "Run all specs"
+task :all_specs do
+ Dir['spec/**/Rakefile'].each do |rakefile|
+ directory_name = File.dirname(rakefile)
+ sh <<-CMD
+ cd #{directory_name}
+ bundle exec rake
+ CMD
+ end
+end
View
@@ -0,0 +1,35 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.0.3'
+gem 'rspec'
+gem 'rspec-rails'
+gem 'ruby-debug19'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+gem 'sqlite3-ruby', :require => 'sqlite3'
+gem "simple_auth", '0.1.0', :path => '../../../'
+
+# Use unicorn as the web server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
+# gem 'ruby-debug'
+# gem 'ruby-debug19'
+
+# Bundle the extra gems:
+# gem 'bj'
+# gem 'nokogiri'
+# gem 'sqlite3-ruby', :require => 'sqlite3'
+# gem 'aws-s3', :require => 'aws/s3'
+
+# Bundle gems for the local environment. Make sure to
+# put test-only gems in this group so their generators
+# and rake tasks are available in development mode:
+# group :development, :test do
+# gem 'webrat'
+# end
@@ -0,0 +1,110 @@
+PATH
+ remote: ../../../
+ specs:
+ simple_auth (0.1.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ abstract (1.0.0)
+ actionmailer (3.0.3)
+ actionpack (= 3.0.3)
+ mail (~> 2.2.9)
+ actionpack (3.0.3)
+ activemodel (= 3.0.3)
+ activesupport (= 3.0.3)
+ builder (~> 2.1.2)
+ erubis (~> 2.6.6)
+ i18n (~> 0.4)
+ rack (~> 1.2.1)
+ rack-mount (~> 0.6.13)
+ rack-test (~> 0.5.6)
+ tzinfo (~> 0.3.23)
+ activemodel (3.0.3)
+ activesupport (= 3.0.3)
+ builder (~> 2.1.2)
+ i18n (~> 0.4)
+ activerecord (3.0.3)
+ activemodel (= 3.0.3)
+ activesupport (= 3.0.3)
+ arel (~> 2.0.2)
+ tzinfo (~> 0.3.23)
+ activeresource (3.0.3)
+ activemodel (= 3.0.3)
+ activesupport (= 3.0.3)
+ activesupport (3.0.3)
+ archive-tar-minitar (0.5.2)
+ arel (2.0.6)
+ builder (2.1.2)
+ columnize (0.3.2)
+ diff-lcs (1.1.2)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ i18n (0.5.0)
+ linecache19 (0.5.11)
+ ruby_core_source (>= 0.1.4)
+ mail (2.2.13)
+ activesupport (>= 2.3.6)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.16)
+ polyglot (0.3.1)
+ rack (1.2.1)
+ rack-mount (0.6.13)
+ rack (>= 1.0.0)
+ rack-test (0.5.6)
+ rack (>= 1.0)
+ rails (3.0.3)
+ actionmailer (= 3.0.3)
+ actionpack (= 3.0.3)
+ activerecord (= 3.0.3)
+ activeresource (= 3.0.3)
+ activesupport (= 3.0.3)
+ bundler (~> 1.0)
+ railties (= 3.0.3)
+ railties (3.0.3)
+ actionpack (= 3.0.3)
+ activesupport (= 3.0.3)
+ rake (>= 0.8.7)
+ thor (~> 0.14.4)
+ rake (0.8.7)
+ rspec (2.3.0)
+ rspec-core (~> 2.3.0)
+ rspec-expectations (~> 2.3.0)
+ rspec-mocks (~> 2.3.0)
+ rspec-core (2.3.1)
+ rspec-expectations (2.3.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.3.0)
+ rspec-rails (2.3.1)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ railties (~> 3.0)
+ rspec (~> 2.3.0)
+ ruby-debug-base19 (0.11.24)
+ columnize (>= 0.3.1)
+ linecache19 (>= 0.5.11)
+ ruby_core_source (>= 0.1.4)
+ ruby-debug19 (0.11.6)
+ columnize (>= 0.3.1)
+ linecache19 (>= 0.5.11)
+ ruby-debug-base19 (>= 0.11.19)
+ ruby_core_source (0.1.4)
+ archive-tar-minitar (>= 0.5.2)
+ sqlite3-ruby (1.3.2)
+ thor (0.14.6)
+ treetop (1.4.9)
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.23)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ rails (= 3.0.3)
+ rspec
+ rspec-rails
+ ruby-debug19
+ simple_auth (= 0.1.0)!
+ sqlite3-ruby
View
@@ -0,0 +1,10 @@
+require 'rake'
+require 'rspec/core/rake_task'
+
+desc 'Default: Run all specs for a specific rails version.'
+task :default => :spec
+
+desc "Run all specs for a specific rails version"
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.pattern = '**/*_spec.rb'
+end
@@ -0,0 +1,4 @@
+.bundle
+db/*.sqlite3
+log/*.log
+tmp/**/*
Oops, something went wrong. Retry.

0 comments on commit 28590bf

Please sign in to comment.