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
data/.travis.yml ADDED
@@ -0,0 +1,16 @@
1
+ language: ruby
2
+ script: "rake"
3
+ rvm:
4
+ - 1.8.7
5
+ - 1.9.3
6
+ - ruby-head
7
+ - rbx-19mode
8
+ - jruby-19mode
9
+ - jruby-head
10
+ matrix:
11
+ allow_failures:
12
+ - rvm: jruby-head
13
+ - rvm: rbx-19mode
14
+ - rvm: ruby-head
15
+ services:
16
+ - mongodb
data/Gemfile CHANGED
@@ -1,10 +1,8 @@
1
1
  source :rubygems
2
2
 
3
- MONGO_VERS = '1.5.2' unless defined? MONGO_VERS
3
+ MONGO_VERS = '1.8.0' unless defined? MONGO_VERS
4
4
 
5
5
  RAILS_VERS = case ENV['RAILS_VERS']
6
- when '3.0'
7
- '~>3.0.0'
8
6
  when '3.1'
9
7
  '~>3.1.0'
10
8
  when '3.2'
@@ -12,7 +10,7 @@ RAILS_VERS = case ENV['RAILS_VERS']
12
10
  when nil
13
11
  nil
14
12
  else
15
- raise "Invalid RAILS_VERS. Available versions are 3.0, 3.1, and 3.2."
13
+ raise "Invalid RAILS_VERS. Available versions are 3.1, and 3.2."
16
14
  end
17
15
 
18
16
  gemspec
@@ -24,35 +22,16 @@ group :development, :test do
24
22
  end
25
23
 
26
24
  if !ENV['MONGO_SESSION_STORE_ORM'] || ENV['MONGO_SESSION_STORE_ORM'] == 'mongoid'
27
- # this is hack-tastic :{
28
- # ENV['RAILS_VERS'] is only provided when we run
29
- # bundle update, but not when running the specs proper
30
- # we need an older version of mongoid for Rails 3.0
31
- # and bundler won't cherry-pick a matching gem version
32
- # out of a git repo like it will out of the rubygems repo
33
- if ENV['RAILS_VERS'] == '3.0' || RUBY_VERSION[0..2] == "1.8"
34
- # bundle updating for Rails 3.0
35
- # OR we're still on Ruby 1.8
36
- gem 'mongoid', '>= 2.2.5'
37
- elsif ENV['RAILS_VERS']
38
- # bundle updating for Rails 3.1 or 3.2 on Ruby 1.9
39
- gem 'mongoid', '>= 2.2.5', :git => 'git://github.com/mongoid/mongoid.git'
40
- elsif File.read('Gemfile.lock') =~ /^ rails \(3.0.\d+\)/
41
- # we're running tests on Rails 3.0 on Ruby 1.9
42
- gem 'mongoid', '>= 2.2.5'
43
- else
44
- # we're running tests on Rails 3.1 or 3.2 on Ruby 1.9
45
- gem 'mongoid', '>= 2.2.5', :git => 'git://github.com/mongoid/mongoid.git'
46
- end
25
+ gem 'mongoid', '~> 3.0', :platforms => [:ruby_19, :jruby]
47
26
  end
48
27
 
49
28
  gem 'mongo', MONGO_VERS
50
- gem 'bson_ext', MONGO_VERS
51
-
29
+ gem 'bson_ext', MONGO_VERS, :platforms => :ruby
30
+
52
31
  gem 'system_timer', :platforms => :ruby_18
53
32
  gem 'rbx-require-relative', '0.0.5', :platforms => :ruby_18
54
- gem 'ruby-debug', :platforms => :ruby_18
55
- gem 'ruby-debug19', :platforms => :ruby_19
33
+ gem 'ruby-debug', :platforms => :ruby_18 unless ENV['TRAVIS']
34
+ gem 'debugger', :platforms => :ruby_19 unless ENV['TRAVIS']
56
35
 
57
36
  if RUBY_PLATFORM == 'java'
58
37
  gem 'jdbc-sqlite3'
data/README.md CHANGED
@@ -1,12 +1,14 @@
1
- # MongoSessionStore
1
+ # MongoSessionStore [![Build Status](https://travis-ci.org/brianhempel/mongo_session_store.png?branch=master)](https://travis-ci.org/brianhempel/mongo_session_store)
2
2
 
