mongoid_session_store 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. data/.document +5 -0
  2. data/.gitignore +21 -0
  3. data/Gemfile +12 -0
  4. data/Gemfile.lock +49 -0
  5. data/LICENSE +20 -0
  6. data/README.rdoc +33 -0
  7. data/Rakefile +56 -0
  8. data/VERSION +1 -0
  9. data/example/.gitignore +4 -0
  10. data/example/Gemfile +35 -0
  11. data/example/Gemfile.lock +94 -0
  12. data/example/README +256 -0
  13. data/example/Rakefile +7 -0
  14. data/example/app/controllers/application_controller.rb +3 -0
  15. data/example/app/controllers/sessions_controller.rb +26 -0
  16. data/example/app/helpers/application_helper.rb +2 -0
  17. data/example/app/helpers/sessions_helper.rb +2 -0
  18. data/example/app/views/layouts/application.html.erb +14 -0
  19. data/example/config/application.rb +44 -0
  20. data/example/config/boot.rb +13 -0
  21. data/example/config/database.yml +22 -0
  22. data/example/config/environment.rb +5 -0
  23. data/example/config/environments/development.rb +22 -0
  24. data/example/config/environments/production.rb +49 -0
  25. data/example/config/environments/test.rb +35 -0
  26. data/example/config/initializers/backtrace_silencers.rb +7 -0
  27. data/example/config/initializers/inflections.rb +10 -0
  28. data/example/config/initializers/mime_types.rb +5 -0
  29. data/example/config/initializers/secret_token.rb +7 -0
  30. data/example/config/initializers/session_store.rb +11 -0
  31. data/example/config/locales/en.yml +5 -0
  32. data/example/config/mongoid.yml +19 -0
  33. data/example/config/routes.rb +3 -0
  34. data/example/config.ru +4 -0
  35. data/example/db/migrate/20100810035140_add_sessions_table.rb +16 -0
  36. data/example/db/schema.rb +25 -0
  37. data/example/db/seeds.rb +7 -0
  38. data/example/doc/README_FOR_APP +2 -0
  39. data/example/lib/tasks/.gitkeep +0 -0
  40. data/example/public/404.html +26 -0
  41. data/example/public/422.html +26 -0
  42. data/example/public/500.html +26 -0
  43. data/example/public/favicon.ico +0 -0
  44. data/example/public/images/rails.png +0 -0
  45. data/example/public/index.html +262 -0
  46. data/example/public/javascripts/application.js +2 -0
  47. data/example/public/javascripts/controls.js +965 -0
  48. data/example/public/javascripts/dragdrop.js +974 -0
  49. data/example/public/javascripts/effects.js +1123 -0
  50. data/example/public/javascripts/prototype.js +6001 -0
  51. data/example/public/javascripts/rails.js +175 -0
  52. data/example/public/robots.txt +5 -0
  53. data/example/public/stylesheets/.gitkeep +0 -0
  54. data/example/script/rails +6 -0
  55. data/example/test/functional/sessions_controller_test.rb +8 -0
  56. data/example/test/integration/sessions_test.rb +152 -0
  57. data/example/test/performance/browsing_test.rb +9 -0
  58. data/example/test/test_helper.rb +13 -0
  59. data/example/test/unit/helpers/sessions_helper_test.rb +4 -0
  60. data/example/vendor/plugins/.gitkeep +0 -0
  61. data/lib/mongoid_session_store/mongoid_store.rb +71 -0
  62. data/lib/mongoid_session_store.rb +1 -0
  63. data/mongoid_session_store.gemspec +115 -0
  64. data/test/helper.rb +23 -0
  65. data/test/test_mongoid_session_store.rb +11 -0
  66. metadata +175 -0
