mongo_session_store-rails3 3.0.6 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/.travis.yml +16 -0
  2. data/Gemfile +7 -28
  3. data/README.md +6 -3
  4. data/Rakefile +5 -7
  5. data/lib/mongo_session_store-rails3.rb +2 -1
  6. data/lib/mongo_session_store/mongoid_store.rb +6 -10
  7. data/lib/mongo_session_store/version.rb +1 -1
  8. data/mongo_session_store-rails3.gemspec +2 -2
  9. data/spec/integration_with_devise_spec.rb +2 -0
  10. data/spec/rails_3.1_app/config/initializers/devise.rb +0 -6
  11. data/spec/rails_3.1_app/config/mongoid.yml +10 -17
  12. data/spec/rails_3.2_app/config/initializers/devise.rb +0 -6
  13. data/spec/rails_3.2_app/config/mongoid.yml +10 -17
  14. data/spec/spec_helper.rb +2 -1
  15. metadata +51 -168
  16. data/spec/rails_3.0_app/.gitignore +0 -4
  17. data/spec/rails_3.0_app/README +0 -256
  18. data/spec/rails_3.0_app/Rakefile +0 -7
  19. data/spec/rails_3.0_app/app/controllers/application_controller.rb +0 -3
  20. data/spec/rails_3.0_app/app/controllers/home_controller.rb +0 -4
  21. data/spec/rails_3.0_app/app/helpers/application_helper.rb +0 -2
  22. data/spec/rails_3.0_app/app/models/user.rb +0 -7
  23. data/spec/rails_3.0_app/app/views/devise/confirmations/new.html.erb +0 -12
  24. data/spec/rails_3.0_app/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
  25. data/spec/rails_3.0_app/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
  26. data/spec/rails_3.0_app/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
  27. data/spec/rails_3.0_app/app/views/devise/passwords/edit.html.erb +0 -16
  28. data/spec/rails_3.0_app/app/views/devise/passwords/new.html.erb +0 -12
  29. data/spec/rails_3.0_app/app/views/devise/registrations/edit.html.erb +0 -25
  30. data/spec/rails_3.0_app/app/views/devise/registrations/new.html.erb +0 -18
  31. data/spec/rails_3.0_app/app/views/devise/sessions/new.html.erb +0 -17
  32. data/spec/rails_3.0_app/app/views/devise/shared/_links.erb +0 -25
  33. data/spec/rails_3.0_app/app/views/devise/unlocks/new.html.erb +0 -12
  34. data/spec/rails_3.0_app/app/views/home/index.html.erb +0 -10
  35. data/spec/rails_3.0_app/app/views/layouts/application.html.erb +0 -15
  36. data/spec/rails_3.0_app/config.ru +0 -4
  37. data/spec/rails_3.0_app/config/application.rb +0 -47
  38. data/spec/rails_3.0_app/config/boot.rb +0 -6
  39. data/spec/rails_3.0_app/config/database.yml +0 -11
  40. data/spec/rails_3.0_app/config/environment.rb +0 -5
  41. data/spec/rails_3.0_app/config/environments/development.rb +0 -26
  42. data/spec/rails_3.0_app/config/environments/production.rb +0 -49
  43. data/spec/rails_3.0_app/config/environments/test.rb +0 -35
  44. data/spec/rails_3.0_app/config/initializers/backtrace_silencers.rb +0 -7
  45. data/spec/rails_3.0_app/config/initializers/devise.rb +0 -204
  46. data/spec/rails_3.0_app/config/initializers/inflections.rb +0 -10
  47. data/spec/rails_3.0_app/config/initializers/mime_types.rb +0 -5
  48. data/spec/rails_3.0_app/config/initializers/secret_token.rb +0 -7
  49. data/spec/rails_3.0_app/config/initializers/session_store.rb +0 -9
  50. data/spec/rails_3.0_app/config/locales/devise.en.yml +0 -53
  51. data/spec/rails_3.0_app/config/locales/en.yml +0 -5
  52. data/spec/rails_3.0_app/config/mongo.yml +0 -18
  53. data/spec/rails_3.0_app/config/mongoid.yml +0 -20
  54. data/spec/rails_3.0_app/config/routes.rb +0 -4
  55. data/spec/rails_3.0_app/db/migrate/20120222195914_create_users_table.rb +0 -19
  56. data/spec/rails_3.0_app/db/schema.rb +0 -20
  57. data/spec/rails_3.0_app/lib/tasks/.gitkeep +0 -0
  58. data/spec/rails_3.0_app/public/404.html +0 -26
  59. data/spec/rails_3.0_app/public/422.html +0 -26
  60. data/spec/rails_3.0_app/public/500.html +0 -26
  61. data/spec/rails_3.0_app/public/favicon.ico +0 -0
  62. data/spec/rails_3.0_app/public/javascripts/.gitkeep +0 -0
  63. data/spec/rails_3.0_app/public/javascripts/application.js +0 -0
  64. data/spec/rails_3.0_app/public/robots.txt +0 -5
  65. data/spec/rails_3.0_app/public/stylesheets/.gitkeep +0 -0
  66. data/spec/rails_3.0_app/script/rails +0 -6
  67. data/spec/rails_3.0_app/vendor/plugins/.gitkeep +0 -0
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Rails30App::Application.config.secret_token = 'a0e9004e4e8e865a46e229c63a4df1cc2b25b79103f140b5bc21f8edce46f87547865c01e4392b83a60449c03effce34cf0e53fc7f8af5f9736c4f9aaa436605'
@@ -1,9 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Rails30App::Application.config.session_store :cookie_store, :key => '_rails_3.0_app_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rails generate session_migration")
8
- MongoStore::Session.database = Mongo::Connection.new.db("rails30_app_#{Rails.env}") if ENV['MONGO_SESSION_STORE_ORM'] == "mongo"
9
- Rails30App::Application.config.session_store :"#{ENV['MONGO_SESSION_STORE_ORM']}_store"
@@ -1,53 +0,0 @@
1
- # Additional translations at http://github.com/plataformatec/devise/wiki/I18n
2
-
3
- en:
4
- errors:
5
- messages:
6
- expired: "has expired, please request a new one"
7
- not_found: "not found"
8
- already_confirmed: "was already confirmed, please try signing in"
9
- not_locked: "was not locked"
10
- not_saved:
11
- one: "1 error prohibited this %{resource} from being saved:"
12
- other: "%{count} errors prohibited this %{resource} from being saved:"
13
-
14
- devise:
15
- failure:
16
- already_authenticated: 'You are already signed in.'
17
- unauthenticated: 'You need to sign in or sign up before continuing.'
18
- unconfirmed: 'You have to confirm your account before continuing.'
19
- locked: 'Your account is locked.'
20
- invalid: 'Invalid email or password.'
21
- invalid_token: 'Invalid authentication token.'
22
- timeout: 'Your session expired, please sign in again to continue.'
23
- inactive: 'Your account was not activated yet.'
24
- sessions:
25
- signed_in: 'Signed in successfully.'
26
- signed_out: 'Signed out successfully.'
27
- passwords:
28
- send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
29
- updated: 'Your password was changed successfully. You are now signed in.'
30
- send_paranoid_instructions: "If your e-mail exists on our database, you will receive a password recovery link on your e-mail"
31
- confirmations:
32
- send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
33
- send_paranoid_instructions: 'If your e-mail exists on our database, you will receive an email with instructions about how to confirm your account in a few minutes.'
34
- confirmed: 'Your account was successfully confirmed. You are now signed in.'
35
- registrations:
36
- signed_up: 'Welcome! You have signed up successfully.'
37
- inactive_signed_up: 'You have signed up successfully. However, we could not sign you in because your account is %{reason}.'
38
- updated: 'You updated your account successfully.'
39
- destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
40
- unlocks:
41
- send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
42
- unlocked: 'Your account was successfully unlocked. You are now signed in.'
43
- send_paranoid_instructions: 'If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.'
44
- omniauth_callbacks:
45
- success: 'Successfully authorized from %{kind} account.'
46
- failure: 'Could not authorize you from %{kind} because "%{reason}".'
47
- mailer:
48
- confirmation_instructions:
49
- subject: 'Confirmation instructions'
50
- reset_password_instructions:
51
- subject: 'Reset password instructions'
52
- unlock_instructions:
53
- subject: 'Unlock Instructions'
@@ -1,5 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- hello: "Hello world"
@@ -1,18 +0,0 @@
1
- defaults: &defaults
2
- host: 127.0.0.1
3
- port: 27017
4
-
5
- development:
6
- <<: *defaults
7
- database: rails30_app_development
8
-
9
- test:
10
- <<: *defaults
11
- database: rails30_app_test
12
-
13
- # set these environment variables on your prod server
14
- production:
15
- <<: *defaults
16
- database: rails30_app
17
- username: <%= ENV['MONGO_USERNAME'] %>
18
- password: <%= ENV['MONGO_PASSWORD'] %>
@@ -1,20 +0,0 @@
1
- development:
2
- host: localhost
3
- database: rails30_app_development
4
-
5
- test:
6
- host: localhost
7
- database: rails30_app_test
8
-
9
- # set these environment variables on your prod server
10
- production:
11
- host: <%= ENV['MONGOID_HOST'] %>
12
- port: <%= ENV['MONGOID_PORT'] %>
13
- username: <%= ENV['MONGOID_USERNAME'] %>
14
- password: <%= ENV['MONGOID_PASSWORD'] %>
15
- database: <%= ENV['MONGOID_DATABASE'] %>
16
- # slaves:
17
- # - host: slave1.local
18
- # port: 27018
19
- # - host: slave2.local
20
- # port: 27019
@@ -1,4 +0,0 @@
1
- Rails30App::Application.routes.draw do
2
- devise_for :users
3
- root :to => "home#index"
4
- end
@@ -1,19 +0,0 @@
1
- class CreateUsersTable < ActiveRecord::Migration
2
- def self.up
3
- create_table :users do |t|
4
- t.database_authenticatable :null => false
5
- # t.recoverable
6
- # t.rememberable
7
- # t.trackable
8
-
9
- # t.encryptable
10
- # t.confirmable
11
- # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
12
- # t.token_authenticatable
13
- end
14
- end
15
-
16
- def self.down
17
- drop_table :users
18
- end
19
- end
@@ -1,20 +0,0 @@
1
- # This file is auto-generated from the current state of the database. Instead
2
- # of editing this file, please use the migrations feature of Active Record to
3
- # incrementally modify your database, and then regenerate this schema definition.
4
- #
5
- # Note that this schema.rb definition is the authoritative source for your
6
- # database schema. If you need to create the application database on another
7
- # system, you should be using db:schema:load, not running all the migrations
8
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
- # you'll amass, the slower it'll run and the greater likelihood for issues).
10
- #
11
- # It's strongly recommended to check this file into your version control system.
12
-
13
- ActiveRecord::Schema.define(:version => 20120222195914) do
14
-
15
- create_table "users", :force => true do |t|
16
- t.string "email", :default => "", :null => false
17
- t.string "encrypted_password", :limit => 128, :default => "", :null => false
18
- end
19
-
20
- end
File without changes
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/404.html -->
21
- <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/422.html -->
21
- <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/500.html -->
21
- <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
- </div>
25
- </body>
26
- </html>
File without changes
File without changes
File without changes
@@ -1,5 +0,0 @@
1
- # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
- #
3
- # To ban all spiders from the entire site uncomment the next two lines:
4
- # User-Agent: *
5
- # Disallow: /
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
File without changes