activerecord-session_store 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activerecord-session_store might be problematic. Click here for more details.

@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0ea10b5f92d5818f9ae6951c3f54116acb119eae
4
+ data.tar.gz: ce9c39fbef8fbdc82ca36a732948bee2939e8a64
5
+ SHA512:
6
+ metadata.gz: 0dedb0c1303059ef56c5181b2a284eb051acb0103b2d71f14440c61f042bba754563fd3a2d38d6e5f9eeab35c14968377c9cbb7534c7cabda72c22a77549a72c
7
+ data.tar.gz: 2b72be9257bf89fbac1eef9f82f9a703e29f5dc83a9021c0a0ad8baf4c9496cf3f8ab8dea5ab80592822d03222b4e1b005968c47e4a2bb6f677c0037b840be1c
data/README.md CHANGED
@@ -53,8 +53,8 @@ the `sessions` table, making periodic session expiration a snap.
53
53
  You may provide your own session class implementation, whether a
54
54
  feature-packed Active Record or a bare-metal high-performance SQL
55
55
  store, by setting
56
-
57
- ActiveRecord::SessionStore.session_class = MySessionClass
56
+
57
+ ActionDispatch::Session::ActiveRecordStore.session_class = MySessionClass
58
58
 
59
59
  You must implement these methods:
60
60
 
@@ -20,7 +20,7 @@ module ActiveRecord
20
20
 
21
21
  # Hook to set up sessid compatibility.
22
22
  def find_by_session_id(session_id)
23
- setup_sessid_compatibility!
23
+ Thread.exclusive { setup_sessid_compatibility! }
24
24
  find_by_session_id(session_id)
25
25
  end
26
26
 
@@ -6,7 +6,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration
6
6
  t.timestamps
7
7
  end
8
8
 
9
- add_index :<%= session_table_name %>, :session_id
9
+ add_index :<%= session_table_name %>, :session_id, :unique => true
10
10
  add_index :<%= session_table_name %>, :updated_at
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,96 +1,87 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-session_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - David Heinemeier Hansson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-22 00:00:00.000000000 Z
11
+ date: 2013-10-24 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activerecord
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
- version: 4.0.0.beta
19
+ version: 4.0.0
22
20
  - - <
23
21
  - !ruby/object:Gem::Version
24
22
  version: '5'
25
23
  type: :runtime
26
24
  prerelease: false
27
25
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
26
  requirements:
30
- - - ! '>='
27
+ - - '>='
31
28
  - !ruby/object:Gem::Version
32
- version: 4.0.0.beta
29
+ version: 4.0.0
33
30
  - - <
34
31
  - !ruby/object:Gem::Version
35
32
  version: '5'
36
33
  - !ruby/object:Gem::Dependency
37
34
  name: actionpack
38
35
  requirement: !ruby/object:Gem::Requirement
39
- none: false
40
36
  requirements:
41
- - - ! '>='
37
+ - - '>='
42
38
  - !ruby/object:Gem::Version
43
- version: 4.0.0.beta
39
+ version: 4.0.0
44
40
  - - <
45
41
  - !ruby/object:Gem::Version
46
42
  version: '5'
47
43
  type: :runtime
48
44
  prerelease: false
49
45
  version_requirements: !ruby/object:Gem::Requirement
50
- none: false
51
46
  requirements:
52
- - - ! '>='
47
+ - - '>='
53
48
  - !ruby/object:Gem::Version
54
- version: 4.0.0.beta
49
+ version: 4.0.0
55
50
  - - <
56
51
  - !ruby/object:Gem::Version
57
52
  version: '5'
58
53
  - !ruby/object:Gem::Dependency
59
54
  name: railties
60
55
  requirement: !ruby/object:Gem::Requirement
61
- none: false
62
56
  requirements:
63
- - - ! '>='
57
+ - - '>='
64
58
  - !ruby/object:Gem::Version
65
- version: 4.0.0.beta
59
+ version: 4.0.0
66
60
  - - <
67
61
  - !ruby/object:Gem::Version
68
62
  version: '5'
69
63
  type: :runtime
70
64
  prerelease: false
71
65
  version_requirements: !ruby/object:Gem::Requirement
72
- none: false
73
66
  requirements:
74
- - - ! '>='
67
+ - - '>='
75
68
  - !ruby/object:Gem::Version
76
- version: 4.0.0.beta
69
+ version: 4.0.0
77
70
  - - <
78
71
  - !ruby/object:Gem::Version
79
72
  version: '5'
80
73
  - !ruby/object:Gem::Dependency
81
74
  name: sqlite3
82
75
  requirement: !ruby/object:Gem::Requirement
83
- none: false
84
76
  requirements:
85
- - - ! '>='
77
+ - - '>='
86
78
  - !ruby/object:Gem::Version
87
79
  version: '0'
88
80
  type: :development
89
81
  prerelease: false
90
82
  version_requirements: !ruby/object:Gem::Requirement
91
- none: false
92
83
  requirements:
93
- - - ! '>='
84
+ - - '>='
94
85
  - !ruby/object:Gem::Version
95
86
  version: '0'
96
87
  description:
@@ -113,6 +104,7 @@ files:
113
104
  homepage: http://www.rubyonrails.org
114
105
  licenses:
115
106
  - MIT
107
+ metadata: {}
116
108
  post_install_message:
117
109
  rdoc_options:
118
110
  - --main
@@ -120,21 +112,19 @@ rdoc_options:
120
112
  require_paths:
121
113
  - lib
122
114
  required_ruby_version: !ruby/object:Gem::Requirement
123
- none: false
124
115
  requirements:
125
- - - ! '>='
116
+ - - '>='
126
117
  - !ruby/object:Gem::Version
127
118
  version: 1.9.3
128
119
  required_rubygems_version: !ruby/object:Gem::Requirement
129
- none: false
130
120
  requirements:
131
- - - ! '>='
121
+ - - '>='
132
122
  - !ruby/object:Gem::Version
133
123
  version: '0'
134
124
  requirements: []
135
125
  rubyforge_project:
136
- rubygems_version: 1.8.23
126
+ rubygems_version: 2.0.6
137
127
  signing_key:
138
- specification_version: 3
128
+ specification_version: 4
139
129
  summary: An Action Dispatch session store backed by an Active Record class.
140
130
  test_files: []