@@ -0,0 +1 @@
1
+ $:.unshift File.dirname(__FILE__)
@@ -0,0 +1,115 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{mongoid_session_store}
8
+ s.version = "0.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Ryan Fitzgerald"]
12
+ s.date = %q{2010-08-10}
13
+ s.description = %q{store rails 3 sessions in mongoDB}
14
+ s.email = %q{ryan@gymlogr.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "example/.gitignore",
29
+ "example/Gemfile",
30
+ "example/Gemfile.lock",
31
+ "example/README",
32
+ "example/Rakefile",
33
+ "example/app/controllers/application_controller.rb",
34
+ "example/app/controllers/sessions_controller.rb",
35
+ "example/app/helpers/application_helper.rb",
36
+ "example/app/helpers/sessions_helper.rb",
37
+ "example/app/views/layouts/application.html.erb",
38
+ "example/config.ru",
39
+ "example/config/application.rb",
40
+ "example/config/boot.rb",
41
+ "example/config/database.yml",
42
+ "example/config/environment.rb",
43
+ "example/config/environments/development.rb",
44
+ "example/config/environments/production.rb",
45
+ "example/config/environments/test.rb",
46
+ "example/config/initializers/backtrace_silencers.rb",
47
+ "example/config/initializers/inflections.rb",
48
+ "example/config/initializers/mime_types.rb",
49
+ "example/config/initializers/secret_token.rb",
50
+ "example/config/initializers/session_store.rb",
51
+ "example/config/locales/en.yml",
52
+ "example/config/mongoid.yml",
53
+ "example/config/routes.rb",
54
+ "example/db/migrate/20100810035140_add_sessions_table.rb",
55
+ "example/db/schema.rb",
56
+ "example/db/seeds.rb",
57
+ "example/doc/README_FOR_APP",
58
+ "example/lib/tasks/.gitkeep",
59
+ "example/public/404.html",
60
+ "example/public/422.html",
61
+ "example/public/500.html",
62
+ "example/public/favicon.ico",
63
+ "example/public/images/rails.png",
64
+ "example/public/index.html",
65
+ "example/public/javascripts/application.js",
66
+ "example/public/javascripts/controls.js",
67
+ "example/public/javascripts/dragdrop.js",
68
+ "example/public/javascripts/effects.js",
69
+ "example/public/javascripts/prototype.js",
70
+ "example/public/javascripts/rails.js",
71
+ "example/public/robots.txt",
72
+ "example/public/stylesheets/.gitkeep",
73
+ "example/script/rails",
74
+ "example/test/functional/sessions_controller_test.rb",
75
+ "example/test/integration/sessions_test.rb",
76
+ "example/test/performance/browsing_test.rb",
77
+ "example/test/test_helper.rb",
78
+ "example/test/unit/helpers/sessions_helper_test.rb",
79
+ "example/vendor/plugins/.gitkeep",
80
+ "lib/mongoid_session_store.rb",
81
+ "lib/mongoid_session_store/mongoid_store.rb",
82
+ "mongoid_session_store.gemspec",
83
+ "test/helper.rb",
84
+ "test/test_mongoid_session_store.rb"
85
+ ]
86
+ s.homepage = %q{http://github.com/ryanfitz/mongoid_session_store}
87
+ s.rdoc_options = ["--charset=UTF-8"]
88
+ s.require_paths = ["lib"]
89
+ s.rubygems_version = %q{1.3.7}
90
+ s.summary = %q{store rails 3 sessions in mongoDB}
91
+ s.test_files = [
92
+ "test/helper.rb",
93
+ "test/test_mongoid_session_store.rb"
94
+ ]
95
+
96
+ if s.respond_to? :specification_version then
97
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
98
+ s.specification_version = 3
99
+
100
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
101
+ s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
102
+ s.add_runtime_dependency(%q<mongoid>, [">= 2.0.0.beta.16"])
103
+ s.add_runtime_dependency(%q<actionpack>, [">= 3.0.0.rc"])
104
+ else
105
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
106
+ s.add_dependency(%q<mongoid>, [">= 2.0.0.beta.16"])
107
+ s.add_dependency(%q<actionpack>, [">= 3.0.0.rc"])
108
+ end
109
+ else
110
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
111
+ s.add_dependency(%q<mongoid>, [">= 2.0.0.beta.16"])
112
+ s.add_dependency(%q<actionpack>, [">= 3.0.0.rc"])
113
+ end
114
+ end
115
+
data/test/helper.rb ADDED
@@ -0,0 +1,23 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ require 'mongoid'
6
+
7
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
8
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
9
+
10
+ Mongoid.configure do |config|
11
+ name = "mongoid_test"
12
+ host = "localhost"
13
+ config.master = Mongo::Connection.new.db(name)
14
+ # config.logger = nil
15
+ # config.slaves = [
16
+ # Mongo::Connection.new(host, 27018, :slave_ok => true).db(name)
17
+ # ]
18
+ end
19
+
20
+ require 'mongoid_session_store'
21
+
22
+ class Test::Unit::TestCase
23
+ end
@@ -0,0 +1,11 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/helper')
2
+
3
+ class TestMongoidSessionStore < Test::Unit::TestCase
4
+ def setup
5
+ Mongoid.master.collections.select {|c| c.name !~ /system/ }.each(&:drop)
6
+ end
7
+
8
+ should "probably rename this file and start testing for real" do
9
+ flunk "hey buddy, you should probably rename this file and start testing for real"
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,175 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mongoid_session_store
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Ryan Fitzgerald
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-08-10 00:00:00 -04:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: thoughtbot-shoulda
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ type: :development
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: mongoid
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 2
43
+ - 0
44
+ - 0
45
+ - beta
46
+ - 16
47
+ version: 2.0.0.beta.16
48
+ type: :runtime
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: actionpack
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ segments:
59
+ - 3
60
+ - 0
61
+ - 0
62
+ - rc
63
+ version: 3.0.0.rc
64
+ type: :runtime
65
+ version_requirements: *id003
66
+ description: store rails 3 sessions in mongoDB
67
+ email: ryan@gymlogr.com
68
+ executables: []
69
+
70
+ extensions: []
71
+
72
+ extra_rdoc_files:
73
+ - LICENSE
74
+ - README.rdoc
75
+ files:
76
+ - .document
77
+ - .gitignore
78
+ - Gemfile
79
+ - Gemfile.lock
80
+ - LICENSE
81
+ - README.rdoc
82
+ - Rakefile
83
+ - VERSION
84
+ - example/.gitignore
85
+ - example/Gemfile
86
+ - example/Gemfile.lock
87
+ - example/README
88
+ - example/Rakefile
89
+ - example/app/controllers/application_controller.rb
90
+ - example/app/controllers/sessions_controller.rb
91
+ - example/app/helpers/application_helper.rb
92
+ - example/app/helpers/sessions_helper.rb
93
+ - example/app/views/layouts/application.html.erb
94
+ - example/config.ru
95
+ - example/config/application.rb
96
+ - example/config/boot.rb
97
+ - example/config/database.yml
98
+ - example/config/environment.rb
99
+ - example/config/environments/development.rb
100
+ - example/config/environments/production.rb
101
+ - example/config/environments/test.rb
102
+ - example/config/initializers/backtrace_silencers.rb
103
+ - example/config/initializers/inflections.rb
104
+ - example/config/initializers/mime_types.rb
105
+ - example/config/initializers/secret_token.rb
106
+ - example/config/initializers/session_store.rb
107
+ - example/config/locales/en.yml
108
+ - example/config/mongoid.yml
109
+ - example/config/routes.rb
110
+ - example/db/migrate/20100810035140_add_sessions_table.rb
111
+ - example/db/schema.rb
112
+ - example/db/seeds.rb
113
+ - example/doc/README_FOR_APP
114
+ - example/lib/tasks/.gitkeep
115
+ - example/public/404.html
116
+ - example/public/422.html
117
+ - example/public/500.html
118
+ - example/public/favicon.ico
119
+ - example/public/images/rails.png
120
+ - example/public/index.html
121
+ - example/public/javascripts/application.js
122
+ - example/public/javascripts/controls.js
123
+ - example/public/javascripts/dragdrop.js
124
+ - example/public/javascripts/effects.js
125
+ - example/public/javascripts/prototype.js
126
+ - example/public/javascripts/rails.js
127
+ - example/public/robots.txt
128
+ - example/public/stylesheets/.gitkeep
129
+ - example/script/rails
130
+ - example/test/functional/sessions_controller_test.rb
131
+ - example/test/integration/sessions_test.rb
132
+ - example/test/performance/browsing_test.rb
133
+ - example/test/test_helper.rb
134
+ - example/test/unit/helpers/sessions_helper_test.rb
135
+ - example/vendor/plugins/.gitkeep
136
+ - lib/mongoid_session_store.rb
137
+ - lib/mongoid_session_store/mongoid_store.rb
138
+ - mongoid_session_store.gemspec
139
+ - test/helper.rb
140
+ - test/test_mongoid_session_store.rb
141
+ has_rdoc: true
142
+ homepage: http://github.com/ryanfitz/mongoid_session_store
143
+ licenses: []
144
+
145
+ post_install_message:
146
+ rdoc_options:
147
+ - --charset=UTF-8
148
+ require_paths:
149
+ - lib
150
+ required_ruby_version: !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ segments:
156
+ - 0
157
+ version: "0"
158
+ required_rubygems_version: !ruby/object:Gem::Requirement
159
+ none: false
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ segments:
164
+ - 0
165
+ version: "0"
166
+ requirements: []
167
+
168
+ rubyforge_project:
169
+ rubygems_version: 1.3.7
170
+ signing_key:
171
+ specification_version: 3
172
+ summary: store rails 3 sessions in mongoDB
173
+ test_files:
174
+ - test/helper.rb
175
+ - test/test_mongoid_session_store.rb