activerecord-session_store 0.1.1.pre → 0.1.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.

Potentially problematic release.


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

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: adf05ad9dc9399cb9ff6b312bf79b0da4119f7f4
4
- data.tar.gz: b2bf84d11f05d675b4e68fc3cc96c5fa71a52775
3
+ metadata.gz: 839c59e0fa4e372772d868d85da9eeffca93cc4e
4
+ data.tar.gz: 27fe06dcf42428ab0530b19718c987cb7df0c05d
5
5
  SHA512:
6
- metadata.gz: af07b4aeddd875b6e9c1d05cb98ed12bfc5b2dfef08c9254d18654ff462821bd073e47e90c733026c8da40034861824d3560f11feb436296e818c62771c85951
7
- data.tar.gz: a926c8686c220de2636287b575238d694be509deb46181abe510080849b50aa44bc57bbc857495dbb558a8ec3948d7f8caac9bad560ac4cf1121e8018a58a80a
6
+ metadata.gz: 5a4f5b07c3a2973c68d5517e2609f0b23297810706cfa577a1b3e0e432f100df769eb979be222dd21740d705be8ea1667dbe9445eed724cd47ae4112741019ed
7
+ data.tar.gz: 16f422ab72d3d3433e1f8db40db4f90ab2a67fee8fbbeca75cce544d4a11e636d28f72c2740018815bec5e1c8e891fa37e404b52e008f077453f832885706dce
data/README.md CHANGED
@@ -21,7 +21,7 @@ Run the migration generator:
21
21
  Then, set your session store in `config/initializers/session_store.rb`:
22
22
 
23
23
  ```ruby
24
- Foo::Application.config.session_store :active_record_store
24
+ MyApp::Application.config.session_store :active_record_store, :key => '_my_app_session'
25
25
  ```
26
26
 
27
27
  Configuration
@@ -1,3 +1,4 @@
1
+ require "active_support/core_ext/module/attribute_accessors"
1
2
  require 'action_dispatch/middleware/session/abstract_store'
2
3
 
3
4
  module ActionDispatch
@@ -1,6 +1,7 @@
1
1
  require "thread"
2
2
  require "active_support/core_ext/class/attribute_accessors"
3
3
  require "active_support/core_ext/module/aliasing"
4
+ require "active_support/core_ext/module/attribute_accessors"
4
5
  require "active_support/concern"
5
6
 
6
7
  module ActiveRecord
@@ -1,3 +1,5 @@
1
+ require "active_support/core_ext/module/attribute_accessors"
2
+
1
3
  module ActiveRecord
2
4
  module SessionStore
3
5
  # The default Active Record class.
@@ -13,6 +15,13 @@ module ActiveRecord
13
15
  before_save :marshal_data!
14
16
  before_save :raise_on_session_data_overflow!
15
17
 
18
+ # This method is defiend in `protected_attributes` gem. We can't check for
19
+ # `attr_accessible` as Rails also define this and raise `RuntimeError`
20
+ # telling you to use the gem.
21
+ if respond_to?(:accessible_attributes)
22
+ attr_accessible :session_id, :data
23
+ end
24
+
16
25
  class << self
17
26
  def data_column_size_limit
18
27
  @data_column_size_limit ||= columns_hash[data_column_name].limit
@@ -1,3 +1,5 @@
1
+ require "active_support/core_ext/module/attribute_accessors"
2
+
1
3
  module ActiveRecord
2
4
  module SessionStore
3
5
  # A barebones session store which duck-types with the default session
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-session_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.pre
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-16 00:00:00.000000000 Z
11
+ date: 2015-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -133,9 +133,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
133
  version: 1.9.3
134
134
  required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">"
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 1.3.1
138
+ version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
141
  rubygems_version: 2.4.5