3
3
  ## Description
4
4
 
5
5
  MongoSessionStore is a collection of Rails-compatible session stores for MongoMapper and Mongoid, but also included is a generic Mongo store that works with any (or no!) Mongo ODM.
6
6
 
7
+ MongoSessionStore is tested [on Travis CI](https://travis-ci.org/brianhempel/mongo_session_store) against Ruby 1.8.7, 1.9.3, and JRuby. As of this writing, it also works on Rubinius in 1.9 mode and on Ruby 2.0.0.
8
+
7
9
  ## Usage
8
10
 
9
- MongoSessionStore is compatible with Rails 3.0, 3.1, and 3.2.
11
+ MongoSessionStore is compatible with Rails 3.1 and 3.2. (Use [version 3.0.6](https://rubygems.org/gems/mongo_session_store-rails3/versions/3.0.6) if you need Rails 3.0 support.)
10
12
 
11
13
  In your Gemfile:
12
14
 
@@ -50,6 +52,8 @@ MongoidStore::Session.where(:updated_at.gt => 2.days.ago)
50
52
  MongoStore::Session.where('updated_at' => { '$gt' => 2.days.ago })
51
53
  ```
52
54
 
55
+ Note that Mongoid 2 is no longer supported. Use [version 3.0.6](https://rubygems.org/gems/mongo_session_store-rails3/versions/3.0.6) if you use Mongoid and cannot upgrade to Mongoid 3.
56
+
53
57
  ## Performance
54
58
 
55
59
  The following is the benchmark run with bson_ext installed. Without bson_ext, speeds are about 10x slower. The benchmark saves 2000 sessions (~12kb each) and then finds/reloads each one.
@@ -85,7 +89,6 @@ To run all the tests:
85
89
 
86
90
  To switch to the Gemfile.lock for a certain Rails version:
87
91
 
88
- rake use_rails_30
89
92
  rake use_rails_31
90
93
  rake use_rails_32
91
94
 
data/Rakefile CHANGED
@@ -3,10 +3,7 @@ require 'rake'
3
3
 
4
4
  def run_with_output(command)
5
5
  puts "Running: #{command}"
6
-
7
- Process.wait( fork { exec command } )
8
-
9
- $?.success?
6
+ system(command)
10
7
  end
11
8
 
12
9
  def set_rails_version(rails_vers)
@@ -19,15 +16,16 @@ def set_rails_version(rails_vers)
19
16
  end
20
17
  end
21
18
 
22
- @rails_versions = ['3.0', '3.1', '3.2']
19
+ @rails_versions = ['3.1', '3.2']
23
20
 
24
21
  task :default => :test_all
25
22
 
26
- desc 'Test each session store against Rails 3.0 and Rails 3.1'
23
+ desc 'Test each session store against Rails 3.1 and Rails 3.2'
27
24
  task :test_all do
28
25
  # inspired by http://pivotallabs.com/users/jdean/blog/articles/1728-testing-your-gem-against-multiple-rubies-and-rails-versions-with-rvm
29
-
26
+
30
27
  orms = ['mongo_mapper', 'mongoid', 'mongo']
28
+ orms.delete('mongoid') if RUBY_VERSION < "1.9"
31
29
 
32
30
  @failed_suites = []
33
31
 
@@ -17,7 +17,8 @@ module MongoSessionStore
17
17
  end
18
18
 
19
19
  if defined?(MongoidStore::Session)
20
- MongoidStore::Session.store_in(name)
20
+
21
+ MongoidStore::Session.store_in :collection => MongoSessionStore.collection_name
21
22
  end
22
23
 
23
24
  @collection_name
@@ -9,23 +9,19 @@ begin
9
9
  class Session
10
10
  include Mongoid::Document
11
11
  include Mongoid::Timestamps
12
- self.collection_name = MongoSessionStore.collection_name
13
12
 
14
- attr_accessible :_id, :data
13
+ store_in :collection => MongoSessionStore.collection_name
14
+
15
+ field :_id, :type => String
15
16
 
16
- if respond_to?(:identity)
17
- # pre-Mongoid 3
18
- identity :type => String
19
- else
20
- field :_id, :type => String
21
- end
17
+ field :data, :type => Moped::BSON::Binary, :default => Moped::BSON::Binary.new(:generic, Marshal.dump({}))
22
18
 
23
- field :data, :type => BSON::Binary, :default => BSON::Binary.new(Marshal.dump({}))
19
+ attr_accessible :_id, :data
24
20
  end
25
21
 
26
22
  private
27
23
  def pack(data)
28
- BSON::Binary.new(Marshal.dump(data))
24
+ Moped::BSON::Binary.new(:generic, Marshal.dump(data))
29
25
  end
30
26
  end
31
27
  end
@@ -1,3 +1,3 @@
1
1
  module MongoSessionStore
2
- VERSION = "3.0.6"
2
+ VERSION = "4.0.0"
3
3
  end
@@ -11,8 +11,8 @@ Gem::Specification.new do |s|
11
11
  s.homepage = "http://github.com/brianhempel/mongo_session_store"
12
12
  s.require_paths = ["lib"]
13
13
  s.rubygems_version = "1.3.7"
14
- s.summary = "Rails session stores for MongoMapper, Mongoid, or any other ODM. Rails 3.0, 3.1, and 3.2 compatible."
14
+ s.summary = "Rails session stores for MongoMapper, Mongoid, or any other ODM. Rails 3.1 and 3.2 compatible."
15
15
 
16
16
  s.add_dependency "mongo"
17
- s.add_dependency "actionpack", ">= 3.0"
17
+ s.add_dependency "actionpack", ">= 3.1"
18
18
  end
@@ -39,9 +39,11 @@ describe Devise::SessionsController do
39
39
  end
40
40
 
41
41
  it "allows user creation" do
42
+ User.count.should == 0
42
43
  create_user
43
44
  response.status.should == 302
44
45
  get response.redirect_url
46
+ User.count.should == 1
45
47
  response.body.squish.should =~ /You are logged in as person@example.com/
46
48
  response.body.squish.should =~ /You have signed up successfully/
47
49
  end
@@ -2,8 +2,6 @@
2
2
  # four configuration values can also be set straight in your models.
3
3
  Devise.setup do |config|
4
4
 
5
- Devise.apply_schema = false
6
-
7
5
  # ==> Mailer Configuration
8
6
  # Configure the e-mail address which will be shown in DeviseMailer.
9
7
  config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
@@ -91,10 +89,6 @@ Devise.setup do |config|
91
89
  # If true, extends the user's remember period when remembered via cookie.
92
90
  # config.extend_remember_period = false
93
91
 
94
- # If true, uses the password salt as remember token. This should be turned
95
- # to false if you are not using database authenticatable.
96
- config.use_salt_as_remember_token = true
97
-
98
92
  # Options to be passed to the created cookie. For instance, you can set
99
93
  # :secure => true in order to force SSL only cookies.
100
94
  # config.cookie_options = {}
@@ -1,20 +1,13 @@
1
1
  development:
2
- host: localhost
3
- database: rails31_app_development
2
+ sessions:
3
+ default:
4
+ database: rails31_app_development
5
+ hosts:
6
+ - localhost:27017
4
7
 
5
8
  test:
6
- host: localhost
7
- database: rails31_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
9
+ sessions:
10
+ default:
11
+ database: rails31_app_test
12
+ hosts:
13
+ - localhost:27017
@@ -2,8 +2,6 @@
2
2
  # four configuration values can also be set straight in your models.
3
3
  Devise.setup do |config|
4
4
 
5
- Devise.apply_schema = false
6
-
7
5
  # ==> Mailer Configuration
8
6
  # Configure the e-mail address which will be shown in DeviseMailer.
9
7
  config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
@@ -91,10 +89,6 @@ Devise.setup do |config|
91
89
  # If true, extends the user's remember period when remembered via cookie.
92
90
  # config.extend_remember_period = false
93
91
 
94
- # If true, uses the password salt as remember token. This should be turned
95
- # to false if you are not using database authenticatable.
96
- config.use_salt_as_remember_token = true
97
-
98
92
  # Options to be passed to the created cookie. For instance, you can set
99
93
  # :secure => true in order to force SSL only cookies.
100
94
  # config.cookie_options = {}
@@ -1,20 +1,13 @@
1
1
  development:
2
- host: localhost
3
- database: rails32_app_development
2
+ sessions:
3
+ default:
4
+ database: rails32_app_development
5
+ hosts:
6
+ - localhost:27017
4
7
 
5
8
  test:
6
- host: localhost
7
- database: rails32_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
9
+ sessions:
10
+ default:
11
+ database: rails32_app_test
12
+ hosts:
13
+ - localhost:27017
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  ENV["MONGO_SESSION_STORE_ORM"] ||= "mongo_mapper"
2
2
  ENV["RAILS_ENV"] = "test"
3
3
 
4
+ require 'bundler/setup'
4
5
  $:.unshift File.dirname(__FILE__)
5
6
 
6
7
  require 'rails'
@@ -30,7 +31,7 @@ RSpec.configure do |config|
30
31
  end
31
32
 
32
33
  config.before :each do
33
- drop_collections_in(Mongoid.database) if defined?(Mongoid)
34
+ drop_collections_in(MongoidStore::Session.mongo_session) if defined?(Mongoid)
34
35
  drop_collections_in(MongoMapper.database) if defined?(MongoMapper)
35
36
  drop_collections_in(db)
36
37
  User.delete_all
metadata CHANGED
@@ -1,66 +1,61 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mongo_session_store-rails3
3
- version: !ruby/object:Gem::Version
4
- hash: 11
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.0.0
5
5
  prerelease:
6
- segments:
7
- - 3
8
- - 0
9
- - 6
10
- version: 3.0.6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Brian Hempel
14
- - "Nicolas M\xC3\xA9rouze"
9
+ - Nicolas Mérouze
15
10
  - Tony Pitale
16
11
  - Chris Brickley
17
12
  autorequire:
18
13
  bindir: bin
19
14
  cert_chain: []
20
-
21
- date: 2012-04-03 00:00:00 Z
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
15
+ date: 2013-01-03 00:00:00.000000000 Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
24
18
  name: mongo
25
- prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
19
+ requirement: !ruby/object:Gem::Requirement
27
20
  none: false
28
- requirements:
29
- - - ">="
30
- - !ruby/object:Gem::Version
31
- hash: 3
32
- segments:
33
- - 0
34
- version: "0"
21
+ requirements:
22
+ - - ! '>='
23
+ - !ruby/object:Gem::Version
24
+ version: '0'
35
25
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: actionpack
39
26
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: actionpack
35
+ requirement: !ruby/object:Gem::Requirement
41
36
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 7
46
- segments:
47
- - 3
48
- - 0
49
- version: "3.0"
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '3.1'
50
41
  type: :runtime
51
- version_requirements: *id002
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '3.1'
52
49
  description:
53
- email:
50
+ email:
54
51
  - plasticchicken@gmail.com
55
52
  executables: []
56
-
57
53
  extensions: []
58
-
59
54
  extra_rdoc_files: []
60
-
61
- files:
55
+ files:
62
56
  - .gitignore
63
57
  - .rspec
58
+ - .travis.yml
64
59
  - Gemfile
65
60
  - README.md
66
61
  - Rakefile
@@ -73,58 +68,6 @@ files:
73
68
  - mongo_session_store-rails3.gemspec
74
69
  - perf/benchmark.rb
75
70
  - spec/integration_with_devise_spec.rb
76
- - spec/rails_3.0_app/.gitignore
77
- - spec/rails_3.0_app/README
78
- - spec/rails_3.0_app/Rakefile
79
- - spec/rails_3.0_app/app/controllers/application_controller.rb
80
- - spec/rails_3.0_app/app/controllers/home_controller.rb
81
- - spec/rails_3.0_app/app/helpers/application_helper.rb
82
- - spec/rails_3.0_app/app/models/user.rb
83
- - spec/rails_3.0_app/app/views/devise/confirmations/new.html.erb
84
- - spec/rails_3.0_app/app/views/devise/mailer/confirmation_instructions.html.erb
85
- - spec/rails_3.0_app/app/views/devise/mailer/reset_password_instructions.html.erb
86
- - spec/rails_3.0_app/app/views/devise/mailer/unlock_instructions.html.erb
87
- - spec/rails_3.0_app/app/views/devise/passwords/edit.html.erb
88
- - spec/rails_3.0_app/app/views/devise/passwords/new.html.erb
89
- - spec/rails_3.0_app/app/views/devise/registrations/edit.html.erb
90
- - spec/rails_3.0_app/app/views/devise/registrations/new.html.erb
91
- - spec/rails_3.0_app/app/views/devise/sessions/new.html.erb
92
- - spec/rails_3.0_app/app/views/devise/shared/_links.erb
93
- - spec/rails_3.0_app/app/views/devise/unlocks/new.html.erb
94
- - spec/rails_3.0_app/app/views/home/index.html.erb
95
- - spec/rails_3.0_app/app/views/layouts/application.html.erb
96
- - spec/rails_3.0_app/config.ru
97
- - spec/rails_3.0_app/config/application.rb
98
- - spec/rails_3.0_app/config/boot.rb
99
- - spec/rails_3.0_app/config/database.yml
100
- - spec/rails_3.0_app/config/environment.rb
101
- - spec/rails_3.0_app/config/environments/development.rb
102
- - spec/rails_3.0_app/config/environments/production.rb
103
- - spec/rails_3.0_app/config/environments/test.rb
104
- - spec/rails_3.0_app/config/initializers/backtrace_silencers.rb
105
- - spec/rails_3.0_app/config/initializers/devise.rb
106
- - spec/rails_3.0_app/config/initializers/inflections.rb
107
- - spec/rails_3.0_app/config/initializers/mime_types.rb
108
- - spec/rails_3.0_app/config/initializers/secret_token.rb
109
- - spec/rails_3.0_app/config/initializers/session_store.rb
110
- - spec/rails_3.0_app/config/locales/devise.en.yml
111
- - spec/rails_3.0_app/config/locales/en.yml
112
- - spec/rails_3.0_app/config/mongo.yml
113
- - spec/rails_3.0_app/config/mongoid.yml
114
- - spec/rails_3.0_app/config/routes.rb
115
- - spec/rails_3.0_app/db/migrate/20120222195914_create_users_table.rb
116
- - spec/rails_3.0_app/db/schema.rb
117
- - spec/rails_3.0_app/lib/tasks/.gitkeep
118
- - spec/rails_3.0_app/public/404.html
119
- - spec/rails_3.0_app/public/422.html
120
- - spec/rails_3.0_app/public/500.html
121
- - spec/rails_3.0_app/public/favicon.ico
122
- - spec/rails_3.0_app/public/javascripts/.gitkeep
123
- - spec/rails_3.0_app/public/javascripts/application.js
124
- - spec/rails_3.0_app/public/robots.txt
125
- - spec/rails_3.0_app/public/stylesheets/.gitkeep
126
- - spec/rails_3.0_app/script/rails
127
- - spec/rails_3.0_app/vendor/plugins/.gitkeep
128
71
  - spec/rails_3.1_app/.gitignore
129
72
  - spec/rails_3.1_app/README
130
73
  - spec/rails_3.1_app/Rakefile
@@ -240,92 +183,32 @@ files:
240
183
  - spec/spec_helper.rb
241
184
  homepage: http://github.com/brianhempel/mongo_session_store
242
185
  licenses: []
243
-
244
186
  post_install_message:
245
187
  rdoc_options: []
246
-
247
- require_paths:
188
+ require_paths:
248
189
  - lib
249
- required_ruby_version: !ruby/object:Gem::Requirement
190
+ required_ruby_version: !ruby/object:Gem::Requirement
250
191
  none: false
251
- requirements:
252
- - - ">="
253
- - !ruby/object:Gem::Version
254
- hash: 3
255
- segments:
256
- - 0
257
- version: "0"
258
- required_rubygems_version: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ! '>='
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ required_rubygems_version: !ruby/object:Gem::Requirement
259
197
  none: false
260
- requirements:
261
- - - ">="
262
- - !ruby/object:Gem::Version
263
- hash: 3
264
- segments:
265
- - 0
266
- version: "0"
198
+ requirements:
199
+ - - ! '>='
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
267
202
  requirements: []
268
-
269
203
  rubyforge_project:
270
- rubygems_version: 1.8.17
204
+ rubygems_version: 1.8.24
271
205
  signing_key:
272
206
  specification_version: 3
273
- summary: Rails session stores for MongoMapper, Mongoid, or any other ODM. Rails 3.0, 3.1, and 3.2 compatible.
274
- test_files:
207
+ summary: Rails session stores for MongoMapper, Mongoid, or any other ODM. Rails 3.1
208
+ and 3.2 compatible.
209
+ test_files:
275
210
  - perf/benchmark.rb
276
211
  - spec/integration_with_devise_spec.rb
277
- - spec/rails_3.0_app/.gitignore
278
- - spec/rails_3.0_app/README
279
- - spec/rails_3.0_app/Rakefile
280
- - spec/rails_3.0_app/app/controllers/application_controller.rb
281
- - spec/rails_3.0_app/app/controllers/home_controller.rb
282
- - spec/rails_3.0_app/app/helpers/application_helper.rb
283
- - spec/rails_3.0_app/app/models/user.rb
284
- - spec/rails_3.0_app/app/views/devise/confirmations/new.html.erb
285
- - spec/rails_3.0_app/app/views/devise/mailer/confirmation_instructions.html.erb
286
- - spec/rails_3.0_app/app/views/devise/mailer/reset_password_instructions.html.erb
287
- - spec/rails_3.0_app/app/views/devise/mailer/unlock_instructions.html.erb
288
- - spec/rails_3.0_app/app/views/devise/passwords/edit.html.erb
289
- - spec/rails_3.0_app/app/views/devise/passwords/new.html.erb
290
- - spec/rails_3.0_app/app/views/devise/registrations/edit.html.erb
291
- - spec/rails_3.0_app/app/views/devise/registrations/new.html.erb
292
- - spec/rails_3.0_app/app/views/devise/sessions/new.html.erb
293
- - spec/rails_3.0_app/app/views/devise/shared/_links.erb
294
- - spec/rails_3.0_app/app/views/devise/unlocks/new.html.erb
295
- - spec/rails_3.0_app/app/views/home/index.html.erb
296
- - spec/rails_3.0_app/app/views/layouts/application.html.erb
297
- - spec/rails_3.0_app/config.ru
298
- - spec/rails_3.0_app/config/application.rb
299
- - spec/rails_3.0_app/config/boot.rb
300
- - spec/rails_3.0_app/config/database.yml
301
- - spec/rails_3.0_app/config/environment.rb
302
- - spec/rails_3.0_app/config/environments/development.rb
303
- - spec/rails_3.0_app/config/environments/production.rb
304
- - spec/rails_3.0_app/config/environments/test.rb
305
- - spec/rails_3.0_app/config/initializers/backtrace_silencers.rb
306
- - spec/rails_3.0_app/config/initializers/devise.rb
307
- - spec/rails_3.0_app/config/initializers/inflections.rb
308
- - spec/rails_3.0_app/config/initializers/mime_types.rb
309
- - spec/rails_3.0_app/config/initializers/secret_token.rb
310
- - spec/rails_3.0_app/config/initializers/session_store.rb
311
- - spec/rails_3.0_app/config/locales/devise.en.yml
312
- - spec/rails_3.0_app/config/locales/en.yml
313
- - spec/rails_3.0_app/config/mongo.yml
314
- - spec/rails_3.0_app/config/mongoid.yml
315
- - spec/rails_3.0_app/config/routes.rb
316
- - spec/rails_3.0_app/db/migrate/20120222195914_create_users_table.rb
317
- - spec/rails_3.0_app/db/schema.rb
318
- - spec/rails_3.0_app/lib/tasks/.gitkeep
319
- - spec/rails_3.0_app/public/404.html
320
- - spec/rails_3.0_app/public/422.html
321
- - spec/rails_3.0_app/public/500.html
322
- - spec/rails_3.0_app/public/favicon.ico
323
- - spec/rails_3.0_app/public/javascripts/.gitkeep
324
- - spec/rails_3.0_app/public/javascripts/application.js
325
- - spec/rails_3.0_app/public/robots.txt
326
- - spec/rails_3.0_app/public/stylesheets/.gitkeep
327
- - spec/rails_3.0_app/script/rails
328
- - spec/rails_3.0_app/vendor/plugins/.gitkeep
329
212
  - spec/rails_3.1_app/.gitignore
330
213
  - spec/rails_3.1_app/README
331
214
  - spec/rails_3.1_app/Rakefile